TL;DR
OS-Pruner is a lightweight plug-in framework that tackles "computational overthinking" in Large Language Models (LLMs) by framing Chain-of-Thought (CoT) pruning as an optimal stopping problem. By dynamically balancing final-answer accuracy against token cost, it reduces reasoning chain lengths by 20–60% across various benchmarks with virtually no loss in accuracy.
What Problem Does This Paper Address?
Chain-of-Thought (CoT) prompting allows LLMs to solve complex problems by generating intermediate reasoning steps. However, these models frequently suffer from "computational overthinking"—continuing to generate tokens long after the correct answer has been effectively determined. They repeat arguments, over-verify settled conclusions, or pursue low-value side tracks, which significantly increases latency and inference costs.
Existing solutions either impose rigid, externally mandated token budgets or use simple classification thresholds (stopping when the model is "confident enough"). These approaches fail to dynamically weigh whether the cost of generating the next step is actually worth the potential boost in accuracy.
Methods
The authors frame CoT pruning as a sequential decision problem governed by an optimal stopping formulation. At the end of each reasoning step (e.g., a paragraph boundary), the system decides whether to stop and output the final answer or pay the token cost to continue reasoning.
-
Objective Function: The policy is trained to maximize an explicit utility function: $$r(y_{\le i}|x) = A(y_{\le i}|x) - \lambda L(y_{\le i})$$ where $A$ is the final answer accuracy (1 for correct, 0 for incorrect), $L$ is the token length generated up to that step, and $\lambda$ is a user-defined scalar parameter controlling the accuracy-efficiency trade-off.
-
Lightweight Architecture: The base reasoning model remains completely frozen. OS-Pruner simply adds a small linear policy head to the last hidden state and fine-tunes only the final $n=2$ self-attention layers. At inference time, this policy is only invoked at paragraph boundaries, making it highly efficient.
- Progressive Training: To prevent the model from getting stuck in a local minimum where it always chooses to continue to the end, the authors use a progressive training strategy that anneals $\lambda$ from a moderately high value down to 0 over the course of training.
Datasets
- Training: The policies were trained on the DeepScaleR-Preview-Dataset, which consists of approximately 40,000 math problems sourced from AIME, AMC, Omni-MATH, and Still.
- Evaluation: The framework was evaluated on three distinct mathematical benchmarks representing different difficulty tiers:
- GSM8K: Grade-school level math word problems (easy).
- MATH-500: Competition-level mathematics (medium).
- AIME24/25: Olympiad-style problems (hard).
Key Insights and Ideas
- Classification vs. Optimal Stopping: Traditional early-exit methods treat stopping as a classification problem (i.e., "Is the current answer confident enough?"). OS-Pruner demonstrates that this is fundamentally sub-optimal because the continuation value is state-dependent. Two different reasoning paths might have the exact same current accuracy, but one might have a highly promising future path while the other is a dead end. Theorem 1 mathematically proves that classification thresholds can lose an arbitrarily large amount of value compared to an optimal stopping approach.
- Problem-Dependent Budgets: Instead of forcing an external token budget, OS-Pruner naturally adapts to problem difficulty. On easier datasets (GSM8K), it aggressively prunes up to ~60% of tokens, whereas on highly complex tasks (AIME), it behaves conservatively because extra computation is genuinely valuable.
- Brevity-Tuned Models Still Overthink: Even when applied to models already optimized for conciseness via model-side reinforcement learning (like DRPO-7B), OS-Pruner still yields substantial efficiency gains, showing that output-side pruning provides complementary value.
Key Results
Across diverse base models (DeepSeek-R1-Distill-Qwen-7B, GPT-OSS-20B, and DRPO-7B), OS-Pruner consistently lies on or near the Pareto frontier, outperforming baselines like Classification Probes, Answer Convergence, and FlashThink.
For DeepSeek-R1-Distill-Qwen-7B at its best operating point:
- GSM8K: Slashed reasoning length by 59.3% while only shifting accuracy by -0.7%.
- MATH-500: Reduced length by 52.8% while actually improving accuracy by +2.7% (by cutting out confusing overthinking paths).
- AIME: Reduced length by a conservative 6.9%, preserving the deep thinking required for Olympiad problems.
Limitations and Future Work
- Domain Specificity: The empirical evaluation is strictly limited to mathematical reasoning tasks. Its efficacy on other reasoning-heavy domains like code generation or scientific reasoning remains to be explored.
- Scale: The largest model tested was 20B parameters; validating OS-Pruner on frontier-scale models (e.g., >100B parameters) is necessary to confirm if the overthinking patterns and pruning benefits hold true at scale.
- Instruction Following Dependencies: The method relies on the model's ability to immediately emit a final answer when stopped early. For some smaller or less instruction-tuned models (like DRPO-7B and DeepSeek-R1-Distill-Qwen-7B), stopping early occasionally caused them to "compensate" by continuing to reason inside the final answer block unless strictly forced with rigid prompt formatting.
Summary updated