Skip to main content
QUICK REVIEW

[论文解读] ChiMed-GPT: A Chinese Medical Large Language Model with Full Training Regime and Better Alignment to Human Preferences

Yuanhe Tian, Ruyi Gan|arXiv (Cornell University)|Nov 10, 2023
Topic ModelingComputer Science被引用 10
一句话总结

ChiMed-GPT 是基于 Ziya-13B-v2 构建的中文医学大模型,拥有 4,096-token 上下文,通过 预训练、监督微调和 RLHF 训练,在中国语言大模型中在医学信息提取、问答和对话任务方面取得最先进的结果。

ABSTRACT

Recently, the increasing demand for superior medical services has highlighted the discrepancies in the medical infrastructure. With big data, especially texts, forming the foundation of medical services, there is an exigent need for effective natural language processing (NLP) solutions tailored to the healthcare domain. Conventional approaches leveraging pre-trained models present promising results in this domain and current large language models (LLMs) offer advanced foundation for medical text processing. However, most medical LLMs are trained only with supervised fine-tuning (SFT), even though it efficiently empowers LLMs to understand and respond to medical instructions but is ineffective in learning domain knowledge and aligning with human preference. In this work, we propose ChiMed-GPT, a new benchmark LLM designed explicitly for Chinese medical domain, and undergoes a comprehensive training regime with pre-training, SFT, and RLHF. Evaluations on tasks including information extraction, question answering, and dialogue generation demonstrate ChiMed-GPT's superior performance over general domain LLMs. Furthermore, we analyze possible biases through prompting ChiMed-GPT to perform attitude scales regarding discrimination of patients, so as to contribute to further responsible development of LLMs in the medical domain. The code and model are released at https://github.com/synlp/ChiMed-GPT.

研究动机与目标

  • 解决中文医学大模型在领域知识空白与与人类偏好对齐方面的差距。
  • 将上下文长度提升至 4,096 个 token,以更好地处理长篇医学文本。
  • 开发完整的训练体系(预训练、SFT、RLHF),结合数据增强和拒绝采样以提升安全性和实用性。
  • 在中文医学场景中的信息提取、问答和对话生成任务上进行评估。
  • 提供潜在偏见分析,以指导负责任部署医学大模型。

提出的方法

  • 继续在中文医学数据上对通用领域大模型(Ziya-13B-v2)进行 CMD(pre-train)的预训练。
  • 使用中文医学问答和对话数据集(ChiMed、CMD-SFT、MC、MedDialog)以及一个安全性提示数据集应用监督微调(SFT)。
  • 通过拒绝采样进行 RLHF,使用在增强的 CMD(Reward)数据上训练的奖励模型(包括 GPT-4 和 GPT-3.5-Turbo 的输出)对回答进行排序并选取用于微调的最佳回答。
  • 使用数据增强和拒绝采样来提高与人类偏好和安全性的对齐。
  • 将上下文长度设为 4,096 tokens,并使用 Megatron-LM 风格的分布式训练,结合 bf16、ZeRO 和 flash-attention 以提高效率。
  • 在信息提取(NER)、问答(开放式和多项选择)以及多轮对话任务上进行训练与评估。

实验结果

研究问题

  • RQ1经过完整训练体系(预训练、SFT、RLHF)训练的领域特定医学大模型在核心中文医学NLP任务上的表现如何?
  • RQ2将上下文长度增加到 4,096 tokens 是否提升对长上下文医学文本的理解与生成?
  • RQ3数据增强和拒绝采样 RLHF 是否能改善与人类偏好和医疗回答的安全性的一致性?
  • RQ4在中文的 NER、QA 和对话任务中,ChiMed-GPT 相对于通用领域和其他医学领域大模型的性能如何?
  • RQ5输出中存在哪些偏见,ChiMed-GPT 在使用标准化量表进行的安全性/偏见分析中表现如何?

主要发现

  • ChiMed-GPT 在少样本设置下的 信息提取(NER)方面超越通用域和医学域基线。
  • 在问答和多轮对话基准上,ChiMed-GPT 相较基线达到接近最先进的结果(例如在关键任务上的 BLEU/ROUGE 和准确率更高)。
  • 该模型在 CCKS-2019、ChiMST、C-Eval、CMMLU、MedQA 子集上实现强劲的 NER F1 和 QA 指标,在多种设置中优于 GPT-3.5-Turbo、GPT-4、Ziya-v1/v2、Baichuan、Taiyi 和 MedicalGPT 变体。
  • 使用拒绝采样的 RLHF 和增强的奖励数据,通过安全性导向的数据(Safety-Prompts)提升与人类偏好的对齐,并减少不安全内容。
  • 上下文长度扩展到 4,096 tokens- 能更好地处理长篇医学文本,支持更连贯的长篇对话和信息提取。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。