Just Let Linear States Forget the Distant Past: Prefix Caching via Suffix Replay for Hybrid LLMs
Not on the map. Why?
Abstract (arXiv)
Hybrid LLMs interleave full-attention layers with linear-attention layers to reduce long-context inference cost, but this structure complicates prefix caching. Full-attention KV caches are token-addressable, whereas linear-attention layers maintain recurrent states that cannot be rolled back to arbitrary prefix boundaries. Existing systems materialize recurrent-state checkpoints, restricting prefix reuse to checkpoint-aligned positions. We present SuffixReplay, the first prefix caching system that lets hybrid LLMs reuse cached prefixes at every cache-supported page boundary without materializing recurrent-state checkpoints. Our key insight is to just let linear states forget the distant past. Modern linear-attention mechanisms use recurrent decay and gating to attenuate the influence of old inputs. Therefore, instead of checkpointing every prefix boundary, SuffixReplay approximates the state at a matched boundary by replaying only a recent suffix of the layer's input hidden states, which we retain as anchors. At the algorithmic level, SuffixReplay combines layer-wise and token-wise anchor sparsity with a bounded replay budget to control storage, computation, and quality. At the system level, it uses an independently managed anchor sidecar and a pipelined replay path to overlap anchor movement and state reconstruction with the native serving pipeline. We evaluate SuffixReplay on three hybrid LLMs: OLMo-Hybrid-7B, Qwen3.5-4B, and Qwen3.6-27B-FP8. Across these models, SuffixReplay retains 91.4-100% of full-prefill quality on average across LongBench and RULER, while using only 0.36-0.51x the amortized per-token storage of SGLang's default 8192-token checkpoint cache. Integrated into SGLang, SuffixReplay reduces median TTFT by 15-70% on branching workloads, sustains 2.3-4.3x SGLang's throughput when the working set exceeds HBM, and matches SGLang on high-hit continuation traffic.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 25 of its 41 references that are in the map. First posted on arXiv 27 Sep 2026.
Builds on
25 of 41 references.
References · 25
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
- 2017The NarrativeQA Reading Comprehension Challengecited by 597
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 461
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 268
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 223
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
13 more
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 174
- 2024Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttentioncited by 163
- 2023Skeleton-of-Thought: Prompting LLMs for Efficient Parallel Generationcited by 105
- 2025Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Modelscited by 100
- 2024Preble: Efficient Distributed Prompt Scheduling for LLM Servingcited by 70
- 2024EPIC: Efficient Position-Independent Caching for Serving Large Language Modelscited by 47
- 2024AI Flow at the Network Edgecited by 46
- 2025AI Flow: Perspectives, Scenarios, and Approachescited by 44
- 2024Marconi: Prefix Caching for the Era of Hybrid LLMscited by 31
- 2026Olmo Hybrid: From Theory to Practice and Backcited by 22
- 2026HYPIC: Accelerating Hybrid-Attention LLM Serving with Position-Independent Cachingcited by 7
- 2026Sparse Prefix Caching for Hybrid and Recurrent LLM Servingcited by 4
- 2026LinearKV: One Cached State Suffices for Position-Independent Caching in Hybrid LLMscited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Tail-Replay: Escaping the Curse of Linear Attention in Prefix Caching for Hybrid LLMs
- 2026When Fancy Eviction Fails: Rethinking Cache Replacement For LLM Prefix Reuse
- 2026Not All Tokens Are Worth Caching: Learning Semantic-Aware Eviction for LLM Prefix Caches
- 2026TokenPilot: Cache-Efficient Context Management for LLM Agents
- 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
- 2026MiniPIC: Flexible Position-Independent Caching in <100LOC
- 2026HeteroCache: A Dynamic Retrieval Approach to Heterogeneous KV Cache Compression for Long-Context LLM Inference
- 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference