Can Pruning Improve Reasoning? Revisiting Long-CoT Compression with Capability in Mind for Better Reasoning

Shangziqi Zhao, Jiahao Yuan, Jinyang Wu, Zhenglin Wang, Guisong Yang, Usman NaseemarXiv 2025

TL;DR

Distilling the verbose, self-reflective "Long Chain-of-Thought" (Long-CoT) reasoning of large language models into Small Language Models (SLMs) often backfires because SLMs lack the capacity to process such lengthy contexts. This paper introduces Prune-on-Logic, a framework that converts linear reasoning chains into logic graphs to selectively prune low-utility steps. Surprisingly, completely pruning the verification and self-correction steps not only saves computational tokens but significantly boosts the final reasoning accuracy of the distilled SLMs.

What Problem Does This Paper Address?

State-of-the-art models like OpenAI's o1 and DeepSeek-R1 achieve remarkable reasoning performance by generating extended, internal "thinking" paths before outputting an answer. However, these Long-CoT traces are highly verbose, filled with repetitive self-reflections, trials, and errors.

When researchers try to distill this capability into Small Language Models (SLMs, typically $\le$ 8B parameters) via Supervised Fine-Tuning (SFT), the SLMs get overwhelmed. They lack the cognitive capacity to filter out the noise from the core logic. Traditional compression methods operate at the token level (e.g., deleting words based on prompt compression or perplexity), which is inherently lossy and frequently discces critical steps needed to solve complex problems. This paper investigates whether structure-aware, logical pruning can compress these reasoning chains in a way that aligns with an SLM's actual capacity.

Methods

The authors propose Prune-on-Logic, a framework that treats reasoning data as a structured graph rather than a flat string of text.

Figure 2: Overview of the Prune-on-Logic framework. Given a Long-CoT sequence, we build a logic graph that captures deductive dependencies and, through self-pruning under logical equivalence constraints, scores and eliminates low-impact reasoning steps. We explore three pruning strategies—All-chain, Reasoning-only, and Verification-only—and fine-tune SLMs on the compressed CoTs to enhance both efficiency and reasoning robustness.

The method consists of three main phases:

  1. Logic Unit Segmentation: A teacher LLM parses the linear Long-CoT text into two distinct categories: logic nodes (calculations, algebraic steps, conclusions) and rhetorical connections (fillers, transitions, metacognitive phrases).
  2. Equivalent Logic Graph Reconstruction: The segmented units are mapped into a Directed Acyclic Graph (DAG) that explicitly captures the deductive dependencies between reasoning steps.
  3. Self-Pruning via Loss-Based Ranking: To determine which steps are safe to remove, a frozen, pre-SFT SLM calculates a semantic utility score for each candidate node. This score measures the token-level perplexity difference when a node is retained versus when it is pruned.

The authors systematically evaluated three targeted pruning strategies:

  • All-chain: Pruning low-scoring nodes indiscriminately across the entire graph.
  • Reasoning-only: Pruning intermediate derivation steps while keeping final conclusions and verification.
  • Verification-only: Selectively targeting and removing the self-checking or reflective phrases at the tail end of the chain.

Datasets

  • Training: Models were fine-tuned using LoRA on the Bespoke-Stratos-17k dataset, a standard dataset for reasoning distillation.
  • In-Domain Evaluation (Math): AMC 2023, AIME, and MATH500.
  • Out-of-Domain Evaluation: GSM8K (math word problems) and Big-Bench Hard (BBH) (algorithmic/logical tasks).
  • Out-of-Math Evaluation: CommonsenseQA to test how well the pruning generalizes to non-mathematical, open-domain reasoning.

Key Insights and Ideas

  • Longer Isn't Always Better: Excessive reasoning length—especially during the verification phase—acts as cognitive clutter for smaller models. SLMs learn better from clean, direct logical progressions.
  • Verification is Structurally Dispensable: While large models need extensive self-correction to discover the correct answer, the resulting text is redundant for an SLM during training. Pruning the verification phase yields the best accuracy-efficiency trade-off.
  • What You Prune Matters More Than How Much: Indiscriminate pruning or removing core reasoning steps destroys the logical backbone of the task, causing model performance to collapse. Pruning must be structurally targeted.
  • The Scaling Effect of Redundancy: Larger SLMs (e.g., 7B vs. 1.5B) benefit more from verification pruning. Larger models naturally generate more redundant reasoning paths, providing a richer ground for effective optimization.

Key Results

  • Performance Boost from Verification Pruning: Completely cutting out verification nodes (Cut All) consistently outperformed the uncompressed Long-CoT baseline. For DeepSeek-R1-Distill-Qwen-7B, average accuracy across all benchmarks rose from 57.0% to 63.0% (+6.0%) while reducing inference token usage by 9.51%.
  • Catastrophic Failures in Other Strategies: Aggressive pruning across the entire chain (Cut All under All Chains) caused performance to plummet to 10.4% for the Llama-8B model, proving that core reasoning steps must remain intact.
  • Generalization Beyond Math: On CommonsenseQA, verification pruning boosted the Qwen-7B model's accuracy from 37.8% to 54.1% while using 16.2% fewer tokens, demonstrating that the strategy is domain-agnostic.
Figure 4: All-Verification pruning enhances accuracy while reducing token usage. (a): Models with (R1- Distill-Llama-8B) and without (Llama3.1) Long-CoT capability both improve, showing generality across rea- soning supervision. (b): Larger R1-Distilled-Qwen models (7B) gain more from pruning than smaller ones (1.5B), highlighting benefits scale with capacity.

Limitations and Future Work

Despite its success, the authors note several limitations:

  • Dependency on High-Quality Parsers: The framework assumes access to clean logic graphs and verification labels, which might limit its applicability in fully unsupervised or highly noisy environments.
  • Coarse Granularity: Pruning operates strictly at the sentence/step level, meaning fine-grained symbolic dependencies within a single step are not explicitly modeled.
  • Highly Entangled Chains: In extremely complex tasks where reasoning and verification are deeply intertwined, separating the nodes without losing vital utility remains a challenge.

For future work, the authors propose extending this framework to dynamic pruning at inference time, enforcing graph-based consistency checks, and exploring hybrid supervision regimes.

Summary updated

BibTeX
@misc{zhao2025can,
  author = {Shangziqi Zhao and Jiahao Yuan and Jinyang Wu and Zhenglin Wang and Guisong Yang and Usman Naseem},
  title = {{Can Pruning Improve Reasoning? Revisiting Long-CoT Compression with Capability in Mind for Better Reasoning}},
  year = {2025},
  eprint = {2505.14582},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.14582},
}
Figure