TL;DR
Long Chain-of-Thought (CoT) language models achieve state-of-the-art reasoning performance but suffer from massive inference costs due to "over-thinking" and redundant reasoning steps. ThinkPrune introduces a simple reinforcement learning (RL) strategy with a hard token limit to train models to compress their thinking process. The result is a dramatic reduction in reasoning length (up to 60%) with virtually no drop in accuracy.
What Problem Does This Paper Address?
Recent breakthroughs in inference-time scaling—exemplified by models like OpenAI's o1 and DeepSeek-R1—demonstrate that letting LLMs "think" longer via reinforcement learning yields massive performance gains on complex tasks. However, this deep thinking comes at a high computational cost. For instance, on the MATH500 benchmark, a distilled 1.5B model can average over 15,000 tokens per solution, even though standard LLMs can solve many of these problems in under 1,000 tokens. This phenomenon is known as over-thinking, where models get stuck in loops of redundant self-verification, hesitation, and paraphrasing.
Prior attempts to curb this verbosity relied on budget-forcing—simply cutting the model off at test time by appending an end-of-thought token when a budget is reached. As shown in Figure 1, this brute-force truncation causes severe performance drops because the model is forced to guess an answer mid-thought without adapting its internal reasoning strategy.
ThinkPrune addresses this gap by asking: Can we train an LLM to inherently optimize and consolidate its reasoning chain for shorter lengths?
Methods
ThinkPrune shifts the length constraint from test-time truncation to RL training-time clipping.
- Reinforcement Learning with Length Clipping: The authors build on the Group Relative Policy Optimization (GRPO) framework used by DeepSeek-R1. They introduce a strict token limit ($L$) during training. If a model's generation exceeds $L$, the output is clipped before the reward is calculated. Because a clipped response cannot produce a valid, extractable final answer, the model receives a zero reward. This penalizes wordiness and forces the model to find the most efficient path to the solution.
- Iterative Length Pruning: Dropping the token budget too drastically all at once can break the model's reasoning capabilities. To prevent this, ThinkPrune uses an iterative schedule ($L_1 > L_2 > \dots > L^*$), gradually tightening the token limit across multiple rounds of RL. Checkpoints are selected using a validation set, optimizing for the shortest average output length that stays within a 10% relative accuracy drop from the baseline.
- Length-Aware Prompting: A simple system prompt (e.g., "The output of the assistant should be within {N} tokens.") is included during training to explicitly signal the budget to the model.
Datasets
- Training: A high-quality subset of 2,470 historical AIME (American Invitational Mathematics Examination) and AMC (American Mathematics Competitions) questions preprocessed from the Prime framework.
- Evaluation: Four standard mathematical reasoning benchmarks: MATH-500, AIME24, AMC23, and OlympiadBench.
Key Insights and Ideas
- What actually gets pruned? By analyzing keyword frequencies, the authors discovered that ThinkPrune specifically targets "peripheral" steps. Phrases indicating hesitation ("Wait...", "But wait...") and excessive self-correction drop significantly. Meanwhile, core computational steps ("Therefore...") remain intact or even increase in density.
- Bypassing the fluff: Qualitative analysis shows that pruned models skip tedious problem paraphrasing and jump straight into structured problem-solving, reducing the "problem understanding" phase by hundreds of tokens.
- Dynamic scaling at test time: Interestingly, even when trained with a strict token limit, the models retain the ability to exceed that limit at test time when facing exceptionally difficult problems. This proves that ThinkPrune doesn't destroy the model's capacity for deep thinking; it just eliminates unnecessary steps for easier problems.
Key Results
ThinkPrune achieves an unprecedented performance-length tradeoff across multiple model sizes:
- DeepSeek-R1-Distill-Qwen-1.5B (Unsaturated Model): ThinkPrune cut the average generation length by over 65% (from 10,355 down to 3,574 tokens) while slightly improving average accuracy across the four benchmarks (from 56.8% to 57.4%).
- DeepScaleR-1.5B-Preview & QwQ-32B (Saturated Models): For models already heavily optimized with RL, ThinkPrune still reduced token usage by 40–50% with only a minor (~2%) drop in accuracy.
As illustrated in the performance-length frontier (Figure 2), the generation length drops sharply in the early stages of training with negligible performance impact, highlighting massive latent redundancy in long-CoT models.
Limitations and Future Work
While highly effective for smaller models, the authors noted that larger, fully saturated models like QwQ-32B hit a sharp "critical threshold." Pushing the token budget past this threshold causes a steep drop in performance, and the iterative strategy struggled to recover it. The authors hypothesize that larger models might require more sophisticated hyperparameter tuning or larger training datasets to safely compress their complex reasoning structures. Due to high computational costs, optimizing ThinkPrune for 30B+ models remains an open direction for future work.
Summary updated