Can Language Models be Biomedical Knowledge Bases?

Mujeen Sung, Jinhyuk Lee, Sean S. Yi, Minji Jeon, Sungdong Kim, Jaewoo Kang

Abstract

This paper introduces BIOLAMA, a comprehensive benchmark of 49,000 biomedical factual triples designed to evaluate whether language models (LMs) can serve as specialized knowledge bases. While domain-specific models like Bio-LM outperform general-purpose LMs, our analysis reveals that these models often rely on "prompt bias"—predicting common medical terms based on the phrasing of a question rather than retrieving specific entity-related facts. These findings suggest that while LMs capture significant domain knowledge, they currently lack the reliability required for structured biomedical applications.

Introduction

In the general domain, large language models (LMs) like BERT have demonstrated an ability to store factual knowledge within their parameters, acting as "soft" knowledge bases. However, the biomedical domain presents unique challenges: entities are often complex and multi-word (e.g., "osteomyelitis"), and the requirement for factual precision is significantly higher.

The authors investigate whether the labor-intensive process of building structured biomedical databases can be bypassed by "probing" specialized LMs. To test this, they developed BIOLAMA, extending the general-domain LAMA (LAnguage Model Analysis) probe into the medical sphere.

Comparison of general-domain LAMA and biomedical BioLAMA probing tasks.

The BIOLAMA Benchmark

The researchers curated BIOLAMA, a dataset of 49,036 triples across 36 relations. The data was aggregated from three primary sources:

  • CTD (Comparative Toxicogenomics Database): Chemical-gene and chemical-disease interactions.
  • UMLS (Unified Medical Language System): A metathesaurus of biomedical concepts.
  • Wikidata: Publicly available general and specialized facts.

Crucially, BIOLAMA filters out "easy" triples where the answer is a substring of the prompt, forcing the model to rely on its internal parameters rather than surface-level textual patterns.

Methodology and Bias Analysis

The study employs a "cloze-style" probing technique, where a model completes a template such as "[X] has symptoms such as [Y]". Because biomedical objects (like "Parkinson's disease") average 4.52 sub-words in length, the authors implemented a confidence-based greedy decoding strategy to reconstruct multi-token entities.

To evaluate the quality of the "knowledge" retrieved, the authors introduced two critical metrics:

  1. Prompt Bias: Measuring if the model predicts the same answer regardless of the subject (e.g., always predicting "headache" for any disease symptom prompt).
  2. Synonym Variance: Testing if the model remains consistent when a subject is replaced by a synonym (e.g., "joint inflammation" instead of "arthritis").
Probing templates used to evaluate original input, prompt bias, and synonym variance.

Key Results and Insights

The experiments yielded several significant findings regarding the state of biomedical LMs:

  • Importance of Domain Pre-training: Bio-LM, which features a vocabulary tailored to PubMed, significantly outperformed BioBERT. This indicates that domain-specific tokenization is as critical as the training data itself.
  • The Illusion of Knowledge: High Prompt Bias scores revealed that models often "guess" based on frequency. For example, a model might predict "insulin" for many treatment-related prompts simply because it is a common term in medical corpora, not because it has linked insulin to a specific condition.
  • Consistency vs. Understanding: While LMs showed higher consistency across synonyms than traditional Information Extraction (IE) systems, this was often a byproduct of bias. The models were frequently "stuck" on a specific biased prediction rather than demonstrating a deep semantic understanding of the synonyms.
  • Performance Gap: The best-performing configuration (Bio-LM with OptiPrompt) achieved an Acc@5 of 18.51%. However, for many relations, accuracy was lower than a simple "majority vote" baseline, highlighting a lack of reliability.

Conclusion and Future Work

The study concludes that while LMs are increasingly effective at memorizing patterns from medical literature, they are not yet reliable knowledge bases. They behave more like biased students who have memorized common associations rather than structured encyclopedias. Future improvements may involve unconstrained decoding restricted to known entity lists or methods to mitigate the inherent biases in the models' training data. For now, the risk of hallucination and prompt-driven bias makes these models unsuitable for direct clinical decision support without human oversight.

Summary updated

BibTeX
@inproceedings{sung2021can,
  author = {Mujeen Sung and Jinhyuk Lee and Sean S. Yi and Minji Jeon and Sungdong Kim and Jaewoo Kang},
  title = {{Can Language Models be Biomedical Knowledge Bases?}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.388},
}
Figure