Flow-based Spectral Kernel Learning for Nonstationary Attention
Not on the map. Why?
Abstract (arXiv)
Kernelized attention provides a useful perspective for understanding self-attention as a similarity-based aggregation mechanism, but existing approaches often rely on fixed or stationary kernels, limiting their ability to adapt the similarity structure to complex token interactions. In this paper, we propose flow-based spectral kernel attention (FSKA), a framework for learning expressive nonstationary attention kernels. FSKA formulates kernelized attention through spectral density learning and parameterizes the resulting bivariate spectral density with normalizing flows. This design enables flexible and regularizable kernel learning while remaining compatible with scalable linear-attention computation. We further show that expressive kernel learning enables a simplified attention design with removed query--key projections and fixed orthogonal value projections, resulting in a more parameter-efficient architecture. Controlled experiments on classification, ablation, and scalability profiling show that FSKA achieves competitive or improved performance over existing attention mechanisms, while reducing projection-related trainable parameters by approximately 40%--47% compared with most baselines and maintaining favorable linear-attention memory scaling. Code Available: https://github.com/ziyang18/FSKA.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 18 of its 22 references that are in the map. Submitted 21 Oct 2026.
Builds on
18 of 22 references.
References · 18
- 2017Attention Is All You Needcited by 62,125
- 2020Language Models are Few-Shot Learnerscited by 33,113
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 31,279
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 5,111
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,406
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,130
- 2016Density estimation using Real NVPcited by 2,125
- 2020Rethinking Attention with Performerscited by 1,669
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 714
- 2021Random Feature Attentioncited by 364
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 223
6 more
- 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Mapcited by 22
- 2021On Learning the Transformer Kernelcited by 17
- 2019Implicit Kernel Learningcited by 14
- 2020Implicit Kernel Attentioncited by 14
- 2024Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysiscited by 10
- 2025Multi-View Oriented GPLVM: Expressiveness and Efficiencycited by 2
Built on by
Not cited yet.