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 Rd, there exists a subset (K′,V′) of size at most O(deρ+o(ρ)/ε) such that ∥Attn(q,K,V)−Attn(q,K′,V′)∥≤ε 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 ε-coresets must have size Ω(deρ/ϵ).
@article{arxiv.2605.05602,
title = {Nearly Optimal Attention Coresets},
author = {Edo Liberty and Alexandr Andoni and Eldar Kleiner},
journal= {arXiv preprint arXiv:2605.05602},
year = {2026}
}