IceCache: Memory-efficient KV-cache Management for Long-Sequence LLMs

arXiv cs.LG / 4/14/2026

📰 NewsSignals & Early TrendsIdeas & Deep AnalysisModels & Research

Key Points

  • IceCache is a new KV-cache management approach for long-sequence LLM inference that targets the linear memory growth bottleneck on limited hardware.
  • It combines semantic token clustering with PagedAttention and uses a hierarchical, dynamically updatable structure to keep semantically related tokens in contiguous memory regions for more efficient selection and CPU↔GPU transfer.
  • Experiments on LongBench show that with a 256-token budget, IceCache preserves about 99% of the accuracy of a full KV-cache baseline.
  • Compared with other KV offloading methods, IceCache achieves competitive or better latency/accuracy while requiring only ~25% of the KV-cache token budget, especially benefiting long-generation tasks.
  • The paper provides an implementation publicly available at the project site for reproducing and building upon the technique.

Abstract

Key-Value (KV) cache plays a crucial role in accelerating inference in large language models (LLMs) by storing intermediate attention states and avoiding redundant computation during autoregressive generation. However, its memory footprint scales linearly with sequence length, often leading to severe memory bottlenecks on resource-constrained hardware. Prior work has explored offloading KV cache to the CPU while retaining only a subset on the GPU, but these approaches often rely on imprecise token selection and suffer performance degradation in long-generation tasks such as chain-of-thought reasoning. In this paper, we propose a novel KV cache management strategy, IceCache, which integrates semantic token clustering with PagedAttention. By organizing semantically related tokens into contiguous memory regions managed by a hierarchical, dynamically updatable data structure, our method enables more efficient token selection and better utilization of memory bandwidth during CPU-GPU transfers. Experimental results on LongBench show that, with a 256-token budget, IceCache maintains 99% of the original accuracy achieved by the full KV cache model. Moreover, compared to other offloading-based methods, IceCache attains competitive or even superior latency and accuracy while using only 25% of the KV cache token budget, demonstrating its effectiveness in long-sequence scenarios. The code is available on our project website at https://yuzhenmao.github.io/IceCache/.