MAGE:在块扩散LLM中,全[MASK]块已经知道在哪里看
MAGE: All-[MASK] Block Already Knows Where to Look in Block Diffusion LLM
AI总结:
针对块扩散LLM长上下文推理中KV缓存导致的内存瓶颈,提出无训练方法MAGE,利用块扩散训练目标的对齐特性,在第一步确定整个轨迹的KV子集,实现近无损精度和显著加速。
摘要:
块扩散LLM是一种并行语言生成的新兴范式,但其KV缓存使得内存访问成为长上下文推理中的主要瓶颈。稀疏注意力(每个查询仅关注少量KV子集)可以在最小化精度损失的情况下减少延迟。然而,在块扩散中,每个块的B个token必须共享一个KV子集,我们证明这种每块约束会使现有稀疏KV估计器的召回率下降高达25%。为了解决这一挑战,我们利用了块扩散训练目标中出现的一个特性:它将去噪步骤中的块平均查询对齐,因此第一步的全[MASK]块已经揭示了整个轨迹中每块的KV子集。我们在MAGE([MASK]引导的稀疏注意力)中利用了这一特性,这是一种无训练方法,在第一步执行一次精确注意力,并在块内的所有剩余步骤中重用其top-k索引集。在LongBench上的三个块扩散家族中,MAGE在k=512时匹配精确注意力,精度几乎无损,在128K上下文中实现高达6.82倍的端到端加速,并且比分别为自回归LLM和全双向扩散LLM设计的Quest和SparseD快3.35倍和2.28倍。
英文摘要:
Block diffusion LLMs are an emerging paradigm for parallel language generation, but their KV caching makes memory access the dominant bottleneck in long-context inference. Sparse attention, which attends only to a small KV subset per query, can reduce this latency with minimal accuracy loss. In block diffusion, however, the B tokens of each block must share a single KV subset, and we show this per-block constraint degrades existing sparse KV estimators by up to 25% in recall. We address this challenge by exploiting a property that emerges from the block-diffusion training objective: it aligns the block-average query across denoising steps, so the All-[MASK] block at the first step already reveals the per-block KV subset for the entire trajectory. We exploit this in MAGE ([MASK]-Guided Sparse Attention), a training-free method that runs one exact attention pass at the first step and reuses its top-k index sets for all remaining steps within the block. Across three block-diffusion families on LongBench, MAGE matches Exact Attention at k=512 with near-lossless accuracy, achieves up to 6.82x end-to-end speedup at 128K context, and runs up to 3.35x and 2.28x faster than Quest and SparseD, designed for AR LLMs and fully bidirectional diffusion LLMs, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。