Adaptive Deep Reasoning: Triggering Deep Thinking When Needed

Yunhao Wang, Yuhao Zhang, Tinghao Yu, Can Xu, Feng Zhang, Fengzong LianarXiv 2025 · DOI

Introduction

Recent advancements in Large Language Models (LLMs), such as OpenAI’s o1 and DeepSeek-R1, have demonstrated the power of extensive Chain-of-Thought (CoT) processing for complex reasoning. However, these models often suffer from "overthinking"—expending significant computational resources on trivial queries where a direct answer would suffice. This paper introduces a novel framework for Adaptive Deep Reasoning, enabling models to autonomously decide whether a problem requires a long-thought reasoning chain or a quick, direct response.

The Problem: Computational Overthinking

Existing reasoning models typically apply the same level of depth to every prompt, regardless of difficulty. Current solutions to this inefficiency usually involve post-hoc pruning of reasoning chains or requiring users to manually toggle reasoning modes via specific prompts (e.g., "Please think deeply"). The core challenge addressed here is autonomy: how can a model evaluate a prompt and determine its own inference budget based on perceived complexity?

Methodology

The researchers developed a three-stage approach to build an adaptive model using a Qwen-2.5-Math-7B base.

1. Hybrid Supervised Fine-Tuning (SFT)

The model is first trained on a balanced dataset of 440k examples, split equally between long-CoT and short-CoT responses. To ensure the model can distinguish between these modes, the training data includes variations with and without explicit instructions.

Table 1: The four instruction modes used during Hybrid SFT to teach the model to distinguish between long and short reasoning paths.

2. Long-Short Adaptive Group-wise Reward

Using Group Relative Policy Optimization (GRPO), the model generates multiple samples for a given prompt. Complexity is defined empirically: if the model's short-CoT samples consistently achieve high accuracy, the problem is deemed "easy," and the reward system favors the short path. Conversely, if short-CoT accuracy is low, the reward shifts to favor long-chain reasoning.

3. Reasoning Mode Switching Loss ($L_{rmsl}$)

The decision to "think" is typically made at the very first token (e.g., <think>). Standard reinforcement learning often fails to optimize this specific binary choice effectively. The authors introduced a margin-ranking loss specifically for the first token's logits, forcing a clear distinction between the "long" and "short" paths based on the calculated problem complexity.

Key Results

The resulting model, RL-AR-RMSL, demonstrates a high degree of metacognitive flexibility across various mathematical benchmarks.

Table 2: Performance metrics of different SFT baselines, showing the accuracy and 'thinking rate' (frequency of long-CoT) before the final RL stages.
  • Efficiency on Easy Tasks: On the MATH-500 benchmark, the model utilized long-chain reasoning only 39% of the time, maintaining 89.2% accuracy while significantly reducing the average token count to ~2,486 per response.
  • Performance on Hard Tasks: On high-difficulty competition math (AIME 2024/2025), the model automatically switched to long-chain reasoning 100% of the time. It achieved 63.3% accuracy on AIME 2024, matching models that are hard-coded to always use long CoT.
  • Empirical Complexity: The model successfully learned to define complexity based on its own performance rather than static metadata or grade levels.

Conclusion

The Adaptive Deep Reasoning framework proves that a 7B parameter model can effectively manage its own inference budget. By focusing optimization on the initial decision-making token and using an adaptive reward system, the model achieves the accuracy of "heavy" reasoning models on difficult tasks while remaining as efficient as standard models on simple ones. Future work will explore extending this autonomous switching to non-mathematical domains like coding and creative writing.

Summary updated

BibTeX
@misc{wang2025adaptive,
  author = {Yunhao Wang and Yuhao Zhang and Tinghao Yu and Can Xu and Feng Zhang and Fengzong Lian},
  title = {{Adaptive Deep Reasoning: Triggering Deep Thinking When Needed}},
  year = {2025},
  eprint = {2505.20101},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.20101},
}
Figure