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