arXiv cs.CL· Hao Gu, Xintong Yang, Zhiwei Li, Lei Zhu, Jian Yang, Qiyuan Zhu, Dezhi Li, Jingyuan Zhang, Zhizhuo Kou, Hao Wang, Bei Liu, Jiacheng Liu, Sirui Han·· 11 小时前AI 评分38
KV Cache 驱逐的门控机制:可学习门控为何失效及两项修正条件
The Gating Mechanism of KV Cache Eviction
AI 导读
论文分析 KV cache 驱逐中可学习门控的失效原因:门控位于 softmax 归一化内,常数门控会被归一化吸收并精确复现冻结模型,因此在语言建模损失下门控停留在近常数、无法排序任何条目。
正文 · 原文
Authors:Hao Gu, Xintong Yang, Zhiwei Li, Lei Zhu, Jian Yang, Qiyuan Zhu, Dezhi Li, Jingyuan Zhang, Zhizhuo Kou, Hao Wang, Bei Liu, Jiacheng Liu, Sirui Han
Abstract:KV cache eviction must decide which entries carry information that the rest of the cache can no longer supply. A natural way to estimate this is a learnable gate: give each cached entry a gate on its attention weight and train the gate on the model's own objective. The gate belongs inside the normalizing softmax, where suppressing one entry hands its mass to the others rather than discarding it. That same normalizer absorbs any per-query constant, so a constant gate cancels and reproduces the frozen model exactly. Trained on the language-modeling loss the gate stays near a constant score while its loss falls throughout: optimization succeeds, but a frozen backbone was fit for dense attention, so its loss prefers the no-op, and a near-constant score ranks nothing. The no-op is not a floor the gate improves from but what its objective asks for. A second obstacle survives once the gate moves, since the same gradient charges the gate for errors the frozen model already makes, which no reweighting of positions separates out. Much of the machinery in learnable eviction, from sparsity penalties to relaxations of the discrete decision, works around the first obstacle rather than removing it; both are removed by putting dense attention beyond the gate's reach and making the dense model's predictions its target. Under these two conditions capacity is never the missing ingredient: neither a larger scorer, nor explicit access to the past, nor a trainable backbone helps. The same holds for what eviction unavoidably discards, which is recovered by parameter-free centroids read inside the same softmax far better than by any memory read outside it, since the mass they must return is a share of that normalizer and available nowhere else. At 75\% KV cache compression, this gate reaches 90.14 on RULER at 8K and 46.03 on LongBench with Qwen3-8B, 3.72 and 1.36 points below full-cache inference.
| Comments: | this https URL |
| Subjects: | Computation and Language (cs.CL) |
| Cite as: | arXiv:2611.07605 [cs.CL] |
| (or arXiv:2611.07605v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2611.07605 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Hao Gu [view email]
[v1]
Thu, 5 Nov 2026 07:53:37 UTC (557 KB)
来源:arXiv cs.CL · arxiv.org