DeepPrune: Parallel Scaling without Inter-trace Redundancy
提出DeepPrune,一种通过动态剪枝提高并行推理效率的新框架,显著减少了计算资源浪费,同时保持了推理准确性。
更新于 2025-10-10。作者:Shangqing Tu、Yaxuan Li、Yushi Bai、Lei Hou、Juanzi Li。
中文摘要
并行扩展已成为一种强大的范式,通过同时生成多个思维链(CoT)轨迹来增强大型语言模型(LLMs)的推理能力。然而,这种方法由于轨迹间冗余而引入了显著的计算效率低下——我们的分析显示,超过80%的并行推理轨迹得出相同的最终答案,代表着大量的计算浪费。为了解决这一关键的效率瓶颈,我们提出了DeepPrune,这是一个通过动态剪枝实现高效并行扩展的新框架。我们的方法具有一个使用焦点损失和过采样技术训练的专用裁判模型,能够从部分推理轨迹中准确预测答案等价性,实现了0.87的AUROC等价性预测,并结合了一个在线贪婪聚类算法,该算法在保留答案多样性的同时动态剪枝冗余路径。在三个具有挑战性的基准(AIME 2024、AIME 2025和GPQA)以及多个推理模型上的全面评估表明,与传统的共识采样相比,DeepPrune在大多数情况下实现了超过80%的标记减少,同时保持了3个百分点内的竞争力。我们的工作为高效并行推理树立了新的标准,使高性能推理更加高效。我们的代码和数据在此:https://deepprune.github.io/
英文摘要
Parallel scaling has emerged as a powerful paradigm to enhance reasoning capabilities in large language models (LLMs) by generating multiple Chain-of-Thought (CoT) traces simultaneously. However, this approach introduces significant computational inefficiency due to inter-trace redundancy -- our analysis reveals that over 80% of parallel reasoning traces yield identical final answers, representing substantial wasted computation. To address this critical efficiency bottleneck, we propose DeepPrune, a novel framework that enables efficient parallel scaling through dynamic pruning. Our method features a specialized judge model trained with focal loss and oversampling techniques to accurately predict answer equivalence from partial reasoning traces which realizes 0.87 AUROC on equivalence prediction, combined with an online greedy clustering algorithm that dynamically prunes redundant paths while preserving answer diversity. Comprehensive evaluations across three challenging benchmarks (AIME 2024, AIME 2025, and GPQA) and multiple reasoning models demonstrate that DeepPrune achieves remarkable token reduction by over 80% compared to conventional consensus sampling on most cases, while maintaining competitive accuracy within 3 percentage points. Our work establishes a new standard for efficient parallel reasoning, making high-performance reasoning more efficient. Our code and data are here: https://deepprune.github.io/
解读
一句话总结
提出DeepPrune,一种通过动态剪枝提高并行推理效率的新框架,显著减少了计算资源浪费,同时保持了推理准确性。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:并行推理在大型语言模型中用于提高推理能力,但引入了显著的计算效率问题,因为多个推理轨迹之间存在冗余。
- 现有方案不足:基于置信度的早期停止方法无法减少并行推理路径之间的冗余,并可能提前终止正确的推理轨迹。
- 研究目标:提出DeepPrune,通过动态剪枝减少冗余的并行CoT,同时保持答案多样性。
问题2:论文的核心创新点是什么?
- 技术创新:开发了一个专门用于预测答案等价的判断模型,结合焦点损失和过采样技术,实现0.87的AUROC。
- 方法改进:设计了一个在线贪婪聚类算法,动态剪枝冗余路径,同时保留答案多样性。
- 优势:与传统的共识采样相比,DeepPrune在大多数情况下减少了超过80%的标记消耗,同时保持了3个百分点以内的竞争力。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在三个具有挑战性的基准(AIME 2024、AIME 2025和GPQA)和多个推理模型上进行了综合评估。
- 性能提升:DeepPrune与传统的共识采样相比,在大多数情况下减少了超过80%的标记消耗,同时保持了3个百分点以内的准确性。
- 对比结果:DeepPrune在AIME25数据集上实现了高达91.6%的标记减少,甚至提高了准确性,显著优于DeepConf等基线方法。
问题4:这个研究的实际应用价值是什么?
- 应用场景:大型语言模型推理、问题解决、决策支持系统等。
- 实施建议:DeepPrune可以集成到现有的推理系统中,以减少计算资源的使用,提高推理效率。
- 局限与展望:目前DeepPrune仅在DeepSeek-R1-Distill-Llama-8B的推理轨迹上进行了训练,未来可以扩展到其他模型。此外,探索自适应阈值选择可能进一步提高性能。
来源
机器可读索引:llms.txt