arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.07205cs.DScs.LG
收藏

流式注意力机制的紧界

Towards Tight Bounds for Streaming Attention

MIT(麻省理工学院);EPFL(苏黎世联邦理工学院)

Justin Y. Chen, Ying Feng, Piotr Indyk, Michael Kapralov, Ekaterina Kochetkova, Boris Prokhorov

AI总结:

本文通过核密度估计的三种方法(差异理论、多项式方法和空间划分)的紧密结合,几乎确定了流式注意力近似问题的空间复杂度紧界,并引入带大量辅助信息的INDEX问题新下界技术。

摘要:

注意力机制是现代Transformer架构的基石。然而,其表达能力以二次运行时和线性空间使用为代价。特别是,经典Transformer架构显式存储所有先前看到的输入元素(token)以生成下一个。在有限空间中实现Transformer的问题,称为KV缓存压缩,在过去几年中引起了广泛关注,推动了强大启发式算法的发展。Haris等人(COLT'25)和Kochetkova等人(NeurIPS'25)的最新工作将KV缓存压缩形式化为流式注意力近似问题,并提供了基于差异理论的上界和信息论下界。然而,这些论文在上界和下界之间留下了显著差距。例如,他们算法的空间使用随精度参数增加,但下界并未增强。在这项工作中,我们重新审视流式注意力近似问题,并给出了其空间复杂度的几乎紧界。在算法方面,我们通过核密度估计的三种不同方法(基于差异的coreset构造(如Charikar-Kapralov-Waingarten'24)、多项式方法(如Greengard-Rokhlin'87、Alman-Song'23)和空间划分(如Andoni-Laarhoven-Razenshteyn-Waingarten'17、Charikar-Kapralov-Nouri-Siminelakis'20))之间令人惊讶的紧密相互作用实现了这一结果。在下界方面,我们的主要技术贡献是一种使用大量辅助信息的INDEX问题的新技术,我们希望这将在其他高维几何估计问题中证明有用。

英文摘要:

The attention mechanism is a cornerstone of modern transformer architectures. However, its expressive power comes at the cost of quadratic runtime and linear space usage. In particular, the classical transformer architecture explicitly stores all previously seen input elements (tokens) in order to generate the next one. The problem of implementing a transformer in limited space, known as KV cache compression, has received much interest over the past few years, spurring the development of powerful heuristics. Recent works of Haris et al, COLT'25 and Kochetkova et al, NeurIPS'25, formalized KV cache compression as the streaming attention approximation problem, providing both upper bounds (based on discrepancy theory) and information theoretic lower bounds. However, those papers left open a significant gap between the upper and lower bounds. For example, the space usage of their algorithms increases with the precision parameter, but the lower bound does not get stronger. In this work, we revisit the streaming attention approximation problem and provide nearly tight bounds on its space complexity. On the algorithmic side, we achieve the result through a surprisingly tight interplay between three distinct methods for kernel density estimation: discrepancy-based coreset constructions (e.g., Charikar-Kapralov-Waingarten'24), the polynomial method (e.g., Greengard-Rokhlin'87, Alman-Song'23), and space partitioning (e.g., Andoni-Laarhoven-Razenshteyn-Waingarten'17, Charikar-Kapralov-Nouri-Siminelakis'20). On the lower bound side, our main technical contribution is a new technique for using the INDEX problem with a large amount of side information that we hope will prove useful in other high dimensional geometric estimation problems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑