Med-REFL: Medical Reasoning Enhancement via Self-Corrected Fine-grained Reflection

Zongxian Yang, Jiayu Qian, Zegao Peng, Haoyu Zhang, Zhi-An HuangarXiv 2025

Abstract

Large reasoning models have recently made significant strides in mathematical and code reasoning, yet their success has not transferred smoothly to the medical domain. While multiple factors contribute to this disparity, a critical issue is the inadequate focus on the quality of intermediate reflection steps, which is particularly crucial in high-stakes medical scenarios. To address this challenge, we propose Med-REFL, a Medical Reasoning Enhancement via self-corrected Fine-grained Reflection. Our method leverages a tree-of-thought approach to decompose medical questions into fine-grained reasoning paths, quantitatively evaluating each step and its subsequent reflections. These assessments enable automatic construction of direct preference optimization data, reducing reliance on expensive expert annotations while guiding models to identify and correct reasoning errors. Experimental results on the MedQA-USMLE benchmark demonstrate Med-REFL achieves consistent improvements, with average gains up to 4.11%. Notably, it further boosts the state-of-the-art performance of 7B/8B models by an additional 4.13%. Furthermore, Med-REFL exhibits strong generalization capabilities and robustness across several challenging medical question-answering datasets. Our work illustrates that prioritizing reflection quality leads to more accurate and trustworthy reasoning in medical AI applications.

Introduction: The Verification Bottleneck

The success of Large Language Models (LLMs) in domains like mathematics and programming is largely attributed to the availability of automated feedback. In mathematics, intermediate steps can be verified by calculators or symbolic solvers; in coding, compilers provide immediate error localization through tracebacks. However, the medical domain faces a significant "verification bottleneck." Validating clinical reasoning typically requires expensive expert annotation or cross-referencing complex, unstructured medical databases.

The verification bottleneck in medicine compared to mathematics and code reasoning.

Due to this bottleneck, current medical AI models often rely on outcome-based reinforcement learning, which can lead to "reward hacking"—where a model arrives at the correct answer through flawed logic—and "fake reflection," where a model superficially re-evaluates its thoughts only to reaffirm its initial errors.

Methodology: The Med-REFL Pipeline

To overcome these challenges, Med-REFL introduces a resource-efficient pipeline that automates the generation of high-quality reflection data without human expert labels. The framework consists of four key stages:

  1. Tree-of-Thoughts (ToT) Exploration: The model generates a diverse set of reasoning trajectories for a given medical question.
  2. Deterministic Structural Assessment: Instead of a complex reward model, Med-REFL uses the tree structure to calculate a Step Value ($v_{step}$) based on the success rate of subtrees. An Action Value ($v_{act}$) is then derived to quantify how much a specific reflection step improves the reasoning path.
  3. Preference Pair Construction: Using $v_{act}$, the system automatically identifies "Effective Reflections" (pivoting from wrong to right) and "Invalid Reflections" (failing to correct an error).
  4. Direct Preference Optimization (DPO): The model is fine-tuned on these pairs, learning to genuinely self-correct rather than simply reaffirming its first guess.
Overview of the Med-REFL pipeline, including trajectory generation, rearrangement, evaluation, and reflection generation.

Experimental Results

Med-REFL was evaluated across seven medical benchmarks, including MedQA-USMLE, PubMedQA, and GPQA-Med. The results demonstrate a consistent performance boost:

  • State-of-the-Art Gains: An average improvement of 3.59% across all benchmarks.
  • Model-Specific Success: The framework pushed Huatuo-o1-8B to 73.74% on MedQA, a significant 4.15% increase.
  • Generalization: Beyond medicine, the model showed a +9.94% gain on complex logic puzzles (Knights and Knaves), suggesting that Med-REFL instills a general meta-cognitive reasoning ability.

Key Insights

A notable finding is the "Reflector Paradox": smaller student models (e.g., Llama-3.1-8B) often serve as better reflectors for their own data than larger teacher models like GPT-4. This suggests that effective self-correction is most powerful when it operates within the model's own latent space. Furthermore, by explicitly training on "rejected" invalid reflections, Med-REFL successfully cures the "fake reflection" problem, forcing the model to weigh patient-specific evidence over statistical prevalence.

Conclusion

Med-REFL addresses the critical verification bottleneck in medical AI by prioritizing the quality of intermediate reflection steps. By automating the creation of fine-grained preference data, it enables models to learn robust self-correction skills, leading to more accurate and trustworthy clinical reasoning.

Summary updated

BibTeX
@misc{yang2025med,
  author = {Zongxian Yang and Jiayu Qian and Zegao Peng and Haoyu Zhang and Zhi-An Huang},
  title = {{Med-REFL: Medical Reasoning Enhancement via Self-Corrected Fine-grained Reflection}},
  year = {2025},
  url = {https://openreview.net/forum?id=IPoSJOizLX},
}
Figure