KEBLM: Knowledge-Enhanced Biomedical Language Models

Tuan Manh Lai, ChengXiang Zhai, Heng JiJ. Biomed. Informatics 2023

Introduction

General-purpose language models like BERT have revolutionized natural language processing, but they often struggle in specialized domains such as biomedicine. These models primarily learn from unstructured text, missing out on the rich, structured information contained in expert-curated knowledge bases (KBs). For instance, a standard model might encounter the abbreviation "UIM" and fail to recognize it as a "Ubiquitin-Interacting Motif," potentially misidentifying it as a generic DNA sequence.

An example of biomedical entities and relations in text, illustrating the complexity of domain-specific terminology like UIM.

As scientific knowledge expands exponentially, models with static parameters quickly become outdated. The core challenge lies in integrating structured knowledge—such as entity relations and synonyms—without the prohibitive computational cost of retraining the entire model from scratch.

Methodology: The KEBLM Framework

KEBLM addresses this by injecting domain knowledge into pretrained models (e.g., SciBERT, BioBERT) using a modular approach consisting of three main components.

1. Adapter Modules

Instead of full-model fine-tuning, KEBLM utilizes "adapters"—small, bottleneck feed-forward networks inserted between the layers of a frozen backbone model. This architecture allows for high efficiency and modularity; new knowledge modules can be added as new databases are released without interfering with existing parameters.

The KEBLM architecture, showing the adapter insertion, the pretraining of modules on diverse knowledge types, and the final knowledge fusion process.

2. Self-Supervised Objectives

To capture different facets of biomedical knowledge, the researchers employed distinct training objectives for different data types:

  • Entity Descriptions: Taught via Masked Language Modeling (MLM).
  • Entity-Entity Relations: Optimized using a max-margin ranking objective to distinguish valid relations from noise.
  • Synonyms: Taught through contrastive learning to ensure synonymous terms (e.g., "aspirin" and "acetylsalicylic acid") share similar vector representations.

3. Knowledge Consolidation

A key innovation of KEBLM is the knowledge consolidation phase. After training individual adapters, fusion layers are introduced to combine their outputs. These layers undergo a consolidation step using large-scale unannotated biomedical text, teaching the model how to effectively integrate external knowledge with its internal linguistic logic before tackling specific downstream tasks.

Datasets and Evaluation

The framework was trained using massive knowledge sources, including UMLS and PubChem (for over 130 million descriptions and synonyms) and the Multiscale Interactome (MSI) (for nearly 500,000 relation triples). Evaluation spanned several critical biomedical benchmarks:

  • Entity Linking (EL): NCBI-d, BC5CDR, and COMETA (medical entities in social media).
  • Natural Language Inference (NLI): MedNLI.
  • Question Answering (QA): PubMedQA.

Key Results and Insights

KEBLM consistently outperformed baseline BioBERT and SciBERT models across all tested tasks.

  • Entity Linking: On the COMETA dataset, KEBLM achieved 80.8% accuracy, surpassing both the baseline and state-of-the-art methods like SapBERT (77.0%).
  • Reasoning Tasks: In MedNLI, accuracy rose to 84.24% (from 82.21%). In PubMedQA, accuracy improved significantly from 62.2% to 68.0%.

Qualitative analysis highlighted the model's improved reasoning. For example, KEBLM correctly identified a contradiction between "hematemesis" (vomiting blood) and a patient "without bleed" because it had learned the definition of the term during adapter training, whereas the baseline model failed.

Conclusion

KEBLM demonstrates that modular knowledge injection is a powerful and efficient way to enhance domain-specific language models. By freezing the backbone and using a consolidation phase, the framework achieves state-of-the-art performance while remaining extensible to future discoveries. Future work may explore incorporating non-textual data, such as 3D molecular structures or protein sequences, to further deepen the model's understanding of the biomedical domain.

Summary updated

BibTeX
@article{lai2023keblm,
  author = {Tuan Manh Lai and ChengXiang Zhai and Heng Ji},
  title = {{KEBLM: Knowledge-Enhanced Biomedical Language Models}},
  journal = {J. Biomed. Informatics},
  year = {2023},
  doi = {10.1016/j.jbi.2023.104392},
}
Figure