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

Yu-Zhen Mao, Qi-Tong Wang, M. Ester, Ke Li
4/1/2026
8 citations

No official code found. Best implementation: yuzhenmao/IceCache (25 stars, Python, MIT, last commit 2026-04-14).

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.

Show full abstract

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/.

View on arXivView PDF

Code Implementations(1)

yuzhenmao/IceCacheCommunity73%
MIT

Implementation for IceCache: Memory-Efficient KV-cache Management for Long-Sequence LLMs (ICLR 2026).

255Python, Cuda7 months agoMIT

Similar Papers

Cite this paper

@article{mao2026icecache,
  title  = {IceCache: Memory-efficient KV-cache Management for Long-Sequence LLMs},
  author = {Yu-Zhen Mao and Qi-Tong Wang and M. Ester and Ke Li},
  year   = {2026},
  eprint = {2604.10539},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2604.10539},
  journal = {International Conference on Learning Representations}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.10539.svg)](https://codeofpaper.com/paper/2604.10539)

Discussion