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

慢-快推理:通过句内支持稳定性实现无需训练的推理加速

Slow-Fast Inference: Training-Free Inference Acceleration via Within-Sentence Support Stability

National University of Singapore(新加坡国立大学);ByteDance(字节跳动)

Xingyu Xie, Zhaochen Yu, Yue Liao, Tao Wang, Kim-Chuan Toh, Shuicheng Yan

AI总结:

SFI通过利用句内支持稳定性,将生成过程分为快速低成本步骤和偶尔的密集注意力慢步骤,从而提高解码吞吐量并保持质量。

摘要:

长上下文自回归解码仍然昂贵,因为每个解码步骤必须反复处理不断增长的历史。我们观察到在解码过程中存在一致的模式:在句子内,更一般地说在短语义连贯的范围内,主导的注意力支持往往保持大致稳定。受这一观察的启发,我们提出了慢-快推理(SFI),一种无需训练的解码框架,将生成分解为频繁的低成本快速步骤和偶尔的密集注意力慢步骤。快速步骤重用紧凑的稀疏内存以实现高效的解码。慢步骤在语义边界附近触发。在慢步骤中,模型会重新审视更广泛的内容,并使用选择器刷新所选的记忆,以供后续的快速步骤使用。在评估的上下文长度范围内,SFI在解码吞吐量上实现了约1.6倍至14.4倍的提升,同时在长上下文和长CoT设置下通常保持与全KV基线相当的质量。由于SFI无需训练且直接适用于现有检查点,它为减少当前长上下文、长时间跨度和代理工作负载中的自回归推理模型的推理成本提供了一条实用路径。

英文摘要:

Long-context autoregressive decoding remains expensive because each decoding step must repeatedly process a growing history. We observe a consistent pattern during decoding: within a sentence, and more generally within a short semantically coherent span, the dominant attention support often remains largely stable. Motivated by this observation, we propose Slow-Fast Inference (SFI), a training-free decoding framework that decouples generation into frequent low-cost fast steps and occasional dense-attention slow steps. Fast steps reuse a compact sparse memory for efficient decoding. Slow steps are triggered near semantic boundaries. At slow steps, the model revisits the broader context and uses the Selector to refresh the selected memory for subsequent fast steps. Across the evaluated context lengths, SFI delivers approximately $1.6\times$--$14.4\times$ higher decoding throughput while generally maintaining quality on par with the full-KV baseline across long-context and long-CoT settings. Because SFI is training-free and applies directly to existing checkpoints, it offers a practical path to reducing inference cost for contemporary autoregressive reasoning models in long-context, long-horizon, and agentic workloads.

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

↑