IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reuse
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Long-context agentic workflows have emerged as a defining use case for large language models, making attention efficiency critical for both inference speed and serving cost. Sparse attention addresses this challenge effectively, and DeepSeek Sparse Attention (DSA) is a representative production-grade solution: a lightweight lightning indexer selects the top-k most relevant tokens per query, reducing core attention from O(L2) to O(Lk). However, the indexer itself retains O(L2) complexity and must run independently at every layer, despite the fact that the resulting top-k selections are highly similar across consecutive layers. We present IndexCache, which exploits this cross-layer redundancy by partitioning layers into a small set of Full layers that run their own indexers and a majority of Shared layers that simply reuse the nearest Full layer's top-k indices. We propose two complementary approaches to determine and optimize this configuration. Training-free IndexCache applies a greedy search algorithm that selects which layers to retain indexers by directly minimizing language modeling loss on a calibration set, requiring no weight updates. Training-aware IndexCache introduces a multi-layer distillation loss that trains each retained indexer against the averaged attention distributions of all layers it serves, enabling even simple interleaved patterns to match full-indexer accuracy. Experimental results on a 30B DSA model show that IndexCache can remove 75% of indexer computations with negligible quality degradation, achieving up to 1.82× prefill speedup and 1.48× decode speedup compared to standard DSA. These positive results are further confirmed by our preliminary experiments on the production-scale GLM-5 model (Figure 1).
Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 49 of its 55 references that are in the map. First posted on arXiv 12 Mar 2026.
Builds on
49 of 55 references.
Closest ancestors · 1
Same direction, newest first
Other references · 48
- 2017Attention Is All You Needcited by 59,932
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,748
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2025Gemma 3 Technical Reportcited by 1,686
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 755
36 more
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
- 2025Generalizing Verifiable Instruction Followingcited by 178
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2026MiMo-V2-Flash Technical Reportcited by 163
- 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 157
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 135
- 2025XAttention: Block Sparse Attention with Antidiagonal Scoringcited by 131
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 122
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Modelscited by 122
- 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 121
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
- 2023SparQ Attention: Bandwidth-Efficient LLM Inferencecited by 119
- 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 113
- 2025Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Modelscited by 88
- 2025MiniCPM4: Ultra-Efficient LLMs on End Devicescited by 51
- 2025LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attentioncited by 41
- 2024SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attentioncited by 39
- 2026LongCat-Flash-Thinking-2601 Technical Reportcited by 32
- 2025InfLLM-V2: Dense-Sparse Switchable Attention for Seamless Short-to-Long Adaptationcited by 31
- 2024TidalDecode: Fast and Accurate LLM Decoding with Position Persistent Sparse Attentioncited by 28
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
- 2024MLKV: Multi-Layer Key-Value Heads for Memory Efficient Transformer Decodingcited by 20
- 2024SwiftKV: Fast Prefill-Optimized Inference with Knowledge-Preserving Model Transformationcited by 18
- 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inferencecited by 9
- 2026HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharingcited by 8
- 2025DELTA: Dynamic Layer-Aware Token Attention for Efficient Long-Context Reasoningcited by 5
- 2025Improving Model Representation and Reducing KV Cache via Skip Connections with First Value Headscited by 4
- 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Spacecited by 4
- 2026Lil: Less is Less When Applying Post-Training Sparse-Attention Algorithms in Long-Decode Stagecited by 2
Built on by
Citing papers per year: 2026: 27.
27 papers.
Sort:
By area:
- 2026On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training Stabilitycited by 20
- 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attentioncited by 10
- 2026IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inferencecited by 7
- 2026MISA: Mixture of Indexer Sparse Attention for Long-Context LLM Inferencecited by 5
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compressioncited by 4
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attentioncited by 3
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inferencecited by 3
- 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budgetcited by 3
- 2026HiSparse: Scaling Sparse-Attention Decoding with Hierarchical KV Cache Managementcited by 2
- 2026Move the Query, Not the Cache: Characterizing Cross-Instance Latent Attention Redistribution Across GPU Fabricscited by 1
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agentscited by 1
- 2026You Only Index Once: Cross-Layer Sparse Attention with Shared Routingcited by 1
15 more
- 2026LiteTopK: Exploiting the Curse of Dimensionality for a Fused Indexer-TopK Kernel in Long-Context Sparse Attentioncited by 1
- 2026PIVOT: Efficient Query-Group Indexing for Token-Level Sparse Attentioncited by 1
- 2026LongCat Sparse Attention: Taming the Lightning via Streaming-aware Hierarchical Cross-Layer Indexingcited by 1
- 2026Trace as State: Reasoning Traces as Conditional States for Long-Context Transformerscited by 1
- 2026Heterogeneous LLM Serving with General-Purpose Processing-Near-Memory for Retrieval-Based Sparse Attentioncited by 0
- 2026Autonomy-of-Heads: Data-Free Sparse Attention from Frozen Query-Key Geometrycited by 0
- 2026Palmyra x6 Technical Report: An Agentic, Tool-Use Model Post-Trained via Anchored Supervised Fine-Tuningcited by 0
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attentioncited by 0
- 2026Block-Sparse Attention with Semantic-Geometric Decoupled Routingcited by 0
- 2026Block Sparse Attention with Log-Linear Complexitycited by 0
- 2026SparseEngine: Sparse-First Inference Enginecited by 0
- 2026Characterizing High Bandwidth Flash for LLM Servingcited by 0
- 2026VASC: Value-Aware Sparse Attention with Cross-Layer Memory for Efficient 3D Reconstructioncited by 0
- 2026SPIN: Shadow Predictive Indexer for Sparse Attentioncited by 0
- 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Positioncited by 0
- 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Position7 Oct 2026
- 2026SPIN: Shadow Predictive Indexer for Sparse Attention6 Oct 2026
- 2026VASC: Value-Aware Sparse Attention with Cross-Layer Memory for Efficient 3D Reconstruction1 Oct 2026
- 2026Characterizing High Bandwidth Flash for LLM Serving30 Sep 2026
- 2026SparseEngine: Sparse-First Inference Engine30 Sep 2026
- 2026Block Sparse Attention with Log-Linear Complexity25 Sep 2026
- 2026Block-Sparse Attention with Semantic-Geometric Decoupled Routing19 Sep 2026
- 2026Trace as State: Reasoning Traces as Conditional States for Long-Context Transformers2 Sep 2026
- 2026On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training Stability31 Aug 2026
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention20 Aug 2026
- 2026Palmyra x6 Technical Report: An Agentic, Tool-Use Model Post-Trained via Anchored Supervised Fine-Tuning17 Aug 2026
- 2026HiSparse: Scaling Sparse-Attention Decoding with Hierarchical KV Cache Management7 Aug 2026
15 more
- 2026Autonomy-of-Heads: Data-Free Sparse Attention from Frozen Query-Key Geometry7 Aug 2026
- 2026Heterogeneous LLM Serving with General-Purpose Processing-Near-Memory for Retrieval-Based Sparse Attention4 Aug 2026
- 2026LongCat Sparse Attention: Taming the Lightning via Streaming-aware Hierarchical Cross-Layer Indexing3 Aug 2026
- 2026PIVOT: Efficient Query-Group Indexing for Token-Level Sparse Attention27 Jul 2026
- 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budget16 Jul 2026
- 2026LiteTopK: Exploiting the Curse of Dimensionality for a Fused Indexer-TopK Kernel in Long-Context Sparse Attention13 Jul 2026
- 2026You Only Index Once: Cross-Layer Sparse Attention with Shared Routing4 Jun 2026
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agents4 Jun 2026
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference3 Jun 2026
- 2026Move the Query, Not the Cache: Characterizing Cross-Instance Latent Attention Redistribution Across GPU Fabrics31 May 2026
- 2026IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inference25 May 2026
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attention18 May 2026
- 2026MISA: Mixture of Indexer Sparse Attention for Long-Context LLM Inference8 May 2026
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compression7 May 2026
- 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attention30 Mar 2026
- 2026IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inferencecited by 7
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compressioncited by 4
- 2026HiSparse: Scaling Sparse-Attention Decoding with Hierarchical KV Cache Managementcited by 2
- 2026Move the Query, Not the Cache: Characterizing Cross-Instance Latent Attention Redistribution Across GPU Fabricscited by 1
- 2026You Only Index Once: Cross-Layer Sparse Attention with Shared Routingcited by 1
- 2026Heterogeneous LLM Serving with General-Purpose Processing-Near-Memory for Retrieval-Based Sparse Attentioncited by 0
- 2026Autonomy-of-Heads: Data-Free Sparse Attention from Frozen Query-Key Geometrycited by 0
- 2026Characterizing High Bandwidth Flash for LLM Servingcited by 0
- 2026SPIN: Shadow Predictive Indexer for Sparse Attentioncited by 0
- 2026SPIN: Shadow Predictive Indexer for Sparse Attention6 Oct 2026
- 2026Characterizing High Bandwidth Flash for LLM Serving30 Sep 2026
- 2026HiSparse: Scaling Sparse-Attention Decoding with Hierarchical KV Cache Management7 Aug 2026
- 2026Autonomy-of-Heads: Data-Free Sparse Attention from Frozen Query-Key Geometry7 Aug 2026
- 2026Heterogeneous LLM Serving with General-Purpose Processing-Near-Memory for Retrieval-Based Sparse Attention4 Aug 2026
- 2026You Only Index Once: Cross-Layer Sparse Attention with Shared Routing4 Jun 2026
- 2026Move the Query, Not the Cache: Characterizing Cross-Instance Latent Attention Redistribution Across GPU Fabrics31 May 2026
- 2026IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inference25 May 2026
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compression7 May 2026
- 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attentioncited by 10
- 2026MISA: Mixture of Indexer Sparse Attention for Long-Context LLM Inferencecited by 5
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attentioncited by 3
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inferencecited by 3
- 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budgetcited by 3
- 2026LiteTopK: Exploiting the Curse of Dimensionality for a Fused Indexer-TopK Kernel in Long-Context Sparse Attentioncited by 1
- 2026PIVOT: Efficient Query-Group Indexing for Token-Level Sparse Attentioncited by 1
- 2026LongCat Sparse Attention: Taming the Lightning via Streaming-aware Hierarchical Cross-Layer Indexingcited by 1
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attentioncited by 0
- 2026Block-Sparse Attention with Semantic-Geometric Decoupled Routingcited by 0
- 2026Block Sparse Attention with Log-Linear Complexitycited by 0
- 2026VASC: Value-Aware Sparse Attention with Cross-Layer Memory for Efficient 3D Reconstructioncited by 0
12 most cited of 13 All 13 (JSON)
- 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Position7 Oct 2026
- 2026VASC: Value-Aware Sparse Attention with Cross-Layer Memory for Efficient 3D Reconstruction1 Oct 2026
- 2026Block Sparse Attention with Log-Linear Complexity25 Sep 2026
- 2026Block-Sparse Attention with Semantic-Geometric Decoupled Routing19 Sep 2026
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention20 Aug 2026
- 2026LongCat Sparse Attention: Taming the Lightning via Streaming-aware Hierarchical Cross-Layer Indexing3 Aug 2026
- 2026PIVOT: Efficient Query-Group Indexing for Token-Level Sparse Attention27 Jul 2026
- 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budget16 Jul 2026
- 2026LiteTopK: Exploiting the Curse of Dimensionality for a Fused Indexer-TopK Kernel in Long-Context Sparse Attention13 Jul 2026
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference3 Jun 2026
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attention18 May 2026
- 2026MISA: Mixture of Indexer Sparse Attention for Long-Context LLM Inference8 May 2026
12 newest of 13 All 13 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
- 2026Simplified Sparse Attention via Gist Tokens
- 2026COBS: Cumulant Order Block Sparse Attention
- 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
- 2026AB-Sparse: Sparse Attention with Adaptive Block Size for Accurate and Efficient Long-Context Inference
- 2026FlashMemory-DeepSeek-V4: Lightning Index Ultra-Long Context via Lookahead Sparse Attention
- 2024Beyond KV Caching: Shared Attention for Efficient LLMs
- 2026Augmenting Attention with Exponentially Decaying Memory Improves Query-Aware KV Sparsity