NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Medical Complex Reasoning with LLMs through Medical Verifiable Problems

Junying Chen, Zhenyang Cai, Ke Ji, Xidong Wang, Wanlong Liu, Rongsheng Wang, Benyou WangACL 2025

Abstract

The breakthrough of OpenAI o1 highlights the potential of enhancing reasoning to improve LLM. Yet, most research in reasoning has focused on mathematical tasks, leaving domains like medicine underexplored. The medical domain, though distinct from mathematics, also demands robust reasoning to provide reliable answers, given the high standards of healthcare. However, verifying medical reasoning is challenging, unlike those in mathematics. To address this, we propose Medical Verifiable Problems with a medical verifier to check the correctness of model outputs. This verifiable nature enables advancements in medical reasoning through a two-stage approach: (1) using the verifier to guide the search for a complex reasoning trajectory for fine-tuning LLMs, (2) applying reinforcement learning (RL) with verifier-based rewards to enhance complex reasoning further. Finally, we introduce HuatuoGPT-o1, a medical LLM capable of complex reasoning, which outperforms general and medical-specific baselines using only 40K verifiable problems. Experiments show complex reasoning improves medical problem-solving and benefits more from RL. We hope our approach inspires advancements in reasoning across medical and other specialized domains. Code, datasets, and models are publicly available at https://github.com/FreedomIntelligence/HuatuoGPT-o1.

Introduction

Recent breakthroughs in Large Language Model (LLM) reasoning, exemplified by models like OpenAI's o1 and DeepSeek-R1, rely heavily on Reinforcement Learning (RL) to optimize "thinking" processes. For RL to be effective, a system requires an automated, reliable method to verify the correctness of a model's final answer. While this is straightforward in deterministic fields like mathematics or computer science, the medical domain presents a "verifiability bottleneck." Medical reasoning is nuanced, and answers often lack the clear, binary correctness found in equations or code. This paper introduces a framework to overcome this bottleneck, unlocking complex, reflective reasoning for medical AI.

Methodology: Medical Verifiable Problems

To enable automated verification, the authors developed Medical Verifiable Problems. They transformed challenging, closed-set multiple-choice medical exam questions (from MedQA and MedMCQA) into open-ended questions with single, unambiguous ground-truth answers.

Because medical terminology often involves synonyms and aliases, simple exact string matching is insufficient for verification. The researchers implemented a Medical Verifier using GPT-4o to check if a model's generated answer matches the ground truth. This LLM-based verifier achieved approximately 95% accuracy, significantly outperforming rule-based matching (~70-74%).

The Two-Stage Training Pipeline

The training of HuatuoGPT-o1 follows a two-stage process designed to teach the model how to reason and then optimize that reasoning.

  1. Stage 1: Learning Verified Trajectories (SFT): The model is prompted to solve verifiable problems using a search strategy. If an initial attempt is incorrect, the model is forced to re-evaluate using strategies such as Backtracking, Exploring New Paths, or Correction. Successful reasoning paths are reformatted into "Complex Chains-of-Thought" (Complex CoT) that include naturalistic markers of reflection (e.g., "wait," "hmm"). The base models are then fine-tuned on these high-quality trajectories.
  2. Stage 2: Reinforcement Learning (RL): Using Proximal Policy Optimization (PPO), the model is rewarded for reaching the correct final answer after an extended reasoning process. The RL phase optimizes the quality of the "thinking" behavior established in Stage 1.
The two-stage training pipeline for HuatuoGPT-o1, illustrating the transition from verified reasoning trajectories to reinforcement learning with verification rewards.

Experimental Results

The researchers evaluated HuatuoGPT-o1 across several standard benchmarks, including MedQA, MedMCQA, and PubMedQA, as well as difficult subsets of MMLU-Pro and GPQA. The results demonstrate that complex reasoning significantly improves medical problem-solving.

As shown in the performance data, the HuatuoGPT-o1-8B model outperformed its base (LLaMA-3.1-8B-Instruct) by an average of 8 points. At the 70B scale, HuatuoGPT-o1-70B achieved state-of-the-art results, surpassing both generalist models and specialized medical LLMs like UltraMedical-70B and distilled reasoning models like DeepSeek-R1-Distill-Llama-70B.

Performance comparison of HuatuoGPT-o1 against various 8B and 70B class models across major medical benchmarks, showing significant improvements over baselines.

Key Insights

  • Complex CoT is Essential for RL: Ablation studies revealed that teaching a model "Complex CoT" (including self-doubt and backtracking) provides a much richer feedback signal for RL than "Simple CoT" (linear step-by-step reasoning). Adding RL to Complex CoT yielded a 3.6-point gain, whereas RL applied to direct responses only improved performance by 1.1 points.
  • Data Quality Over Quantity: The significant performance leaps were achieved using only 40,000 verifiable problems, suggesting that the quality and verifiability of reasoning trajectories are more critical than the sheer volume of training data.
  • Domain Agnosticism: The framework proved adaptable; by swapping medical questions for chemistry problems, the authors successfully trained a chemistry-specific reasoning model, indicating the method's potential for other specialized fields.

Conclusion and Future Work

HuatuoGPT-o1 demonstrates that the "thinking" paradigm can be successfully ported to the medical domain through the use of verifiable problems and a two-stage training approach. While the researchers noted some instability in scaling RL indefinitely—where models occasionally produced garbled text or failed to terminate reasoning—the current results set a new benchmark for open-source medical AI. Future work will focus on reducing the computational cost of verification and expanding the framework to niche medical sub-fields.

Summary updated

BibTeX
@inproceedings{chen2025towards,
  author = {Junying Chen and Zhenyang Cai and Ke Ji and Xidong Wang and Wanlong Liu and Rongsheng Wang and Benyou Wang},
  title = {{Towards Medical Complex Reasoning with LLMs through Medical Verifiable Problems}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=Jl6Ip7GsGp},
}
Figure