Improving Biomedical Entity Linking with Retrieval-Enhanced Learning

Zhenxi Lin, Ziheng Zhang, Xian Wu, Yefeng Zheng

TL;DR

The authors introduce $k$NN-BioEL, a novel retrieval-enhanced framework designed to improve Biomedical Entity Linking (BioEL), particularly for rare and long-tailed medical terms. By combining a standard bi-encoder with a $k$-nearest neighbor ($k$NN) training-corpus lookup during inference and a dynamic hard negative sampling strategy during training, the model achieves state-of-the-art performance without requiring labor-intensive external synonym resources.

What Problem Does This Paper Address?

Biomedical Entity Linking (BioEL) is the task of mapping text mentions of medical concepts (like diseases or drugs) to standard IDs in an ontology like the Unified Medical Language System (UMLS). This is notoriously difficult because medical terms have massive morphological variations (e.g., "lung cancer" vs. "lung neoplasm malignant") and highly subtle, fine-grained distinctions (e.g., "Type 1 Diabetes" vs. "Type 2 Diabetes").

Crucially, existing deep learning models struggle with the long-tailed distribution inherent in medical datasets. Because expert medical annotation is expensive, a few common entities have plenty of examples, while thousands of rare entities have very few. Standard models fail to generalize well to these rare, long-tailed concepts.

The long-tailed distribution of medical entities across four benchmark datasets.

Methods

To solve the long-tail problem, the authors propose $k$NN-BioEL, which augments a standard bi-encoder architecture (built on SapBERT) with two key components:

  1. Dynamic Hard Negative Sampling (DHNS) during Training: Standard contrastive learning relies on "in-batch" negatives, which are often too easy and fail to teach the model fine-grained differences. DHNS dynamically pre-computes global entity embeddings across the entire ontology at each epoch. It then retrieves the top false entities for a given mention, forcing the model to learn highly discriminative text representations.

  2. $k$NN Distribution Interpolation during Inference: The authors build a "datastore" containing the mention embeddings and true entity labels of the entire training set. When a new mention is evaluated at inference time, the model queries this datastore to find the $k$-nearest neighbors. It then linearly interpolates the base model's predicted probability distribution with the distribution of these nearest neighbors using a balancing hyperparameter ($\lambda$).

This allows the model to use explicit clues from similar training instances to rectify its final predictions.

Overview of the kNN-BioEL training (top) and inference (bottom) pipelines.

Datasets

The framework was evaluated on four diverse, established BioEL benchmarks:

  • NCBI Disease: Focuses on disease names.
  • BC5CDR: Focuses on chemical and disease relations.
  • COMETA: A dataset consisting of colloquial, social-media-derived medical terms.
  • AAP: A dataset focused on medical concepts and clinical terms.

Key Insights and Ideas

  • Explicit Memory as a Safety Net: The core "aha moment" is that instead of forcing the neural network's weights to perfectly memorize rare entities, the model can simply look at similar examples it saw during training. For instance, a model might misclassify the query "back molar" as "structure of first molar tooth," but referencing the training instance ("molar", "structure of molar tooth") helps it output the correct entity ID.
  • Data Efficiency in Low-Resource Settings: The retrieval mechanism makes the model remarkably data-efficient. The authors found that fine-tuning the model on just 50% of the training data while keeping the full datastore open for $k$NN lookup yielded performance comparable to a vanilla model trained on 100% of the data.
  • Global vs. Local Negatives: Relying purely on local mini-batch negatives limits contrastive learning. Global, dynamically updated hard negatives are essential for capturing fine-grained semantic boundaries in massive medical ontologies.

Key Results

$k$NN-BioEL achieved state-of-the-art (SOTA) accuracy (Acc@1) on three out of the four datasets, outperforming competitive generative and two-stage re-ranking models:

  • NCBI: Reached 92.8% Acc@1 (outperforming Prompt-BioEL's 92.6%).
  • COMETA: Reached 85.7% Acc@1 (a 2.4% relative improvement over SOTA).
  • AAP: Reached 90.3% Acc@1 (a 1.0% relative improvement over SOTA).
  • BC5CDR: Achieved 93.7% Acc@1, matching the top-performing baseline.

Ablation studies confirmed that removing either the $k$NN interpolation or the DHNS component led to a consistent drop in performance across the board.

Hyperparameter analysis on the AAP dataset, illustrating the impact of training set ratio, number of neighbors ($k$), and interpolation weight ($\lambda$).

Limitations and Future Work

While highly effective, the current iteration of $k$NN-BioEL operates strictly on the surface forms of mentions and entities. It does not take into account auxiliary context (the surrounding text where a mention appears) or long text descriptions of the entities in the ontology. The authors note that incorporating this side information is a promising direction to further boost entity linking accuracy in future work.

Summary updated

BibTeX
@inproceedings{lin2024improving,
  author = {Zhenxi Lin and Ziheng Zhang and Xian Wu and Yefeng Zheng},
  title = {{Improving Biomedical Entity Linking with Retrieval-Enhanced Learning}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10448513},
}
Figure