Flow-based Spectral Kernel Learning for Nonstationary Attention
Zi Yang, Ying Li, Alejandro Lancho, Dario C. Larese, Pablo Olmos, Michael Minyi Zhang
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Linear Attention Memory Mechanisms · Type: new method · Keywords: nonstationary attention, spectral kernel learning, normalizing flows, parameter-efficient attention, linear-attention scaling
Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Efficient Attention
Summary
FSKA introduces a flow-based spectral kernel learning framework that enables expressive nonstationary attention kernels while reducing projection-related trainable parameters by roughly 40%-47% and maintaining favorable linear-attention scaling.
Explained to a 5-year-old
Imagine a robot that looks at words and decides which parts to focus on, like how we read a story. Usually, the robot uses the same rule to compare words, but this new idea lets the rule change depending on what it's reading. By using a special math trick, the robot can learn better ways to compare words while using fewer parts of its brain. This helps the robot work faster and need less memory. As a result, the robot can understand language just as well as before, but with less effort.
Explained to a 5-year-old, longer
A computer program called a transformer reads lots of words to understand them. It uses a kind of attention to decide which words are important for each other. Most of the time, the attention rule is the same for every pair of words. This new paper says that rule can be changed to fit the situation better. They use a mathematical method that learns how the attention should look. Think of it like drawing a picture of how words should be related, but the picture can be different each time. Because the attention can change, the program can capture more subtle relationships between words. At the same time, they simplify the model by removing some extra calculations. This means the program needs fewer adjustable numbers, which saves memory and makes it faster. In tests, the new method works as well as the old one, sometimes even better. It also uses less of the computer’s memory when processing many words. Overall, the idea helps make language models more efficient without losing performance.
For a technical reader
The paper addresses the limitation of stationary kernels in kernelized attention by proposing a framework that learns nonstationary spectral densities. It leverages normalizing flows to parameterize the spectral density, enabling flexible and regularizable kernel learning while preserving linear-time and memory complexity. The resulting architecture simplifies the attention computation by eliminating query-key projections and using fixed orthogonal value projections, reducing trainable parameters by roughly 40%-47%. Experiments on classification tasks demonstrate competitive performance compared to existing attention mechanisms and confirm the scalability benefits. This approach provides a practical route to more expressive attention without sacrificing efficiency, suitable for integration into transformer-based systems.
Problem
Existing attention mechanisms often rely on fixed or stationary kernels, limiting their ability to adapt similarity structures to complex token interactions. This makes it difficult to learn expressive, nonstationary attention kernels while keeping models parameter-efficient.
Method
The approach learns a bivariate spectral density via spectral density learning and parameterizes it with normalizing flows, enabling flexible and regularizable kernel learning. This design allows a simplified attention architecture that removes query-key projections and uses fixed orthogonal value projections, yielding a more parameter-efficient model while preserving linear-attention computation.
Results
The approach attains competitive or better performance than existing attention mechanisms while cutting projection-related trainable parameters by roughly 40%-47% and keeping linear-attention memory scaling favorable.
Contributions
It introduces a framework for learning expressive nonstationary attention kernels via spectral density learning and normalizing flows, and demonstrates that this enables a simplified, parameter-efficient attention architecture with fixed orthogonal value projections and no query-key projections.
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