Saved in:
Bibliographic Details
Main Authors: Yi, Jiawei, Gong, Ping, Bai, Youhui, Jin, Zewen, Wang, Shengnan, Ruan, Jiaqi, He, Jia, Zhu, Jiaan, Wang, Pengcheng, Wang, Haibo, Wang, Weiguang, Zhu, Xia, Li, Cheng
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.14510
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912984686657536
author Yi, Jiawei
Gong, Ping
Bai, Youhui
Jin, Zewen
Wang, Shengnan
Ruan, Jiaqi
He, Jia
Zhu, Jiaan
Wang, Pengcheng
Wang, Haibo
Wang, Weiguang
Zhu, Xia
Li, Cheng
author_facet Yi, Jiawei
Gong, Ping
Bai, Youhui
Jin, Zewen
Wang, Shengnan
Ruan, Jiaqi
He, Jia
Zhu, Jiaan
Wang, Pengcheng
Wang, Haibo
Wang, Weiguang
Zhu, Xia
Li, Cheng
contents During LLM inference, KVCache memory usage grows linearly with sequence length and batch size and often exceeds GPU capacity. Recent proposals offload KV states to host memory and reduce transfers using top-k attention. But their CPU-centric management of the on-GPU cache and CPU-GPU data movement incurs high overhead and fragments the bulk GPU execution that CUDA Graph relies on. To close this gap, we observe that adjacent queries within the same attention head exhibit strong directional similarity and retrieve highly overlapping top-k KV states. This insight enables a simple head granularity cache algorithm, QSAC, in which each head reuses its previously cached KV states whenever the current query is sufficiently similar to the prior one. QSAC further simplifies cache management primitives and cuts CPU involvement almost entirely. We develop LiteCache, a KVCache subsystem that incorporates QSAC. LiteCache introduces a GPU-centric synchronization controller and speculative sparse prefetching, enabling fully overlapped data movement and computation. These mechanisms produce a stable and predictable execution pattern that remains compatible with the bulk execution mode required by CUDA Graphs. Evaluation on two widely-used LLMs indicates that LiteCache achieves comparable accuracy to baselines, while sharply minimizing CPU overhead, fully utilizing PCIe bandwidth, thus improving decoding throughput by 10.7-224.2% on both H100 and A40 GPUs and easily supporting sequence lengths beyond 1M. We opensource LiteCache at https://anonymous.4open.science/r/LiteCache-888D.
format Preprint
id arxiv_https___arxiv_org_abs_2511_14510
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LiteCache: A Query Similarity-Driven, GPU-Centric KVCache Subsystem for Efficient LLM Inference
Yi, Jiawei
Gong, Ping
Bai, Youhui
Jin, Zewen
Wang, Shengnan
Ruan, Jiaqi
He, Jia
Zhu, Jiaan
Wang, Pengcheng
Wang, Haibo
Wang, Weiguang
Zhu, Xia
Li, Cheng
Machine Learning
During LLM inference, KVCache memory usage grows linearly with sequence length and batch size and often exceeds GPU capacity. Recent proposals offload KV states to host memory and reduce transfers using top-k attention. But their CPU-centric management of the on-GPU cache and CPU-GPU data movement incurs high overhead and fragments the bulk GPU execution that CUDA Graph relies on. To close this gap, we observe that adjacent queries within the same attention head exhibit strong directional similarity and retrieve highly overlapping top-k KV states. This insight enables a simple head granularity cache algorithm, QSAC, in which each head reuses its previously cached KV states whenever the current query is sufficiently similar to the prior one. QSAC further simplifies cache management primitives and cuts CPU involvement almost entirely. We develop LiteCache, a KVCache subsystem that incorporates QSAC. LiteCache introduces a GPU-centric synchronization controller and speculative sparse prefetching, enabling fully overlapped data movement and computation. These mechanisms produce a stable and predictable execution pattern that remains compatible with the bulk execution mode required by CUDA Graphs. Evaluation on two widely-used LLMs indicates that LiteCache achieves comparable accuracy to baselines, while sharply minimizing CPU overhead, fully utilizing PCIe bandwidth, thus improving decoding throughput by 10.7-224.2% on both H100 and A40 GPUs and easily supporting sequence lengths beyond 1M. We opensource LiteCache at https://anonymous.4open.science/r/LiteCache-888D.
title LiteCache: A Query Similarity-Driven, GPU-Centric KVCache Subsystem for Efficient LLM Inference
topic Machine Learning
url https://arxiv.org/abs/2511.14510