Seedlabs
Source research

SwiftCache: Efficient LLM Serving for Multi-turn Conversations with Heterogeneous KV Cache Sharing

Jianmin Hu, Minxian Xu, Sa Wang, Chong Ma, Min Shen, Kejiang Ye et al. · 2026 · 2 citationsRead the paper

Multi-turn conversation is a fundamental scenario in LLM applications, widely used in chatbots and AI agents. As the conversation evolves, historical tokens accumulate continuously. Existing systems cache their key-value (KV) pairs to avoid redundant computation. However, limited GPU memory (HBM) capacity often forces these KV caches to be offloaded to CPU memory or SSD, making KV cache reloads increasingly costly in terms of latency as the context grows. Meanwhile, the constrained HBM capacity also limits the maximum inference length, thereby restricting the number of turns that can be supported in a conversation. To address these two challenges, we propose SwiftCache, a collaborative inference system that enables heterogeneous models to share underutilized GPU memory and NVLink bandwidth within a server. Specifically, models with low KV cache demand donate idle GPU memory to store the prefix cache of high-demand models, allowing cross-model KV cache sharing over NVLink and avoiding slow PCIe transfers. SwiftCache further reduces memory pressure by keeping only the KV cache of the currently active layer in local GPU memory, thereby enabling longer-context inference. Our experiments on real-world workloads show that SwiftCache reduces P99 time-to-first-token (TTFT) by up to 69% and extends maximum context length by up to 3.98x compared to vLLM and SGLang, with minimal interference to co-located models.

What the full text shows

Working prototype
  • Reduction in P99 time-to-first-token (TTFT) compared to vLLM and SGLang — up to 69% (Real-world workloads)
  • Extension of maximum context length compared to vLLM and SGLang — up to 3.98x (Real-world workloads)
  • PCIe-based KV cache loading overhead increases as history grows — 73.2% to 86.2% of total latency (5k to 50k historical tokens on two 96 GB H20 GPUs)
Setup
Tested on multi-GPU servers (e.g., two 96 GB H20 GPUs) using real-world workloads and the LWM-1M-Text dataset.
How
SwiftCache implements a collaborative inference system where models with low KV cache demand donate idle GPU memory to store prefix caches for high-demand models via NVLink. It further employs a layer stream cache that keeps only the currently active layer's KV cache in local GPU memory to reduce memory pressure.
Limitations
Limited to single multi-GPU servers due to NVLink hardware requirements · Multi-server extension would incur significant communication overhead

Summarized by Gemma 4 from the open-access full text · 10 Nov 2026. Read it