mlsanityData to 7 Oct 2026

Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of View

arXiv 1906.02762 ↗First posted 6 Jun 2019cs.LG cs.CL stat.MLcited by 108

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 17; 2022: 13; 2023: 15; 2024: 13; 2025: 26; 2026: 24.

108 papers.

Sort:

By area:

  1. 2021A Survey of Transformerscited by 399
  2. 2023A mathematical perspective on Transformerscited by 160
  3. 2023The emergence of clusters in self-attention dynamicscited by 133
  4. 2021Is Attention Better Than Matrix Decomposition?cited by 75
  5. 2023Energy Transformercited by 69
  6. 2022Squeezeformer: An Efficient Transformer for Automatic Speech Recognitioncited by 50
  7. 2023How Smooth Is Attention?cited by 44
  8. 2021BERT, mBERT, or BiBERT? A Study on Contextualized Embeddings for Neural Machine Translationcited by 35
  9. 2021Redesigning the Transformer Architecture with Insights from Multi-particle Dynamical Systemscited by 29
  10. 2021Mask Attention Networks: Rethinking and Strengthen Transformercited by 28
  11. 2024Measure-to-measure interpolation using Transformerscited by 28
  12. 2022Do Residual Neural Networks discretize Neural Ordinary Differential Equations?cited by 27
38 more
  1. 2022ODE Transformer: An Ordinary Differential Equation-Inspired Model for Sequence Generationcited by 26
  2. 2021Transformers are Deep Infinite-Dimensional Non-Mercer Binary Kernel Machinescited by 22
  3. 2022Does Simultaneous Speech Translation need Simultaneous Models?cited by 22
  4. 2024Provably learning a multi-head attention layercited by 21
  5. 2023Implicit regularization of deep residual networks towards neural ODEscited by 20
  6. 2021DelightfulTTS: The Microsoft Speech Synthesis System for Blizzard Challenge 2021cited by 19
  7. 2021ResIST: Layer-Wise Decomposition of ResNets for Distributed Trainingcited by 18
  8. 2024Synchronization on circles and spheres with nonlinear interactionscited by 17
  9. 2023Sparse Backpropagation for MoE Trainingcited by 16
  10. 2025Block-Recurrent Dynamics in Vision Transformerscited by 16
  11. 2024Clustering in pure-attention hardmax transformers and its role in sentiment analysiscited by 15
  12. 2021Neural network stochastic differential equation models with applications to financial data forecastingcited by 14
  13. 2023When Good and Reproducible Results are a Giant with Feet of Clay: The Importance of Software Quality in NLPcited by 14
  14. 2025Token embeddings violate the manifold hypothesiscited by 14
  15. 2021Staircase Attention for Recurrent Processing of Sequencescited by 13
  16. 2022A Neural ODE Interpretation of Transformer Layerscited by 13
  17. 2023A Comparative Study on E-Branchformer vs Conformer in Speech Recognition, Translation, and Understanding Taskscited by 13
  18. 2026Spurious Rewards Paradox: Mechanistically Understanding How RLVR Activates Memorization Shortcuts in LLMscited by 13
  19. 2021ODE Transformer: An Ordinary Differential Equation-Inspired Model for Neural Machine Translationcited by 12
  20. 2021End-to-end Neural Diarization: From Transformer to Conformercited by 12
  21. 2024The Asymptotic Behavior of Attention in Transformerscited by 12
  22. 2022Designing Robust Transformers using Robust Kernel Density Estimationcited by 11
  23. 2025Transformer Dynamics: A neuroscientific approach to interpretability of large language modelscited by 11
  24. 2021UniDrop: A Simple yet Effective Technique to Improve Transformer without Extra Costcited by 10
  25. 2021On the Regularity of Attentioncited by 9
  26. 2021Non-autoregressive End-to-end Speech Translation with Parallel Autoregressive Rescoringcited by 9
  27. 2022CipherDAug: Ciphertext based Data Augmentation for Neural Machine Translationcited by 9
  28. 2026Truth as a Trajectory: What Internal Representations Reveal About Large Language Model Reasoningcited by 9
  29. 2025Optimal Control for Transformer Architectures: Enhancing Generalization, Robustness and Efficiencycited by 8
  30. 2024Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamicscited by 7
  31. 2024Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysiscited by 7
  32. 2024Elliptical Attentioncited by 7
  33. 2025OT-Transformer: A Continuous-time Transformer Architecture with Optimal Transport Regularizationcited by 7
  34. 2026Perceptrons and localization of attention's mean-field landscapecited by 7
  35. 2024Unification of Symmetries Inside Neural Networks: Transformer, Feedforward and Neural ODEcited by 6
  36. 2025HD-NDEs: Neural Differential Equations for Hallucination Detection in LLMscited by 6
  37. 2025Multistability of Self-Attention Dynamics in Transformerscited by 6
  38. 2021IOT: Instance-wise Layer Reordering for Transformer Structurescited by 5

50 most cited of 108 All 108 (JSON)