跳到正文
HuggingFace Daily Papers· Shuyang Xiang·· 5 天前AI 评分31

NoHairCache:一次校准的幂律指数KV Cache淘汰方案

NoHairCache: Calibrate-Once KV Cache Eviction with One Power-Law Exponent

AI 导读

NoHairCache 提出用统一幂律打分 s_i = A_i·(t-i)^(-α) 统一 H2O 与 StreamingLLM 两种 KV Cache 淘汰框架,α=0 与 α→∞ 分别对应两者。

正文 · 原文

View PDF HTML (experimental)

Abstract:The decay exponent $\alpha$ in KV-cache eviction is an intrinsic property of the model: calibrated once on a single corpus, it transfers directly across domains. Attention-based accumulation (H2O) and recency-based sliding windows (StreamingLLM) are two dominant eviction frameworks, often treated as unrelated, but we show that they are the two endpoints of a single power-law family: by scoring each token as $s_i = A_i \cdot (t-i)^{-\alpha}$, where $A_i$ is cumulative attention and $\alpha$ controls the age penalty, H2O and StreamingLLM correspond to $\alpha=0$ and $\alpha\to\infty$, respectively (with StreamingLLM additionally hard-coding an attention-sink patch).
The no-hair mechanism of \citet{xiang2026nohair} bounds the admissible range of $\alpha$, and the measured exponents agree: calibrating once on WikiText yields $[0.556, 0.822]$ for a representative model (Qwen2.5-1.5B-Instruct). The per-model ranges are consistent across five models (410M--1.5B) and independently match the optimal regions from perplexity sweeps.
\textsc{NoHairCache} achieves the lowest perplexity across three datasets (WikiText, PG19, and arXiv) without per-dataset tuning, outperforming both H2O and StreamingLLM ($p < 0.05$ on all three datasets, with $0.06$--$0.10$ PPL gains over StreamingLLM at budget $512$). On downstream four-way multiple-choice QA, it matches or outperforms StreamingLLM across all nine (task, budget) cells, retaining $98.2\%$ of full-cache accuracy on NarrativeQA at $25\%$ retention versus $91.1\%$ for StreamingLLM; per-cell McNemar tests are not significant, so QA is corroborating only. We release our calibration script and drop-in scorer upon publication.
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.29006 [cs.CL]
  (or arXiv:2611.29006v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2611.29006

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Shuyang Xiang [view email]
[v1] Sat, 21 Nov 2026 19:36:14 UTC (118 KB)

来源:HuggingFace Daily Papers · arxiv.org