PediatricsGPT: Large Language Models as Chinese Medical Assistants for Pediatric Applications

Dingkang Yang, Jinjie Wei, Dongling Xiao, Shunli Wang, Tong Wu, Gang Li, Mingcheng Li, Shuaibing Wang, Jiawei Chen, Yue Jiang, Qingyao Xu, Ke Li, Peng Zhai, Lihua Zhang

TL;DR

PediatricsGPT is the first specialized Chinese Large Language Model (LLM) designed to act as a medical assistant for pediatric applications. By leveraging a novel four-stage training pipeline and a high-quality dataset of over 300,000 instructions (PedCorpus), the model achieves state-of-the-art performance, outperforming existing Chinese medical LLMs and rivaling GPT-3.5-turbo in pediatric diagnostic tasks.

What Problem Does This Paper Address?

In populous countries like China, pediatric healthcare resources are severely unbalanced, leading to a massive shortage of specialized doctors. While general-purpose Chinese medical LLMs exist, they often fall short in pediatrics for two main reasons:

  1. Data Scarcity: There is a lack of high-quality, instruction-based pediatric data compared to general medicine.
  2. Training Instability: Standard fine-tuning often leads to "catastrophic forgetting" (where the model loses general knowledge) or "excessive role-playing" (where the model mimics a doctor's tone without actually understanding the underlying medical logic).

The authors aim to bridge this gap by creating a model that balances specialized pediatric expertise with general medical knowledge.

Methods

The researchers developed a systematic four-stage training pipeline to ensure the model is both a medical generalist and a pediatric specialist:

  1. Hybrid Instruction Continuous Pre-training (CPT): To prevent the model from forgetting its foundation while learning new medical facts, they mixed plain medical text with "instruction-completion" pairs. This helps the model assimilate knowledge while maintaining its ability to follow prompts.
  2. Full-parameter Supervised Fine-Tuning (SFT): The model is trained on a broad medical schema to establish a solid "medical generalist" foundation.
  3. Direct Following Preference Optimization (DFPO): Instead of using the computationally expensive and often unstable Reinforcement Learning from Human Feedback (RLHF), the authors devised DFPO. This lightweight method aligns the model's responses with human preferences, ensuring they are humanistic and "doctor-like."
  4. Mixture of Universal-Specific Experts (MUE): In the final stage, they used a parameter-efficient approach (LoRA) to create "experts" within the model. A "universal expert" maintains general knowledge, while "specific experts" are routed to handle distinct pediatric tasks like diagnosis or treatment recommendation.
Figure 1: The sequential pipeline for developing PediatricsGPT. We begin by injecting intensive medical and world knowledge into the foundation model through the hybrid instruction mechanism in CPT phase. Then, full-parameter SFT is implemented to improve the model’s instruction-following capabilities regarding medical generalists. After that, we introduce the direct following preference optimization to control the model behaviour to align with human preference. In the parameter-efficient SFT phase, the LoRA-based mixture of universal-specific experts is devised to mitigate conflicts across downstream tasks and competition between pediatric expertise and general mastery.

Datasets

The core of this project is PedCorpus, a dataset of 300,000+ multi-task instructions. It was built from:

  • Specialized Sources: Pediatric textbooks, clinical guidelines, and medical knowledge graphs.
  • Real-world Data: Authentic doctor-patient dialogues from online platforms, regularized using GPT-4 to ensure the responses are professional yet patient-friendly.
  • Distilled Benchmarks: High-quality samples from existing datasets like Huatuo-26M and CMeKG, refined to remove noise and hallucinations.

For evaluation, the authors used three pediatric-specific benchmarks (MedKQ&A, EviDiag, TreRecom) and two general medical benchmarks (CMD and webMedQA).

Key Insights and Ideas

  • Quality > Quantity: Rather than feeding the model millions of noisy data points, the authors focused on 107,177 "knowledge-intensive" instructions, proving that rigorous data distillation is more effective for domain adaptation.
  • Format Matters: The "Hybrid Instruction" mechanism in CPT is a clever fix for the format discrepancy between pre-training (unstructured text) and SFT (structured instructions), which is a common cause of performance degradation in specialized LLMs.
  • Solving Competency Conflict: The MUE strategy (using different LoRA adapters for different tasks) allows the model to master specialized pediatric knowledge without sacrificing its ability to handle general medical queries.

Key Results

PediatricsGPT-13B consistently outperformed other open-source Chinese medical models (such as HuatuoGPT and DISC-MedLLM) across nearly all metrics.

  • Automated Evaluation: On the GLEU metric (a measure of generation quality), PediatricsGPT-13B scored significantly higher than its peers in departments ranging from Pediatrics to Surgery.
  • Human & GPT-4 Evaluation: In pairwise comparisons, human doctors preferred PediatricsGPT's responses over other models' in over 80% of cases for pediatric QA. It even showed competitive performance against GPT-3.5-turbo.

Response comparisons via Doctor evaluation Generalization results on the CMD benchmark

Limitations and Future Work

Despite its success, the authors acknowledge several hurdles:

  • Security Risks: Like all LLMs, PediatricsGPT is vulnerable to adversarial attacks (jailbreaking) that could induce it to generate unsafe or biased content.
  • Language Barrier: The current model is optimized for Chinese. Expanding to other languages is a priority to reach a global audience.
  • Deployment Safety: While the model performs well in benchmarks, the authors emphasize that it is a "medical assistant" and not a replacement for human doctors, especially in high-stakes clinical environments.

Summary updated

BibTeX
@inproceedings{yang2024pediatricsgpt,
  author = {Dingkang Yang and Jinjie Wei and Dongling Xiao and Shunli Wang and Tong Wu and Gang Li and Mingcheng Li and Shuaibing Wang and Jiawei Chen and Yue Jiang and Qingyao Xu and Ke Li and Peng Zhai and Lihua Zhang},
  title = {{PediatricsGPT: Large Language Models as Chinese Medical Assistants for Pediatric Applications}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=WvoKwq12x5},
}
Figure