MMODELYST
Papers/Nearly Optimal Attention Coresets
PAP

Nearly Optimal Attention Coresets

May 7, 2026

arXiv
Abstract

We consider the problem of estimating the Attention mechanism in small space, and prove the existence of coresets for it of nearly optimal size. Specifically, we show that for any set of unit-norm keys and values $(K,V)$ in $\mathbb{R}^d$, there exists a subset $(K',V')$ of size at most $O({\sqrt{d} e^{ρ+o(ρ)}/\varepsilon})$ such that \[ \left\| \operatorname{Attn}(q,K,V)- \operatorname{Attn}(q,K',V') \right\| \le \varepsilon \] simultaneously for all queries whose norm is bounded by $ρ$. This outperforms the best known results for this problem. We also offer an improved lower bound showing that $\varepsilon$-coresets must have size $Ω({\sqrt{d} e^ρ/ε})$.

Select text to highlight · click a highlight to remove · saved in this browser only
Authors
Edo Liberty, Alexandr Andoni, Eldar Kleiner
Your notes (browser-local)
saved
arXiv:2605.05602