English

Qilin-Med: Multi-stage Knowledge Injection Advanced Medical Large Language Model

Computation and Language 2024-04-18 v2

Abstract

Integrating large language models (LLMs) into healthcare holds great potential but faces challenges. Pre-training LLMs from scratch for domains like medicine is resource-heavy and often unfeasible. On the other hand, sole reliance on Supervised Fine-tuning (SFT) can result in overconfident predictions and may not tap into domain-specific insights. In response, we present a multi-stage training method combining Domain-specific Continued Pre-training (DCPT), SFT, and Direct Preference Optimization (DPO). In addition, we publish a 3Gb Chinese Medicine (ChiMed) dataset, encompassing medical question answering, plain texts, knowledge graphs, and dialogues, segmented into three training stages. The medical LLM trained with our pipeline, Qilin-Med, shows substantial performance improvement. In the CPT and SFT phases, Qilin-Med achieved 38.4% and 40.0% accuracy on the CMExam test set, respectively. It outperformed the basemodel Baichuan-7B (accuracy: 33.5%), by 7.5%. In the DPO phase, it scored 16.66 in BLEU-1 and 27.44 in ROUGE-1 on the Huatuo-26M test set, bringing further improvement to the SFT phase (12.69 in BLEU-1 and 24.21 in ROUGE-1). Additionally, we have further enhanced the model's performance through the Retrieval Augmented Generation (RAG) approach. Experiments demonstrate that Qilin-Med-RAG achieves an accuracy rate of 42.8% on CMExam. These results highlight the contribution of our novel training approach in building LLMs for medical applications.

Keywords

Cite

@article{arxiv.2310.09089,
  title  = {Qilin-Med: Multi-stage Knowledge Injection Advanced Medical Large Language Model},
  author = {Qichen Ye and Junling Liu and Dading Chong and Peilin Zhou and Yining Hua and Fenglin Liu and Meng Cao and Ziming Wang and Xuxin Cheng and Zhu Lei and Zhenhua Guo},
  journal= {arXiv preprint arXiv:2310.09089},
  year   = {2024}
}
R2 v1 2026-06-28T12:49:50.703Z