Prefix Sliding for efficient test-time scaling
Prefix Sliding 提升模型推理速度,无需额外训练,开源代码可查。与总结中间token或普通滑动窗口相比,效果更佳。
Prefix Sliding 提出在推理过程中丢弃非前缀或最后几千个token的token,以减少内存需求,提高测试时间扩展效率。
无需训练,Prefix Sliding 可使现有模型速度提升3倍,训练后使用强化学习可进一步提升性能。代码开源于GitHub。
Test-time scaling uses extra test-time compute to improve performance, such as letting language models reason longer when solving a problem. As models keep the entire reasoning trace in memory via full attention, hard tasks that need long thinking can be prohibitively expensive. However, we find most intermediate reasoning tokens lose importance as the model continues reasoning. This calls into question whether retaining them is worth the cost. Based on this insight, we propose Prefix Sliding, which discards tokens during reasoning that are not part of the prefix or the window of the last few thousand tokens. The prefix has key instructions and tools available to the model, while the most recent tokens are the current reasoning the model is working on. This caps the total memory requirement regardless of how long the model reasons, allowing for efficient long-horizon test-time scaling. Without training, Prefix Sliding can make existing models 3x faster while maintaining performance. Training with Prefix Sliding using reinforcement learning can achieve better performance by enabling scaling to reasoning traces beyond a hundred thousand tokens. Ablations show Prefix Sliding outperforms summarizing intermediate tokens or vanilla sliding window. Our code is at https://github.com/Muennighoff/prefix-sliding
本条情报归属 AITOP「论文」核心追踪栏目。涉及核心实体与技术议题包括:Prefix Sliding、test-time scaling、model efficiency、memory reduction,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Niklas Muennighoff, Zhengyang Wang, Zeyi Chen, Weijia Shi, Binyuan Hui, John Yang, Dapeng Jiang, Mika Senghaas, Fares Obeid, Johannes Hagemann, Sami Jaghouar, Ludwig Schmidt, Percy Liang, Jason Wei, Andrew Y. Ng, Luke Zettlemoyer, Yejin Choi, Mike Lewis),经 AITOP 多维评分管线结构化提炼。截至目前,全网已有 2 家独立信源对该事件进行交叉印证与跟进报道(含 Stanford AI Lab 等),属于近期高关注度行业信号。
- Stanford AI Lab08-27 15:51原文