Optimizing Inference-Time Compute for Medical Reasoning via Uncertainty Quantification

Shaohao Rui, Kaitao Chen, Weijie Ma, Xiaosong WangICML 2026

Introduction

Recent breakthroughs in inference-time scaling, such as DeepSeek-R1 and OpenAI’s o1, have demonstrated that allowing large language models (LLMs) to "think" via extended Chains-of-Thought (CoT) significantly enhances their reasoning capabilities. However, a major limitation of these models is their static computational expenditure. They often apply lengthy, token-heavy reasoning processes indiscriminately, spending hundreds of tokens "overthinking" straightforward factual queries that require minimal deliberation.

In the medical domain, this inefficiency is a critical bottleneck. Clinical environments encompass a wide spectrum of scenarios, ranging from time-sensitive emergencies that demand split-second retrieval to complex diagnostic puzzles requiring deep, multi-step analysis. Existing solutions typically rely on external routers or manual labels to dictate when a model should engage in deep reasoning, adding architectural complexity and limiting scalability. To address this, researchers have introduced AdaThink-Med, an end-to-end framework that bakes adaptive reasoning directly into the model's weights via uncertainty-guided length calibration.

Methodology: The AdaThink-Med Framework

AdaThink-Med enables medical LLMs to adaptively scale their "thinking" based on query complexity. It achieves this through a novel reward mechanism integrated during Reinforcement Fine-Tuning (RFT). The framework relies on three core components:

  1. Uncertainty-Guided Difficulty Estimation: Rather than relying solely on the correctness of an answer, the system calculates the Shannon entropy of the top-K most uncertain tokens within a response. High entropy indicates that the model is "unsure," serving as an internal proxy for problem difficulty.
  2. Piecewise Reward Design: The core innovation of AdaThink-Med is its asymmetric reward function:
  3. Easy + Correct: The model is penalized for verbosity and rewarded for brevity.
  4. Hard + Incorrect: The model is incentivized to explore longer reasoning chains to arrive at the correct answer.
  5. Safety Quadrants (Hard + Correct / Easy + Incorrect): To prevent "reward hacking"—such as the model offering a short but lucky guess or a long but hallucinated response—the length reward is zeroed out in these scenarios.
  6. Staged Adaptive Training: The model first undergoes standard RFT to maximize its baseline reasoning capabilities, followed by "Adaptive RFT" to calibrate its reasoning length based on the piecewise reward design.

Datasets and Evaluation

The framework was trained and evaluated across a comprehensive spectrum of medical knowledge:

  • Training: The model utilized AlphaMed19k, which integrates training splits from USMLE-style questions (MedQA) and Indian medical exams (MedMCQA).
  • Evaluation: Performance was benchmarked across six public datasets, including PubMedQA, MMLU-ProM (medical subset), GPQA-M (graduate-level biology/medicine), and MedXpertQA.
  • Real-World Validation: The system was tested on a curated dataset of 796 anonymized cardiac stroke cases from four hospitals, which required free-text diagnoses and treatment plans.

Key Findings and Results

Massive Efficiency Gains with Performance Parity

AdaThink-Med dramatically reduces computational overhead without sacrificing diagnostic accuracy. It achieved a 4.7× token reduction on the Qwen-7B backbone and a 6.4× reduction on the Llama-3.1-8B backbone. Despite this massive compression, the model maintained or slightly improved accuracy, registering a +0.25% gain on the Qwen architecture. On the Accuracy-Efficiency Score (AES), AdaThink-Med significantly outperformed existing efficiency methods like Kimi1.5 and ShortBetter.

Emergence of Bimodal Reasoning

A striking outcome of the training process is the natural emergence of bimodal reasoning. Without any external classifier, the model develops distinct "thinking" and "non-thinking" modes. It autonomously learns to bypass CoT for simple factual retrieval while engaging in deep reasoning for complex clinical cases.

Clinical Rigor and Training Stability

The researchers discovered that applying "greedy" length penalties (simply instructing the model to be shorter) causes accuracy to collapse. Stable training requires "performance compensation"—rewarding length when the model struggles. Furthermore, human evaluations by board-certified physicians confirmed that AdaThink-Med preserves "Logical Soundness" (86.4%) far better than baseline efficiency models, which often resort to shortcut hallucinations. In the real-world cardiac stroke study, AdaThink-Med achieved the highest accuracy and logical soundness while minimizing redundancy.

Limitations and Future Directions

While AdaThink-Med presents a significant leap forward, the authors note several areas for future exploration:

  • Entropy Calibration: The system relies on internal entropy as a proxy for difficulty. If a model is poorly calibrated (i.e., "confidently wrong"), the difficulty estimation may falter.
  • Step-Level Verification: The current framework evaluates uncertainty at the sequence level. Transitioning to step-level verification using Process Reward Models could further enhance logical soundness.
  • Multi-Turn Dialogues: Current evaluations focus primarily on single-turn QA. Future research must investigate how these adaptive reasoning patterns perform in multi-turn clinical dialogues.
  • Architectural Fragility: The Llama backbone required additional n-gram repetition penalties to prevent it from exploiting the length reward via degenerate repetition, indicating that certain architectures are more susceptible to reward hacking than others.

Summary updated

BibTeX
@inproceedings{rui2026optimizing,
  author = {Shaohao Rui and Kaitao Chen and Weijie Ma and Xiaosong Wang},
  title = {{Optimizing Inference-Time Compute for Medical Reasoning via Uncertainty Quantification}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=zlJehQJATy},
}
Figure