Think Before You Prune: Self-Reflective Structured Pruning for Reasoning Language Models

Ziyan Wang, Enmao Diao, Qi Le, Pu Wang, Guanchu Wang, Minwoo Lee, Shu-Ping Yeh, Li YangarXiv 2025 · DOI

Abstract

Pruning Reasoning LLMs (RLMs) like Qwen3 or DeepSeek-R1 is notoriously difficult; even moderate sparsity often causes their "chain-of-thought" reasoning to collapse. This paper introduces RESP (Self-Reflective Structured Pruning), a framework that preserves reasoning by using the model’s own self-generated reasoning traces as calibration data and refreshing that data as the model becomes sparser. The result is a pruned model that maintains near-dense accuracy at 30% sparsity and outperforms existing baselines by over 60% at higher sparsity levels.

Introduction

Reasoning LLMs (RLMs) achieve state-of-the-art performance by generating lengthy "chain-of-thought" (CoT) sequences. However, these models are massive and computationally expensive to run. While pruning—the process of removing unimportant parameters—is a standard way to compress models, it has historically failed when applied to RLMs.

The authors identify a "brittleness" in RLMs: even at 20% sparsity, standard pruning methods cause these models to make elementary math errors or generate repetitive, incoherent "thoughts." The core issue is a mismatch: existing pruning pipelines use generic text (like Wikipedia or C4) to decide which parts of the model are "unimportant." For a model whose primary job is multi-step logical derivation, generic text doesn't capture the specific internal dynamics used during reasoning.

The RESP Framework

The authors propose RESP, which shifts the pruning focus from "how to prune" to "what to calibrate on." RESP focuses on structured pruning (removing entire attention heads or MLP channels), which is more hardware-friendly than unstructured pruning and leads to actual wall-clock speedups on standard GPUs. It consists of three main pillars:

1. Self-Reflective Calibration

Instead of using human-written datasets or generic corpora, RESP prompts the model with task-specific questions (e.g., math problems) and uses the model’s own generated reasoning traces as the calibration data. This ensures the pruning algorithm "sees" the model's actual inference distribution.

2. Decode-Only Gradient Importance

Standard methods often calculate importance based on the entire sequence (prompt + response). RESP uses a "decode-only" loss, masking out the prompt tokens. This forces the importance estimation to focus strictly on the tokens generated during the "thinking" phase.

3. Progressive Regeneration

As a model is pruned, its "way of thinking" changes. Calibration data generated by the original dense model becomes "stale" as the model gets sparser. RESP periodically pauses the pruning process to regenerate fresh reasoning traces from the currently pruned model, keeping the calibration aligned with the model's evolving behavior.

Experimental Setup

The researchers evaluated their method primarily on Qwen3-8B, a modern reasoning-optimized model. They used two benchmark datasets for both calibration and evaluation:

  • GSM8K: Grade-school math word problems requiring multi-step reasoning.
  • MathQA: A more complex dataset of multiple-choice math problems.

They compared RESP against two strong baselines: Wanda (an activation-based method) and GISP (a gradient-based global pruning method).

Key Results and Insights

RESP demonstrates a massive leap in performance over existing state-of-the-art pruning methods:

  • Near-Lossless at 30%: On GSM8K, RESP maintains 91.36% accuracy at 30% sparsity, while the dense model is at 96.74%. In contrast, the popular Wanda method collapses to just 16.38% at this level.
  • Dominance at High Sparsity: At 40% sparsity, RESP achieves 81.27% on GSM8K and 59.60% on MathQA. This surpasses the strongest baseline (GISP) by 66.87% and 47% respectively.
  • The "Accuracy Cliff": There is a pronounced performance drop-off around 40% sparsity. The authors discovered this is largely due to "calibration drift." By regenerating the calibration data at milestones (e.g., at 30% sparsity), they were able to "push back" this cliff significantly. The "Regeneration" step alone accounted for an 18% improvement in accuracy when moving from 30% to 40% sparsity.

Conclusion and Future Work

The success of RESP highlights that for reasoning models, the distribution of calibration data is as important as the pruning algorithm itself. While generating new reasoning traces adds computational overhead, it is significantly cheaper than full fine-tuning. Future work is needed to see if these insights hold for "frontier" models like OpenAI's o1 or DeepSeek-R1 and how well RESP preserves performance in other reasoning domains like symbolic logic or complex coding tasks.

Summary updated

BibTeX
@misc{wang2025think,
  author = {Ziyan Wang and Enmao Diao and Qi Le and Pu Wang and Guanchu Wang and Minwoo Lee and Shu-Ping Yeh and Li Yang},
  title = {{Think Before You Prune: Self-Reflective Structured Pruning for Reasoning Language Models}},
  year = {2025},
  eprint = {2512.02185},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.02185},
}
Figure