arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.13155cs.CLcs.LG
收藏

探测与跳过:用于高效长上下文LLM推理的自预测token跳过

Probe and Skip: Self-Predictive Token Skipping for Efficient Long-Context LLM Inference

School of Computer Science and Engineering, Beihang University, Beijing, China(计算机科学与工程学院,北航,北京,中国);State Key Laboratory of Virtual Reality Technology and Systems, Beihang University, Beijing, China(虚拟现实技术与系统国家重点实验室,北航,北京,中国)

Zimeng Wu, Donghao Wang, Chaozhe Jin, Jiaxin Chen, Yunhong Wang

AI总结:

本文提出自预测token跳过框架,通过两种选择性跳过策略和多阶段延迟剪枝策略,提升长上下文LLM推理效率,实现显著加速与高精度

摘要:

长上下文推理增强了大型语言模型(LLMs)的推理能力,但带来了显著的计算开销。以token为导向的方法,如剪枝和跳过,已在减少推理延迟方面表现出巨大潜力,但仍面临本质上结构优化不足、选择标准过时和冗余干扰等问题,导致速度-精度权衡不理想。为了解决这些问题,我们提出了一种名为自预测token跳过(SPTS)的新型无训练框架,用于高效长上下文LLM推理。具体而言,受在跳过前探测目标层影响的启发,我们为典型结构设计了两种选择性token跳过策略,包括针对多头注意力的部分注意力探测(PAP)和针对前馈网络的低秩变换探测(LTP)。前者通过部分前向注意力计算选择信息性token,后者构建低秩代理网络来预测token变换。此外,多阶段延迟剪枝(MSDP)策略重新分配跳过预算,并在各层逐步移除冗余token。广泛实验显示了我们方法的有效性,分别在预填充和端到端生成方面实现了高达2.46倍和2.29倍的加速,同时保持最先进的准确性。我们将在接受后发布源代码。

英文摘要:

Long-context inference enhances the reasoning capability of Large Language Models (LLMs), but incurs significant computational overhead. Token-oriented methods, such as pruning and skipping, have shown great promise in reducing inference latency, yet still suffer from inherently insufficient structure optimization, outdated selection criteria, and redundancy interference, resulting in suboptimal speed-accuracy trade-off. To address these issues, we propose a novel training-free framework dubbed Self-Predictive Token Skipping (SPTS), for efficient long-context LLM inference. Specifically, motivated by probing the influence of target layers prior to skipping, we design two selective token skipping strategies for typical structures, including Partial Attention Probing (PAP) for multi-head attention and Low-rank Transformation Probing (LTP) for feed forward network. The former selects informative tokens via partial forward attention computation, while the latter constructs a low-rank proxy network to predict token transformations. In addition, a Multi-Stage Delayed Pruning (MSDP) strategy reallocates skipping budgets and progressively removes redundant tokens across layers. Extensive experiments display the effectiveness of our method, achieving up to 2.46$\times$ and 2.29$\times$ speedups for prefilling and end-to-end generation, respectively, while maintaining state-of-the-art accuracy. The source code is available at https://github.com/Wuzimeng/SPTS.

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

↑