首页 > AI前沿 > Glimpse: Exploiting Draft Attention for Bandwidth-Efficient Verification in Mobile Edge Speculative Decoding

Glimpse: Exploiting Draft Attention for Bandwidth-Efficient Verification in Mobile Edge Speculative Decoding

arXiv机器学习 2026-12-01 13:00 6 阅读 查看原文
用户要求将一段纯文本的新闻正文排版成语义化的HTML片段。 需要遵循以下规则: 1. 只输出HTML片段本身,不要Markdown围栏,不要解释。 2. 每个自然段落用`

`包裹,长文用`

`/`

`划分小节。 3. 列表内容用`
  • `,引用用`
    `,代码用`
    `,重要句子可用``。
    4. 保留原文所有信息,不得增删改内容。
    5. 不要输出``/``/``等文档级标签。
    
    分析原文内容:
    原文是一段学术/技术新闻摘要,主要介绍“Glimpse”算法硬件协同设计,用于解决边缘设备上大语言模型自回归解码的内存带宽瓶颈。
    原文包含几个逻辑部分:
    1. 背景与问题:边缘设备上的LLM在自回归解码时面临内存带宽瓶颈,KV cache增长加剧了这一问题。树状推测解码将瓶颈转移到验证阶段,每一步都需要重新加载完整的prefix KV cache。
    2. 观察与洞察:大多数prefix token对验证贡献微乎其微,但加载成本相同,而草稿模型的注意力分数提供了一个免费的重要性代理,用于选择性KV加载。
    3. 提出方法:Glimpse,算法硬件协同设计,将草稿注意力转化为验证带宽节省。
    4. 算法层面:两阶段验证方案。有损阶段(lossy pass)只加载高排名的prefix chunks;周期性无损阶段(lossless pass)将有损接受的链与简化的草稿树合并,进行全注意力重新验证,恢复目标模型的贪心输出,并在多个接受的token上分摊带宽成本。
    5. 硬件层面:扩展传统边缘NPU,增加轻量级重要性选择单元(Importance Selection Unit),以极小开销执行片上分数累积和Top-K chunk选择。
    6. 评估结果:在6个目标LLM和3个基准测试上与SotA EAGLE-3对比,Glimpse在2K-64K上下文中提供1.33-1.74倍加速和1.40-1.76倍能效,边缘NPU面积开销仅为2.7%。
    
    为了符合“长文用`

    `/`

    `划分小节”的规则,虽然原文没有明显的标题,但我可以根据逻辑划分小节,或者将原文拆分成几个逻辑段落,并用`

    `添加小节标题(但规则4要求“不得增删改内容”,如果添加标题算不算增改内容?通常添加小节标题如果只是为了划分结构,可能会被视为“增”,为了严格遵守“不得增删改内容”,最好不添加原文没有的标题文字,而是将原文按逻辑拆分成多个自然段落,用`

    `包裹,或者如果必须用`

    /

    `,可以把原文中的句子作为标题?不行,不能增删。 或者,我可以把原文看作一个长文,第一段用`

    `作为文章主标题?原文没有标题。 为了严格遵守“不得增删改内容”,我不应该添加任何原文没有的文字作为标题。因此,我可以将原文拆分为几个自然段落,全部用`

    `包裹,并使用``来强调重要句子。如果规则说“长文用`

    /

    `划分小节”,我可以用原文中的短语作为标题吗?不行,那会改变原文结构或者显得奇怪。 其实,如果原文只有一段,我可以把它分成几个逻辑段落,用`

    `包裹。为了满足“长文用`

    /

    `划分小节”,我可以假设这是一篇长文,用`

    `包裹原文中的某些核心概念作为小节标题?但规则说“保留原文所有信息,不得增删改内容”。添加标题属于增加内容。 折中方案:不添加额外标题,直接将原文按逻辑断句,分成几个`

    `段落。如果必须用`

    /

    `,可以把第一句作为`

    `?不太合适。 再仔细看规则:“每个自然段落用

    包裹,长文用

    /

    划分小节”。这意味着如果原文有小节或者可以合理划分为小节,就用`

    /

    `。如果没有,就只用`

    `。为了安全起见,我可以将原文分成4个自然段落,用`

    `包裹,并用``标出重要句子。 段落划分: 段落1(背景与问题):Large language models (LLMs) deployed on edge devices face a severe memory-bandwidth bottleneck during autoregressive decoding, which is further worsened by the ever-growing KV cache of emerging agentic workloads. Tree-based speculative decoding (SD) only shifts this bottleneck to verification, where the full prefix KV cache must be reloaded at every step. 段落2(洞察与方法提出):We observe that most prefix tokens contribute negligibly to verification yet cost the same to load, while the draft model's attention scores offer a free importance proxy for selective KV loading. Building on this insight, we present Glimpse, an algorithm-hardware co-design that turns draft attention into verification bandwidth savings for mobile edge speculative decoding. 段落3(算法与硬件设计):At the algorithm level, Glimpse introduces a two-pass verification scheme. A lossy pass loads only the top-ranked prefix chunks guided by accumulated draft scores, while a periodic lossless pass merges the lossy-accepted chain with a reduced draft tree into one full-attention re-verification, restoring the target model's greedy output and amortizing its bandwidth cost over many accepted tokens. At the hardware level, Glimpse extends a conventional edge NPU with a lightweight Importance Selection Unit that performs on-chip score accumulation and top-K chunk selection at negligible overhead. 段落4(评估结果):Evaluated on six target LLMs and three benchmarks against the state-of-the-art (SotA) EAGLE-3, Glimpse delivers 1.33-1.74x speedup and 1.40-1.76x energy efficiency across 2K-64K contexts, with only 2.7% area overhead over the baseline edge NPU. 检查是否满足所有规则: 1. 只输出HTML片段,无Markdown,无解释。 2. 每个自然段落用`

    `包裹。这里没有强制使用`

    /

    `,因为原文没有明确的小节标题,强行添加会违反“不得增删改内容”的规则。如果一定要用`

    /

    `,可能会被判定违规。不过,为了贴合“长文用`

    /

    `划分小节”的提示,我可以把原文中的核心名词作为`

    `?不,绝对不行,增删内容是大忌。所以只用`

    `和``是最稳妥的。 或者,把第一句话作为`

    `?也不对。 就按照段落划分,用`

    `包裹,重要句子用``。 检查原文是否有遗漏: "Large language models (LLMs) deployed on edge devices face a severe memory-bandwidth bottleneck during autoregressive decoding, which is further worsened by the ever-growing KV cache of emerging agentic workloads. Tree-based speculative decoding (SD) only shifts this bottleneck to verification, where the full prefix KV cache must be reloaded at every step." -> 完整保留。 "We observe that most prefix tokens contribute negligibly to verification yet cost the same to load, while the draft model's attention scores offer a free importance proxy for selective KV loading. Building on this insight, we present Glimpse, an algorithm-hardware co-design that turns draft attention into verification bandwidth savings for mobile edge speculative decoding." -> 完整保留,Glimpse用``。 "At the algorithm level, Glimpse introduces a two-pass verification scheme. A lossy pass loads only the top-ranked prefix chunks guided by accumulated draft scores, while a periodic lossless pass merges the lossy-accepted chain with a reduced draft tree into one full-attention re-verification, restoring the target model's greedy output and amortizing its bandwidth cost over many accepted tokens. At the hardware level, Glimpse extends a conventional edge NPU with a lightweight Importance Selection Unit