mlsanityData to 14 Oct 2026

A Mathematical Explanation of Transformers

arXiv 2510.03989 ↗First posted 5 Oct 2025cs.LG cs.AI cs.NAcited by 2

Not on the map. Why?

Abstract (arXiv)

The Transformer architecture has revolutionized the field of sequence modeling and underpins the recent breakthroughs in large language models (LLMs). However, a comprehensive mathematical theory that explains its structure and operations remains elusive. In this work, we propose a novel continuous framework that rigorously interprets the Transformer as a discretization of a structured integro-differential equation. Within this formulation, the self-attention mechanism emerges naturally as a non-local integral operator, and layer normalization is characterized as a projection to a time-dependent constraint. This operator-theoretic and variational perspective offers a unified and interpretable foundation for understanding the architecture's core components, including attention, feedforward layers, and normalization. Our approach extends beyond previous theoretical analyses by embedding the entire Transformer operation in continuous domains for both token indices and feature dimensions. This leads to a principled and flexible framework that not only deepens on theoretical insight but also offers new directions for architecture design, analysis, and control-based interpretations. This new interpretation provides a step toward bridging the gap between deep learning architectures and continuous mathematical modeling, and contributes a foundational perspective to the ongoing development of interpretable and theoretically grounded neural network models.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 49 of its 72 references that are in the map. First posted on arXiv 5 Oct 2025.

Builds on

49 of 72 references.

References · 49

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
  4. 2016Layer Normalizationcited by 5,669
  5. 2018Neural Ordinary Differential Equationscited by 3,779
  6. 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,908
  7. 2019DeepONet: Learning nonlinear operators for identifying differential equations based on the universal approximation theorem of operatorscited by 2,018
  8. 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
  9. 2021Segmenter: Transformer for Semantic Segmentationcited by 855
  10. 2013Speech Recognition with Deep Recurrent Neural Networkscited by 669
  11. 2016Error bounds for approximations with deep ReLU networkscited by 574
  12. 2019Graph Transformer Networkscited by 523
37 more
  1. 2017PDE-Net: Learning PDEs from Datacited by 311
  2. 2017Recent Trends in Deep Learning Based Natural Language Processingcited by 263
  3. 2019Understanding and Improving Layer Normalizationcited by 217
  4. 2018Deep Neural Networks Motivated by Partial Differential Equationscited by 187
  5. 2018Universality of Deep Convolutional Neural Networkscited by 176
  6. 2020Deep Network Approximation for Smooth Functionscited by 164
  7. 2023A mathematical perspective on Transformerscited by 164
  8. 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 113
  9. 2024PnP-Flow: Plug-and-Play Image Restoration with Flow Matchingcited by 97
  10. 2022Vision Transformers provably learn spatial structurecited by 93
  11. 2019Nonparametric Regression on Low-Dimensional Manifolds using Deep ReLU Networks : Function Approximation and Statistical Recoverycited by 73
  12. 2025Transformers without Normalizationcited by 70
  13. 2021Neural ODE control for classification, approximation and transportcited by 57
  14. 2019Machine Learning from a Continuous Viewpointcited by 50
  15. 2024Transformers are Universal In-context Learnerscited by 43
  16. 2019MgNet: A Unified Framework of Multigrid and Convolutional Neural Networkcited by 41
  17. 2019Deep learning as optimal control problems: models and numerical methodscited by 34
  18. 2021Stochastic Normalizing Flows for Inverse Problems: a Markov Chains Viewpointcited by 32
  19. 2023Approximation and Estimation Ability of Transformers for Sequence-to-Sequence Functions with Infinite Dimensional Inputcited by 32
  20. 2020Deep Convolutional Neural Networks with Spatial Regularization, Volume and Star-shape Priori for Image Segmentationcited by 31
  21. 2021Redesigning the Transformer Architecture with Insights from Multi-particle Dynamical Systemscited by 31
  22. 2024Understanding Scaling Laws with Statistical and Approximation Theory for Transformer Neural Networks on Intrinsically Low-dimensional Datacited by 30
  23. 2024HAMLET: Graph Transformer Neural Operator for Partial Differential Equationscited by 24
  24. 2023PottsMGNet: A Mathematical Explanation of Encoder-Decoder Based Neural Networkscited by 17
  25. 2024Mamba Neural Operator: Who Wins? Transformers vs. State-Space Models for PDEscited by 16
  26. 2023Conditional Generative Models are Provably Robust: Pointwise Guarantees for Bayesian Inverse Problemscited by 13
  27. 2022DOSnet as a Non-Black-Box PDE Solver: When Deep Learning Meets Operator Splittingcited by 11
  28. 2020Convex Shape Prior for Deep Neural Convolution Network based Eye Fundus Images Segmentationcited by 10
  29. 2023Double-well Net for Image Segmentationcited by 7
  30. 2021Diffusion Mechanism in Residual Neural Network: Theory and Applicationscited by 5
  31. 2025Transformers for Learning on Noisy and Task-Level Manifolds: Approximation and Generalization Insightscited by 5
  32. 2024Deep Convolutional Neural Networks Meet Variational Shape Compactness Priors for Image Segmentationcited by 4
  33. 2024Attention is a smoothed cubic splinecited by 4
  34. 2024A Mathematical Explanation of UNetcited by 4
  35. 2019A Lightweight Recurrent Network for Sequence Modelingcited by 3
  36. 2022Batch Layer Normalization, A new normalization layer for CNNs and RNNcited by 3
  37. 2025Provable Mixed-Noise Learning with Flow-Matchingcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.