HuatuoGPT, towards Taming Language Model to Be a Doctor

Hongbo Zhang, Junying Chen, Feng Jiang, Fei Yu, Zhihong Chen +8 more
5/24/2023
cs.CLcs.AI

Official code: FreedomIntelligence/HuatuoGPT (1,311 stars, Apache-2.0, last commit 2024-12-16).

Abstract

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/}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

HuatuoGPT, Towards Taming Language Models To Be a Doctor. (An Open Medical GPT)

1,311166PythonApr 13, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2023huatuogpt,
  title  = {HuatuoGPT, towards Taming Language Model to Be a Doctor},
  author = {Hongbo Zhang and Junying Chen and Feng Jiang and Fei Yu and Zhihong Chen and Jianquan Li and Guiming Chen and Xiangbo Wu and Zhiyi Zhang and Qingying Xiao and Xiang Wan and Benyou Wang and Haizhou Li},
  year   = {2023},
  eprint = {2305.15075},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.15075v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.15075.svg)](https://codeofpaper.com/paper/2305.15075)

Discussion