2022 18th International Conference on Wireless and Mobile Computing, Networking and Communications (WiMob)

Guilhem Piat, Nasredine Semmar, Alexandre Allauzen, Hassane Essafi, Bernard Guy, Julien TourilleOpenalex Unknown 2022 · OpenAlex

Abstract

Standard domain adaptation for language models often results in "catastrophic forgetting," where a model loses its general-purpose linguistic capabilities while gaining specialized expertise. This paper introduces KnowBert-UMLS, which addresses this trade-off by integrating the Unified Medical Language System (UMLS) knowledge base into the BERT architecture. By "consulting" external knowledge rather than relying solely on continued pre-training, KnowBert-UMLS maintains high performance on general English tasks while excelling in the biomedical domain.

Introduction

The prevailing method for adapting models like BERT to specialized fields (e.g., medicine) involves continued training on domain-specific corpora. While effective for domain expertise, this "brute force" approach frequently leads to Catastrophic Forgetting (CF). The model's internal weights are overwritten to accommodate new jargon, causing it to lose the "common sense" and grammatical nuances of general language. This research explores an alternative: giving a model deep domain knowledge through structured knowledge bases without destroying its foundational capabilities.

Methodology

The authors utilize the KnowBert architecture, which embeds an external Knowledge Base (KB) directly into the transformer layers.

The KAR Module

The core of this approach is the Knowledge Attention and Recontextualization (KAR) module. Inserted between BERT's layers, the KAR module allows the model to dynamically look up information from the UMLS.

The architecture of KnowBert-UMLS, highlighting the integration of the KAR module and UMLS knowledge source.

Candidate Generation and Information Injection

Rather than requiring a pre-built, perfect entity linker, the model identifies "candidate mentions" within the input text. These are spans of text that potentially correspond to medical terms.

Example of candidate span identification for biomedical entities like "Pseudomonas aeruginosa" and "cystic fibrosis".

The KAR module then retrieves entity embeddings and priors from the Unified Medical Language System (UMLS), a repository of over 4 million concepts, and injects these relevant embeddings back into the model's word representations using an attention mechanism.

The "Goldilocks" Abstraction

A key finding was that injecting all 4 million specific concepts introduced too much noise due to sparsity. The authors instead focused on UMLS Semantic Types—135 broader categories such as "Disease" or "Anatomical Structure." This provided a denser, more stable signal for the model to learn from compared to rare individual concepts.

Evaluation and Datasets

The model was evaluated on two fronts to test both its expertise and its retention of general knowledge:

  • Biomedical (In-Domain): Evaluated using n2c2 2010 (Named Entity Recognition) and ChemProt (Relation Extraction between chemicals and proteins).
  • General (Out-of-Domain): Evaluated using SNLI (Natural Language Inference) and a modified CoLA (Corpus of Linguistic Acceptability) to test logic and grammatical naturalness.

Results and Discussion

KnowBert-UMLS demonstrated a superior balance between specialization and general capability:

  • Biomedical Performance: The model significantly outperformed the base BERT. On the ChemProt task, it achieved a score of 70.74, compared to BERT's 66.51. While specialized models like PubMedBERT remain slightly ahead in pure medical tasks, KnowBert-UMLS is highly competitive.
  • General Performance: KnowBert-UMLS excelled here. On the CoLA grammar task, it scored 58.52, nearly matching the original BERT's 60.50. In stark contrast, specialized models like PubMedBERT (42.90) and BlueBERT (39.76) showed significant degradation in general linguistic performance.

Conclusion

KnowBert-UMLS successfully demonstrates that language models can adapt to specialized domains without "forgetting" their general-purpose foundations. By acting as a student who consults a dictionary rather than one who memorizes a new language from scratch, the model maintains its versatility. Future work will explore "multi-specialization," potentially stacking multiple knowledge bases to create a single model with expertise across diverse fields simultaneously.

Summary updated

BibTeX
@inproceedings{piat2022th,
  author = {Guilhem Piat and Nasredine Semmar and Alexandre Allauzen and Hassane Essafi and Bernard Guy and Julien Tourille},
  title = {{2022 18th International Conference on Wireless and Mobile Computing, Networking and Communications (WiMob)}},
  booktitle = {Openalex Unknown},
  year = {2022},
  doi = {10.1109/wimob55322.2022},
}
Figure