ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation
Computer Science > Machine Learning arXiv:2611.12956 (cs) [Submitted on 7 Nov 2026] Title: ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation Authors: Jin-Fei Qi, Yiduo Li, Jiang-Xin Shi, Kan Liu, Tao Lan, Hanlin Tang, Yu-Feng Li.
计算机科学 > 机器学习 arXiv:2611.12956 (cs) [提交于 2026 年 11 月 7 日] 标题:ADIndex:通过组级蒸馏实现层自适应稀疏注意力索引。作者:Jin-Fei Qi, Yiduo Li, Jiang-Xin Shi, Kan Liu, Tao Lan, Hanlin Tang, Yu-Feng Li。
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.
摘要:DeepSeek 稀疏注意力(DSA)通过词元级选择降低了注意力的计算成本。然而,其索引器仍需为每个查询对整个因果前缀进行评分,这使得索引成为长上下文推理中延迟的主要来源。值得注意的是,在长上下文长度下,仅索引器一项就可能占总预填充 GPU 时间的 50% 以上。
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.
为了解决这一瓶颈,我们提出了 ADIndex,这是一种用于词元级稀疏注意力的自适应且由蒸馏驱动的索引方法。ADIndex 集成了三个关键组件:(i) 一种层级校准策略,它能自适应地适应跨查询检索重叠,这是基于我们对显著层间异质性的观察;(ii) 一种组级蒸馏方案,利用这种异质性高效训练自适应的层级组索引器,从而从单个查询中捕获显著的检索信号;以及 (iii) 一种低延迟推理策略,通过在查询组内共享词元库来减少重复的全前缀扫描,同时保留针对特定查询的细化。
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.
在 DeepSeek-V3.2 和 GLM-5.1 上的实验表明,ADIndex 在 LongBench、LongBench v2 和 RULER 上保持了近乎无损的任务性能,同时相比标准 DSA 实现了显著的效率提升,包括在 256K 上下文长度和层级重用配置下,预填充和解码内核分别实现了高达 6.22 倍和 3.40 倍的加速,以及在 128K 上下文长度下实现了 1.54 倍的端到端服务加速。