NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ThinkPrune: Pruning Long Chain-of-Thought of LLMs via Reinforcement Learning

Bairu Hou, Yang Zhang, Jiabao Ji, Yujian Liu, Kaizhi Qian, Jacob Andreas, Shiyu Chang

TL;DR

Long Chain-of-Thought (CoT) reasoning models often suffer from severe "overthinking"—spending thousands of redundant tokens on endless self-verification and trivial problem restatements. ThinkPrune resolves this by training reasoning LLMs via reinforcement learning (RL) with a strict token clipping limit: any output exceeding the threshold is truncated before reward evaluation, yielding a reward of zero. Coupled with an iterative schedule that gradually tightens length limits, ThinkPrune cuts thinking length by roughly 50% to 65% across multiple models while preserving or even improving task performance.

What Problem Does This Paper Address?

Inference-time scaling through reinforcement learning (e.g., DeepSeek-R1, OpenAI o1/o3) significantly boosts reasoning capabilities by teaching models to verify steps, explore alternate paths, and self-correct. However, this creates an expensive efficiency problem: models frequently generate 10,000 to 15,000+ tokens even for problems solvable in under 1,000 tokens.

Prior remedies have notable drawbacks:

  • Test-time budget forcing forcibly appends an end-of-thinking delimiter when a token limit is hit, which cuts the model off mid-thought and causes steep performance drops.
  • Length-penalty rewards require delicate reward engineering and hyperparameter tuning to avoid destabilizing RL training.

The authors ask: Can we train long-CoT models to natively adapt to smaller token budgets and naturally prune redundant thinking without sacrificing accuracy?

Methods

ThinkPrune uses Group Relative Policy Optimization (GRPO) to fine-tune existing long-reasoning models using a simple hard-clipping constraint:

  1. Reward via Length Clipping: The training reward is binary based on whether an extracted final answer is correct: $$\mathcal{R}(Y, q; L) = \begin{cases} 1 & \text{if an answer can be extracted from } \text{clip}(Y, L) \text{ and is correct} \\ 0 & \text{otherwise} \end{cases}$$ If a model exceeds token limit $L$, its response is clipped before answer parsing. Even if the reasoning was correct, clipping strips the final answer, penalizing the model with a reward of $0$.

  2. Explicit Conditioning: A simple system prompt is added during training (e.g., "The output of the assistant should be within {N} tokens.").

  3. Iterative Length Pruning: To prevent catastrophic performance loss from sudden, overly stringent budgets, the authors introduce a gradual schedule ($L_1 > L_2 > \dots > L^*$, e.g., $4\text{k} \to 3\text{k} \to 2\text{k}$). At each stage, the checkpoint meeting an accuracy tolerance (at most a relative 10% drop on validation sets) with the shortest average length is chosen to seed the next pruning round.

Datasets

  • Training: A compact dataset of 2,470 historical math competition problems drawn from AMC and AIME (curated from the Prime dataset).
  • Validation: AIME22 and AIME23 (used for selecting stage checkpoints).
  • Math Evaluation: MATH-500, AIME24, AMC23, and OlympiadBench.
  • Cross-Domain Generalization: GPQA, MMLU, and MMLU-Pro (to assess transfer beyond mathematics).
  • No new benchmarks were created; standard open benchmarks were utilized.

Key Insights and Ideas

  • Trimming Fluff, Keeping the Substance: Qualitative and frequency analyses show that pruning sharply reduces hesitation markers ("Wait...", "Hold on..."), repeated sanity checks, and lengthy re-reading of the prompt. Meanwhile, core computational steps and theorem applications remain intact—or even increase in relative density.
  • Models Still Think Deeply When Necessary: Even when trained with a fixed 2k or 4k token clipping ceiling, models still dynamically scale test-time compute: on difficult benchmarks (AIME24), generation length naturally expands beyond the training cap, while drastically shrinking on simpler ones (MATH-500).
  • Preserved Readability: Heavy RLVR can sometimes degrade model language into cryptic pseudo-code or mixed-language babble (as seen in R1-Zero). Perplexity evaluations show that ThinkPrune models retain readability comparable to their base models.
  • Simplicity Outperforms Complex Penalties: Simple truncation during RL outperforms continuous length-penalty reward baselines (like Kimi-1.5 and EfficientReason) while requiring zero reward weighting hyperparameters.

Key Results

Experiments evaluated unsaturated models (DeepSeek-R1-Distill-Qwen-1.5B) and saturated RL models (DeepScaleR-1.5B-Preview, QwQ-32B):

  • DeepSeek-R1-Distill-Qwen-1.5B:
  • Average token length plummeted from 10,355 to 3,574 tokens (a ~65% reduction).
  • Average math accuracy slightly improved from 56.8% to 57.4%.
  • On AIME24, reasoning length dropped from 15,484 to 5,631 tokens with only a 2.3% drop in accuracy (29.4% $\to$ 27.1%).
  • DeepScaleR-1.5B-Preview & QwQ-32B:
  • DeepScaleR length dropped from 5,914 to 3,370 tokens with a modest accuracy drop (65.7% $\to$ 63.2%).
  • QwQ-32B length was nearly halved from 8,763 to 4,494 tokens (85.6% $\to$ 82.4% avg accuracy).
  • Zero-Shot Domain Transfer: Despite training exclusively on math competitions, the pruned 1.5B model maintained accuracy within $\pm 1.5\%$ on GPQA, MMLU, and MMLU-Pro while slashing token output by 55–65% (e.g., GPQA generation shrank from 10,072 to 4,639 tokens).

Limitations and Future Work

  • Performance Cliffs on Larger Models: For QwQ-32B, the authors identified a sharp performance drop below a critical length threshold (~8k tokens on AIME24), where iterative pruning failed to recover performance under overly tight budgets.
  • Compute Constraints: Iterative multi-stage RL on large models (32B+) is computationally heavy; extensive hyperparameter search on larger architectures was left to future study.
  • Domain Scope: Training was performed purely on math competition data; adapting the method directly to general agentic search, coding, or complex instruction-following remains an open avenue.

Summary updated

BibTeX
@article{hou2025thinkprune,
  author = {Bairu Hou and Yang Zhang and Jiabao Ji and Yujian Liu and Kaizhi Qian and Jacob Andreas and Shiyu Chang},
  title = {{ThinkPrune: Pruning Long Chain-of-Thought of LLMs via Reinforcement Learning}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=V51gPu1uQD},
}
Figure