mlsanityData to 7 Oct 2026

Primal-Attention: Self-attention through Asymmetric Kernel SVD in Primal Representation

arXiv 2305.19798 ↗First posted 31 May 2023cs.LG cs.AI cs.CVcited by 28

Not on the map. Why?

Abstract (arXiv)

Recently, a new line of works has emerged to understand and improve self-attention in Transformers by treating it as a kernel machine. However, existing works apply the methods for symmetric kernels to the asymmetric self-attention, resulting in a nontrivial gap between the analytical understanding and numerical implementation. In this paper, we provide a new perspective to represent and optimize self-attention through asymmetric Kernel Singular Value Decomposition (KSVD), which is also motivated by the low-rank property of self-attention normally observed in deep layers. Through asymmetric KSVD, i) a primal-dual representation of self-attention is formulated, where the optimization objective is cast to maximize the projection variances in the attention outputs; ii) a novel attention mechanism, i.e., Primal-Attention, is proposed via the primal representation of KSVD, avoiding explicit computation of the kernel matrix in the dual; iii) with KKT conditions, we prove that the stationary solution to the KSVD optimization in Primal-Attention yields a zero-value objective. In this manner, KSVD optimization can be implemented by simply minimizing a regularization loss, so that low-rank property is promoted without extra decomposition. Numerical experiments show state-of-the-art performance of our Primal-Attention with improved efficiency. Moreover, we demonstrate that the deployed KSVD optimization regularizes Primal-Attention with a sharper singular value decay than that of the canonical self-attention, further verifying the great potential of our method. To the best of our knowledge, this is the first work that provides a primal-dual representation for the asymmetric kernel in self-attention and successfully applies it to modeling and optimization.

Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). Builds on 37 of its 59 references that are in the map. First posted on arXiv 31 May 2023.

Builds on

37 of 59 references.

References · 37

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  7. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2016Pointer Sentinel Mixture Modelscited by 2,992
  10. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  11. 2020Reformer: The Efficient Transformercited by 1,658
  12. 2020Rethinking Attention with Performerscited by 1,584
25 more
  1. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
  2. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  3. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  4. 2020D4RL: Datasets for Deep Data-Driven Reinforcement Learningcited by 1,406
  5. 2021Multiscale Vision Transformerscited by 896
  6. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  7. 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
  8. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  9. 2020A Transformer-based Framework for Multivariate Time Series Representation Learningcited by 449
  10. 2021Random Feature Attentioncited by 350
  11. 2021XCiT: Cross-Covariance Image Transformerscited by 335
  12. 2018The UEA multivariate time series classification archive, 2018cited by 330
  13. 2022cosFormer: Rethinking Softmax in Attentioncited by 212
  14. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
  15. 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
  16. 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
  17. 2018Learning long-range spatial dependencies with horizontal gated-recurrent unitscited by 98
  18. 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
  19. 2022Flowformer: Linearizing Transformers with Conservation Flowscited by 69
  20. 2021Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr"om Methodcited by 61
  21. 2019On Reproducing Kernel Banach Spaces: Generic Definitions and Unified Framework of Constructionscited by 29
  22. 2021Improving Transformers with Probabilistic Attention Keyscited by 28
  23. 2021Transformers are Deep Infinite-Dimensional Non-Mercer Binary Kernel Machinescited by 22
  24. 2022Jigsaw-ViT: Learning Jigsaw Puzzles in Vision Transformercited by 21
  25. 2021You Only Sample (Almost) Once: Linear Cost Self-Attention Via Bernoulli Samplingcited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 11; 2025: 9; 2026: 5.

28 papers.

Sort:

By area:

  1. 2024Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inferencecited by 75
  2. 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
  3. 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Contextcited by 63
  4. 2024In-Context Learning with Transformers: Softmax Attention Adapts to Function Lipschitznesscited by 22
  5. 2024WellDunn: On the Robustness and Explainability of Language Models and Large Language Models in Identifying Wellness Dimensionscited by 10
  6. 2025Revisiting Kernel Attention with Correlated Gaussian Process Representationcited by 9
  7. 2023Learning to Compute Gr"obner Basescited by 7
  8. 2024Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysiscited by 7
  9. 2024Elliptical Attentioncited by 7
  10. 2024Self-Attention through Kernel-Eigen Pair Sparse Variational Gaussian Processescited by 4
  11. 2025Learning Advanced Self-Attention for Linear Transformers in the Singular Value Domaincited by 3
  12. 2024Learning Analysis of Kernel Ridgeless Regression with Asymmetric Kernel Learningcited by 2
16 more
  1. 2024Learning in Feature Spaces via Coupled Covariances: Asymmetric Kernel SVD and Nystr"om methodcited by 2
  2. 2024Mirror Descent on Reproducing Kernel Banach Spacescited by 2
  3. 2024Reorganizing attention-space geometry with expressive attentioncited by 1
  4. 2025SchoenbAt: Rethinking Attention with Polynomial basiscited by 1
  5. 2025Beyond Motion Cues and Structural Sparsity: Revisiting Small Moving Target Detectioncited by 1
  6. 2026Interpretable Vision Transformers in Image Classification via SVDAcited by 1
  7. 2026QUEST: A robust attention formulation using query-modulated spherical attentioncited by 1
  8. 2024A Kernelizable Primal-Dual Formulation of the Multilinear Singular Value Decompositioncited by 0
  9. 2025A Reproduction Study: The Kernel PCA Interpretation of Self-Attention Fails Under Scrutinycited by 0
  10. 2025Revisiting Transformers with Insights from Image Filtering and Boostingcited by 0
  11. 2025Compact Vision Transformer by Reduction of Kernel Complexitycited by 0
  12. 2025DistrAttention: An Efficient and Flexible Self-Attention Mechanism on Modern GPUscited by 0
  13. 2025Rethinking PCA Through Dualitycited by 0
  14. 2026Diffusion-Inspired Reconfiguration of Transformers for Uncertainty Calibrationcited by 0
  15. 2026Self-Attention as Transport: Limits of Symmetric Spectral Diagnosticscited by 0
  16. 2026Prescriptive SVD-Inspired Attention via Spectral Energy Retentioncited by 0