Stochastic KV Routing: Enabling Adaptive Depth-Wise Cache Sharing
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
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2025Qwen3 Technical Reportcited by 8,820
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
23 more
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 591
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 474
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 432
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 131
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Modelscited by 125
- 2025NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Modelcited by 108
- 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstructioncited by 95
- 2024Layer-Condensed KV Cache for Efficient Inference of Large Language Modelscited by 59
- 2025CAKE: Cascading and Adaptive KV Cache Eviction with Layer Preferencescited by 58
- 2024KVSharer: Efficient Inference via Layer-Wise Dissimilar KV Cache Sharingcited by 41
- 2024RepLiQA: A Question-Answering Dataset for Benchmarking LLMs on Unseen Reference Contentcited by 26
- 2024A Systematic Study of Cross-Layer KV Sharing for Efficient LLM Inferencecited by 17
- 2025LAVa: Layer-wise KV Cache Eviction with Dynamic Budget Allocationcited by 16
- 2025Multipole Attention for Efficient Long Context Reasoningcited by 14
- 2024XC-Cache: Cross-Attending to Cached Context for Efficient LLM Inferencecited by 12
- 2025RATTENTION: Towards the Minimal Sliding Window Size in Local-Global Attention Modelscited by 10
- 2025CommonKV: Compressing KV Cache with Cross-layer Parameter Sharingcited by 9
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026DepthWeave-KV: Token-Adaptive Cross-Layer Residual Factorization for Long-Context KV Cache Compressioncited by 1
- 2026KV-Lingo: Learning KV-Cache Translators with Distillationcited by 1
- 2026KV-Kaizen: Learning Context-Adaptive Cache Compression Choicescited by 1
- 2026WhiteMatter: All-to-All Cross-Layer Connections via KV Source Mixingcited by 0
- 2026KV-Kaizen: Learning Context-Adaptive Cache Compression Choices29 Sep 2026
- 2026KV-Lingo: Learning KV-Cache Translators with Distillation26 Sep 2026
- 2026WhiteMatter: All-to-All Cross-Layer Connections via KV Source Mixing19 Aug 2026
- 2026DepthWeave-KV: Token-Adaptive Cross-Layer Residual Factorization for Long-Context KV Cache Compression7 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2025Reconstructing KV Caches with Cross-layer Fusion For Enhanced Transformers
- 2026Exploring a Layer-Wise Design Space for KV Cache Eviction
- 2026Sequential KV Cache Compression via Probabilistic Language Tries: Beyond the Per-Vector Shannon Limit
- 2026How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformers
- 2026The risk of KV cache compression
- 2026KV Cache Optimization Strategies for Scalable and Efficient LLM Inference
- 2026KV-Pipe: On the Relation Between KV Sharing and Pipeline Parallel Efficiency in LLMs
- 2026Every Cache Entry Earns Its Place: Global Allocation of Resolution and Coverage for KV Cache Compression