Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

BioClinical ModernBERT: A State-of-the-Art Long-Context Encoder for Biomedical and Clinical NLP

About

Encoder-based transformer models are central to biomedical and clinical Natural Language Processing (NLP), as their bidirectional self-attention makes them well-suited for efficiently extracting structured information from unstructured text through discriminative tasks. However, encoders have seen slower development compared to decoder models, leading to limited domain adaptation in biomedical and clinical settings. We introduce BioClinical ModernBERT, a domain-adapted encoder that builds on the recent ModernBERT release, incorporating long-context processing and substantial improvements in speed and performance for biomedical and clinical NLP. BioClinical ModernBERT is developed through continued pretraining on the largest biomedical and clinical corpus to date, with over 53.5 billion tokens, and addresses a key limitation of prior clinical encoders by leveraging 20 datasets from diverse institutions, domains, and geographic regions, rather than relying on data from a single source. It outperforms existing biomedical and clinical encoders on four downstream tasks spanning a broad range of use cases. We release both base (150M parameters) and large (396M parameters) versions of BioClinical ModernBERT, along with training checkpoints to support further research.

Thomas Sounack, Joshua Davis, Brigitte Durieux, Antoine Chaffin, Tom J. Pollard, Eric Lehman, Alistair E. W. Johnson, Matthew McDermott, Tristan Naumann, Charlotta Lindvall• 2025

Related benchmarks

TaskDatasetResultRank
Information RetrievalTREC-COVID
NDCG@1046.08
59
Named Entity RecognitionJNLPBA (test)
Macro F1 (span-level)74.8
32
RetrievalSCIDOCS
nDCG@109.33
18
Incidentaloma classificationIncidentaloma classification (test)
F1 Class 099
12
Named Entity RecognitionSocial--
12
Named Entity RecognitionCOS
Macro F194.8
9
Named Entity RecognitionDEID
Macro F181.8
9
Named Entity RecognitionBC5CDR
Macro F188.7
9
ClassificationPheno
Macro F160.7
9
Named Entity RecognitionAnatEM
Macro F179.2
9
Showing 10 of 20 rows

Other info

Follow for update