arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.03346cs.AI
收藏

让慢思考更快:通过步骤熵压缩LLM的链式思考

Making Slow Thinking Faster: Compressing LLM Chain-of-Thought via Step Entropy

The Chinese University of Hong Kong(中国香港大学);Huawei Technologies Co., Ltd(华为技术有限公司);Shenzhen Loop Area Institute(深圳河套学院)

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

AI总结:

通过步骤熵压缩LLM的链式思考,提升推理效率并保持准确性。

摘要:

大型语言模型(LLMs)使用链式思考(CoT)提示在复杂推理中表现出色,但生成的思考过程冗长且重复性高,导致推理成本增加和效率降低。我们提出了一种基于步骤熵的新型CoT压缩框架,该指标量化了单个推理步骤的信息贡献,以识别冗余。通过理论分析和对数学推理基准的广泛实证验证,我们证明了低熵步骤确实高度冗余。我们的实验表明,在DeepSeek-R1-7B、14B和Qwen3-8B中,80%的低熵中间步骤可以通过轻微降低最终答案准确率来剪枝。这一发现与随机或高熵剪枝形成鲜明对比,后者严重损害推理性能。在此基础上,我们提出了一种结合监督微调(SFT)和组相对策略优化(GRPO)强化学习的新型双阶段训练策略。该方法使LLMs能够在推理过程中自主学习生成压缩的CoT。我们的方法显著提高了LLM的推理效率,同时保持了准确性,为更可扩展的LLM部署铺平了道路,并加深了对其内部推理机制的理解。代码和数据已发布在https://github.com/staymylove/COT_Compresstion_via_Step_entropy。

英文摘要:

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 \emph{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 improves LLM inference efficiency while preserving accuracy, paving the way for more scalable LLM deployments and a better understanding of their internal reasoning. The code and data are released in https://github.com/staymylove/COT_Compresstion_via_Step_entropy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑