Abstract
Recent advances in reasoning with large language models (LLMs) has shown remarkable reasoning capabilities in domains such as mathematics and coding, yet their application to clinical diagnosis remains underexplored. Here, we introduce ClinicalGPT-R1, a reasoning enhanced generalist large language model for disease diagnosis. Trained on a dataset of 20,000 real-world clinical records, ClinicalGPT-R1 leverages diverse training strategies to enhance diagnostic reasoning. To benchmark performance, we curated MedBench-Hard, a challenging dataset spanning seven major medical specialties and representative diseases. Experimental results demonstrate that ClinicalGPT-R1 outperforms GPT-4o in Chinese diagnostic tasks and achieves comparable performance to GPT-4 in English settings. This comparative study effectively validates the superior performance of ClinicalGPT-R1 in disease diagnosis tasks.
Introduction
While models like OpenAI-o1 and DeepSeek-R1 have revolutionized reasoning in structured domains like mathematics, clinical diagnosis presents a unique challenge. Medical reasoning is often unstructured and lacks the immediate, objective verifiability found in code or logic puzzles. Existing benchmarks like MedQA often rely on multiple-choice formats that do not reflect the multi-step, iterative nature of real-world clinical workflows. ClinicalGPT-R1 addresses this gap by adapting advanced reasoning techniques—specifically long Chain-of-Thought (CoT) and Reinforcement Learning (RL)—to the medical domain.
Methodology
The development of ClinicalGPT-R1 utilizes Qwen-2.5-7B-Instruct as a foundation, following a specialized two-stage training pipeline designed to instill deep reasoning capabilities.
Data Synthesis via Long CoT
Because standard medical records do not contain explicit "thinking" steps, the authors employed a synthesis strategy. Using high-performing models like GPT-4o-mini, the diagnostic process was reverse-engineered into trajectories containing "Thinking" and "Response" components. To ensure quality, a verifier matched the synthetic diagnosis against the ground truth. If a mismatch occurred, the system employed strategies such as backtracking and correction, allowing up to three retries to generate a valid reasoning path.
Training and Reinforcement Learning
Following Supervised Fine-Tuning (SFT) on these synthetic trajectories, the model underwent Reinforcement Learning (RL) using Proximal Policy Optimization (PPO). A result-based reward system was implemented to prioritize process over outcome:
- Full Reward (1.0): Correct diagnosis with a clear reasoning process.
- Partial Reward (0.1): Incorrect diagnosis.
- No Reward (0.0): Correct diagnosis without the required "thinking" steps.
This structure forces the model to internalize the "think-before-answering" paradigm, which is vital for clinical interpretability.
Evaluation: MedBench-Hard
To rigorously test the model, the authors introduced MedBench-Hard, a dataset of 3,500 samples across seven specialties: Respiratory, Gastroenterology, Urology, Cardiology, Immunology, Neurology, and Endocrinology. Samples were selected using stratified sampling of ICD-10 codes to ensure a diverse representation of diseases, including rare conditions.
Results and Insights
ClinicalGPT-R1 demonstrates significant improvements over general-purpose models. In Chinese diagnostic tasks, it substantially outperforms both its base model and GPT-4o across all tested specialties.
Key findings include:
- RL Impact: The addition of RL consistently improved performance over SFT alone, as it optimizes the model's decision-making beyond simple pattern matching.
- Language Optimization: Performance gains were particularly pronounced in Chinese, likely due to the base model's optimization for the language and the quality of the training data.
- Generalization: The model maintained high performance on standard benchmarks like MedQA, indicating that the specialized reasoning training did not lead to catastrophic forgetting of general medical knowledge.
Conclusion
ClinicalGPT-R1 proves that the "reasoning" paradigm popularized by models like o1 can be effectively transferred to the complex, high-stakes domain of medicine. By combining synthetic long CoT trajectories with a process-oriented reward system, the model achieves state-of-the-art performance in clinical diagnosis. Future work will likely explore multimodal integration to incorporate diagnostic imaging and laboratory data into the reasoning process.
Summary updated