mlsanityData to 14 Oct 2026

Sparse Prefix Caching for Hybrid and Recurrent LLM Serving

arXiv 2605.05219 ↗First posted 17 Apr 2026cs.LG cs.AIcited by 4

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

Prefix caching is a key latency optimization for autoregressive LLM serving, yet existing systems assume dense per-token key/value reuse. State-space models change the structure of the problem: a recurrent layer can resume from a single stored state rather than requiring the entire token history. This asymmetry opens a new design point between no reuse and dense caching: store exact recurrent states at a sparse set of checkpoint positions and, on a cache hit, resume from the deepest stored checkpoint and recompute the remaining suffix exactly. We formalize sparse prefix caching as checkpoint placement under a distribution over overlap depths, yielding an exact O(NM) dynamic program. For use cases where requests share a non-trivial prefix (e.g. asking different questions about a single long document), we show that our method consistently improves the Pareto frontier traced by standard heuristics on real-world data. Across QuALITY and System Prompts, distribution-aware placement dominates every fixed-budget baseline on the measured layer-group Pareto frontier and matches or outperforms the strongest heuristic (block caching) while typically using substantially fewer checkpoints, with the largest gains at low checkpoint budgets where the overlap distribution is most non-uniform. The method is most relevant when many requests share a substantial but not identical prefix within a retained cache entry. It preserves exact outputs, does not change the recurrent computation itself or require new recurrent update kernels, applies to recurrent/SSM layers whose hidden state can be extracted and restored exactly, and for hybrid models can be combined with existing KV-cache compression techniques.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 22 of its 41 references that are in the map. First posted on arXiv 17 Apr 2026.

Builds on

22 of 41 references.

Closest ancestors · 7

Same direction, newest first

  1. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
  2. 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion26 May
  3. 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inference21 May
  4. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  5. 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partition23 Feb
  6. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
  7. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May

Other references · 15

  1. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  2. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  3. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  4. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
  5. 2016Training Deep Nets with Sublinear Memory Costcited by 848
  6. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
  7. 2017The NarrativeQA Reading Comprehension Challengecited by 597
  8. 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 558
  9. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  10. 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 208
  11. 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 116
  12. 2024Preble: Efficient Distributed Prompt Scheduling for LLM Servingcited by 70
3 more
  1. 2024Challenges in Deploying Long-Context Transformers: A Theoretical Peak Performance Analysiscited by 44
  2. 2024Marconi: Prefix Caching for the Era of Hybrid LLMscited by 31
  3. 2023Nonparametric Density Estimation under Distribution Driftcited by 6

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. 2025TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Serving
  2. 2026When Fancy Eviction Fails: Rethinking Cache Replacement For LLM Prefix Reuse
  3. 2026Not All Tokens Are Worth Caching: Learning Semantic-Aware Eviction for LLM Prefix Caches
  4. 2026Cache-Aware Prompt Compression:A Two-Tier Cost Model for LLM API Caching
  5. 2026PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systems
  6. 2025ShadowServe: Interference-Free KV Cache Fetching for Distributed Prefix Caching
  7. 2025Rethinking Caching for LLM Serving Systems: Beyond Traditional Heuristics
  8. 2026Requests of a Feather Must Flock Together: Batch Size vs. Prefix Homogeneity in LLM Inference