arXiv Machine Learning

Towards Tight Bounds for Streaming Attention

arXiv:2606. 07205v1 Announce Type: cross Abstract: The attention mechanism is a cornerstone of modern transformer architectures.

arXiv Machine Learning
Nov 2

Kernel-based Interpolatory Methods for Context Compression of Attention Mechanisms

The paper introduces two new kernel‑based methods, GAIM and Q‑DAIM, for compressing the key‑value cache in attention mechanisms by formulating the problem in a Hilbert space and applying empirical interpolation techniques. To reduce the quadratic cost of these methods, the authors propose surrogate models—including Taylor series, Performer, and Random Fourier Features—that enable linear‑time compression. The work also extends to streaming attention, offering node‑selection penalties and interpolation updates, and demonstrates competitive performance on the LongBench‑E benchmark.

By Michel Fabrice Serret, Laura Grigori
arXiv Machine Learning
Oct 28

Attention under Bounded Key-Query Similarity: Space Complexity and Transformer Anisotropy

The paper investigates the space complexity of attention mechanisms when key/query cosine similarities are constrained to a small interval around zero, reflecting the anisotropy observed in real transformers. It presents a nearly space‑optimal algorithm alongside a matching lower bound, showing that the distribution of similarities in the lower bound aligns with empirical anisotropy. The study also demonstrates that a simple uniform sampling approach is nearly optimal for typical parameter ranges, explaining its effectiveness on real datasets.

By Justin Y. Chen, Ying Feng, Piotr Indyk, Michael Kapralov, Ekaterina Kochetkova, Boris Prokhorov
arXiv Machine Learning
Sep 10

Length Generalization for Transformers via Compression

arXiv:2609.08851v1 Announce Type: new Abstract: Recent advancements in transformer length generalization theory enable us to reliably predict when a transformer can learn to solve a task. In particul...

By Georg Zetzsche, Hongjian Jiang, Andy Yang, Pascal Bergstr\"a{\ss}er, Marco S\"alzer, David Chiang, Anthony W. Lin
arXiv Machine Learning
Oct 19

On the Trade-off Between Information Loss and Generalization in Sparse Attention

The paper investigates how sparse attention in Transformers balances information loss and generalization. It derives a closed‑form expression for the Jensen‑Shannon divergence between full and sparse attention distributions, and provides generalization bounds that depend on sparsity. The results quantify how reducing attention complexity introduces approximation error while lowering hypothesis class complexity.

By Zhongqi Fan, Zheng Tan
arXiv Machine Learning
6d ago

Exact Sequence Interpolation with Transformers

The paper proves that transformer models can exactly interpolate any finite dataset of input sequences in ℝ^d (d ≥ 2) to output sequences of equal or smaller length. It constructs a transformer with O(∑m^j) blocks and O(d∑m^j) parameters, using alternating feed‑forward and self‑attention layers, low‑rank attention matrices, and a clustering effect to keep complexity independent of input length. The results are first shown for hardmax self‑attention, then extended to softmax, and the authors provide convergence guarantees to a global minimizer under regularized training, thereby explaining transformers’ strong performance on exact sequence‑to‑sequence interpolation tasks.

By Albert Alcalde, Giovanni Fantuzzi, Enrique Zuazua
arXiv Machine Learning
Sep 30

Efficiently Approximating Attention Is Hard

arXiv:2609.37261v1 Announce Type: new Abstract: Softmax attention is ubiquitous in modern machine learning, but its quadratic scaling with sequence length makes it costly. To reduce this cost, attent...

By Lukas Haverbeck, Carmen Amo Alonso, Andres Felipe Posada-Moreno, Sebastian Trimpe, Marco Pavone
arXiv Machine Learning
Oct 27

Approaching I/O-optimality for Approximate Attention

arXiv:2605.23751v2 Announce Type: replace Abstract: We revisit the I/O complexity of attention in large language models. Given query-key-value matrices $Q,K,V\in\mathbb{R}^{n\times d}$, and a machine...

By P\'al Andr\'as Papp, Aleksandros Sobczyk, Anastasios Zouzias