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

隐藏状态作为早期信号:用于高效测试时间扩展的步骤级追踪评估与剪枝

Hidden States as Early Signals: Step-level Trace Evaluation and Pruning for Efficient Test-Time Scaling

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Zhixiang Liang, Beichen Huang, Zheng Wang, Minjia Zhang

AI总结:

本文提出STEP框架,通过评估隐藏状态实现步骤级追踪剪枝,有效降低推理延迟并提升推理准确性。

摘要:

大型语言模型(LLMs)可通过生成多个追踪来增强推理能力,但长追踪与多次采样导致计算开销和端到端延迟显著增加。现有加速方法依赖相似性或置信度剪枝,但这些信号无法可靠指示追踪质量。为解决这些问题,我们提出STEP:步骤级追踪评估与剪枝框架,通过隐藏状态评估推理步骤并动态剪枝不理想的追踪。我们训练了一个轻量级步骤评分器来估计追踪质量,并设计了一种GPU内存感知的剪枝策略,当GPU内存被KV缓存填满时触发剪枝以减少端到端延迟。在挑战性推理基准上的实验表明,STEP相比自一致性方法平均将端到端推理延迟降低了45%-70%,同时提高了推理准确性。我们的代码已发布在:https://github.com/Supercomputing-System-AI-Lab/STEP

英文摘要:

Large Language Models (LLMs) can enhance reasoning capabilities through test-time scaling by generating multiple traces. However, the combination of lengthy reasoning traces with multiple sampling introduces substantial computation and high end-to-end latency. Prior work on accelerating this process has relied on similarity-based or confidence-based pruning, but these signals do not reliably indicate trace quality. To address these limitations, we propose STEP: Step-level Trace Evaluation and Pruning, a novel pruning framework that evaluates reasoning steps using hidden states and dynamically prunes unpromising traces during generation. We train a lightweight step scorer to estimate trace quality, and design a GPU memory-aware pruning strategy that triggers pruning as the GPU memory is saturated by KV cache to reduce end-to-end latency. Experiments across challenging reasoning benchmarks demonstrate that STEP reduces end-to-end inference latency by 45%-70% on average compared to self-consistency while also improving reasoning accuracy. Our code is released at: https://github.com/Supercomputing-System-AI-Lab/STEP

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

↑