Abstract
Named Entity Recognition (NER) in the biomedical domain is characterized by dense, specialized terminology that often poses a challenge for general-purpose Large Language Models (LLMs). This paper explores a novel knowledge augmentation approach that provides LLMs with real-time, on-the-fly definitions of complex terms during inference. By integrating human-curated definitions from the Unified Medical Language System (UMLS) into a "propose-and-refine" workflow, we demonstrate a 15% relative improvement in GPT-4's performance and over 30% for open-source models like Llama 2. These results suggest that with appropriate contextual expertise, few-shot LLMs can surpass the performance of smaller, specialized fine-tuned models in high-barrier-to-entry domains.
Introduction
Biomedical NER—the identification and categorization of entities such as genes, diseases, and chemicals—is a cornerstone of medical informatics. Historically, this task has been dominated by specialized models fine-tuned on labeled biomedical corpora. General-purpose LLMs, despite their vast parameters, frequently struggle to distinguish between similar-looking entities (e.g., distinguishing a gene from a disease) without specific domain knowledge. Furthermore, the high cost of generating labeled data for fine-tuning creates a significant bottleneck for progress. This study addresses these challenges by providing LLMs with a dynamic "cheat sheet" of definitions at the moment of extraction.
Methodology
The proposed framework utilizes a knowledge augmentation approach that operates entirely at inference time, avoiding the need for expensive retraining. The process follows a four-stage "propose-and-refine" workflow:
- Initial Extraction: The LLM performs a preliminary NER task on the input text using standard zero-shot or few-shot prompting.
- Entity Linking: An off-the-shelf entity linker, SciSpaCy, identifies potential biomedical concepts within the text and maps them to the Unified Medical Language System (UMLS).
- Definition Retrieval: The system fetches high-quality, human-curated definitions for the identified concepts from the knowledge base.
- Follow-up Refinement: The LLM is presented with these definitions and asked to revise its initial extraction.
The researchers evaluated two primary refinement strategies: Single-turn (ZS+Def), where the model makes all corrections simultaneously after viewing all definitions, and Iterative Prompting (IP+Def), where the model corrects entities one at a time. While the iterative approach yielded higher accuracy, it also incurred higher computational and API costs.
Experimental Setup
The methodology was tested across six diverse biomedical NER datasets from the BigBIO collection, ensuring a broad evaluation of entity types:
- CHEM & CDR: Focused on chemicals, proteins, and diseases.
- NCBI: Focused on disease mentions.
- MEDM: Open-ended biomedical concept extraction.
- PICO: Focused on Populations, Interventions, Comparators, and Outcomes.
- CHIA: Complex clinical trial eligibility criteria.
Key Results and Insights
Performance Gains
The inclusion of definitions led to substantial improvements across the board. GPT-4 saw a 15% relative improvement in F1 scores across the six datasets. The impact on open-source models was even more pronounced; Llama 2 experienced average performance increases between 32.6% and 33.9% in zero-shot settings. Notably, these augmented few-shot LLMs were able to outperform smaller models specifically fine-tuned for these datasets.
The Value of Expert Knowledge
A crucial finding was that the source of the definition matters. Human-curated definitions from UMLS significantly outperformed definitions sourced from Wikipedia or those generated ("hallucinated") by the LLM itself. This underscores the continued relevance of expert-maintained knowledge bases in the era of generative AI. Furthermore, ablation studies using irrelevant definitions resulted in a significant drop in performance, confirming that the model's improvement is driven by the semantic content of the definitions rather than just increased prompt length.
Self-Correction and Validation
The study found that LLMs are generally ineffective at self-correction when simply told to "try again." However, when provided with external reasoning (the definitions), their ability to rectify errors improved dramatically. Manual review also suggested that automated metrics may actually undercount LLM success; in several datasets, over 50% of the "errors" identified by automated systems were found to be correct extractions that were simply missing from the original human-annotated gold standards.
Discussion and Limitations
While highly effective, the "on-the-fly" definition framework has limitations. The current study was restricted to English-language corpora, and the system's efficacy is inherently tied to the performance of the initial entity linker. If the linker fails to identify a term, the model never receives the necessary definition for refinement. Additionally, the iterative prompting strategy, while accurate, presents challenges regarding inference latency and cost.
Future work will focus on compressing the refinement process and expanding the framework to other specialized domains such as law or engineering, where high-barrier terminology similarly limits the utility of general-purpose models.
Summary updated