Distilling Large Language Models for Biomedical Knowledge Extraction: A Case Study on Adverse Drug Events

Yu Gu, Sheng Zhang, Naoto Usuyama, Yonas Woldesenbet, Cliff Wong, Praneeth Sanapathi, Mu Wei, Naveen Valluri, Erika Strandberg, Tristan Naumann, Hoifung PoonarXiv 2023 · DOI

Abstract

Extracting structured knowledge from biomedical text, such as Adverse Drug Events (ADEs), typically requires expensive human-annotated datasets. This study explores a knowledge distillation framework where a massive, general-purpose Large Language Model (LLM) acts as a "teacher" to train a smaller, domain-specific "student" model. By distilling knowledge from GPT-3.5 into PubMedBERT using 50,000 unlabeled abstracts, the researchers produced a model 1,000x smaller that outperforms its teacher and rivals state-of-the-art supervised systems without requiring any human-labeled data.

Introduction

Identifying Adverse Drug Events (ADEs) is critical for patient safety and pharmaceutical research. However, the traditional reliance on "gold standard" datasets annotated by medical experts creates a significant bottleneck due to cost and time constraints. While LLMs like GPT-4 show promise in zero-shot tasks, they often lag behind specialized supervised models and are inefficient for large-scale curation. This research addresses whether the reasoning capabilities of LLMs can be leveraged to train efficient, specialized models through distillation, eliminating the need for human-labeled examples.

Methods

Knowledge Distillation Pipeline

The core of the approach is a teacher-student distillation pipeline. The researchers used GPT-3.5 as a "noisy teacher" to generate labels for 50,000 unlabeled PubMed abstracts. These abstracts were selected using specific Medical Subject Headings (MeSH) terms related to drug therapy and adverse effects. The machine-generated labels then served as self-supervision signals to train a student model based on PubMedBERT.

The knowledge distillation pipeline, illustrating the flow from unlabeled PubMed abstracts to the final student model via LLM-generated self-supervision labels.

Drug-Centric Architecture

To improve extraction efficiency, the authors moved away from standard pipelines that treat Named Entity Recognition (NER) and Relation Extraction (RE) as separate, computationally expensive steps. They proposed a unified, drug-centric architecture. By pooling embeddings for a specific drug and concatenating them with every other token in the sentence, the model can identify all related ADEs in a single pass. This reduces the complexity from $O(NM)$ to $O(M)$, where $N$ is the number of drugs and $M$ is the number of potential side effects.

The drug-centric neural architecture using PubMedBERT, showing how drug-aware embeddings are used for joint entity and relation extraction.

Key Results and Insights

The distilled PubMedBERT model achieved a 91.99 F1 score on the ADE benchmark, nearly matching the 93.36 F1 of state-of-the-art fully supervised models. Notably, the student model (110M parameters) significantly outperformed its teacher, GPT-3.5 (175B+ parameters), which scored 85.21 F1.

Several key insights emerged:

  • Specialization Trumps Scale: The student model's superior performance suggests that task-specific structural biases and domain-focused training allow smaller models to outperform massive, general-purpose LLMs whose knowledge is spread across many domains.
  • Robustness to Noise: The student model successfully learned underlying biomedical language patterns even when trained on "noisy" LLM-generated labels, demonstrating that high-volume machine labeling can compensate for the lack of human "gold" labels.
  • Efficiency Gains: The resulting models are over 1,000 times smaller than their LLM teachers, offering a much more cost-effective and faster solution for production-scale biomedical knowledge extraction.

Limitations and Future Work

While the results are promising, the study noted that errors in initial drug identification (which was assumed to be correct for evaluation) could propagate through the system. Future work will explore using more advanced teachers like GPT-4, scaling unlabeled datasets for other tasks like Gene-Disease Association (GAD), and incorporating external domain-specific knowledge such as medical ontologies to further refine performance.

Summary updated

BibTeX
@misc{gu2023distilling,
  author = {Yu Gu and Sheng Zhang and Naoto Usuyama and Yonas Woldesenbet and Cliff Wong and Praneeth Sanapathi and Mu Wei and Naveen Valluri and Erika Strandberg and Tristan Naumann and Hoifung Poon},
  title = {{Distilling Large Language Models for Biomedical Knowledge Extraction: A Case Study on Adverse Drug Events}},
  year = {2023},
  eprint = {2307.06439},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.06439},
}
Figure