跳到正文
arXiv:cs.AI· Junjie Li, Jiong Lou, Jie Li·· 6 小时前

GateSight:用循环记忆预判注意力记忆,为混合 LLM 实现查询无关的 KV 淘汰

GateSight: Recurrent Memory Anticipates Attention Memory for Query-Agnostic KV Eviction in Hybrid LLMs

AI 导读

GateSight 是一种面向混合 LLM 的查询无关 KV 淘汰方法,它用轻量级逐头多层感知机读取 GDN 层在 prefill 阶段发出的写门、衰减和写幅度信号,预测 KV 条目的未来效用,并在 prefill 后一次性打分、物理释放被丢弃的 KV 条目。

正文

View PDF HTML (experimental)

Abstract:Hybrid language models interleave Gated DeltaNet (GDN) layers, whose recurrent memory has a fixed size, with full-attention layers, whose key-value (KV) cache grows with the context and dominates serving memory. In this paper, we ask whether the recurrent memory already knows what the attention memory will need. We first show that which GDN heads of Qwen3.8-27B keep long memories is fixed by the weights rather than by the document. Next, we define the future utility of a KV entry by how much removing it changes the attention output over the model's own continuations, and find that the write gate, decay and write magnitude that GDN layers emit during prefill anticipate this utility before any query is seen. Because the relation is spread across many GDN heads and layers, and a linear map recovers its trend but less of its high-utility tail than a nonlinear one, we propose GateSight, which learns it with lightweight per-head multilayer perceptrons that read these signals and no attention score. Their predicted utility decides which entries each attention layer keeps, and how much each layer keeps is set by the model's native attention output gate, whose mean differs by more than an order of magnitude across layers. Finally, at serving time, GateSight scores the cache once after prefill and physically releases discarded KV entries. Experimental results on SCBench and RULER-4096 with Qwen3.8-27B and, with the same recipe, the sparse-attention model Qwen3.8-Flash-Next, up to the 262K-token limit of the models, show that with a tenth of the attention KV cache, GateSight is the most accurate of five query-agnostic methods on three of the four model-benchmark pairs and leads KVzip on all four, by 9.5 to 47.2 points. Notably, it scores a full-length context with negligible overhead relative to prefill.
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.14754 [cs.AI]
  (or arXiv:2610.14754v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2610.14754

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Junjie Li [view email]
[v1] Sat, 10 Oct 2026 09:19:05 UTC (672 KB)

来源:arXiv:cs.AI · arxiv.org