Skip to main content
QUICK REVIEW

[Paper 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 Science10 citations
TL;DR

ChiMed-GPT is a Chinese medical LLM built on Ziya-13B-v2 with 4,096-token context, trained via pre-training, supervised fine-tuning, and RLHF, achieving state-of-the-art results on medical information extraction, QA, and dialogue tasks among Chinese LLMs.

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.

Motivation & Objective

  • Address domain knowledge gaps and alignment with human preferences in Chinese medical LLMs.
  • Increase context length to 4,096 tokens to better handle long medical texts.
  • Develop a full training regime (pre-training, SFT, RLHF) with data augmentation and rejection sampling to improve safety and usefulness.
  • Evaluate on information extraction, question answering, and dialogue generation in Chinese medical contexts.
  • Provide analysis of potential biases to guide responsible deployment of medical LLMs.

Proposed method

  • Continue pre-training a general-domain LLM (Ziya-13B-v2) on Chinese medical data with CMD (pre-train).
  • Apply supervised fine-tuning (SFT) using Chinese medical QA and dialogue datasets (ChiMed, CMD-SFT, MC, MedDialog) and a safety-prompt dataset.
  • Perform RLHF via rejection sampling with a reward model trained on augmented CMD (Reward) data (including GPT-4 and GPT-3.5-Turbo outputs) to rank and select top responses for fine-tuning.
  • Use data augmentation and rejection sampling to improve alignment with human preferences and safety.
  • Set context length to 4,096 tokens and utilize Megatron-LM style distributed training with bf16, ZeRO, and flash-attention for efficiency.
  • Train and evaluate on information extraction (NER), QA (open-ended and multiple-choice), and multi-turn dialogue tasks.

Experimental results

Research questions

  • RQ1How does a domain-specific medical LLM trained with a full regime (pre-training, SFT, RLHF) perform on core Chinese medical NLP tasks?
  • RQ2Does increasing context length to 4,096 tokens improve long-context medical text understanding and generation?
  • RQ3Can data augmentation and rejection sampling RLHF improve alignment with human preferences and safety in medical responses?
  • RQ4What is the comparative performance of ChiMed-GPT against general-domain and other medical-domain LLMs on NER, QA, and dialogue tasks in Chinese?
  • RQ5What biases are present in outputs, and how does ChiMed-GPT fare in safety/bias analyses using standardized scales?

Key findings

  • ChiMed-GPT outperforms general- and medical-domain baselines on information extraction (NER) under few-shot settings.
  • On QA and multi-turn dialogue benchmarks, ChiMed-GPT achieves state-of-the-art-like results compared to baselines (e.g., higher BLEU/ROUGE and accuracy in key tasks).
  • The model achieves strong NER F1 and QA metrics across CCKS-2019, ChiMST, C-Eval, CMMLU, and MedQA subsets, outperforming GPT-3.5-Turbo, GPT-4, Ziya-v1/v2, Baichuan, Taiyi, and MedicalGPT variants in several settings.
  • RLHF with rejection sampling and augmented reward data improves alignment with human preferences and reduces unsafe content through safety-focused data (Safety-Prompts).
  • Context length extension to 4,096 tokens enables better processing of long medical texts and supports more coherent long-form dialogue and information extraction.

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.