Compressing Chain-of-Thought in LLMs via Step Entropy

Zeju Li, Jianyuan Zhong, Ziyang Zheng, Xiangyu Wen, Zhijian Xu, Yingying Cheng, Fan Zhang, Qiang Xu · OpenReview

Abstract

Large Language Models (LLMs) using Chain-of-Thought (CoT) prompting excel at complex reasoning but generate verbose thought processes with considerable redundancy, leading to increased inference costs and reduced efficiency. We introduce a novel CoT compression framework based on step entropy, a metric that quantifies the informational contribution of individual reasoning steps to identify redundancy. Through theoretical analysis and extensive empirical validation on mathematical reasoning benchmarks, we demonstrate that steps with low entropy are indeed highly redundant. Our experiments reveal that an astonishing 80% of low-entropy intermediate steps can be pruned with minor degradation in the final answer accuracy across DeepSeek-R1-7B, 14B and Qwen3-8B. This finding sharply contrasts with random or high-entropy pruning, which severely impairs reasoning performance. Building on this, we propose a novel two-stage training strategy combining Supervised Fine-Tuning (SFT) and Group Relative Policy Optimization (GRPO) reinforcement learning. This approach enables LLMs to autonomously learn to generate compressed COTs during inference by strategically incorporating [SKIP] tokens. Our method significantly enhances LLM inference efficiency while rigorously preserving accuracy, offering profound implications for practical LLM deployment and a deeper understanding of reasoning structures.

Introduction

The advent of Chain-of-Thought (CoT) prompting has significantly enhanced the performance of Large Language Models (LLMs) on complex reasoning tasks. However, this "slow thinking" paradigm introduces a significant "verbosity tax," where models like DeepSeek-R1 and Qwen3 generate massive reasoning traces that increase latency and inference costs. Previous attempts to mitigate this have often relied on latent reasoning or token-level pruning, which can sacrifice interpretability or break the model's logical flow. We propose a principled, step-level approach to identify and prune redundant reasoning steps using a novel metric: step entropy.

Methodology: Step Entropy and Redundancy

We define a "reasoning step" as a segment of text delimited by newlines. Step entropy is calculated as the average Shannon entropy of the tokens within that step. High entropy suggests the model is performing meaningful, non-deterministic computation, while low entropy indicates the step is predictable and likely redundant.

Visualization of step entropy across a reasoning chain. Steps with low entropy (predictable logic) are marked for skipping, while high-entropy steps (critical reasoning) are preserved.

Our theoretical analysis (Lemma 1) establishes step entropy as an upper bound on the mutual information between a reasoning step and the final answer. Empirically, we found that replacing the bottom 80% of low-entropy steps with a special [SKIP] token preserves the final answer's accuracy. This placeholder maintains the coherence of the remaining steps, allowing the model to "think" without verbalizing every predictable logical leap.

Autonomous Compression via SFT and GRPO

To move beyond static pruning, we developed a two-stage training strategy to teach models to autonomously skip redundant steps:

  1. Supervised Fine-Tuning (SFT): The model is fine-tuned on a composite dataset of 130k instances (from DeepScaleR and OpenR1-Math) where redundant steps have been replaced by [SKIP] tokens.
  2. Group Relative Policy Optimization (GRPO): We use reinforcement learning to optimize the model for accuracy, high skip ratios, and conciseness. This enables the model to dynamically decide which steps are worth verbalizing based on the specific problem's complexity.

Experimental Results

We evaluated our approach on standard benchmarks including GSM8k, Math500, AIME 2024, and AIME 2025.

Accuracy vs. Mask Ratio and Token Usage. (a) shows accuracy remains stable when masking up to 80% of low-entropy steps. (b) demonstrates consistent performance across benchmarks with significantly reduced token usage.

The results demonstrate significant efficiency gains with minimal performance loss:

  • Token Reduction: The "SFT + GRPO" models achieved token savings of 35% to 57% across various benchmarks.
  • Accuracy Stability: On GSM8k, the compressed model actually saw a slight accuracy increase (from 78.54% to 79.15%) while using 44% fewer tokens.
  • Cross-Model Generalization: The method proved effective across different architectures, including DeepSeek-R1 (7B, 14B) and Qwen3-8B.
  • Superiority over Baselines: Our approach outperformed other state-of-the-art compression methods like R1-Compress and CoT-Valve, offering nearly double the token savings for the same level of accuracy.

Discussion and Conclusion

Our findings suggest that the "reasoning step" is the fundamental unit of thought in LLMs. Pruning individual tokens breaks internal logic, but removing entire predictable steps preserves semantic integrity. While current limitations include sensitivity to step segmentation and fixed thresholds, the success of step entropy in mathematical reasoning provides a strong foundation for future work in broader domains like creative writing and coding. This framework offers a path toward practical, efficient LLM deployment without sacrificing the power of Chain-of-Thought reasoning.

Summary updated

BibTeX
@inproceedings{li2026compressing,
  author = {Zeju Li and Jianyuan Zhong and Ziyang Zheng and Xiangyu Wen and Zhijian Xu and Yingying Cheng and Fan Zhang and Qiang Xu},
  title = {{Compressing Chain-of-Thought in LLMs via Step Entropy}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=cGLqQfS5wH},
}
Figure