AdaThink-Med: Optimizing Inference-Time Compute for Medical Reasoning via Uncertainty Quantification

Shaohao Rui, Kaitao Chen, Weijie Ma, Xiaosong Wang

TL;DR

AdaThink-Med is an end-to-end reinforcement learning framework that dynamically calibrates the length of Chain-of-Thought (CoT) reasoning in medical LLMs based on problem difficulty and model uncertainty. By penalizing verbosity for simple queries and incentivizing deep exploration for complex cases, it slashes inference token consumption by up to 6.4× with virtually no loss in diagnostic accuracy.

What Problem Does This Paper Address?

Large Language Models (LLMs) utilizing extended Chain-of-Thought (CoT) reasoning have achieved remarkable success in complex clinical tasks. However, current reasoning models suffer from a major flaw: static computational expenditure. They apply the same exhaustive, token-heavy reasoning processes indiscriminately to both trivial questions (e.g., basic medical fact retrieval) and highly intricate diagnostic cases.

In real-world healthcare, this inefficiency is a dealbreaker. Clinical environments demand adaptability—ranging from time-sensitive emergency scenarios requiring rapid answers to complex pathologies demanding deep, structured analysis. Simply applying a blanket length penalty during training doesn't work either; it often leads to "length reward hacking," where the model collapses, spitting out short, grammatically broken, or incorrect answers just to maximize the brevity reward.

Methods

The authors introduce AdaThink-Med, a framework that adaptively scales inference-time compute within a single model without requiring external routers or classifiers.

The framework operates in two main phases:

  1. Uncertainty-Guided Difficulty Estimation: During training, the model generates multiple rollout trajectories for a given query. The system calculates token-level Shannon entropy across these rollouts. By averaging the entropy of the top-$K$ most uncertain tokens, it derives a sequence-level uncertainty score. This uncertainty is fused with the actual correctness of the answers to compute a dynamic Difficulty Score ($D_q$).
  2. Difficulty-Aware Length Calibration: This difficulty score modulates a piecewise reward function relative to a dynamic batch threshold (updated via an Exponential Moving Average).

The core innovation lies in its asymmetric reward design:

  • Easy + Correct: Penalizes verbosity to enforce concise answers.
  • Hard + Incorrect: Rewards longer reasoning chains to encourage deeper exploration.
  • Hard + Correct & Easy + Incorrect: Assigned a zero length reward, ensuring accuracy always dominates the gradient and preventing training collapse.
Figure 1. Overview of the AdaThink-Med framework. (a) Staged Adaptive Training: The training process consists of two stages. First, a Base Instruct Model is trained via standard Reinforcement Fine-Tuning (RFT) to establish medical reasoning capabilities. Subsequently, the model undergoes Adaptive RFT (Ada-RFT) to optimize reasoning efficiency. (b) Uncertainty-Guided Difficulty Estimation and Length Calibration: During the adaptive phase, the model generates multiple rollout outputs (O1 . . . OG). The framework simultaneously calculates standard rewards (correctness and format) and estimates output uncertainty via Top-K token entropies. By combining correctness (ci) and uncertainty (ei), the system estimates problem difficulty, which dynamically calibrates the length reward to incentivize concise answers for simple questions and extended reasoning for complex ones.

Datasets

  • Training: AlphaMed19k, which integrates the official training splits of MedQA (USMLE-style expert clinical questions) and MedMCQA (Indian medical entrance exam questions).
  • Evaluation: Evaluated across six public benchmarks spanning various difficulty levels: MedQA, MedMCQA, PubMedQA, MMLU-ProM (medical subset), GPQA-M (biomedical subset), and MedXpertQA.
  • Clinical & Multi-modal Validation: Tested on 796 real-world anonymized cardiac stroke cases and the MIMIC-CXR-2.0 dataset for radiology report generation.

Key Insights and Ideas

  • The "Overthinking" Cure: Up to 58% of questions in medical benchmarks can be answered accurately without extended reasoning. AdaThink-Med successfully identifies these "easy" cases using output-level uncertainty.
  • Spontaneous Mode Separation: Instead of relying on a hardcoded external classifier to route questions, AdaThink-Med's reward design naturally forces a single model to develop a bimodal distribution of response lengths. It effectively creates autonomous "thinking" and "non-thinking" modes.
  • Bypassing the Length-Reward Hack: Traditional greedy length penalties cause models to stop reasoning entirely, leading to catastrophic drops in accuracy. Fusing correctness with uncertainty provides a "performance compensation" mechanism that stabilizes reinforcement learning.
Figure 2. Length-reward hack during RL with greedy length calibration. Within each panel, accuracy (left y-axis) and average output length (right y-axis) are plotted against training step. (a) Closed-ended RL setup: both Kimi1.5 and ShortBetter collapse—accuracy and length drop sharply and do not recover, while AdaThink-Med (with performance compensation) preserves accuracy while compressing length. (b) Open-ended RL setup (following HuatuoGPT-o1): collapse persists even without candidate options, confirming that the failure is not an artifact of multiple-choice shortcuts. AdaThink-Med again maintains stable accuracy throughout training. For visual clarity, accuracy and length curves use distinct colors and markers.

Key Results

  • Massive Token Savings: AdaThink-Med achieved a 4.7× compression ratio on Qwen-2.5-7B (dropping average length from 497 to 106 tokens) and a 6.4× compression ratio on Llama-3.1-8B (dropping from 410 to 64 tokens), while maintaining competitive accuracy.
  • State-of-the-Art Efficiency: The framework consistently outperformed existing length-calibration methods (like Kimi1.5 and ShortBetter) across all benchmarks, achieving the highest Accuracy-Efficiency Score (AES).
Figure 3. (a) Output length distribution w and w/o length calibration. (b) Dataset selection results.
  • Clinical Validity: In a blind evaluation by three board-certified physicians, AdaThink-Med scored the highest in Response Accuracy (76.25%), Reasoning Sufficiency (89.00%), and Logical Soundness (86.40%), proving that compressing the text did not result in "shortcut hallucinations."

Limitations and Future Work

  • Entropy Calibration Dependency: The difficulty estimator relies heavily on the quality of the model's self-generated token entropy. If an LLM is severely miscalibrated, entropy becomes a weak proxy for actual difficulty.
  • Sequence vs. Step-Level: The current framework calibrates length at the sequence level. The authors note that integrating step-level verifiers (like Process Reward Models) could provide finer-grained control.
  • Single-Turn Limitation: The evaluation was restricted to single-turn QA. Extending this adaptive thinking to multi-turn clinical workflows remains an open challenge.

Summary updated

BibTeX
@misc{rui2025adathink,
  author = {Shaohao Rui and Kaitao Chen and Weijie Ma and Xiaosong Wang},
  title = {{AdaThink-Med: Optimizing Inference-Time Compute for Medical Reasoning via Uncertainty Quantification}},
  year = {2025},
  eprint = {2509.24560},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.24560},
}
Figure