What does KnowBert-UMLS forget?

Guilhem Piat, Nasredine Semmar, Julien Tourille, Alexandre Allauzen, Hassane EssafiAICCSA 2023

Abstract

Adapting general-purpose language models to specialized domains like medicine often involves a trade-off. While models like KnowBert-UMLS demonstrate improved medical expertise through the integration of structured knowledge bases, they frequently suffer from "catastrophic forgetting." This paper qualitatively explores the nature of this forgetting, revealing that specialized medical knowledge comes at the cost of general common-sense reasoning and linguistic flexibility.

Introduction

The adaptation of models like BERT to the biomedical domain typically involves fine-tuning on domain-specific corpora or infusing them with external Knowledge Bases (KBs). While these methods enhance performance on specialized tasks, they often trigger catastrophic forgetting—a phenomenon where the model loses its proficiency in general language tasks. Most existing research focuses on the quantitative extent of this loss. This study shifts the focus to a qualitative analysis, asking what specific linguistic and logical capabilities are lost when a model is specialized for medicine.

Methodology

The study focuses on KnowBert-UMLS, which integrates the Unified Medical Language System (UMLS) into the BERT architecture using a "soft entity linking" mechanism. This approach uses attention layers to dynamically incorporate relevant medical concepts.

The model's performance was evaluated against standard BERT and other specialized models (BioBERT, BlueBERT) across three tasks:

  1. Biomedical Named Entity Recognition (NER): Using the n2c2 2010 clinical dataset.
  2. General Natural Language Inference (SNLI): Assessing logical entailment.
  3. Linguistic Acceptability (CoLA): Testing grammatical intuition.

Errors were manually categorized into "Blunders" (logic failures), "Common Sense" (real-world knowledge gaps), and "Technically Correct" (defensible but non-standard answers).

Quantitative Results

Quantitative analysis shows that KnowBert-UMLS maintains high performance on general reasoning tasks compared to other specialized models. On the SNLI benchmark, it achieved a micro-F1 score of 89.03, outperforming other biomedical variants and closely approaching the performance of the general BERT-base model.

Table 1: Performance of various models on the SNLI task (micro F1).

On the CoLA task, KnowBert-UMLS achieved an MCC of 58.52, significantly higher than BioBERT (49.30) and BlueBERT (39.76), suggesting that the KnowBert architecture is more effective at preserving general linguistic skills than traditional domain-specific pre-training.

Qualitative Analysis: The Nature of Forgetting

The "UMLS Filter" Effect

In medical NER tasks, KnowBert-UMLS exhibited a tendency to exclude determiners (e.g., "a", "any") from entity tags. This behavior stems from the "clean" nature of concepts in the UMLS database. The model learns to prioritize these canonical concepts, effectively "filtering out" the surrounding natural language context.

Figure 1: Example of medical entity recognition and nested tagging structures illustrating the focus on core clinical concepts.

Literalism and Common Sense

Specialization led to increased literalism and a decline in common-sense reasoning. For instance, the model failed to identify the contradiction in a sentence describing an "old shoemaker" celebrating his "16th birthday." While it understood the individual terms, it lost the real-world context that 16-year-olds are not typically characterized as "old." In the SNLI task, 38.1% of KnowBert-UMLS's errors were attributed to common-sense failures, compared to 33.7% for the general BERT model.

Grammatical Rigidity

Interestingly, KnowBert-UMLS became more "prescriptivist." It was more likely than base BERT to reject valid but non-standard regional English (e.g., double modals like "Will he can do it?"). This suggests that exposure to formal medical literature reduces the model's tolerance for the variations inherent in casual or regional speech.

Discussion and Future Work

The weaknesses of KnowBert-UMLS largely reflect the limitations of its primary knowledge source, the UMLS. Without a general-world knowledge "anchor," the model's specialization creates specific blind spots. Future work should explore multi-specialization—integrating medical KBs alongside general-purpose (Wikipedia) or common-sense (ATOMIC) knowledge graphs—to create more well-rounded specialized models.

Summary updated

BibTeX
@inproceedings{piat2023what,
  author = {Guilhem Piat and Nasredine Semmar and Julien Tourille and Alexandre Allauzen and Hassane Essafi},
  title = {{What does KnowBert-UMLS forget?}},
  booktitle = {AICCSA},
  year = {2023},
  doi = {10.1109/aiccsa59173.2023.10479333},
}
Figure