arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.15075cs.CLcs.AI
收藏

HuatuoGPT:驯化语言模型成为医生

HuatuoGPT, towards Taming Language Model to Be a Doctor

The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))

Hongbo Zhang, Junying Chen, Feng Jiang, Fei Yu, Zhihong Chen, Jianquan Li, Guiming Chen, Xiangbo Wu, Zhiyi Zhang, Qingying Xiao, Xiang Wan, Benyou Wang, Haizhou Li

AI总结:

本文提出医疗咨询大语言模型HuatuoGPT,通过融合ChatGPT蒸馏数据与医生真实数据并结合RLAIF训练,在多项评估中超越开源模型及教师模型ChatGPT。

摘要:

本文提出了HuatuoGPT,一个用于医疗咨询的大型语言模型(LLM)。HuatuoGPT的核心方法是在监督微调阶段同时利用来自ChatGPT的蒸馏数据和来自医生的真实世界数据。ChatGPT的回答通常详细、表达良好且信息丰富,但在许多方面无法像医生一样表现,例如综合诊断。我们认为,来自医生的真实世界数据是对蒸馏数据的补充,因为前者能够驯化蒸馏语言模型,使其像医生一样工作。为了更好地利用两类数据的优势,我们训练了一个奖励模型,使语言模型与两类数据带来的优点对齐,遵循RLAIF(基于AI反馈的强化学习)方式。为了评估和基准测试模型,我们提出了一个全面的评估方案(包括自动指标和人工指标)。实验结果表明,在GPT-4评估、人工评估和医疗基准数据集上,HuatuoGPT在开源LLM中执行医疗咨询取得了最先进的结果。值得注意的是,通过使用额外的真实世界数据和RLAIF,蒸馏语言模型(即HuatuoGPT)在大多数情况下优于其教师模型ChatGPT。我们的代码、数据和模型公开于https://github.com/FreedomIntelligence/HuatuoGPT。在线演示可在https://www.HuatuoGPT.cn/获取。

英文摘要:

In this paper, we present HuatuoGPT, a large language model (LLM) for medical consultation. The core recipe of HuatuoGPT is to leverage both \textit{distilled data from ChatGPT} and \textit{real-world data from doctors} in the supervised fine-tuned stage. The responses of ChatGPT are usually detailed, well-presented and informative while it cannot perform like a doctor in many aspects, e.g. for integrative diagnosis. We argue that real-world data from doctors would be complementary to distilled data in the sense the former could tame a distilled language model to perform like doctors. To better leverage the strengths of both data, we train a reward model to align the language model with the merits that both data bring, following an RLAIF (reinforced learning from AI feedback) fashion. To evaluate and benchmark the models, we propose a comprehensive evaluation scheme (including automatic and manual metrics). Experimental results demonstrate that HuatuoGPT achieves state-of-the-art results in performing medical consultation among open-source LLMs in GPT-4 evaluation, human evaluation, and medical benchmark datasets. It is worth noting that by using additional real-world data and RLAIF, the distilled language model (i.e., HuatuoGPT) outperforms its teacher model ChatGPT in most cases. Our code, data, and models are publicly available at \url{https://github.com/FreedomIntelligence/HuatuoGPT}. The online demo is available at \url{https://www.HuatuoGPT.cn/}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑