Domain-Specific Language Model Pretraining for Biomedical Natural Language Processing
Yu GuRobert TinnHao ChengMichael LucasNaoto UsuyamaXiaodong LiuTristan NaumannJianfeng GaoHoifung Poon
Demonstrates that pretraining language models from scratch on domain text substantially outperforms continual pretraining from general-domain models in biomedicine, while introducing the BLURB benchmark and new state-of-the-art models for biomedical NLP.
Biomedical natural language processing faces a core challenge: while pretraining large language models like BERT on general text has driven broad gains, specialized domains with abundant unlabeled data such as biomedicine may not benefit from starting with those general models. The prevailing practice of mixed-domain pretraining, often by continual training of a general BERT model on biomedical text, rests on the assumption that out-of-domain data remains helpful, yet this can introduce negative transfer when the target domain already contains tens of millions of documents.
The article set out to test whether pretraining a language model entirely from scratch on in-domain biomedical text would outperform the mixed-domain approach across a wide range of downstream tasks. To enable rigorous comparison, the authors assembled BLURB, a benchmark of thirteen publicly available datasets spanning named-entity recognition, PICO extraction, relation extraction, sentence similarity, document classification, and question answering, and they released both the benchmark and a public leaderboard.
They pretrained PubMedBERT from scratch on 14 million PubMed abstracts using an in-domain vocabulary, whole-word masking, and standard masked-language-model objectives, then compared it head-to-head with BERT, RoBERTa, BioBERT, SciBERT, ClinicalBERT, and BlueBERT under identical fine-tuning protocols. The experiments also examined modeling variants such as tagging schemes for named-entity recognition and entity representation choices for relation extraction.
PubMedBERT achieved the highest overall BLURB score of 81.16 and led or matched the best result on eleven of the thirteen tasks, with gains of one to several points over the next-best model on most relation-extraction and question-answering datasets. In-domain vocabulary and pretraining from scratch proved clearly superior to continual pretraining from general-domain models or to mixing computer-science or clinical text; whole-word masking added consistent value while adversarial pretraining did not. Notably, the simpler IO tagging scheme performed on par with or better than the conventional BIO scheme for BERT-based named-entity recognition, and entity dummification remained the most reliable representation for relation extraction.
These results indicate that, when sufficient in-domain text exists, domain-specific pretraining from scratch removes the risk of negative transfer and yields stronger task performance, which can translate directly into more accurate information extraction for literature review, pharmacovigilance, and evidence synthesis. The findings also simplify deployment by showing that several common modeling practices add little or no value once transformer-based models are used.
The authors recommend adopting in-domain pretraining whenever the target domain offers tens of millions of documents, releasing their PubMedBERT checkpoints and the BLURB leaderboard to accelerate community progress. Next steps include extending the benchmark to clinical notes and other vertical domains, incorporating additional tasks, and exploring longer pretraining schedules when full-text articles are added.
The study is limited to PubMed abstracts and the tasks currently in BLURB; performance on clinical text or on more complex question-answering formats was not evaluated. Results on the smallest datasets exhibit run-to-run variance, and hyperparameter search was constrained to keep computation tractable. Overall, the head-to-head comparisons on a comprehensive public benchmark provide high confidence in the central conclusion that domain-specific pretraining from scratch is the stronger strategy for biomedicine.
- Paper: BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding, Jacob Devlin et al. (2019). It establishes the foundational bidirectional Transformer masked language modeling architecture directly adopted and modified for domain-specific pretraining in PubMedBERT.
- Paper: BioBERT: a pre-trained biomedical language representation model for biomedical text mining, Jinhyuk Lee et al. (2019). It represents the primary mixed-domain continual pretraining baseline for biomedical text mining that PubMedBERT explicitly seeks to evaluate and outperform.
- Paper: SciBERT: A Pretrained Language Model for Scientific Text, Iz Beltagy et al. (2019). It demonstrates domain-specific vocabulary construction and scientific text pretraining, serving as a direct point of comparison for PubMedBERT on the BLURB benchmark.
- Paper: Publicly Available Clinical BERT Embeddings, Emily Alsentzer et al. (2019). It provides the key clinical domain adaptation baseline analyzed in the comparative study of domain-specific versus mixed-domain pretraining.
- Paper: RoBERTa: A Robustly Optimized BERT Pretraining Approach, Yinhan Liu et al. (2019). It introduces critical pretraining optimization enhancements, such as whole-word masking and removing the next-sentence prediction task, that are integrated into PubMedBERT's pretraining recipe.
- Paper: SpanBERT: Improving Pre-training by Representing and Predicting Spans, Mandar Joshi et al. (2019). It introduces span-level pretraining and masked representation techniques relevant to the fine-tuning and entity tagging schemes tested on the BLURB tasks.
- Paper: Universal Language Model Fine-tuning for Text Classification, Jeremy Howard et al. (2018). It provides the conceptual foundation for inductive transfer learning and domain-adaptive pretraining routines in natural language processing.
- Paper: Large language models encode clinical knowledge, K. Singhal et al. (2022). It extends the evaluation of medical domain language modeling beyond BERT-scale discriminative encoders to large generative language models aligned for clinical knowledge retrieval and reasoning.
- Paper: Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference, Benjamin Warner et al. (2025). It modernizes the bidirectional encoder architecture used by PubMedBERT to enable fast, memory-efficient processing of long contexts across diverse domains.
- Paper: DeBERTa: Decoding-enhanced BERT with Disentangled Attention, Pengcheng He et al. (2021). It refines transformer-based masked language pretraining by introducing disentangled attention and enhanced decoding to advance beyond standard BERT representations.
- Paper: Don’t Stop Pretraining: Adapt Language Models to Domains and Tasks, Suchin Gururangan et al. (2020). It systematically investigates domain-adaptive and task-adaptive pretraining across multiple domains, offering a broader perspective on the domain specialization tradeoffs studied in PubMedBERT.
