Learnable Low-Rank Polynomial Sketch for Effective Linear Attention
Zongyue Qin, Haoran Deng, Jason Cong, Yizhou Sun
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Linear Attention Memory Mechanisms · Type: new method · Keywords: linear attention, polynomial kernel approximation, low-rank sketch, transformers, sequence modeling
Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Efficient Attention
Summary
LLoPS introduces a learnable low-rank polynomial sketch that provides a more accurate approximation of polynomial kernels for linear attention, achieving superior performance across extensive benchmarks.
Explained to a 5-year-old
In big computers, we look at many things at once using attention. Looking at everything is slow, so we use a trick to look faster. The trick learns a simple sketch that helps the computer guess which things are important. It guesses better than the old tricks. This makes the computer work faster and understand more.
Explained to a 5-year-old, longer
Computers that read text or pictures often use a special way to pay attention to everything at once. This way works well but gets very slow when there are many things to look at. To make it faster, researchers created a new method that looks at things in a simpler way. This new method learns a tiny sketch that captures the most important parts of what we want to see. The sketch acts like a shortcut that helps the computer focus on the right things quickly. Unlike older shortcuts, this sketch is designed to be more accurate, so it makes fewer mistakes. By using this better sketch, the computer can handle longer sequences without slowing down. The method has been tested on many different tasks and works better than the old ways. It helps the computer understand longer texts or videos more clearly. The improvement means that applications like language translation or video analysis can run faster. Overall, the new method makes attention faster and more reliable for big problems. This can lead to smarter assistants and more efficient AI tools.
For a technical reader
The paper tackles the quadratic time complexity of softmax attention by focusing on linear attention approximations based on polynomial kernels. Existing approximations suffer from non-negligible errors because high-degree polynomial kernels are approximated coarsely. LLoPS introduces a learnable low-rank polynomial sketch that can be optimized end-to-end to reduce this approximation error provably. Experiments on extensive benchmarks show that the approach consistently outperforms other linear attention baselines without increasing computational cost. The framework is flexible and can be plugged into any transformer-style model that uses linear attention.
Problem
Softmax attention in Transformers has quadratic complexity, making it impractical for long sequences. Linear attention reduces this cost, but approximating high-degree polynomial kernels accurately remains challenging, leading to non-negligible approximation errors.
Method
The approach learns a low-rank polynomial sketch that approximates polynomial kernels more faithfully than existing methods, using a principled formulation that provably reduces approximation error.
Results
The approach achieves the highest performance across extensive benchmarks compared to various linear attention baselines.
Contributions
It provides a principled and flexible framework for approximating polynomial kernels with provably lower approximation error and demonstrates superior empirical performance.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction