LoopD:用于循环语言模型的扩散 Drafting
LoopD: Diffusion Drafting for Looped Language Models
AI总结:
针对循环语言模型解码延迟高的问题,提出 LoopD 框架,通过浅层循环作为扩散 Draft 器并行 Draft token,嵌入 token 树调度器实现无额外顺序步骤,在 Ouro-1.4B 上获最高 5.76 倍解码加速且优于基线方法。
摘要:
循环 Transformer 通过在循环深度上重复应用共享的 Transformer 块,以紧凑的参数规模实现了出色的性能。然而,与参数规模相当的标准 Transformer 相比,它们的解码延迟更高,因为每个 token 必须依次通过所有循环深度,且在每个深度都要再次访问共享权重。近期的流水线自推测解码方法通过从早期循环状态 Draft token 并在同一批次中推进不同深度的 token,降低了这种延迟,但它们未能充分利用浅层循环并行 Draft 多个 token,且仍在本可与验证重叠的 Draft 上花费顺序步骤。因此,我们提出 LoopD,这是一种自推测解码框架,其中目标模型的单个浅层循环(经轻量级低秩参数适配)充当扩散 Draft 器,并行提出未来的一组 token。为使 Draft 不占用关键路径,我们将其嵌入 token 树调度器:每组 token 在推进更深循环深度的早期 token 的同一前向步骤中被 Draft,且浅层循环的早退出预测被保留为回退分支,因此 Draft 无需花费顺序步骤,被拒绝的 Draft 也不会阻塞流水线。在 Ouro-1.4B 上的贪心解码中,针对五个推理和编码基准,LoopD 实现了比自回归解码最高达 5.76 倍的解码加速,且输出完全一致,在所有基准上均优于 LoopSpec 和 LoopAhead,并将每个 token 的顺序循环步骤数减少了最高达 8.7 倍。
英文摘要:
Looped Transformers achieve strong performance with compact parameter sizes by repeatedly applying a shared stack of Transformer blocks across recurrent depths. However, they incur higher decoding latency than standard Transformers of comparable parameter size, because every token must pass through all recurrent depths in sequence and the shared weights are accessed again at each depth. Recent pipelined self-speculative decoding methods reduce this latency by drafting tokens from early recurrent states and advancing tokens at different depths in the same batch, but they do not fully exploit shallow loops to draft multiple tokens in parallel, and still spend sequential steps on drafting that could overlap with verification. We therefore present LoopD, a self-speculative decoding framework in which a single shallow loop of the target model, adapted with lightweight low-rank parameters, serves as a diffusion drafter that proposes a block of future tokens in parallel. To keep drafting off the critical path, we embed it in a token-tree scheduler: each block is drafted in the same forward step that advances earlier tokens at deeper recurrent depths, and early-exit predictions from shallow loops are kept as fallback branches, so drafting costs no sequential step and a rejected draft need not stall the pipeline. Under greedy decoding on Ouro-1.4B across five reasoning and coding benchmarks, LoopD achieves up to 5.76$\times$ decoding speedup over autoregressive decoding with bitwise-identical outputs, outperforming LoopSpec and LoopAhead on every benchmark, and reduces the number of sequential recurrence steps per token by up to 8.7$\times$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。