Improving Biomedical Pretrained Language Models with Knowledge

Zheng Yuan, Yijia Liu, Chuanqi Tan, Songfang Huang, Fei Huang

Introduction

While general-purpose language models have transformed natural language processing, they often struggle in specialized domains like medicine. Biomedical text is characterized by dense, complex terminology and specific relational structures (e.g., drug-disease interactions). Existing models like BioBERT and PubMedBERT improve performance by training on domain-specific corpora like PubMed abstracts, but they typically treat entities as mere character sequences. They lack "grounding"—the ability to link terms like "glycerin" to structured database entries that define their properties and relationships.

KeBioLM (Knowledge-enhanced Biomedical pretrained Language Model) addresses this gap by explicitly integrating structured knowledge from the Unified Medical Language System (UMLS) into the pretraining process. By combining traditional text-based learning with entity detection and linking tasks, KeBioLM achieves state-of-the-art performance on biomedical benchmarks.

Methodology

KeBioLM utilizes a specialized two-stage encoding architecture designed to fuse linguistic patterns with structured medical knowledge:

  1. Text-only Encoding: The initial 8 layers focus on raw text processing. During this stage, the model performs a "mention detection" task, identifying medical entity boundaries using a BIO (Beginning, Inside, Outside) tagging scheme.
  2. Text-entity Fusion: The final 4 layers integrate text representations with entity embeddings. These embeddings are initialized using TransE, a technique that represents knowledge graph triplets (head, relation, tail) as vectors, providing the model with a mathematical foundation of entity relationships.
  3. Pretraining Objectives: The model is trained on three simultaneous tasks: Masked Language Modeling (MLM) using "whole entity masking" to force the learning of complete concepts; Entity Detection to locate mentions; and Entity Linking to map mentions to unique identifiers (CUIs) in the UMLS database.
The KeBioLM architecture featuring text-only encoding followed by text-entity fusion and entity linking.

Experimental Setup

The model was pretrained on 3.5 million PubMed documents, with 660 million entity mentions automatically linked to the UMLS 2020 AA knowledge base. Evaluation was conducted using the BLURB benchmark, covering:

  • Named Entity Recognition (NER): Including datasets such as BC5chem, BC5dis, and NCBI-disease.
  • Relation Extraction (RE): Including ChemProt, DDI, and GAD.
  • Factual Probing: A new dataset of 143,771 cloze-style queries (e.g., "[MASK] may treat asthma") was introduced to test the model's absorption of factual knowledge.

Key Results

KeBioLM consistently outperformed strong baselines, including BioBERT and PubMedBERT, across both NER and RE tasks.

Performance comparison of KeBioLM against various biomedical BERT baselines across NER and RE benchmarks.

As shown in the results table, KeBioLM achieved an average F1-score of 87.1 for NER tasks, surpassing PubMedBERT's 86.3. In Relation Extraction, it reached an average F1-score of 81.2. Furthermore, in factual probing tasks, KeBioLM demonstrated a significantly higher Recall@5 compared to ClinicalBERT and SciBERT, indicating it successfully "memorized" medical facts during pretraining rather than just learning linguistic shortcuts.

Conclusion

KeBioLM demonstrates that infusing structured knowledge into language models significantly enhances their performance in specialized domains. By splitting the architecture into text-only and fusion layers, the model builds a linguistic foundation before integrating external knowledge. Future work will focus on more directly incorporating complex relational structures (the "edges" of knowledge graphs) and reducing dependency on automated entity linking tools like ScispaCy, which can introduce noise during the data creation phase.

Summary updated

BibTeX
@inproceedings{yuan2021improving,
  author = {Zheng Yuan and Yijia Liu and Chuanqi Tan and Songfang Huang and Fei Huang},
  title = {{Improving Biomedical Pretrained Language Models with Knowledge}},
  booktitle = {BioNLP @ NAACL},
  year = {2021},
  doi = {10.18653/v1/2021.bionlp-1.20},
}
Figure