m-KAILIN: Knowledge-Driven Agentic Scientific Corpus Distillation Framework for Biomedical Large Language Models Training

Meng Xiao, Xunxin Cai, Chengrui Wang, Yuanchun ZhouarXiv 2025 · DOI

Abstract

The m-KAILIN framework addresses the critical "data bottleneck" in biomedical AI by employing a collaborative multi-agent system to automatically distill high-quality question-answer (QA) pairs from millions of raw scientific papers. By leveraging the Medical Subject Headings (MeSH) hierarchy to guide evaluation and utilizing Direct Preference Optimization (DPO), the framework produces an "AI-Ready" corpus. This approach allows a Llama3-70B model to outperform significantly larger proprietary models, including GPT-4 and Med-PaLM-2, on standard biomedical benchmarks.

Introduction

While Large Language Models (LLMs) show great promise in healthcare, they face a significant hurdle: the lack of high-quality, large-scale training data. General-purpose LLMs often struggle with the dense terminology and complex hierarchies of biomedical knowledge. Existing solutions—manual curation, knowledge graphs, and simple synthetic generation—either fail to scale or produce noisy, "hallucinated" data that lacks the nuance of real medical reasoning.

Comparison of existing data limitations versus the m-KAILIN automated distillation perspective.

The authors tackle this bottleneck by asking: How can we automatically transform the vast, unstructured sea of scientific literature into structured, expert-level training data? The resulting m-KAILIN framework treats data creation as a collaborative pipeline, bridging the gap between raw corpora and high-performance applications.

Methodology

The m-KAILIN (Multi-agent enhanced Knowledge hierArchy guIded biomedical dataset distiLlatIoN) framework is an agentic system designed for high-fidelity data distillation:

  1. Heterogeneous Question Generation: To ensure linguistic and technical diversity, the system uses two distinct agents: a domain-specific agent (BioMistral) for technical nuances and a general-purpose agent (Llama-3) for reasoning patterns.
  2. Context Retrieval Agent: Utilizing Dense Passage Retrieval (DPR), the system identifies the most relevant supporting evidence for generated questions from a corpus of 23 million PubMed articles.
  3. MeSH-Guided Evaluation Agent: This core component uses the Medical Subject Headings (MeSH) ontology to score how well a question-context pair aligns with established medical knowledge. It employs a "cold-start" rule-based method to label data, which subsequently trains an LLM-based evaluator.
  4. Direct Preference Optimization (DPO): Feedback from the evaluator is used to fine-tune the question generator, creating a self-improving loop that steers the system toward higher-quality output.
  5. Answer Generation: Finally, a high-end model (GPT-4o) generates the final answers based on the best-vetted question-context pairs.
The m-KAILIN evaluation and DPO loop, showing how the MeSH hierarchy guides the creation of a preference dataset for model fine-tuning.

Experimental Setup

  • Source Material: Over 23 million biomedical research articles from PubMed.
  • Seed Data: The BioASQ dataset was used for the initial fine-tuning of the question generation agents.
  • Evaluation: Models were tested on PubMedQA (including Full, Chrono, and MeSH sub-disciplinary subsets) to measure accuracy, temporal robustness, and cross-domain generalization.

Key Results and Insights

  • State-of-the-Art Performance: Llama3-70B trained with the m-KAILIN framework achieved 82.7% accuracy on PubMedQA, surpassing GPT-4 with MedPrompt (82.0%) and Med-PaLM-2 (81.8%).
  • Small Model Success: The m-KAILIN-enhanced Llama3-8B (81.3%) outperformed several 13B and 70B parameter models, demonstrating that data quality can effectively offset model scale.
  • Ontology as a North Star: Ablation studies showed that removing MeSH-based guidance led to a substantial drop in accuracy, particularly in reasoning-heavy tasks. This confirms that anchoring synthetic data in a factual hierarchy is essential for medical alignment.
  • Agentic Diversity: Using heterogeneous LLMs for question generation outperformed using identical agents, as it captured a broader spectrum of reasoning and technical detail.

Conclusion and Future Work

m-KAILIN demonstrates that targeted, knowledge-driven data distillation can allow open-source models to match or exceed the performance of proprietary giants. While the framework currently relies on the MeSH hierarchy and proprietary "teacher" models for final answer generation, future work aims to expand this approach to other specialized fields like law or engineering and explore more complex, multi-hop reasoning tasks.

Summary updated

BibTeX
@misc{xiao2025m,
  author = {Meng Xiao and Xunxin Cai and Chengrui Wang and Yuanchun Zhou},
  title = {{m-KAILIN: Knowledge-Driven Agentic Scientific Corpus Distillation Framework for Biomedical Large Language Models Training}},
  year = {2025},
  eprint = {2504.19565},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.19565},
}
Figure