ParisKV: Fast and Drift-Robust KV-Cache Retrieval for Long-Context LLMs

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Qi, Yanlin, Chen, Xinhang, Jiang, Huiqiang, Wang, Qitong, Peng, Botao, Palpanas, Themis
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913171680264192
author Qi, Yanlin
Chen, Xinhang
Jiang, Huiqiang
Wang, Qitong
Peng, Botao
Palpanas, Themis
author_facet Qi, Yanlin
Chen, Xinhang
Jiang, Huiqiang
Wang, Qitong
Peng, Botao
Palpanas, Themis
contents KV-cache retrieval is essential for long-context LLM inference, yet existing methods struggle with distribution drift and high latency at scale. We introduce ParisKV, a drift-robust, GPU-native KV-cache retrieval framework based on collision-based candidate selection, followed by a quantized inner-product reranking estimator. For million-token contexts, ParisKV supports CPU-offloaded KV caches via Unified Virtual Addressing (UVA), enabling on-demand top-$k$ fetching with minimal overhead. ParisKV matches or outperforms full attention quality on long-input and long-generation benchmarks. It achieves state-of-the-art long-context decoding efficiency: it matches or exceeds full attention speed even at batch size 1 for long contexts, delivers up to 2.8$\times$ higher throughput within full attention's runnable range, and scales to million-token contexts where full attention runs out of memory. At million-token scale, ParisKV reduces decode latency by 17$\times$ and 44$\times$ compared to MagicPIG and PQCache, respectively, two state-of-the-art KV-cache Top-$k$ retrieval baselines, code is available at https://github.com/amy-77/ParisKV/tree/main.
format Preprint
id arxiv_https___arxiv_org_abs_2602_07721
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle ParisKV: Fast and Drift-Robust KV-Cache Retrieval for Long-Context LLMs
Qi, Yanlin
Chen, Xinhang
Jiang, Huiqiang
Wang, Qitong
Peng, Botao
Palpanas, Themis
Machine Learning
Computation and Language
Databases
KV-cache retrieval is essential for long-context LLM inference, yet existing methods struggle with distribution drift and high latency at scale. We introduce ParisKV, a drift-robust, GPU-native KV-cache retrieval framework based on collision-based candidate selection, followed by a quantized inner-product reranking estimator. For million-token contexts, ParisKV supports CPU-offloaded KV caches via Unified Virtual Addressing (UVA), enabling on-demand top-$k$ fetching with minimal overhead. ParisKV matches or outperforms full attention quality on long-input and long-generation benchmarks. It achieves state-of-the-art long-context decoding efficiency: it matches or exceeds full attention speed even at batch size 1 for long contexts, delivers up to 2.8$\times$ higher throughput within full attention's runnable range, and scales to million-token contexts where full attention runs out of memory. At million-token scale, ParisKV reduces decode latency by 17$\times$ and 44$\times$ compared to MagicPIG and PQCache, respectively, two state-of-the-art KV-cache Top-$k$ retrieval baselines, code is available at https://github.com/amy-77/ParisKV/tree/main.
title ParisKV: Fast and Drift-Robust KV-Cache Retrieval for Long-Context LLMs
topic Machine Learning
Computation and Language
Databases
url https://arxiv.org/abs/2602.07721