[Paper Review] SLAY: Geometry-Aware Spherical Linearized Attention with Yat-Kernel
SLAY proposes a geometry-aware, linear-time attention mechanism by linearizing the Yat-kernel on unit-sphere queries/keys, achieving near-softmax performance with O(L) time and memory and outperforming prior linear-attention methods.
We propose a new class of linear-time attention mechanisms based on a relaxed and computationally efficient formulation of the recently introduced E-Product, often referred to as the Yat-kernel (Bouhsine, 2025). The resulting interactions are geometry-aware and inspired by inverse-square interactions in physics. Our method, Spherical Linearized Attention with Yat Kernels (SLAY), constrains queries and keys to the unit sphere so that attention depends only on angular alignment. Using Bernstein's theorem, we express the spherical Yat-kernel as a nonnegative mixture of polynomial-exponential product kernels and derive a strictly positive random-feature approximation enabling linear-time O(L) attention. We establish positive definiteness and boundedness on the sphere and show that the estimator yields well-defined, nonnegative attention scores. Empirically, SLAY achieves performance that is nearly indistinguishable from standard softmax attention while retaining linear time and memory scaling, and consistently outperforms prior linear-time attention mechanisms such as Performers and Cosformers. To the best of our knowledge, SLAY represents the closest linear-time approximation to softmax attention reported to date, enabling scalable Transformers without the typical performance trade-offs of attention linearization.
Motivation & Objective
- Motivate a linear-time attention mechanism that preserves geometric properties of the Yat-kernel (E-Product) for long-context modeling.
- Constrain queries/keys to unit norms to decouple alignment and distance, enabling linearization.
- Derive a positive random-feature approximation via Bernstein’s theorem to achieve O(L) attention.
- Show theoretical guarantees (positive definiteness, boundedness) and practical scalability.
- Empirically compare SLAY against softmax and prior linear-time methods across language and vision tasks, including Transformer-scale evaluation.
Proposed method
- Reformulate the Yat-Kernel as a spherical, geometry-aware similarity with unit-norm queries/keys.
- Linearize the denominator via Bernstein’s Theorem using a Laplace representation, yielding a positive mixture of polynomial–exponential kernels.
- Approximate the resulting kernels with strictly positive random features (polynomial via anchor features or similar, and exponential via PRFs).
- Discretize the integral with Gauss–Laguerre quadrature to obtain a finite sum of kernels.
- Fuse polynomial and exponential random features through a randomized tensor sketching to form a realizable linear-time attention map.
- Compute attention with standard linear-attention contractions using the proposed feature maps without forming the L×L attention matrix.
Experimental results
Research questions
- RQ1Can the Yat-kernel be made linear-time while preserving its geometry-aware properties by restricting queries/keys to the unit sphere?
- RQ2Does Bernstein’s theorem enable a positive, tractable random-feature representation of the spherical Yat-kernel that supports O(L) attention?
- RQ3Do SLAY-based transformers achieve near-softmax performance while maintaining linear time and memory scaling across language and vision tasks?
- RQ4How does SLAY compare against Performers, Cosformers, and other linear-time attention approaches in terms of accuracy and scalability?
- RQ5Is SLAY effective in extreme/large-label classification settings and in full-scale Transformer training regimes?
Key findings
- SLAY matches full spherical YAT attention and generally outperforms prior linear-time methods on core benchmarks.
- Under matched feature budgets, Anchor features provide strong accuracy with significantly lower latency than alternatives.
- SLAY exhibits linear-time attention with lower memory usage than exact methods, sustaining throughput for very long sequences.
- In extreme classification (Eurlex-4K), SLAY achieves higher P@1, P@3, P@5 and PSP@1/3/5 than Performer/FAVOR+ baselines.
- In SLAYformer experiments, SLAY-attention yields validation loss and perplexity close to standard softmax, outperforming other linear-time attention baselines by a substantial margin.
- SLAY demonstrates stable training and scalable performance up to long contexts, approaching softmax-level results while maintaining O(L) complexity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.