BioBERT: a pre-trained biomedical language representation model for biomedical text mining

Jinhyuk Lee, Wonjin Yoon, Sungdong Kim, Donghyeon Kim, Sunkyu Kim, Chan Ho So, Jaewoo Kang · DOI

Abstract Biomedical text mining is becoming increasingly important as the number of biomedical documents rapidly grows. With the progress in natural language processing (NLP), extracting valuable information from biomedical literature has gained popularity among researchers, and deep learning has boosted the development of effective biomedical text mining models. However, directly applying the advancements in NLP to biomedical text mining often yields unsatisfactory results due to a word distribution shift from general domain corpora to biomedical corpora. In this article, we investigate how the recently introduced pre-trained language model BERT can be adapted for biomedical corpora. We introduce BioBERT (Bidirectional Encoder Representations from Transformers for Biomedical Text Mining), which is a domain-specific language representation model pre-trained on large-scale biomedical corpora. With almost the same architecture across tasks, BioBERT largely outperforms BERT and previous state-of-the-art models in a variety of biomedical text mining tasks when pre-trained on biomedical corpora. While BERT obtains performance comparable to that of previous state-of-the-art models, BioBERT significantly outperforms them on the following three representative biomedical text mining tasks: biomedical named entity recognition (0.62% F1 score improvement), biomedical relation extraction (2.80% F1 score improvement) and biomedical question answering (12.24% MRR improvement). Our analysis results show that pre-training BERT on biomedical corpora helps it to understand complex biomedical texts. We make the pre-trained weights of BioBERT freely available at https://github.com/naver/biobert-pretrained, and the source code for fine-tuning BioBERT available at https://github.com/dmis-lab/biobert.

Introduction

The rapid expansion of biomedical literature presents a significant challenge for researchers seeking to extract meaningful insights manually. While general-purpose Natural Language Processing (NLP) models like BERT have revolutionized the field, they often struggle with the specialized vocabulary and complex linguistic structures inherent in biomedical texts. This performance gap is primarily attributed to "word distribution shift"—the discrepancy between the general-domain corpora (e.g., Wikipedia) used to train standard models and the highly technical language of medical abstracts and articles.

Methodology

To address these challenges, the authors developed BioBERT (Bidirectional Encoder Representations from Transformers for Biomedical Text Mining). BioBERT is the first domain-specific language representation model based on the BERT architecture, specifically tailored for the biomedical domain through a two-stage training process.

Biomedical Pre-training

BioBERT begins with the weights of the original BERT-base model. It then undergoes extensive additional pre-training on massive biomedical datasets, including PubMed abstracts (4.5 billion words) and PMC full-text articles (13.5 billion words). By maintaining the original BERT vocabulary, BioBERT remains compatible with existing tools while learning the specific contextual relationships between medical terms like gene names and chemical compounds.

The BioBERT pipeline, illustrating the transition from general-domain BERT to a domain-specific model through large-scale biomedical pre-training and subsequent fine-tuning on specialized tasks.

Fine-tuning for Downstream Tasks

A key advantage of BioBERT is its versatility. With minimal architectural modifications—typically the addition of a single output layer—the model can be fine-tuned for a variety of specialized tasks, including Named Entity Recognition (NER), Relation Extraction (RE), and Question Answering (QA).

Datasets and Evaluation

The researchers evaluated BioBERT across a diverse set of benchmarks:

  • NER: Eight datasets, including NCBI Disease, BC5CDR (chemicals/diseases), and BC2GM (genes/proteins).
  • Relation Extraction: GAD (gene-disease), EU-ADR, and CHEMPROT (protein-chemical).
  • Question Answering: BioASQ factoid challenges (4b, 5b, and 6b).

Key Results and Discussion

BioBERT demonstrated significant performance gains over both the original BERT and previous state-of-the-art (SOTA) models.

Examples of BioBERT's application in fine-tuned tasks: identifying entity boundaries in NER, determining relationships between genes and diseases in RE, and providing precise answers in QA.
  • Named Entity Recognition (NER): BioBERT achieved a 0.62% F1 score improvement over previous SOTA models. Qualitative analysis revealed that BioBERT is significantly better at identifying the precise boundaries of complex, multi-word medical entities compared to general-domain models.
  • Relation Extraction (RE): The model showed a 2.80% F1 score improvement, particularly excelling in identifying interactions between proteins and chemicals.
  • Question Answering (QA): The most dramatic improvement was seen in QA, with a 12.24% increase in Mean Reciprocal Rank (MRR). BioBERT successfully provided concise, accurate answers to technical questions where general BERT often failed.

Interestingly, the study found that while more data generally improves performance, the version trained primarily on PubMed abstracts (BioBERT v1.1) often yielded the best results. This suggests that the dense, high-quality information found in abstracts may be more effective for training than the larger but potentially noisier full-text articles.

Conclusion

BioBERT represents a significant advancement in biomedical text mining. By bridging the gap between general linguistic knowledge and domain-specific expertise, it provides a robust and unified framework for extracting information from the ever-growing body of medical literature. The public release of BioBERT's pre-trained weights and source code ensures that the broader research community can leverage these advancements for various clinical and biological applications.

Summary updated

BibTeX
@article{lee2019biobert,
  author = {Jinhyuk Lee and Wonjin Yoon and Sungdong Kim and Donghyeon Kim and Sunkyu Kim and Chan Ho So and Jaewoo Kang},
  title = {{BioBERT: a pre-trained biomedical language representation model for biomedical text mining}},
  journal = {Bioinformatics},
  year = {2019},
  doi = {10.1093/bioinformatics/btz682},
}
Figure