SpecLA:面向线性注意力模型的高效推测解码 SpecLA: Efficient Speculative Decoding for Linear-Attention Models 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-07-18
👁️ 预览文献
💡 AI 中文简介
线性注意力模型用循环状态替代不断增长的KV缓存,但自回归解码仍需逐token读写状态。推测解码可一次验证多个草稿token来降低开销,但现有系统是为Transformer的KV缓存设计的。本文提出SpecLA,一个面向有状态线性注意力模型的推测解码运行时:用拓扑感知内核验证链和树,存储验证中产生的紧凑因子以恢复被接受状态,并用置信度剪枝与目标对齐的EAGLE式草稿器提供有效候选。在NVIDIA H100上,针对公开的GDN-1.3B目标模型,端到端加速最高达1.70倍。
领域大语言模型推理加速 / 线性注意力与有状态序列模型
适合谁读需要一定专业背景(了解自回归解码、推测解码与线性注意力机制)
核心贡献1) 提出面向有状态线性注意力目标的推测解码运行时SpecLA,用拓扑感知内核支持链与树的验证,并仅更新被接受的状态轨迹;2) 设计紧凑因子存储以恢复被接受状态,结合置信度剪枝与目标对齐的EAGLE式草稿器,避免浪费有状态验证工作。
关键数据在NVIDIA H100上,针对公开的GDN-1.3B目标模型,端到端解码速度相比自回归解码最高提升1.70倍。
推荐理由如果你关心大模型推理加速,尤其是线性注意力这类新架构怎么高效做推测解码,这篇给出了首个系统级方案和实测加速数据,值得一读。
关键词["推测解码", "线性注意力", "循环状态", "拓扑感知内核", "EAGLE式草稿器", "大模型推理加速"]

原文摘要

查看英文原文摘要

Linear-attention models replace the growing KV cache with recurrent states, but autoregressive decoding still reads, updates, and writes these states one token at a time. Speculative decoding can reduce this cost by verifying several draft tokens in one target pass, yet existing speculative systems are designed for Transformer KV caches. For stateful linear-attention targets, verification must follow recurrent dependencies across chains and branches, acceptance must update only the accepted state trajectory, and the drafter must avoid submitting candidates that waste stateful verification work. This paper presents SpecLA, a speculative decoding runtime for stateful linear-attention models. SpecLA verifies chains and trees with topology-aware kernels, stores compact factors produced during verification to recover accepted states, and uses confidence pruning plus a target-aligned EAGLE-style drafter to feed useful candidates to the verifier. On an NVIDIA H100 with a public GDN-1.3B target, SpecLA achieves up to 1.70x end-to-end speedup over autoregressive decoding.