Learnable Low-Rank Polynomial Sketch for Effective Linear Attention
cs.LG, cs.AI, cs.CL
Submitted: 2026-10-09
Updated: 2026-10-09
Comments: Neurips 2026
License: http://creativecommons.org/licenses/by/4.0/
The gist: Softmax attention in Transformers suffers from quadratic complexity in sequence length, making it impractical for long-context applications.
Abstract
Softmax attention in Transformers suffers from quadratic complexity in sequence length, making it impractical for long-context applications. Linear attention alleviates this issue by replacing the exponential kernel with alternative functions that enable linear-time computation. Among existing linear attention approaches, recent studies have shown that polynomial kernels are particularly effective, as they exhibit sparse and spiky behavior similar to softmax attention, which emphasizes large dot products while suppressing irrelevant interactions. However, the exact computation of high-degree polynomial kernels is infeasible for high-dimensional representations. As a result, prior work relies on approximate polynomial kernels. This introduces a non-negligible approximation error. In this paper, we show that, from the perspective of polynomial kernel approximation, existing linear attention methods are still suboptimal. We propose Learnable Low-Rank Polynomial Sketch (LLoPS), a principled and flexible framework for approximating polynomial kernels with linear attention. Our method learns a low-rank polynomial sketch that provably achieves a strictly smaller approximation error than existing approaches. Experiment results show that LLoPS achieves the highest performance across extensive benchmarks, comparing with various linear attention baselines.
Sources
- Never Train from Scratch: Fair Comparison of Long-Sequence Models Requires Data-Driven Priors
- Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakes
- Simple linear attention language models balance the recall-throughput tradeoff
- Rethinking Attention with Performers
- Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
- The Pile: An 800GB Dataset of Diverse Text for Language Modeling
- PolySketchFormer: Fast Transformers via Sketching Polynomial Kernels
- EUGens: Efficient, Unified, and General Dense Layers
- PolaFormer: Polarity-aware Linear Attention for Vision Transformers
- RWKV: Reinventing RNNs for the Transformer Era
- cosFormer: Rethinking Softmax in Attention
- SQuAD: 100,000+ Questions for Machine Comprehension of Text
- Long Range Arena: A Benchmark for Efficient Transformers
- Kimi Linear: An Expressive, Efficient Attention Architecture
- Gated Delta Networks: Improving Mamba2 with Delta Rule
- HellaSwag: Can a Machine Really Finish Your Sentence?
- The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicry
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks