mlsanityData to 7 Oct 2026

IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reuse

arXiv 2603.12201 ↗First posted 12 Mar 2026cs.CL cs.LGcited by 27

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

  1. 2026GLM-5: from Vibe Coding to Agentic Engineering17 Feb

Other references · 48

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  3. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,748
  4. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  5. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  6. 2025Gemma 3 Technical Reportcited by 1,686
  7. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  8. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  9. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
  10. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
  11. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  12. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 755
36 more
  1. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
  2. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  3. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
  4. 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
  5. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  6. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
  7. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
  8. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
  9. 2025Generalizing Verifiable Instruction Followingcited by 178
  10. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
  11. 2026MiMo-V2-Flash Technical Reportcited by 163
  12. 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 157
  13. 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 135
  14. 2025XAttention: Block Sparse Attention with Antidiagonal Scoringcited by 131
  15. 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 122
  16. 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Modelscited by 122
  17. 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 121
  18. 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
  19. 2023SparQ Attention: Bandwidth-Efficient LLM Inferencecited by 119
  20. 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 113
  21. 2025Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Modelscited by 88
  22. 2025MiniCPM4: Ultra-Efficient LLMs on End Devicescited by 51
  23. 2025LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attentioncited by 41
  24. 2024SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attentioncited by 39
  25. 2026LongCat-Flash-Thinking-2601 Technical Reportcited by 32
  26. 2025InfLLM-V2: Dense-Sparse Switchable Attention for Seamless Short-to-Long Adaptationcited by 31
  27. 2024TidalDecode: Fast and Accurate LLM Decoding with Position Persistent Sparse Attentioncited by 28
  28. 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
  29. 2024MLKV: Multi-Layer Key-Value Heads for Memory Efficient Transformer Decodingcited by 20
  30. 2024SwiftKV: Fast Prefill-Optimized Inference with Knowledge-Preserving Model Transformationcited by 18
  31. 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inferencecited by 9
  32. 2026HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharingcited by 8
  33. 2025DELTA: Dynamic Layer-Aware Token Attention for Efficient Long-Context Reasoningcited by 5
  34. 2025Improving Model Representation and Reducing KV Cache via Skip Connections with First Value Headscited by 4
  35. 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Spacecited by 4
  36. 2026Lil: Less is Less When Applying Post-Training Sparse-Attention Algorithms in Long-Decode Stagecited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 27.

27 papers.

Sort:

By area:

  1. 2026On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training Stabilitycited by 20
  2. 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attentioncited by 10
  3. 2026IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inferencecited by 7
  4. 2026MISA: Mixture of Indexer Sparse Attention for Long-Context LLM Inferencecited by 5
  5. 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compressioncited by 4
  6. 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attentioncited by 3
  7. 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inferencecited by 3
  8. 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budgetcited by 3
  9. 2026HiSparse: Scaling Sparse-Attention Decoding with Hierarchical KV Cache Managementcited by 2
  10. 2026Move the Query, Not the Cache: Characterizing Cross-Instance Latent Attention Redistribution Across GPU Fabricscited by 1
  11. 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agentscited by 1
  12. 2026You Only Index Once: Cross-Layer Sparse Attention with Shared Routingcited by 1
15 more
  1. 2026LiteTopK: Exploiting the Curse of Dimensionality for a Fused Indexer-TopK Kernel in Long-Context Sparse Attentioncited by 1
  2. 2026PIVOT: Efficient Query-Group Indexing for Token-Level Sparse Attentioncited by 1
  3. 2026LongCat Sparse Attention: Taming the Lightning via Streaming-aware Hierarchical Cross-Layer Indexingcited by 1
  4. 2026Trace as State: Reasoning Traces as Conditional States for Long-Context Transformerscited by 1
  5. 2026Heterogeneous LLM Serving with General-Purpose Processing-Near-Memory for Retrieval-Based Sparse Attentioncited by 0
  6. 2026Autonomy-of-Heads: Data-Free Sparse Attention from Frozen Query-Key Geometrycited by 0
  7. 2026Palmyra x6 Technical Report: An Agentic, Tool-Use Model Post-Trained via Anchored Supervised Fine-Tuningcited by 0
  8. 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attentioncited by 0
  9. 2026Block-Sparse Attention with Semantic-Geometric Decoupled Routingcited by 0
  10. 2026Block Sparse Attention with Log-Linear Complexitycited by 0
  11. 2026SparseEngine: Sparse-First Inference Enginecited by 0
  12. 2026Characterizing High Bandwidth Flash for LLM Servingcited by 0
  13. 2026VASC: Value-Aware Sparse Attention with Cross-Layer Memory for Efficient 3D Reconstructioncited by 0
  14. 2026SPIN: Shadow Predictive Indexer for Sparse Attentioncited by 0
  15. 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Positioncited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
  2. 2026Simplified Sparse Attention via Gist Tokens
  3. 2026COBS: Cumulant Order Block Sparse Attention
  4. 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
  5. 2026AB-Sparse: Sparse Attention with Adaptive Block Size for Accurate and Efficient Long-Context Inference
  6. 2026FlashMemory-DeepSeek-V4: Lightning Index Ultra-Long Context via Lookahead Sparse Attention
  7. 2024Beyond KV Caching: Shared Attention for Efficient LLMs
  8. 2026Augmenting Attention with Exponentially Decaying Memory Improves Query-Aware KV Sparsity