[Paper Review] Qilin-Med: Multi-stage Knowledge Injection Advanced Medical Large Language Model
Qilin-Med introduces a three-stage training pipeline (Domain-specific Continued Pre-training, Supervised Fine-Tuning, and Direct Preference Optimization) using the ChiMed dataset to produce a Chinese medical LLM that outperforms baselines on medical QA and dialogue benchmarks, with notable gains after each stage.
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.
Motivation & Objective
- Motivate the need for domain-specific knowledge infusion in medical LLMs due to limitations of purely SFT.
- Introduce a multi-stage training pipeline (DCPT, SFT, DPO) to inject medical knowledge efficiently.
- Create ChiMed, a large Chinese medical dataset supporting all training stages.
- Demonstrate performance gains on standardized medical benchmarks compared to baselines.
Proposed method
- Builds on Baichuan-7B as the base model and performs Domain-specific Continued Pre-training (DCPT) with ChiMed-CPT.
- Performs Supervised Fine-Tuning (SFT) using ChiMed-SFT to improve instruction following and medical task performance.
- Applies Direct Preference Optimization (DPO) with ChiMed-DPO to align outputs with human preferences without RLHF.
- Uses LoRA for parameter-efficient fine-tuning during DCPT and SFT.
- Evaluates on CMExam, CEval, and Huatuo-26M with metrics including accuracy, BLEU, and ROUGE.
Experimental results
Research questions
- RQ1Can a multi-stage training pipeline with domain-specific data improve medical understanding and instruction following in a Chinese medical LLM?
- RQ2What are the performance gains from DCPT, SFT, and DPO across standard medical benchmarks?
- RQ3How does Qilin-Med compare to existing Chinese medical LLMs on knowledge QA and dialogue tasks?
Key findings
- DCPT and SFT elevate CMExam accuracy from Baichuan-7B baseline to 38.4% and 40.0%, respectively (Baichuan-7B baseline 33.5%).
- On Huatuo-26M, Qilin-Med-DPO achieves BLEU-1 of 16.66 and ROUGE-1 of 27.44, outperforming the SFT baseline (12.69 and 24.21).
- Qilin-Med-7B-SFT shows strong medical task performance across CMExam metrics, surpassing several open baselines.
- DCPT injects medical knowledge effectively, evidenced by higher CMExam metrics compared with Baichuan-7B.
- DPO alignment yields consistently higher scores than SFT alone across evaluation settings.
- ChiMed dataset (3.0 GB) supports multi-stage medical knowledge injection including QA, plain text, knowledge graphs, and dialogues.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.