跳到正文
arXiv (AI + Vision + Imaging)· Jin-Fei Qi, Yiduo Li, Jiang-Xin Shi, Kan Liu, Tao Lan, Hanlin Tang, Yu-Feng Li·· 14 天前精选AI 评分58

ADIndex提出层自适应稀疏注意力索引方法,256K上下文预填充提速最高6.22倍

ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation

AI 导读

ADIndex是一种面向token级稀疏注意力的自适应蒸馏索引方法,针对DSA索引器在长上下文下占预填充GPU时间超50%的瓶颈。该方法包含层间校准、组级蒸馏训练层自适应组索引器,以及通过查询组内token bank共享减少重复全前缀扫描的低延迟推理策略。

推荐理由

针对长上下文推理中索引器占预填充GPU时间过半的瓶颈,给出层自适应稀疏注意力索引方案与实测加速比。

正文 · 原文

arXiv:2611.12956v1 Announce Type: new Abstract: DeepSeek Sparse Attention (DSA) reduces the computational cost of attention through token-level selection. However, its indexer still scores the entire causal prefix for each query, making indexing a dominant source of latency in long-context inference. Notably, the indexer alone can account for more than 50% of total prefill GPU time at long context lengths. To address this bottleneck, we propose ADIndex, an Adaptive and Distillation-driven Indexing method for token-level sparse attention. ADIndex integrates three key components: (i) a layer-wise calibration strategy that adaptively accommodates cross-query retrieval overlap, motivated by our observation of pronounced inter-layer heterogeneity; (ii) a group-level distillation scheme that leverages this heterogeneity to efficiently train adaptive layer-wise group indexers, capturing salient retrieval signals from individual queries; and (iii) a low-latency inference strategy that reduces repeated full-prefix scans through token bank sharing within query groups while retaining query-specific refinement. Experiments on DeepSeek-V3.2 and GLM-5.1 demonstrate that ADIndex preserves near-lossless task performance on LongBench, LongBench v2, and RULER while delivering substantial efficiency gains over standard DSA, including prefill and decoding kernel speedups of up to 6.22x and 3.40x, respectively, at a context length of 256K across the layer-wise reuse configurations, as well as an end-to-end serving speedup of 1.54x at a context length of 128K.

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