Abstract
Large Reasoning Models (LRMs) represent a significant advancement in AI, utilizing test-time scaling to generate extended reasoning paths that achieve state-of-the-art performance in complex tasks. However, these models often suffer from "overthinking"—generating unnecessarily long and convoluted reasoning traces for simple problems. We introduce EDIT (Efficient Dynamic Inference Trimming), a test-time scaling method that guides LRMs to identify the shortest correct reasoning paths. By employing constraint-guided generation and a dual-goal search algorithm, EDIT balances conciseness and correctness. Our experiments across various models and benchmarks demonstrate that EDIT significantly improves reasoning efficiency, reducing token usage by over 50% in some cases while maintaining or even improving accuracy.
Introduction: The Overthinking Bottleneck
The recent "System 2" revolution in AI, characterized by models that "think" before responding, has led to massive leaps in mathematical and logical performance. However, models like OpenAI’s o1 and DeepSeek-R1 are prone to overthinking. Because they are trained to prioritize thoroughness, they often apply complex, multi-step reasoning to trivial questions. This is not merely an aesthetic issue; computational overhead grows quadratically with output length, and excessively long reasoning traces hinder interpretability. The challenge lies in finding the "Pareto optimal" point: the shortest reasoning chain that does not sacrifice correctness.
Methodology: Efficient Dynamic Inference Trimming (EDIT)
EDIT is a test-time scaling approach that does not require retraining or fine-tuning. It centers on a Dual-Goal Search algorithm designed to navigate the trade-off between brevity and accuracy.
The Dual-Goal Search Algorithm
- Constraint-Guided Prompting: The model is prompted with explicit length constraints (e.g., "Solve this in at most X steps").
- Binary Search with Patience: The algorithm performs a binary search over the number of allowed reasoning steps, starting with a loose constraint and gradually tightening it.
- Consistency Checking: EDIT monitors answer confidence via majority voting. If the model produces the same answer under a tighter constraint, the search continues. If the answer changes or the model fails, a "patience" hyperparameter ($\beta$) determines whether to re-sample or back off to a looser constraint.
- Statistical Indicators: To handle sampling noise, EDIT uses a composite length statistic ($lstat$) considering the minimum, lower quartile, and median lengths of successful paths.
Experimental Setup
We evaluated EDIT across three prominent mathematical reasoning benchmarks:
- GSM8K: Grade school math word problems.
- MATH500: A subset of the MATH dataset covering various difficulty levels.
- AIMO: High-difficulty problems from the American Invitational Mathematics Examination (AIME) 2022–2024.
Testing was conducted on seven models, including the Qwen3 series, QwQ-32B, Phi-4-Reasoning, and DeepSeek-R1 distilled models.
Key Insights and Results
The "Critical Point" of Reasoning
Our analysis revealed a "critical point" in reasoning length. As length constraints are tightened, there is a threshold where incorrect answers begin to dominate. EDIT is specifically designed to locate this tipping point automatically.
Performance Gains
EDIT consistently outperformed standard Chain-of-Thought (CoT) and baselines like Best-of-N (BoN):
- Token Savings: On GSM8K with Qwen3-32B, EDIT reduced reasoning length by 54.1% while slightly increasing accuracy (+0.2%).
- Efficiency (AEU): EDIT achieved the highest Accuracy per Effective Length (AEU) across almost all models. For LLaMA-3.1-8B on MATH500, it achieved a 17.6% length reduction compared to the best baseline.
- Robustness: Even standard LLMs (non-LRMs) like LLaMA-3.1-8B showed latent "shortcut" reasoning abilities when guided by EDIT's constraints.
Conclusion
EDIT demonstrates that LRMs are highly sensitive to length guidance and can be efficiently steered toward conciseness at test time. By identifying the shortest correct reasoning paths, EDIT produces compact, informative outputs that improve both computational efficiency and user experience. Future work will explore the integration of these statistical trimming methods with system-level optimizations to further enhance the next generation of reasoning models.
Summary updated