Abstract
MedChatZH is a specialized large language model (LLM) designed to master the complexities of Traditional Chinese Medicine (TCM) and general medical dialogue. By combining domain-specific pre-training on over 1,000 ancient medical texts with a rigorously filtered instruction-tuning pipeline, it achieves state-of-the-art performance on real-world medical benchmarks, significantly outperforming general-purpose models like ChatGPT and specialized baselines.
Introduction
While general-purpose LLMs like ChatGPT have revolutionized natural language processing, they often struggle in specialized, high-stakes domains. This is particularly evident in Traditional Chinese Medicine (TCM), where the language is archaic, the logic differs from Western medicine, and high-quality digital corpora are scarce. Furthermore, many English-centric models experience a performance "cliff" in Chinese medical contexts, and commercial restrictions often limit the depth of medical advice provided. MedChatZH addresses these gaps by creating a model that understands both the nuances of the Chinese language and the specialized knowledge required for accurate medical consultation.
Methods
The development of MedChatZH followed a two-stage training strategy:
- Domain-Specific Pre-training: Starting with Baichuan-7B as a base, the model underwent continued pre-training on a massive collection of over 1,000 TCM books, including classics like the Yellow Emperor’s Canon of Internal Medicine. This grounded the model in foundational TCM vocabulary and concepts.
- Instruction Fine-Tuning: The model was transformed into a conversational assistant using a curated dataset called med-mix-2M. The researchers employed a "full parameter" approach rather than Parameter-Efficient Fine-Tuning (PEFT) to better capture the intricate requirements of medical dialogue.
A critical component of this stage was the Data Process Pipeline, which included heuristic filtering (removing short or inconsistent answers), PII scrubbing, and Reward Model Pruning. The latter used a secondary model (Ziya-LLaMA-7B-Reward) to discard training data with quality scores below 0.5.
Datasets
The training and evaluation of MedChatZH utilized several key datasets:
- TMC Books: 1,000+ volumes of traditional medical literature and folk doctor notes.
- med-mix-2M: A hybrid dataset containing 763,629 medical instructions and 1.3 million general instructions (derived from the BELLE-3.5M dataset).
- webMedQA: A real-world benchmark of 63,255 Chinese medical questions across 23 domains, used for evaluation.
Key Results
MedChatZH demonstrated a clear lead over both general and specialized models on the webMedQA benchmark. As shown in the performance comparison table, MedChatZH achieved a BLEU-1 score of 56.31 and a ROUGE-L of 21.77, significantly outperforming 13B parameter models like HuatuoGPT.
Beyond aggregate metrics, the model exhibits broad expertise across diverse medical categories. Radar chart evaluations indicate that MedChatZH maintains consistently high performance in fields ranging from Pediatrics and Surgery to Infectious Diseases, whereas baseline models like LLaMa-Med and ChatGLM-Med show significant volatility.
Ablation studies further confirmed that the inclusion of distilled medical instructions was the primary driver of performance, showing a substantial jump compared to versions trained without them.
Key Insights and Discussion
The success of MedChatZH highlights several important principles:
- Quality Over Quantity: Rigorous cleaning and reward-model-based pruning of instructions ensure the model learns from high-quality, logical, and safe responses.
- Hybrid Knowledge Integration: By integrating traditional TCM knowledge with modern Western medical data, MedChatZH provides holistic answers suitable for modern consultations.
- Standardization: "Numerical Symbol Harmonization" improved the model's ability to generate structured medical advice.
Limitations and Future Work
Despite its performance, MedChatZH faces challenges common to generative models, such as the risk of hallucination. The authors emphasize that it should be used as an "adviser" with human verification rather than a definitive source of medical truth. Future work will focus on refining safety guardrails and expanding the model's scope beyond the Chinese language and non-commercial domains.
Summary updated