Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of View
Not on the map. Why?
Abstract (arXiv)
The Transformer architecture is widely used in natural language processing. Despite its success, the design principle of the Transformer remains elusive. In this paper, we provide a novel perspective towards understanding the architecture: we show that the Transformer can be mathematically interpreted as a numerical Ordinary Differential Equation (ODE) solver for a convection-diffusion equation in a multi-particle dynamic system. In particular, how words in a sentence are abstracted into contexts by passing through the layers of the Transformer can be interpreted as approximating multiple particles' movement in the space using the Lie-Trotter splitting scheme and the Euler's method. Given this ODE's perspective, the rich literature of numerical analysis can be brought to guide us in designing effective structures beyond the Transformer. As an example, we propose to replace the Lie-Trotter splitting scheme by the Strang-Marchuk splitting scheme, a scheme that is more commonly used and with much lower local truncation errors. The Strang-Marchuk splitting scheme suggests that the self-attention and position-wise feed-forward network (FFN) sub-layers should not be treated equally. Instead, in each layer, two position-wise FFN sub-layers should be used, and the self-attention sub-layer is placed in between. This leads to a brand new architecture. Such an FFN-attention-FFN layer is "Macaron-like", and thus we call the network with this new architecture the Macaron Net. Through extensive experiments, we show that the Macaron Net is superior to the Transformer on both supervised and unsupervised learning tasks. The reproducible codes and pretrained models can be found at https://github.com/zhuohan123/macaron-net
Key facts. Cited by 108 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 17; 2022: 13; 2023: 15; 2024: 13; 2025: 26; 2026: 24.
108 papers.
Sort:
By area:
- 2021A Survey of Transformerscited by 399
- 2023A mathematical perspective on Transformerscited by 160
- 2023The emergence of clusters in self-attention dynamicscited by 133
- 2021Is Attention Better Than Matrix Decomposition?cited by 75
- 2023Energy Transformercited by 69
- 2022Squeezeformer: An Efficient Transformer for Automatic Speech Recognitioncited by 50
- 2023How Smooth Is Attention?cited by 44
- 2021BERT, mBERT, or BiBERT? A Study on Contextualized Embeddings for Neural Machine Translationcited by 35
- 2021Redesigning the Transformer Architecture with Insights from Multi-particle Dynamical Systemscited by 29
- 2021Mask Attention Networks: Rethinking and Strengthen Transformercited by 28
- 2024Measure-to-measure interpolation using Transformerscited by 28
- 2022Do Residual Neural Networks discretize Neural Ordinary Differential Equations?cited by 27
38 more
- 2022ODE Transformer: An Ordinary Differential Equation-Inspired Model for Sequence Generationcited by 26
- 2021Transformers are Deep Infinite-Dimensional Non-Mercer Binary Kernel Machinescited by 22
- 2022Does Simultaneous Speech Translation need Simultaneous Models?cited by 22
- 2024Provably learning a multi-head attention layercited by 21
- 2023Implicit regularization of deep residual networks towards neural ODEscited by 20
- 2021DelightfulTTS: The Microsoft Speech Synthesis System for Blizzard Challenge 2021cited by 19
- 2021ResIST: Layer-Wise Decomposition of ResNets for Distributed Trainingcited by 18
- 2024Synchronization on circles and spheres with nonlinear interactionscited by 17
- 2023Sparse Backpropagation for MoE Trainingcited by 16
- 2025Block-Recurrent Dynamics in Vision Transformerscited by 16
- 2024Clustering in pure-attention hardmax transformers and its role in sentiment analysiscited by 15
- 2021Neural network stochastic differential equation models with applications to financial data forecastingcited by 14
- 2023When Good and Reproducible Results are a Giant with Feet of Clay: The Importance of Software Quality in NLPcited by 14
- 2025Token embeddings violate the manifold hypothesiscited by 14
- 2021Staircase Attention for Recurrent Processing of Sequencescited by 13
- 2022A Neural ODE Interpretation of Transformer Layerscited by 13
- 2023A Comparative Study on E-Branchformer vs Conformer in Speech Recognition, Translation, and Understanding Taskscited by 13
- 2026Spurious Rewards Paradox: Mechanistically Understanding How RLVR Activates Memorization Shortcuts in LLMscited by 13
- 2021ODE Transformer: An Ordinary Differential Equation-Inspired Model for Neural Machine Translationcited by 12
- 2021End-to-end Neural Diarization: From Transformer to Conformercited by 12
- 2024The Asymptotic Behavior of Attention in Transformerscited by 12
- 2022Designing Robust Transformers using Robust Kernel Density Estimationcited by 11
- 2025Transformer Dynamics: A neuroscientific approach to interpretability of large language modelscited by 11
- 2021UniDrop: A Simple yet Effective Technique to Improve Transformer without Extra Costcited by 10
- 2021On the Regularity of Attentioncited by 9
- 2021Non-autoregressive End-to-end Speech Translation with Parallel Autoregressive Rescoringcited by 9
- 2022CipherDAug: Ciphertext based Data Augmentation for Neural Machine Translationcited by 9
- 2026Truth as a Trajectory: What Internal Representations Reveal About Large Language Model Reasoningcited by 9
- 2025Optimal Control for Transformer Architectures: Enhancing Generalization, Robustness and Efficiencycited by 8
- 2024Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamicscited by 7
- 2024Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysiscited by 7
- 2024Elliptical Attentioncited by 7
- 2025OT-Transformer: A Continuous-time Transformer Architecture with Optimal Transport Regularizationcited by 7
- 2026Perceptrons and localization of attention's mean-field landscapecited by 7
- 2024Unification of Symmetries Inside Neural Networks: Transformer, Feedforward and Neural ODEcited by 6
- 2025HD-NDEs: Neural Differential Equations for Hallucination Detection in LLMscited by 6
- 2025Multistability of Self-Attention Dynamics in Transformerscited by 6
- 2021IOT: Instance-wise Layer Reordering for Transformer Structurescited by 5
50 most cited of 108 All 108 (JSON)
- 2026Pattern Formation in Transformers29 Sep 2026
- 2026Clustered Attractor Manifolds and Dynamical Condensation in Self-Attention9 Aug 2026
- 2026Reasoning Errors Have a Region and a Direction in the Residual-Stream Trajectory of LLMs6 Aug 2026
- 2026The Geometry of Semantic Space: A Continuous Geometric Framework for the Transformer Architecture19 Jul 2026
- 2026Mixture-of-Control: State-Aware Fine-Tuning for Transformer-based Models30 Jun 2026
- 2026Phase transitions for the noisy transformer model in arbitrary dimension3 Jun 2026
- 2026Deep-layer limit and stability analysis of the basic forward-backward-splitting induced network (II): learning problems26 May 2026
- 2026Analogies between Transformer Layers and Power Method25 May 2026
- 2026InfoFlow: A Framework for Multi-Layer Transformer Analysis18 May 2026
- 2026Dynamics of the Transformer Residual Stream: Coupling Spectral Geometry to Network Topology14 May 2026
- 2026Training-Induced Escape from Token Clustering in a Mean-Field Formulation of Transformers8 May 2026
- 2026MTA: Multi-Granular Trajectory Alignment for Large Language Model Distillation2 May 2026
38 more
- 2026SRA: Span Representation Alignment for Large Language Model Distillation2 May 2026
- 2026Kuramoto Oscillatory Phase Encoding: Neuro-inspired Synchronization for Improved Learning Efficiency9 Apr 2026
- 2026SympFormer: Accelerated attention blocks via Inertial Dynamics on Density Manifolds17 Mar 2026
- 2026Truth as a Trajectory: What Internal Representations Reveal About Large Language Model Reasoning1 Mar 2026
- 2026Physics-based phenomenological characterization of cross-modal bias in multimodal models24 Feb 2026
- 2026Event-T2M: Event-level Conditioning for Complex Text-to-Motion Synthesis4 Feb 2026
- 2026Product Interaction: An Algebraic Formalism for Deep Learning Architectures31 Jan 2026
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformers30 Jan 2026
- 2026From Generative Modeling to Clinical Classification: A GPT-Based Architecture for EHR Notes29 Jan 2026
- 2026Perceptrons and localization of attention's mean-field landscape29 Jan 2026
- 2026Spurious Rewards Paradox: Mechanistically Understanding How RLVR Activates Memorization Shortcuts in LLMs16 Jan 2026
- 2026Linear Complexity Self-Supervised Learning for Music Understanding with Random Quantizer14 Jan 2026
- 2025Block-Recurrent Dynamics in Vision Transformers23 Dec 2025
- 2025Token Sample Complexity of Attention11 Dec 2025
- 2025Dynamical Properties of Tokens in Self-Attention and Effects of Positional Encoding25 Nov 2025
- 2025ODE-ViT: Plug & Play Attention Layer from the Generalization of the ViT as an Ordinary Differential Equation20 Nov 2025
- 2025Multistability of Self-Attention Dynamics in Transformers14 Nov 2025
- 2025Neuronal Group Communication for Efficient Neural representation19 Oct 2025
- 2025Optimal Control Theoretic Neural Optimizer: From Backpropagation to Dynamic Programming15 Oct 2025
- 2025Stability of Transformers under Layer Normalization10 Oct 2025
- 2025A Mathematical Explanation of Transformers5 Oct 2025
- 2025Machine Learning and Control: Foundations, Advances, and Perspectives30 Sep 2025
- 2025IIET: Efficient Numerical Transformer via Implicit Iterative Euler Method26 Sep 2025
- 2025Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problems18 Sep 2025
- 2025TokenBlowUp: Resolving Representational Singularities in LLM Token Spaces via Monoidal Transformations26 Jul 2025
- 2025AudioMAE++: learning better masked audio representations with SwiGLU FFNs14 Jul 2025
- 2025T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoders18 Jun 2025
- 2025Revisiting Transformers with Insights from Image Filtering and Boosting12 Jun 2025
- 2025HD-NDEs: Neural Differential Equations for Hallucination Detection in LLMs30 May 2025
- 2025Optimal Control for Transformer Architectures: Enhancing Generalization, Robustness and Efficiency16 May 2025
- 2025IM-BERT: Enhancing Robustness of BERT through the Implicit Euler Method11 May 2025
- 2025Federated Spectral Graph Transformers Meet Neural Ordinary Differential Equations for Non-IID Graphs16 Apr 2025
- 2025Token embeddings violate the manifold hypothesis1 Apr 2025
- 2025A Semantic-based Optimization Approach for Repairing LLMs: Case Study on Code Generation17 Mar 2025
- 2025Transformer Meets Twicing: Harnessing Unattended Residual Information2 Mar 2025
- 2025Transformer Dynamics: A neuroscientific approach to interpretability of large language models17 Feb 2025
- 2025ChordFormer: A Conformer-Based Architecture for Large-Vocabulary Audio Chord Recognition17 Feb 2025
- 2025OT-Transformer: A Continuous-time Transformer Architecture with Optimal Transport Regularization30 Jan 2025
50 newest of 108 All 108 (JSON)
- 2026Spurious Rewards Paradox: Mechanistically Understanding How RLVR Activates Memorization Shortcuts in LLMscited by 13
- 2026Truth as a Trajectory: What Internal Representations Reveal About Large Language Model Reasoningcited by 9
- 2026Reasoning Errors Have a Region and a Direction in the Residual-Stream Trajectory of LLMscited by 0
- 2026Reasoning Errors Have a Region and a Direction in the Residual-Stream Trajectory of LLMs6 Aug 2026
- 2026Truth as a Trajectory: What Internal Representations Reveal About Large Language Model Reasoning1 Mar 2026
- 2026Spurious Rewards Paradox: Mechanistically Understanding How RLVR Activates Memorization Shortcuts in LLMs16 Jan 2026
- 2021A Survey of Transformerscited by 399
- 2023A mathematical perspective on Transformerscited by 160
- 2023The emergence of clusters in self-attention dynamicscited by 133
- 2021Is Attention Better Than Matrix Decomposition?cited by 75
- 2023Energy Transformercited by 69
- 2022Squeezeformer: An Efficient Transformer for Automatic Speech Recognitioncited by 50
- 2023How Smooth Is Attention?cited by 44
- 2021BERT, mBERT, or BiBERT? A Study on Contextualized Embeddings for Neural Machine Translationcited by 35
- 2021Redesigning the Transformer Architecture with Insights from Multi-particle Dynamical Systemscited by 29
- 2021Mask Attention Networks: Rethinking and Strengthen Transformercited by 28
- 2024Measure-to-measure interpolation using Transformerscited by 28
- 2022Do Residual Neural Networks discretize Neural Ordinary Differential Equations?cited by 27
12 most cited of 99 All 99 (JSON)
- 2026Pattern Formation in Transformers29 Sep 2026
- 2026Clustered Attractor Manifolds and Dynamical Condensation in Self-Attention9 Aug 2026
- 2026The Geometry of Semantic Space: A Continuous Geometric Framework for the Transformer Architecture19 Jul 2026
- 2026Mixture-of-Control: State-Aware Fine-Tuning for Transformer-based Models30 Jun 2026
- 2026Phase transitions for the noisy transformer model in arbitrary dimension3 Jun 2026
- 2026Deep-layer limit and stability analysis of the basic forward-backward-splitting induced network (II): learning problems26 May 2026
- 2026Analogies between Transformer Layers and Power Method25 May 2026
- 2026InfoFlow: A Framework for Multi-Layer Transformer Analysis18 May 2026
- 2026Dynamics of the Transformer Residual Stream: Coupling Spectral Geometry to Network Topology14 May 2026
- 2026Training-Induced Escape from Token Clustering in a Mean-Field Formulation of Transformers8 May 2026
- 2026Kuramoto Oscillatory Phase Encoding: Neuro-inspired Synchronization for Improved Learning Efficiency9 Apr 2026
- 2026SympFormer: Accelerated attention blocks via Inertial Dynamics on Density Manifolds17 Mar 2026
12 newest of 99 All 99 (JSON)