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

DevFeed: [ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation](<https://devfeed.tech/articles/adindex-layer-adaptive-sparse-attention-indexing-via-group-level-distillation-128216.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.12956>)

Author: Jin-Fei Qi, Yiduo Li, Jiang-Xin Shi, Kan Liu, Tao Lan, Hanlin Tang, Yu-Feng Li

Published: 2026-11-11T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [adaptive](<https://devfeed.tech/tags/adaptive.md>), [attention](<https://devfeed.tech/tags/attention.md>), [bank](<https://devfeed.tech/tags/bank.md>), [context](<https://devfeed.tech/tags/context.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [deepseek](<https://devfeed.tech/tags/deepseek.md>), [distillation](<https://devfeed.tech/tags/distillation.md>), [dsa](<https://devfeed.tech/tags/dsa.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [glm](<https://devfeed.tech/tags/glm.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [groups](<https://devfeed.tech/tags/groups.md>), [indexer](<https://devfeed.tech/tags/indexer.md>), [indexing](<https://devfeed.tech/tags/indexing.md>), [inference](<https://devfeed.tech/tags/inference.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [layer](<https://devfeed.tech/tags/layer.md>), [sparse-attention](<https://devfeed.tech/tags/sparse-attention.md>)

## AI overview

ADIndex targets the latency of DeepSeek Sparse Attention's indexer, which scores the full causal prefix for each query and can consume over half of prefill GPU time at long contexts. It calibrates retrieval overlap by layer, uses group-level distillation to train adaptive layer-specific indexers, and shares token banks within query groups while retaining query-specific refinement. Tests on DeepSeek-V3.2 and GLM-5.1 report near-lossless performance on LongBench, LongBench v2, and RULER. At 256K context, prefill and decoding kernels reach up to 6.22x and 3.40x speedups over standard DSA; end-to-end serving reaches 1.54x at 128K.

## Source excerpt

arXiv:2611.12956v1 Announce Type: cross 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.