Self-Alignment Pretraining for Biomedical Entity Representations

Fangyu Liu, Ehsan Shareghi, Zaiqiao Meng, Marco Basaldella, Nigel Collier

Abstract

SAPBERT is a novel pretraining scheme designed to improve biomedical entity representations by "self-aligning" synonyms within a shared embedding space. By leveraging the massive Unified Medical Language System (UMLS) knowledge graph and a scalable metric learning framework, SAPBERT achieves new state-of-the-art (SOTA) results across six medical entity linking benchmarks. Notably, it often outperforms previous supervised systems even in zero-shot settings without task-specific fine-tuning.

Introduction: The Challenge of Biomedical Nomenclature

Biomedical entities are characterized by extreme lexical variation. A single concept, such as the drug Hydroxychloroquine, may appear as Oxichlorochine in clinical literature, HCQ on social media, or Plaquenil in commercial contexts.

Standard language models like BERT typically rely on Masked Language Modeling (MLM) to learn representations. While effective for capturing general linguistic context, MLM often fails to recognize that disparate terms like "HCQ" and "Plaquenil" refer to the same entity. This limitation makes Medical Entity Linking (MEL)—the process of mapping text mentions to unique database concepts—exceptionally challenging. Historically, MEL required complex, hand-crafted pipelines and extensive text pre-processing to bridge the gap between surface forms.

Methodology: SAPBERT

The authors introduce SAPBERT (Self-Alignment Pretrained BERT), a model trained to organize its internal representation of biomedical concepts through a self-alignment process.

1. Self-Alignment via Metric Learning

Instead of predicting missing words, the model is trained using pairs of synonyms from the UMLS database. The objective is to pull representations of the same concept closer together in the embedding space while pushing different concepts apart.

2. Online Hard Pair Mining

With millions of potential concepts, most pairs are "easy" to distinguish (e.g., "fever" vs. "fracture"). To maximize learning efficiency, SAPBERT employs an "online mining" step to identify "hard" pairs—entities that appear similar but are distinct, or synonyms that appear very different. This forces the model to learn fine-grained semantic distinctions.

3. Multi-Similarity (MS) Loss

The training utilizes a Multi-Similarity loss function, adapted from computer vision. This function weights the most informative pairs more heavily, ensuring the model focuses on the most challenging examples during the alignment process.

4. Base Model

The primary architecture uses PubMedBERT (pretrained on PubMed abstracts) as a foundation, which is then subjected to the SAPBERT self-alignment pretraining.

Evaluation and Datasets

The model was pretrained on UMLS 2020AA, which contains over 4 million concepts and 10 million synonyms. Evaluation was conducted across six diverse datasets spanning two domains:

  • Scientific Language: NCBI Disease, BC5CDR (Chemical & Disease), and MedMentions.
  • Social Media Language: AskAPatient and COMETA (Reddit-based).

Key Results and Insights

Visualizing the Alignment

The impact of self-alignment is most visible in the organization of the embedding space. As shown in Figure 1, standard PubMedBERT leaves synonyms scattered in a heterogeneous cloud. In contrast, SAPBERT pulls these synonyms into tight, distinct clusters, facilitating more accurate entity linking.

t-SNE visualization of embedding space alignment.

Performance Gains and SOTA

SAPBERT established new performance records on five out of the six benchmarks tested. In the scientific domain, the model achieved SOTA results "out of the box" without any task-specific training, demonstrating the robustness of its learned representations.

SapBERT performance across multiple benchmarks.

Key findings include:

  • Massive Accuracy Improvements: Compared to the base PubMedBERT, SAPBERT improved accuracy by up to 20% on specific tasks.
  • Hard Mining is Essential: Ablation studies revealed that disabling hard pair mining led to a significant performance drop, as the model failed to learn the nuances of complex medical terminology.
  • Efficiency via Adapters: The authors demonstrated that comparable results could be achieved by training only 1% to 13% of the model's parameters using Adapters, offering a path toward more efficient deployment.

Conclusion and Future Work

SAPBERT represents a significant shift from complex MEL pipelines to a streamlined, "one-model-for-all" solution. By simply comparing the embedding of a mention to the embeddings of database concepts, the model achieves superior linking accuracy.

While SAPBERT shows remarkable performance, a gap remains in social media contexts where "slang" is often absent from formal ontologies like UMLS. Future research will explore expanding self-alignment to include hierarchical relationships (e.g., hypernymy) and applying these techniques to sentence-level clinical notes.

Summary updated

BibTeX
@inproceedings{liu2021self,
  author = {Fangyu Liu and Ehsan Shareghi and Zaiqiao Meng and Marco Basaldella and Nigel Collier},
  title = {{Self-Alignment Pretraining for Biomedical Entity Representations}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.334},
}
Figure