NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multi-Segment Attention: Enabling Efficient KV-Cache Management for Faster Large Language Model Serving

Chunan Shi, Yilei Chen, Yilin Chen, Xupeng Miao, Bin CuiarXiv 2026

TL;DR

Large Language Model (LLM) serving is heavily bottlenecked by the massive memory footprint of KV caches during long-context and multi-turn interactions. This paper introduces AsymCache, a lossless KV-cache management system that optimizes cache eviction by considering both future reuse likelihood and the asymmetric GPU recomputation costs of different token positions. By pairing this strategy with a novel Multi-Segment Attention kernel, AsymCache slashes Time-to-First-Token (TTFT) and Time-Per-Output-Token (TPOT) by up to 2× without sacrificing model accuracy.

What Problem Does This Paper Address?

To avoid redundant computations during autoregressive generation, LLM serving systems maintain a Key-Value (KV) cache of past tokens. However, as context lengths grow or conversations extend across multiple turns, the KV cache quickly overwhelms GPU memory.

To stay within memory limits, "lossless" serving systems temporarily evict some KV cache blocks from the GPU and reconstruct them on demand via recomputation. The core challenge lies in deciding which blocks to evict.

Existing systems rely on standard cache policies like Least Recently Used (LRU) or simple positional heuristics. However, they overlook computational asymmetry: due to the quadratic complexity of attention mechanisms, evicting a block near the end of a sequence (a suffix) costs significantly more to recompute than evicting a block at the beginning (a prefix). Conversely, caching only suffixes destroys the cache hit rate for shared system prompts.

Figure 2: Comparison on KV cache eviction scheme.

Methods

AsymCache bridges this gap by co-designing a latency-aware eviction policy with a custom GPU attention kernel. It consists of three main components:

  1. Multi-Segment Attention (MSA) Kernel: Standard attention kernels expect contiguous blocks of KV cache. AsymCache introduces a custom GPU kernel that can efficiently compute attention across non-contiguous segments (e.g., a shared prefix and a session suffix, with an evicted "hole" in the middle) within a single kernel call, eliminating kernel launch overheads.
  2. Computational-Aware Block Evictor: Instead of just tracking access frequency, AsymCache selects eviction targets by minimizing the expected recomputation latency (Frequency $\times$ Recomputation Cost).
  3. Chunking Scheduler: Integrated with chunked-prefill mechanics, this scheduler dynamically adjusts chunk sizes so that prefill tasks can seamlessly span across non-contiguous cached segments without underutilizing the GPU.
Figure 5: Schematic diagram of the Multi-Segment Attention Kernel operation. (An example for 2 prefill requests.)

Datasets

The authors evaluated AsymCache using two popular long-context benchmarks adapted into multi-turn conversation workloads:

  • LongBench (Average input/output: ~34.8K / 2.6K tokens)
  • LooGLE (Average input/output: ~24.4K / 0.7K tokens)

For evaluating agentic workflows, they utilized the Berkeley Function Calling Leaderboard (BFCL) v4.

Key Insights and Ideas

  • The Bimodal Cache Hit Distribution: By analyzing real-world multi-turn traces, the authors discovered that cache hits heavily cluster at the very beginning (shared system prompts) and the very end (recent history) of a sequence. The middle portion is a "low-reuse region." Evicting middle blocks yields massive memory savings while preserving high cache hit rates.
  • Mathematical Harmony for Speed: Prior cost-aware eviction algorithms suffered from a major flaw: their scoring metrics changed dynamically over time, forcing a slow $O(n)$ linear scan of all blocks during eviction. AsymCache solves this by proving that a piecewise exponential decay function preserves the relative ordering of block weights over time. This mathematical property unlocks $O(\log n)$ efficiency using standard balanced trees, dropping eviction overhead from 200ms to just 2ms per request.

Key Results

The authors implemented AsymCache on top of vLLM and tested it using Llama-3.1-8B and Llama-3.1-70B models:

  • End-to-End Speedups: AsymCache reduced Time-to-First-Token (TTFT) by up to 1.90–2.03× and Time-Per-Output-Token (TPOT) by 1.62–1.71× compared to standard vLLM (LRU) and other competitive baselines.
  • Agentic Workload Integration: Because AsymCache operates at the block level, it can be layered on top of request-level schedulers. When integrated with Continuum (a state-of-the-art agent serving framework), it further reduced average job latency by up to 18.1%.

Limitations and Future Work

  • GPU-Only Storage: AsymCache currently manages cache blocks strictly within GPU memory. It does not yet support hierarchical offloading to host DRAM or local NVMe disks.
  • Tier-Specific Cost Models: If extended to a multi-level storage hierarchy, the cost of fetching a block from DRAM depends on its data size rather than its sequence position. The authors note that eviction policies will need to be adapted uniquely for each storage tier.
  • Tighter Agent Co-Design: For agentic workflows, future work includes deeper integration between block-level eviction and the high-level program execution graphs of AI agents.

Summary updated

BibTeX
@misc{shi2026multi,
  author = {Chunan Shi and Yilei Chen and Yilin Chen and Xupeng Miao and Bin Cui},
  title = {{Multi-Segment Attention: Enabling Efficient KV-Cache Management for Faster Large Language Model Serving}},
  year = {2026},
  eprint = {2606.02964},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.02964},
}
Figure