跳到正文
arXiv (AI + Vision + Imaging)· Muhan Xiao, Shijian Li·· 8 天前AI 评分22

LoopSkim:面向循环语言模型的无损多深度推测解码

LoopSkim: Lossless Multi-Depth Speculative Decoding for Looped Language Models

AI 导读

LoopSkim 将流水线深度本身作为验证器,用于 Ouro、Raven 等循环语言模型的无损推测解码。草稿 token 从上下文复制并在首轮循环后进入,任一后续读出与之矛盾即在该深度替换,仅全深度读出提交 token。无需训练,其在贪心解码与采样下相对 AR 的平均加速为 LoopSpec 的 1.73 倍,可选草稿头增加第二条链后提升至 1.99 倍。

正文 · 原文

arXiv:2611.19896v1 Announce Type: new Abstract: Looped language models such as Ouro and Raven apply one weight-shared block several times per token, so autoregressive decoding (AR) runs every loop of every token in sequence. Pipelined self-speculative decoders overlap these loops by drafting tokens from shallow readouts and verifying them at full depth. Yet every loop of a looped LM ends in a readout of the next token, and draft tokens pass through every depth anyway, so each depth can check them without an extra pass. We introduce LoopSkim, in which the depth of the pipeline is the verifier. Draft tokens copied from the context, as in prompt lookup decoding, enter after the first loops, any later readout that contradicts one replaces it at that depth, and only full-depth readouts commit tokens. LoopSkim fixes the random draws of every position in advance, so each check compares two tokens and decoding stays lossless in exact arithmetic under sampling for any number of checks and draft chains. Without training, its speedup over AR averages 1.73x that of LoopSpec across greedy decoding and sampling, and its checks between the first loops and full depth speed it up on every model. An optional draft head adds a second chain and raises this average to 1.99x.

来源:arXiv (AI + Vision + Imaging) · arxiv.org