mlsanityData to 7 Oct 2026

Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernel

arXiv 1908.11775 ↗First posted 30 Aug 2019cs.LG stat.MLcited by 211

Not on the map. Why?

Abstract (arXiv)

Transformer is a powerful architecture that achieves superior performance on various sequence learning tasks, including neural machine translation, language understanding, and sequence prediction. At the core of the Transformer is the attention mechanism, which concurrently processes all inputs in the streams. In this paper, we present a new formulation of attention via the lens of the kernel. To be more precise, we realize that the attention can be seen as applying kernel smoother over the inputs with the kernel scores being the similarities between inputs. This new formulation gives us a better way to understand individual components of the Transformer's attention, such as the better way to integrate the positional embedding. Another important advantage of our kernel-based formulation is that it paves the way to a larger space of composing Transformer's attention. As an example, we propose a new variant of Transformer's attention which models the input as a product of symmetric kernels. This approach achieves competitive performance to the current state of the art model with less computation. In our experiments, we empirically study different kernel construction strategies on two widely used tasks: neural machine translation and sequence prediction.

Key facts. Cited by 211 papers in the map (data through 7 Oct 2026). First posted on arXiv 30 Aug 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 22; 2022: 27; 2023: 40; 2024: 44; 2025: 45; 2026: 33.

211 papers.

Sort:

By area:

  1. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
  2. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  3. 2021A Survey of Transformerscited by 399
  4. 2021Random Feature Attentioncited by 350
  5. 2021Choose a Transformer: Fourier or Galerkincited by 333
  6. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
  7. 2021Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformerscited by 237
  8. 2022cosFormer: Rethinking Softmax in Attentioncited by 212
  9. 2021GraphiT: Encoding Graph Structure in Transformerscited by 146
  10. 2022ETSformer: Exponential Smoothing Transformers for Time-series Forecastingcited by 146
  11. 2023Scalable Transformer for PDE Surrogate Modelingcited by 123
  12. 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
38 more
  1. 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
  2. 2023Fast Attention Requires Bounded Entriescited by 102
  3. 2021Finetuning Pretrained Transformers into RNNscited by 94
  4. 2022Learning Operators with Coupled Attentioncited by 88
  5. 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
  6. 2024Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inferencecited by 75
  7. 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Contextcited by 63
  8. 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
  9. 2023Timewarp: Transferable Acceleration of Molecular Dynamics by Learning Time-Coarsened Dynamicscited by 62
  10. 2022Real-time Online Video Detection with Temporal Smoothing Transformerscited by 58
  11. 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encodingcited by 50
  12. 2022The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attentioncited by 45
  13. 2024Transformers Learn Nonlinear Features In Context: Nonconvex Mean-field Dynamics on the Attention Landscapecited by 43
  14. 2024Continuum Attention for Neural Operatorscited by 39
  15. 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 37
  16. 2021Relative Positional Encoding for Transformers with Linear Complexitycited by 36
  17. 2023PolySketchFormer: Fast Transformers via Sketching Polynomial Kernelscited by 33
  18. 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encodingcited by 32
  19. 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
  20. 2023Mitigating Over-smoothing in Transformers via Regularized Nonlocal Functionalscited by 31
  21. 2022(2.5+1)D Spatio-Temporal Scene Graphs for Video Question Answeringcited by 29
  22. 2021Improving Transformers with Probabilistic Attention Keyscited by 28
  23. 2023Primal-Attention: Self-attention through Asymmetric Kernel SVD in Primal Representationcited by 28
  24. 2025Tensor Product Attention Is All You Needcited by 27
  25. 2024Understanding the differences in Foundation Models: Attention, State Space Models, and Recurrent Neural Networkscited by 26
  26. 2024Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Passcited by 26
  27. 2022Exploring the Relationship between Architecture and Adversarially Robust Generalizationcited by 23
  28. 2022Neural Integral Equationscited by 23
  29. 2023Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddingscited by 23
  30. 2023QKSAN: A Quantum Kernel Self-Attention Networkcited by 23
  31. 2022Transformer Meets Boundary Value Inverse Problemscited by 22
  32. 2024In-Context Learning with Transformers: Softmax Attention Adapts to Function Lipschitznesscited by 22
  33. 2025Key-value memory in the braincited by 22
  34. 2023Calibrating Transformers via Sparse Gaussian Processescited by 21
  35. 2024Transformers Provably Learn Sparse Token Selection While Fully-Connected Nets Cannotcited by 21
  36. 2025Efficient Attention Mechanisms for Large Language Models: A Surveycited by 21
  37. 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensionscited by 20
  38. 2024Small Singular Values Matter: A Random Matrix Analysis of Transformer Modelscited by 20

50 most cited of 211 All 211 (JSON)