Enriching Contextualized Representations with Biomedical Ontologies: Extending KnowBert to UMLS

Guilhem Piat, Nasredine Semmar, Alexandre Allauzen, Hassane Essafi, Julien TourilleSAI 2022

Abstract

Standard language models like BERT lack explicit structured knowledge of specialized domains like biomedicine, often relying on implicit learning from large corpora. This paper explores KnowBert-UMLS, an extension of the KnowBert architecture that integrates the Unified Medical Language System (UMLS) directly into BERT's internal representations. By inserting a Knowledge Attention and Recontextualization (KAR) module, the model attempts to perform entity linking and knowledge enrichment "on the fly." Preliminary results on PubMed Central data and the n2c2 Named Entity Recognition (NER) task reveal significant computational challenges and a "disruption penalty" in language modeling performance, highlighting the difficulty of merging massive, structured ontologies with deep pre-trained transformers.

Introduction

Standard language models like BERT are typically trained on general-domain text (e.g., Wikipedia), which limits their effectiveness when encountering the highly specialized and dense vocabulary of the biomedical field. While domain-specific models like BioBERT exist, they learn biomedical concepts implicitly through additional pre-training on medical papers. They lack an explicit map of conceptual relationships.

Existing solutions that utilize structured knowledge (ontologies) often require a disjointed two-step pipeline: separate entity recognition followed by model input. The authors of this study sought to leverage the KnowBert framework to create a standalone model capable of simultaneous entity linking and language representation for the biomedical domain.

Methodology

The core of the proposed approach is the Knowledge Attention and Recontextualization (KAR) module, which is integrated directly into the BERT architecture.

Architecture Integration

In this experiment, the authors modified the standard 12-layer BERT-base model by inserting the KAR module between layers 10 and 11. This "cake-slicing" approach allows the model to process text through most of its layers before enriching the representations with external knowledge.

High-level architecture of KnowBert-UMLS showing the integration of the KAR module between BERT layers.

The KAR Pipeline

The enrichment process follows four primary steps:

  1. Candidate Generation: The QuickUMLS tool scans input text for potential medical spans.
  2. Entity Linking: The KAR module evaluates these spans against the UMLS database to identify the specific medical concept intended in context.
  3. Knowledge Enrichment: Once identified, the concept's embedding from the ontology is fused with the BERT word representations.
  4. Re-training: To mitigate the disruption caused by the new module, the model undergoes a re-training phase on biomedical text.
Detailed view of the Knowledge Attention and Recontextualization (KAR) module.

Experimental Setup

Datasets

For pre-training and re-training, the authors utilized the PubMed Central (PMC) Open Access database. Although 180 million sequences were available, the extreme computational overhead of the candidate generator limited the preliminary study to approximately 6 million sequences (3.5% of the total data).

Evaluation

The model was evaluated on the n2c2 (formerly i2b2 2010) corpus for Named Entity Recognition (NER), a task requiring the identification of problems, treatments, and tests within clinical notes.

Results and Discussion

The experimental results highlight the significant difficulty of this integration task:

  • The "Disruption Penalty": Grafting the KAR module into a pre-trained model significantly impacted language modeling performance. KnowBert-UMLS exhibited a perplexity of 10,387.7, compared to 5.5 for the base BERT model, indicating that the re-training phase was insufficient to reconcile the architectural changes.
  • NER Performance: On the n2c2 task, KnowBert-UMLS achieved an F1 score of 0.80. While functional, it was outperformed by standard BERT-base (0.86) and specialized models like BioBERT (0.87) and BlueBERT (0.89).

Key Challenges

Two major hurdles were identified: the Variability Trap, where a single concept (e.g., "lung cancer") can appear in nearly 100 different lexical forms, and the Abbreviation Wall, where clinical abbreviations not explicitly defined in the UMLS ontology lead to frequent false negatives in the candidate generation phase.

Conclusion

The primary bottleneck for KnowBert-UMLS is computational scale. Processing the full 180 million sequence dataset would require months of hardware time with the current candidate generator. Future research will focus on replacing the lookup process with machine learning-based span selectors and exploring more lightweight "Adapter" methods to reduce the re-training burden.

Summary updated

BibTeX
@inproceedings{piat2022enriching,
  author = {Guilhem Piat and Nasredine Semmar and Alexandre Allauzen and Hassane Essafi and Julien Tourille},
  title = {{Enriching Contextualized Representations with Biomedical Ontologies: Extending KnowBert to UMLS}},
  booktitle = {SAI},
  year = {2022},
  doi = {10.1007/978-3-031-10464-0\_52},
}
Figure