cs.DSSep 6, 2026

Query-Oblivious Coresets for Softmax Attention: Improved Bounds and Efficient Constructions

Authors: Ofek I. Cohen

Organizations: Tel Aviv University.

Abstract

A query-oblivious coreset for a softmax-attention head is a subset of the key-value pairs whose attention output is within ε\varepsilon of the full one for every query in a ball. Liberty, Andoni and Kleiner proved that unweighted coresets of size O(deρ+12log⁡ρ+o(log⁡log⁡ρ)/ε)O(\sqrt d e^{ρ+\frac12\logρ+o(\log\logρ)}/\varepsilon) exist, ρρ the query radius times the centred key radius, against a lower bound Ω(deρ/ε)Ω(\sqrt d e^ρ/\varepsilon), and conjectured that closing the gap needs new techniques. It does not: a spherical lift of both balls into one exponential-kernel instance lets the Bozzai-Rothvoss chaining bound apply, and Chevet's inequality splits key from value dimension, giving coresets of size O(eρ(dv+dklog⁡(1+ρ))/ε)O(e^ρ(\sqrt{d_v}+\sqrt{d_k\log(1+ρ)})/\varepsilon) in randomised polynomial time, the first constructive whole-ball guarantee within log⁡(1+ρ)\sqrt{\log(1+ρ)} of the lower bound. A sampling cap O(e2ρ/ε2)O(e^{2ρ}/\varepsilon^{2}) completes the envelope; in fixed dimension Tai's diameter-free bound removes the logarithm, settling the Gaussian-restriction case of a Bozzai-Rothvoss question for the kernels. We give theLiberty-Andoni-Kleiner lower boud transfer the one-waycommunication bounds of Chen et r is the price of one signing forall queries. A census of every head of Qwen2.5-7B-Instruct and Llama-3-8B-Instruct finds ρρ at least 23.877, so everyactor eρ/εe^ρ/\varepsilonprescribes a coreset larger than the cache: the algorithmic contribution is asymptotic on these models.

Figures & tables

Appendix figures & tables12 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Nearly Optimal Attention Coresets

    May 7, 2026Edo Liberty, Alexandr Andoni, Eldar KleinerSoftmax AttentionEfficient Attention

  2. Efficiently Approximating Attention Is Hard

    Sep 29, 2026Lukas Haverbeck, Carmen Amo Alonso, Andres Felipe Posada-Moreno +2Attention ApproximationEfficient Attention

  3. Attention via Black-Box Vector Search

    Oct 7, 2026Stepan Zharkov, Krish Singal, Ashwin Padaki +1Attention ApproximationEfficient Attention