[Paper Review] HuatuoGPT-II, One-stage Training for Medical Adaption of LLMs
HuatuoGPT-II introduces a unified one-stage domain adaptation protocol that converts domain data into an instruction-output format and trains Chinese medical LLMs, achieving state-of-the-art results on Chinese medical benchmarks.
Adapting a language model into a specific domain, a.k.a `domain adaption', is a common practice when specialized knowledge, e.g. medicine, is not encapsulated in a general language model like Llama2. The challenge lies in the heterogeneity of data across the two training stages, as it varies in languages, genres, or formats. To tackle this and simplify the learning protocol, we propose to transform heterogeneous data, from the both pre-training and supervised stages, into a unified, simple input-output pair format. We validate the new protocol in the domains where proprietary LLMs like ChatGPT perform relatively poorly, such as Traditional Chinese Medicine. The developed model, HuatuoGPT-II, has shown state-of-the-art performance in Chinese medicine domain on a number of benchmarks, e.g. medical licensing exams. It even outperforms proprietary models like ChatGPT and GPT-4 in some aspects, especially in Traditional Chinese Medicine. Expert manual evaluations further validate HuatuoGPT-II's advantages over existing LLMs. Notably, HuatuoGPT-II was benchmarked in a fresh Chinese National Medical Licensing Examination where it achieved the best performance, showcasing not only its effectiveness but also its generalization capabilities.
Motivation & Objective
- Motivate domain adaptation for medical LLMs and reduce training pipeline complexity.
- Propose a unified one-stage protocol to replace the traditional two-stage continued pre-training and supervised fine-tuning.
- Develop and evaluate a Chinese medical LLM with strong performance in Traditional Chinese Medicine and general Chinese medical tasks.
- Demonstrate data unification and priority-based sampling to effectively infuse domain knowledge.
Proposed method
- Collect diverse domain-specific corpora (Chinese/English) across encyclopedias, books, literature, and web sources.
- Unify domain data into an instruction-output format via question generation and answer synthesis using an LLM, aligning with SFT data.
- Perform one-stage training by merging unified domain data with fine-tuning data, guided by a priority sampling strategy.
- Standardize data encoding to fixed-length sequences and optimize only output loss for instruction-style data.
- Evaluate with both open benchmarks and expert assessments, including a fresh medical licensing exam scenario.
Experimental results
Research questions
- RQ1What performance gains arise from one-stage domain adaptation versus traditional two-stage pipelines in medical LLMs?
- RQ2How effective is data unification via LLM-generated questions and answers at aligning heterogeneous domain data with SFT data?
- RQ3Can a Chinese medical LLM trained with one-stage adaptation outperform open-source and proprietary models on Chinese medical benchmarks and licensing exams?
Key findings
- HuatuoGPT-II achieves state-of-the-art performance among open-source models on Chinese healthcare benchmarks such as MedQA, MedMCQA, CMB, and CMExam, with the 13B variant performing particularly well.
- On Chinese National Medical Licensing Examinations, the 13B model approaches or matches leading proprietary models in several sections, notably outperforming many baselines among open-source models.
- Expert and automated evaluations indicate competitive to superior response quality relative to major LLMs, with notable strengths in Traditional Chinese Medicine.
- One-stage domain adaptation with data unification and priority sampling effectively transfers domain knowledge while simplifying the training pipeline compared to two-stage methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.