Qilin-Med:多阶段知识注入的先进医学大语言模型
Qilin-Med: Multi-stage Knowledge Injection Advanced Medical Large Language Model
AI总结:
针对医学大语言模型从零预训练成本高、仅监督微调易过自信的问题,提出结合DCPT、SFT、DPO的多阶段训练法,发布ChiMed数据集,训练的Qilin-Med及RAG增强版在多个医学基准上性能显著提升。
摘要:
将大语言模型(LLMs)融入医疗保健领域潜力巨大,但也面临诸多挑战。从零开始为医学等领域预训练大语言模型资源消耗极高,往往难以实现。另一方面,仅依赖监督微调(SFT)可能导致预测过于自信,且无法充分挖掘领域专属洞见。针对这一问题,我们提出一种结合领域专属持续预训练(DCPT)、监督微调(SFT)与直接偏好优化(DPO)的多阶段训练方法。此外,我们发布了一个3Gb的中文医学数据集ChiMed,涵盖医学问答、纯文本、知识图谱和对话内容,并按三个训练阶段进行了划分。采用我们的训练流程训练得到的医学大语言模型Qilin-Med性能提升显著。在持续预训练(CPT)和监督微调(SFT)阶段,Qilin-Med在CMExam测试集上的准确率分别达到38.4%和40.0%,相比基础模型Baichuan-7B(准确率33.5%)提升了7.5%。在直接偏好优化(DPO)阶段,它在Huatuo-26M测试集上的BLEU-1得分为16.66,ROUGE-1得分为27.44,较监督微调(SFT)阶段(BLEU-1为12.69,ROUGE-1为24.21)实现了进一步提升。另外,我们还通过检索增强生成(RAG)方法进一步提升了模型性能。实验表明,Qilin-Med-RAG在CMExam上的准确率达到42.8%。这些结果凸显了我们提出的新型训练方法在构建医学应用大语言模型方面的贡献。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。