TL;DR
Large language models (LLMs) often get stuck in "overthinking" – performing redundant reasoning steps that waste computation without improving accuracy. This paper introduces DyCon, a training-free method that dynamically models the evolving difficulty of a problem during reasoning. By leveraging LLMs' internal representations, DyCon intelligently controls the reasoning depth, significantly boosting efficiency without sacrificing performance.
What Problem Does This Paper Address?
Large Reasoning Models (LRMs) have shown impressive capabilities in complex tasks like math and coding by iteratively reflecting and exploring. However, this iterative process can lead to "overthinking," where models waste computational resources on redundant reasoning steps, especially for simpler problems or after a solution has already been found. Existing methods to combat this either use static difficulty estimates or require task-specific training, failing to adapt to the dynamic nature of reasoning. The core challenge is to enable LLMs to adapt their reasoning depth dynamically based on the problem's evolving difficulty, much like humans do.
Methods
DyCon tackles overthinking through a two-pronged approach:
- Explicit Modeling of Evolving Difficulty: The authors observe that problem difficulty isn't static; it changes throughout the reasoning process. They hypothesize that this evolving difficulty is encoded in the LLM's step-level embeddings. DyCon trains a lightweight, training-free linear regressor on a small dataset. This regressor learns to map step embeddings to a continuous difficulty score, using the remaining generation length as a proxy for difficulty. This allows DyCon to estimate difficulty dynamically at each reasoning step.
- Difficulty-Aware Dynamic Reasoning Control: Based on the estimated difficulty, DyCon dynamically adjusts the LLM's behavior. Specifically, it modifies the logits of "reflection keywords" (tokens that signal continued reasoning). If the estimated difficulty is low, DyCon reduces the probability of these keywords, encouraging earlier termination and thus reducing token usage. Conversely, if difficulty is high, suppression is weakened, allowing for deeper exploration. This is a "soft" control mechanism, aiming to balance efficiency and accuracy.
Datasets
DyCon was evaluated on a wide range of benchmarks, including:
- Mathematical Reasoning: Math-500, AIME2024, AIME2025, AMC23, GSM8K, Olympiad Bench.
- General Question Answering: GPQA Diamond, CommonSenseQA, StrategyQA, TriviaQA.
- Code Reasoning: LiveCodeBench.
The difficulty estimator was trained on a subset of the MATH dataset.
Key Insights and Ideas
- Difficulty is Dynamic: The paper provides strong empirical evidence that problem difficulty isn't fixed but evolves during the reasoning process. This is a crucial insight, moving beyond static difficulty assessments.
- Embeddings Encode Difficulty: LLMs' internal step-level embeddings linearly encode this evolving difficulty. This means the model inherently "knows" how difficult a problem is at each stage, and this knowledge can be leveraged without further training.
- Reasoning Length as a Proxy: The remaining generation length serves as a surprisingly robust and generalizable proxy for perceived difficulty, even across different datasets and models. This is key because explicit difficulty labels are often unavailable.
- Soft Control is Key: DyCon's "soft" modulation of reflection tokens, rather than hard termination, is crucial. It allows for fine-grained control, preventing premature stopping on complex problems and avoiding accuracy degradation.
Key Results
DyCon demonstrated significant improvements across various models (4B to 32B parameters) and benchmarks:
- Efficiency: Achieved up to 40.6% token reduction on mathematical benchmarks and up to 52.5% token reduction on non-mathematical benchmarks, without sacrificing accuracy.
- Accuracy: Maintained or even improved accuracy compared to baselines, with gains up to 6.7% absolute accuracy on mathematical tasks and 8.6% on non-mathematical tasks.
- Generalization: The difficulty estimator showed strong cross-domain transferability, performing well on non-math benchmarks even when trained solely on math data.
- Robustness: The method was robust to different model architectures and showed consistent performance across various reasoning domains.
Limitations and Future Work
- Regressor Limitations: While the linear regressor is effective, more complex nonlinear models (like MLPs) showed some improvements, suggesting potential for further gains with more expressive regressors, though at the cost of increased complexity.
- Vocabulary Sensitivity: While DyCon is robust to the choice of reflection tokens, an optimized, model-specific vocabulary could offer further benefits.
- Non-Reasoning Models: DyCon's core strength lies in mitigating overthinking in reasoning models. For non-reasoning models, which tend to be short on tokens but lack depth, the suppression mechanism is less effective, though the difficulty estimation component remains useful for adaptive routing.
- Future Directions: The authors suggest extending DyCon to multi-modal scenarios and exploring more principled optimization objectives for discovering control vocabularies. They also highlight the potential for using DyCon's difficulty estimation for adaptive routing or compute allocation in scenarios with non-reasoning models.
Summary updated