TL;DR
This paper challenges the common practice of initializing biomedical NLP models with general-domain language models. They demonstrate that pretraining a BERT-like model from scratch using only biomedical text (PubMed abstracts) significantly outperforms models that start with general-domain knowledge, achieving new state-of-the-art results. They also introduce BLURB, a comprehensive benchmark for evaluating biomedical NLP models.
What Problem Does This Paper Address?
The success of large language models like BERT in general NLP tasks has led to a prevailing assumption: that even for specialized domains like biomedicine, it's best to start with a general-domain model and then "continue" its training on domain-specific data. This "mixed-domain pretraining" approach is thought to leverage the vast knowledge learned from general text. However, the authors question this assumption, particularly for domains with abundant unlabeled text like biomedicine. They hypothesize that the significant differences between general and biomedical text might lead to "negative transfer," where the general knowledge actually hinders performance. They aim to investigate whether a "domain-specific pretraining from scratch" approach, using only biomedical data, can yield superior results.
Methods
The core of the paper involves comparing different pretraining strategies for BERT-like models.
- Mixed-Domain Pretraining: This involves taking a pre-trained general-domain model (like BERT) and continuing its training on biomedical text. This is the approach used by existing models like BioBERT and BlueBERT.
- Domain-Specific Pretraining from Scratch: This is the novel approach proposed. It involves building a new language model from the ground up, using only biomedical text (PubMed abstracts) for both vocabulary creation and pretraining. The authors call their resulting model "PubMedBERT."
- BLURB Benchmark: To rigorously evaluate their findings, the authors created BLURB (Biomedical Language Understanding & Reasoning Benchmark). This benchmark consolidates thirteen publicly available datasets across six key biomedical NLP tasks: Named Entity Recognition (NER), PICO extraction, Relation Extraction, Sentence Similarity, Document Classification, and Question Answering. This aims to provide a standardized way to compare models.
The paper also explores various modeling choices for pretraining and task-specific fine-tuning, including vocabulary construction, whole-word masking (WWM), and different tagging schemes for NER.
Datasets
The primary dataset used for pretraining PubMedBERT is a collection of 14 million PubMed abstracts (approximately 3.2 billion words).
For the BLURB benchmark, the following datasets were used:
- Named Entity Recognition (NER): BC5-chem, BC5-disease, NCBI-disease, BC2GM, JNLPBA
- Evidence-Based Medical Information Extraction (PICO): EBM PICO
- Relation Extraction: ChemProt, DDI, GAD
- Sentence Similarity: BIOSSES
- Document Classification: HoC
- Question Answering (QA): PubMedQA, BioASQ
Key Insights and Ideas
- "Scratch" is Superior for Abundant Domains: For domains with vast amounts of text like biomedicine, pretraining from scratch using only domain-specific data is significantly more effective than continuing pretraining from a general-domain model. This challenges the long-held assumption of mixed-domain pretraining's universal benefit.
- Vocabulary Matters: Using a vocabulary derived from the target domain (biomedical text) is crucial. General-domain vocabularies force models to break down biomedical terms into sub-word pieces, hindering learning.
- General-Domain Text Can Be Detrimental: Even when using an in-domain vocabulary, pretraining on general-domain text (like Wikipedia) can lead to worse performance compared to using only in-domain text. This highlights the potential for negative transfer.
- Simpler NER Tagging Works for BERT: For Named Entity Recognition with BERT-based models, complex tagging schemes like BIOUL are unnecessary. A simpler IO (In/Out) scheme performs comparably, suggesting that BERT's self-attention mechanism can capture context effectively without explicit positional information within entities.
- BLURB is a Needed Resource: The creation of BLURB addresses a critical need for a standardized, comprehensive benchmark in biomedical NLP, enabling more reliable comparisons and accelerating research.
Key Results
- State-of-the-Art Performance: PubMedBERT, pretrained from scratch on PubMed abstracts, consistently outperformed existing models (BERT, RoBERTa, BioBERT, SciBERT, ClinicalBERT, BlueBERT) across most tasks in the BLURB benchmark. The overall BLURB score for PubMedBERT was 81.16, significantly higher than other models.
- Substantial Gains: The gains from domain-specific pretraining from scratch were most substantial against models trained on out-domain text.
- Vocabulary Impact: Using an in-domain vocabulary (PubMed) led to significantly better performance than using the original BERT vocabulary (Wiki + Books), even when the pretraining corpus was the same.
- Whole-Word Masking (WWM) Benefits: WWM consistently improved performance across the board compared to word-piece masking, regardless of the vocabulary used.
- Input Length Reduction: Using an in-domain vocabulary resulted in shorter input lengths in terms of word pieces, which can make downstream learning more efficient.
Limitations and Future Work
- Clinical Domain: The BLURB benchmark focuses on PubMed-based biomedical applications. The authors suggest extending BLURB to include the clinical domain and other high-value verticals in future work.
- Full-Text Articles: While adding full-text articles from PubMed Central (PMC) to the pretraining corpus showed some improvement, it also led to slight degradation in performance on some tasks. The authors hypothesize this could be due to noise in full texts or the need for more extensive pretraining.
- Adversarial Pretraining: Adversarial pretraining, which has shown promise in general domains, surprisingly led to a slight degradation in performance for PubMedBERT. The authors suggest this might be because adversarial training is most effective when the pretraining corpus is more diverse and relatively out-domain.
- Task-Specific Fine-Tuning: While the paper explores some fine-tuning aspects, further investigation into the impact of various modeling choices for task-specific fine-tuning is suggested.
- Generalization of Tagging Schemes: The finding that simpler tagging schemes work for BERT in NER might not generalize to all relation extraction tasks, which warrants further study.
Summary updated