Skip to main content
QUICK REVIEW

[Paper Review] HuatuoGPT, towards Taming Language Model to Be a Doctor

Hongbo Zhang, Junying Chen|arXiv (Cornell University)|May 24, 2023
Artificial Intelligence in Healthcare and EducationMedicine18 citations
TL;DR

HuatuoGPT blends ChatGPT-distilled data with real-world doctor data and uses RL from AI Feedback to create a Chinese medical LLM that outperforms open-source rivals and often rivals or surpasses ChatGPT in medical consultations.

ABSTRACT

In this paper, we present HuatuoGPT, a large language model (LLM) for medical consultation. The core recipe of HuatuoGPT is to leverage both extit{distilled data from ChatGPT} and extit{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/}.

Motivation & Objective

  • Motivate open-source, private-deployment medical LLMs to reduce global medical access gaps.
  • Propose a two-stage training pipeline that blends distilled ChatGPT data with real-world doctors’ data.
  • Introduce RL from AI Feedback (RLAIF) to align model outputs with both instruction-following and doctor-like reasoning.
  • Establish a comprehensive evaluation scheme combining automatic and human assessments across multiple medical datasets.

Proposed method

  • Hybrid data SFT: train on instruction data and real-world doctor conversations to imbue doctor-like and patient-friendly behavior.
  • Distilled data incorporation: leverage ChatGPT-generated medical instructions and conversations to improve instruction-following and fluency.
  • Reward model: train a reward model using scores from a large language model to capture informativeness, coherence, and factual accuracy.
  • Reinforcement learning from AI feedback (RLAIF): optimize model with KL-penalized policy updates to align with both ChatGPT and doctor merits.
  • Base model and setup: BLOOMZ-7b1-mt backbone; multi-stage training with 8 A100 GPUs, specific LR/batch/context settings, and additional Chinese data for general conversational abilities.
Figure 2: Schematic of HuatuoGPT.
Figure 2: Schematic of HuatuoGPT.

Experimental results

Research questions

  • RQ1Does combining real-world doctor data with distilled ChatGPT data improve doctor-like diagnostics and patient-facing communication?
  • RQ2Can RL from AI feedback (RLAIF) better align medical LLM outputs with professional diagnostic quality and patient safety than pure SFT?
  • RQ3How does HuatuoGPT perform on Chinese medical benchmarks and in GPT-4 evaluated single-turn and multi-turn scenarios compared to baselines?
  • RQ4Is HuatuoGPT able to outperform its teacher model ChatGPT in many medical consultation tasks when augmented with real-world data?

Key findings

  • HuatuoGPT achieves state-of-the-art results among open-source LLMs on GPT-4, human evaluation, and medical benchmarks in Chinese medical domains.
  • In many cases, HuatuoGPT with real-world data and RLAIF outperforms its teacher model ChatGPT.
  • HuatuoGPT achieves SOTA performance on cMedQA2, webMedQA, and Huatuo-26M benchmarks.
  • Automatic (GPT-4) and manual evaluations corroborate HuatuoGPT’s doctor-like accuracy, interactive questioning, and patient-friendly responses.
  • The model consistently surpasses BenTsao, DoctorGLM, and GPT-3.5-turbo in single-turn and multi-turn evaluations across multiple departments.
Figure 3: The model performance ratio for each category on 100 single-turn questions, reviewed by GPT4. The performance of HuatuoGPT is set to 1.0.
Figure 3: The model performance ratio for each category on 100 single-turn questions, reviewed by GPT4. The performance of HuatuoGPT is set to 1.0.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.