Support Basis: Fast Attention Beyond Bounded Entries
Maryam Aliakbarpour, Vladimir Braverman, Junze Yin, Haochen Zhang
TL;DR
This paper tackles the quadratic complexity of softmax attention in transformers by introducing support-basis decomposition to relax the bounded-entry assumption. It develops a single-threshold framework under sub-Gaussianity and a multi-threshold extension that works without distributional assumptions, combining exact computations on large entries with polynomial-approximation and sketching for dense parts to achieve sub-quadratic runtime. The authors also provide a theoretical bridge showing softmax attention is closely approximated by a combination of polynomial attentions, explaining the empirical success of polynomial attention methods, and demonstrate practical benefits via runtime and accuracy improvements on multiple large-model benchmarks. Overall, the work delivers a practical, scalable approach to efficient attention with strong theoretical guarantees and supportive empirical evidence for real-world LLMs.
Abstract
The quadratic complexity of softmax attention remains a central bottleneck in scaling large language models (LLMs). [Alman and Song, NeurIPS 2023] proposed a sub-quadratic attention approximation algorithm, but it works only under the restrictive bounded-entry assumption. Since this assumption rarely holds in practice, its applicability to modern LLMs is limited. In this paper, we introduce support-basis decomposition, a new framework for efficient attention approximation beyond bounded entries. We empirically demonstrate that the entries of the query and key matrices exhibit sub-Gaussian behavior. Our approach uses this property to split large and small entries, enabling exact computation on sparse components and polynomial approximation on dense components. We establish rigorous theoretical guarantees, proving a sub-quadratic runtime, and extend the method to a multi-threshold setting that eliminates all distributional assumptions. Furthermore, we provide the first theoretical justification for the empirical success of polynomial attention [Kacham, Mirrokni, and Zhong, ICML 2024], showing that softmax attention can be closely approximated by a combination of multiple polynomial attentions with sketching.
