Abstract
Extracting relationships between biomedical entities is essential for modern clinical decision-making and drug discovery. However, smaller, efficient models often struggle with the linguistic complexity and domain-specific nuances of biomedical text. This paper presents a novel framework that utilizes a Large Language Model (LLM) as a "Teacher" to guide the training of smaller "Student" models. By categorizing errors, enriching data with knowledge graphs, and employing a curriculum-based learning strategy, the framework achieves state-of-the-art performance on major benchmarks, including the DDI and PPI datasets.
Introduction
Biomedical relation classification involves identifying interactions between entities like drugs, proteins, and diseases. The task is complicated by long sentences, nested entities, and subtle linguistic cues such as negation. While Large Language Models (LLMs) like GPT-4o exhibit strong reasoning capabilities, their high operational costs make them less suitable for large-scale production than smaller models like PubMedBERT. However, these smaller models often lack the "world knowledge" and structural robustness required for complex cases. To address this, we propose an error-aware curriculum learning framework that uses an LLM teacher to systematically remediate student failures.
Methodology: The Teacher-Student Framework
The proposed approach consists of a three-phase pipeline designed to transfer reasoning and domain knowledge from a large teacher model to a smaller student model.
Phase 1: Teacher-Guided Remediation and Enrichment
In the first phase, a baseline student model is evaluated on a training set to identify error-prone samples. A "Teacher" model (GPT-4o) then analyzes these failures and categorizes them according to a specific error taxonomy. This taxonomy includes linguistic, knowledge-based, and structural categories. For each error, the teacher generates remediation strategies, such as simplified sentence rewrites (Synthesized Sentences), step-by-step reasoning (Solution Guidance), and external context retrieved from a heterogeneous knowledge graph, BiomedKG.
Phase 2: Student Mimicry
A first-stage student model (MedLLaMA-3-8B) is fine-tuned to mimic the teacher’s diagnostic behavior. It learns to classify errors and assign a difficulty score (0–5) to each sample. This phase utilizes LISA (Layer Importance Sampling for Adaptation), a parameter-efficient fine-tuning method that offers significant speed improvements over standard techniques like LoRA.
Phase 3: Curriculum-Guided Training
The final student model (PubMedBERT) is trained on the enriched dataset using a "Baby Steps" curriculum. The model begins training on the easiest examples (difficulty score 0) and progressively moves to more complex cases. This structured approach helps the model build robust linguistic representations and prevents the "catastrophic forgetting" often seen when models are immediately exposed to highly complex data.
Results
The framework was evaluated on several major biomedical benchmarks, including Protein-Protein Interaction (PPI), Drug-Drug Interaction (DDI), and ChemProt.
- DDI Dataset: The model achieved a state-of-the-art (SOTA) F1 score of 96.30, significantly outperforming previous graph-based and LLM-based approaches.
- PPI Datasets: The framework set new SOTA records on 4 out of 5 datasets, including AiMed (95.6 F1) and IEPA (95.90 F1).
- ChemProt: The model remained highly competitive with an F1 score of 88.91.
Ablation studies confirmed the importance of the curriculum; the "Baby Steps" approach provided a consistent boost of up to +2.18 F1 on the DDI task compared to standard training. Furthermore, the targeted use of Knowledge Graph enrichment proved more effective than indiscriminate data augmentation, as it reduced noise by focusing only on identified "Knowledge Deficiency" errors.
Conclusion
This research demonstrates that the reasoning power of LLMs can be effectively distilled into smaller models through structured error analysis and curriculum learning. By moving beyond "black box" training and providing models with a roadmap of their own failures, we can achieve high-performance, efficient relation extraction. Future work will explore expanding the scope of the BiomedKG and applying this curriculum strategy to other complex biomedical NLP tasks such as summarization and question answering.
Summary updated