NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Biomedical Entity Linking with Contrastive Context Matching

Shogo Ujiie, Hayate Iso, Eiji AramakiarXiv 2021

Abstract

We introduce BioCoM, a contrastive learning framework for biomedical entity linking that uses only two resources: a small-sized dictionary and a large number of raw biomedical articles. Specifically, we build the training instances from raw PubMed articles by dictionary matching and use them to train a context-aware entity linking model with contrastive learning. We predict the normalized biomedical entity at inference time through a nearest-neighbor search. Results found that BioCoM substantially outperforms state-of-the-art models, especially in low-resource settings, by effectively using the context of the entities.

Introduction

Biomedical Entity Linking (BEL) is the critical task of mapping messy text mentions—such as synonyms and abbreviations—to unique identifiers in a knowledge base. This task is notoriously difficult due to the high degree of ambiguity in medical terminology. For instance, "TDP-43 proteinopathy" (a neurological condition) and "TdP" (a heart arrhythmia) share similar surface forms but represent entirely different concepts.

Current state-of-the-art methods typically rely on massive manually labeled datasets or exhaustive dictionaries. However, expert annotation is prohibitively expensive, and comprehensive dictionaries are often unavailable for niche or emerging medical fields. BioCoM (Biomedical Contrastive Context Matching) addresses these "low-resource" challenges by leveraging raw, unlabeled PubMed articles and a minimal dictionary to learn robust, context-aware representations.

Methodology

BioCoM operates through a three-stage pipeline designed to exploit the surrounding context of entity mentions:

  1. Automatic Corpus Construction: Using a small dictionary (e.g., MEDIC), the system identifies occurrences of known terms in millions of raw PubMed abstracts via simple string matching. This generates a "silver-standard" dataset where mentions are linked to concepts based on their textual environment.
  2. Contrastive Learning: A BERT-based encoder (specifically PubMedBERT) is trained on these sentences using a Multi-Similarity loss function. The objective is to cluster vector representations of the same concept together in feature space while maximizing the distance between different concepts.
  3. Context-Aware Inference: During inference, the model encodes a new mention along with its full sentence context. It then performs a K-nearest neighbor (K-NN) search against the training corpus. The final prediction is determined by the most frequent concept among the top $K$ matches.
Overview of the BioCoM framework, illustrating how dictionary matching in raw articles leads to a context-aware contrastive learning space.

Experimental Setup

The framework was evaluated on three standard biomedical benchmarks: the NCBI Disease Corpus (NCBID), BC5CDR-d, and MedMentions-d. To simulate a low-resource environment, the researchers used a downsampled version of the MEDIC dictionary, where each concept was associated with only approximately three synonyms on average.

Results and Discussion

BioCoM demonstrates superior performance compared to traditional baselines and modern high-performing models like SapBERT, particularly when labeled data is scarce.

Performance comparison of BioCoM against baseline methods across three benchmark datasets.

As shown in the table above, BioCoM achieved a significant accuracy of 71.4% on MedMentions-d, outperforming SapBERT's 65.1% by a wide margin. Similar gains were observed across other datasets. The core advantage of BioCoM lies in its "context-aware" nature; by treating context as a "catcher's mitt," the model can disambiguate similar-looking terms by identifying surrounding cues (e.g., "arrhythmia" vs. "neurological"). Furthermore, the contrastive learning process allows the model to bridge the gap between known synonyms and previously unseen variations found in the raw text.

Conclusion and Future Work

BioCoM provides a scalable solution for entity linking in specialized domains where large-scale annotation is impractical. While highly effective, the current implementation faces challenges such as memory overhead from large-scale K-NN searches and a dependency on pre-existing Named Entity Recognition (NER) systems. Future research will focus on integrating BioCoM into end-to-end extraction pipelines and optimizing search efficiency for even larger corpora.

Summary updated

BibTeX
@misc{ujiie2021biomedical,
  author = {Shogo Ujiie and Hayate Iso and Eiji Aramaki},
  title = {{Biomedical Entity Linking with Contrastive Context Matching}},
  year = {2021},
  eprint = {2106.07583},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.07583},
}
Figure