跳到正文
arXiv cs.AI· Johannes Wesch, Danni Liu, Jan Niehues·· 2 天前AI 评分44

KV²:一种自精炼的 KV cache 压缩方法

KV$^2$: A Self-Refining KV Cache

AI 导读

KV² 是一种基于选择性重建的 query-agnostic KV cache 压缩方法:先用轻量 proxy scorer 挑出信息量大的 token,再仅对该子集重新处理以计算最终淘汰分数。

正文 · 原文

View PDF HTML (experimental)

Abstract:The memory footprint of the key-value (KV) cache constrains the practical use of long-context models, and it dominates cost when one prefilled context must later serve many different queries. In this reusable setting, query-agnostic compression trades cost against quality: lightweight estimators are cheap but less accurate, whereas full-context reconstruction scoring is more accurate yet reprocesses the entire prompt. We propose KV2, a query-agnostic KV-cache compression method based on selective reconstruction. KV2 first uses a lightweight proxy scorer to identify informative in-context tokens, then reprocesses only this subset to compute final eviction scores. On RULER, Needle-in-a-Haystack, and LongBench, KV2's margin over baselines widens as the budget tightens: on RULER 16K at a 2\% KV-cache budget it improves the average score of Qwen3-8B over the next-best baseline by more than 40 percentage points, and on LongBench it attains the highest average at 2\%-5\% budgets by a wide margin (and remains ahead at 10\%), at lower compression-stage runtime and peak memory than full-context reconstruction. Reusable KV-cache compression thus does not require reprocessing the full context. Our code is available at this https URL.
Comments: EACL 2027 findings
Subjects: Artificial Intelligence (cs.AI); Computation and Language (cs.CL)
Cite as: arXiv:2610.03198 [cs.AI]
  (or arXiv:2610.03198v3 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2610.03198

arXiv-issued DOI via DataCite

Submission history

From: Danni Liu [view email]
[v1] Fri, 2 Oct 2026 12:11:35 UTC (1,107 KB)
[v2] Thu, 15 Oct 2026 11:16:05 UTC (1,108 KB)
[v3] Thu, 3 Dec 2026 17:05:18 UTC (1,111 KB)

来源:arXiv cs.AI · arxiv.org