WaveFront解码:面向循环语言模型的并行自推测解码

·

研究论文 · 2026/09/29

循环语言模型通过重复应用权重共享块来增加有效深度而不增加参数量,但每个生成token需要T次顺序循环块调用,显著增加了解码延迟。为此,我们提出了Wavefront Decoding(WFD),一种为循环语言模型设计的免训练自推测解码框架。WFD利用了这些架构的两个特性:中间循环输出提供有效的草稿预测,权重共享允许不同位置和循环深度的token状态在一次批量循环块调用中处理。WFD将这些混合深度状态组织成对角波前,在浅深度持续起草新位置,同时将较早位置推进到全深度验证。与分阶段的先起草后验证调度不同,WFD因此在同一循环调用中并发批处理起草和验证,而被拒绝的草稿则使用全深度预测进行纠正。在六个Spec-Bench任务类别中,WFD在Ouro-2.6B上实现了2.42倍加速,在Huginn-3.5B上实现了3.54倍加速,持续优于先起草后验证。跨循环KV共享进一步减少了波前KV流量,并将WFD在Huginn-3.5B上的加速提升至4.81倍。代码可在https://github.com/summerbro-hhj/wavefront-decoding获取。

该论文提出了一种创新的免训练解码框架,显著加速了循环语言模型的推理,同时保持了输出质量,为高效部署此类模型提供了实用解决方案。

Looped language models repeatedly apply a weight-shared block to increase effective depth without increasing parameter count, but the resulting T sequential recurrent-block calls per generated token substantially increase decoding latency. To address the issue, we introduce Wavefront Decoding (WFD), a training-free self-speculative decoding framework designed for looped language models. WFD exploits two properties of these architectures: intermediate recurrence outputs provide effective draft predictions, and weight sharing allows token states at different positions and recurrence depths to be processed in one batched recurrent-block call. WFD organizes these mixed-depth states into a diagonal wavefront, continuously drafting new positions at shallow depth while advancing earlier positions toward full-depth verification. Unlike the phase-separated draft-then-verify schedule, WFD therefore concurrently batches drafting and verification within the same recurrent calls, while rejected drafts are corrected using full-depth predictions. Across six Spec-Bench task categories, WFD achieves 2.42x speedup on Ouro-2.6B and 3.54x on Huginn-3.5B over autoregressive decoding, consistently outperforming draft-then-verify. Cross-recurrence KV sharing further reduces wavefront KV traffic and increases WFD's speedup to 4.81x on Huginn-3.5B. The code is available at https://github.com/summerbro-hhj/wavefront-decoding.

阅读原文

参与讨论