Learning from Negative Samples in Biomedical Generative Entity Linking

Chanhwi Kim, Hyunjae Kim, Sihyeon Park, Jiwoo Lee, Mujeen Sung, Jaewoo Kang

Abstract

Biomedical Entity Linking (BioEL) is a critical task in clinical NLP, involving the mapping of textual mentions to standardized concepts in a knowledge base. Despite the success of generative models in this domain, their reliance on positive-only training often results in "hallucinations" or confusion between morphologically similar but semantically distinct entities. This paper introduces ANGEL (Learning from Angular Negative samples in Biomedical GEnerative Entity Linking), the first framework to integrate negative-sample training into generative BioEL. By utilizing Direct Preference Optimization (DPO), ANGEL explicitly teaches models to prefer correct entities over "hard negatives." Our evaluation across five diverse benchmarks demonstrates that ANGEL sets a new state-of-the-art, outperforming multi-stage re-ranking pipelines with a more efficient single-stage architecture.

Introduction

The complexity of medical nomenclature presents significant hurdles for Entity Linking. Ambiguity arises from ubiquitous abbreviations (e.g., "ADA" referring to either a protein or a professional association) and high surface similarity (e.g., "Ebola virus" vs. "Ebola virus disease"). Traditional generative models, while memory-efficient, are prone to errors because they are never explicitly penalized for generating "almost right" but incorrect strings.

Figure 1: Comparison between existing generative BioEL and the proposed ANGEL framework. ANGEL uses negative-aware training to distinguish between similar entities like 'Ebola virus' and 'Ebola virus disease'.

As illustrated in Figure 1, standard models may correctly identify the topic but fail to select the specific clinical entity required by the context. ANGEL addresses this by introducing a training regime that exposes the model to these difficult distinctions.

Methodology

The ANGEL framework employs a two-stage training process designed to enhance the model's discriminative capabilities within a generative paradigm.

1. Positive-only Warm-up

The model is initially trained to generate synonyms of the target entity. To improve morphological robustness, the authors utilize TF-IDF similarity to select the most relevant synonyms from the knowledge base. This stage ensures the model has a strong baseline understanding of entity variations.

2. Negative-aware Training

The core innovation of ANGEL lies in its use of Direct Preference Optimization (DPO). During this stage:

  • The model generates its top-$k$ predictions for a given mention.
  • "Hard negatives"—incorrect entities that the model mistakenly ranked highly—are identified.
  • The model is then trained to maximize the probability gap between the correct entity and these specific hard negatives.
Figure 3: Overview of the ANGEL training pipeline, including the two-stage approach for both pre-training on knowledge bases and fine-tuning on specific datasets.

This approach, detailed in Figure 3, allows the model to learn the subtle boundaries between similar medical concepts, effectively baking re-ranking capabilities directly into the generation process.

Experimental Results

ANGEL was evaluated on five benchmarks: NCBI-disease, BC5CDR, COMETA, AskAPatient (AAP), and Medmentions (MM-ST21pv).

Performance and Efficiency

ANGEL achieved a new state-of-the-art with an average 1.7% improvement in Top-1 accuracy across all datasets. Notably, it outperformed Prompt-BioEL, a leading re-ranking model, by 0.5%. This is a significant result as ANGEL achieves superior accuracy without the computational overhead of a separate cross-encoder re-ranking stage.

Key Insights

  • TF-IDF vs. Neural Embeddings: Simple trigram TF-IDF similarity proved more effective than complex neural models for synonym retrieval, highlighting the importance of addressing surface-level confusion in BioEL.
  • Contextual Disambiguation: The negative-aware training significantly improved the model's ability to use surrounding context to resolve ambiguities between identical-looking terms.

Conclusion

ANGEL demonstrates that generative BioEL models can be significantly improved by learning from what they shouldn't generate. By integrating preference optimization, the framework achieves state-of-the-art accuracy while remaining model-agnostic and computationally efficient. Future work will explore the application of this framework to larger decoder-only architectures and address performance nuances in context-poor environments like social media text.

Summary updated

BibTeX
@inproceedings{kim2025learning,
  author = {Chanhwi Kim and Hyunjae Kim and Sihyeon Park and Jiwoo Lee and Mujeen Sung and Jaewoo Kang},
  title = {{Learning from Negative Samples in Biomedical Generative Entity Linking}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure