跳到正文
arXiv cs.CL· Michel Fabrice Serret, Laura Grigori·· 11 小时前AI 评分31

基于核插值方法的注意力机制上下文压缩

Kernel-based Interpolatory Methods for Context Compression of Attention Mechanisms

AI 导读

研究者提出 GAIM 和 Q-DAIM 两种 KV-cache 压缩方法,分别基于 Generalized Empirical Interpolation Method(GEIM)与 Q-Discrete Empirical Interpolation Method(Q-DEIM)。

正文 · 原文

View PDF HTML (experimental)

Abstract:The bottleneck of attention mechanisms, which are the fundamental building block of modern language models, is their quadratic complexity in terms of context size. There has thus been an increasing interest in the compression of the context, also called KV-cache compression. In this article, we consider the problem of compressing the context of attention mechanisms by first formulating it in the Hilbert space associated with its kernel. In this formalism, attention can be represented as the ratio of two linear maps whose interpolant is also the ratio of interpolants, this allows us to consider the interpolation of the linear maps directly. We thus introduce two novel KV-cache compression methods which we call GAIM and Q-DAIM, based on the Generalized Empirical Interpolation Method (GEIM) and the Q-Discrete Empirical Interpolation Method (Q-DEIM), respectively. As the cost of these methods is quadratic in terms of context length, we propose surrogate models based on the Taylor series, the Performer and the Random Fourier Features method which allow the compression to be done in linear time. Finally, we extend this result to the streaming attention setting, providing new methods which allow one to penalize the selection of interpolation nodes based on the previously interpolated context and to update the previous interpolation based on new information. We then provide numerical results on the convergence of the residuals and the output error in future queries and preliminary results on the LongBench-E benchmark showing performance comparable to the state-of-the-art methods. These experiments suggest that the range revealed by our Q-DAIM method could help identify where information is concentrated in the KV cache, thus enabling an efficient compression.
Comments: 44 pages, 17 figures, 8 tables
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Numerical Analysis (math.NA)
MSC classes: 65D05 (Primary) 65D12, 65F55, 46E22, 41A05, 68T07, 68T50 (Secondary)
Cite as: arXiv:2610.40943 [cs.LG]
  (or arXiv:2610.40943v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2610.40943

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Michel Fabrice Serret [view email]
[v1] Thu, 29 Oct 2026 20:21:13 UTC (409 KB)

来源:arXiv cs.CL · arxiv.org