mlsanityData to 14 Oct 2026

Stochastic KV Routing: Enabling Adaptive Depth-Wise Cache Sharing

arXiv 2604.22782 ↗First posted 3 Apr 2026cs.LG cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

Serving transformer language models with high throughput requires caching Key-Values (KVs) to avoid redundant computation during autoregressive generation. The memory footprint of KV caching is significant and heavily impacts serving costs. This work proposes to lessen these memory requirements. While recent work has largely addressed KV cache reduction via compression and eviction along the temporal axis, we argue that the depth dimension offers an orthogonal and robust avenue for optimization. Although prior research suggests that a full cache for every layer is redundant, implementing cross-layer cache sharing remains a practical challenge; existing methods typically suffer from reduced throughput or increased time-to-first-token. In this paper, we demonstrate that dropping a layer's cache offers efficient optimization without information loss. We propose a simple training approach: random cross-layer attention. During training, layers randomly choose to attend either to their own KV states or those of a preceding layer. This stochastic process adapts the model to be robust to various depth-wise cache sharing strategies, ensuring flexibility for unknown hardware constraints at deployment time. Our evaluations show that applying this scheme during pre-training or fine-tuning enables depth-wise cache sharing for various model families. Furthermore, for larger models in data-constrained settings, this approach is suggestive of a regularization-like effect, frequently preserving or improving performance while significantly reducing the cache's memory footprint.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 35 of its 40 references that are in the map. First posted on arXiv 3 Apr 2026.

Builds on

35 of 40 references.

References · 35

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2025Qwen3 Technical Reportcited by 8,820
  5. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  6. 2020Longformer: The Long-Document Transformercited by 3,413
  7. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  8. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  9. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  10. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
  11. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
  12. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
23 more
  1. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  2. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
  3. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
  4. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 591
  5. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  6. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 474
  7. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
  8. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 432
  9. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
  10. 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 131
  11. 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Modelscited by 125
  12. 2025NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Modelcited by 108
  13. 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstructioncited by 95
  14. 2024Layer-Condensed KV Cache for Efficient Inference of Large Language Modelscited by 59
  15. 2025CAKE: Cascading and Adaptive KV Cache Eviction with Layer Preferencescited by 58
  16. 2024KVSharer: Efficient Inference via Layer-Wise Dissimilar KV Cache Sharingcited by 41
  17. 2024RepLiQA: A Question-Answering Dataset for Benchmarking LLMs on Unseen Reference Contentcited by 26
  18. 2024A Systematic Study of Cross-Layer KV Sharing for Efficient LLM Inferencecited by 17
  19. 2025LAVa: Layer-wise KV Cache Eviction with Dynamic Budget Allocationcited by 16
  20. 2025Multipole Attention for Efficient Long Context Reasoningcited by 14
  21. 2024XC-Cache: Cross-Attending to Cached Context for Efficient LLM Inferencecited by 12
  22. 2025RATTENTION: Towards the Minimal Sliding Window Size in Local-Global Attention Modelscited by 10
  23. 2025CommonKV: Compressing KV Cache with Cross-layer Parameter Sharingcited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Reconstructing KV Caches with Cross-layer Fusion For Enhanced Transformers
  2. 2026Exploring a Layer-Wise Design Space for KV Cache Eviction
  3. 2026Sequential KV Cache Compression via Probabilistic Language Tries: Beyond the Per-Vector Shannon Limit
  4. 2026How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformers
  5. 2026The risk of KV cache compression
  6. 2026KV Cache Optimization Strategies for Scalable and Efficient LLM Inference
  7. 2026KV-Pipe: On the Relation Between KV Sharing and Pipeline Parallel Efficiency in LLMs
  8. 2026Every Cache Entry Earns Its Place: Global Allocation of Resolution and Coverage for KV Cache Compression