mlsanityData to 14 Oct 2026

The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limit

arXiv 2306.17759 ↗First posted 30 Jun 2023stat.ML cs.LGcited by 47

Not on the map. Why?

Abstract (arXiv)

In deep learning theory, the covariance matrix of the representations serves as a proxy to examine the network's trainability. Motivated by the success of Transformers, we study the covariance matrix of a modified Softmax-based attention model with skip connections in the proportional limit of infinite-depth-and-width. We show that at initialization the limiting distribution can be described by a stochastic differential equation (SDE) indexed by the depth-to-width ratio. To achieve a well-defined stochastic limit, the Transformer's attention mechanism is modified by centering the Softmax output at identity, and scaling the Softmax logits by a width-dependent temperature parameter. We examine the stability of the network through the corresponding SDE, showing how the scale of both the drift and diffusion can be elegantly controlled with the aid of residual connections. The existence of a stable SDE implies that the covariance structure is well-behaved, even for very large depth and width, thus preventing the notorious issues of rank degeneracy in deep attention models. Finally, we show, through simulations, that the SDE provides a surprisingly good description of the corresponding finite-size model. We coin the name shaped Transformer for these architectural modifications.

Key facts. Cited by 47 papers in the map (data through 14 Oct 2026). Builds on 54 of its 76 references that are in the map. First posted on arXiv 30 Jun 2023.

Builds on

54 of 76 references.

References · 54

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2016Layer Normalizationcited by 5,669
  6. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  7. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
  8. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  9. 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
  10. 2020On Layer Normalization in the Transformer Architecturecited by 922
  11. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
  12. 2017Deep Neural Networks as Gaussian Processescited by 622
38 more
  1. 2017Deep Learning Scaling is Predictable, Empiricallycited by 582
  2. 2018A Mean Field View of the Landscape of Two-Layers Neural Networkscited by 466
  3. 2018On the Global Convergence of Gradient Descent for Over-parameterized Models using Optimal Transportcited by 426
  4. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
  5. 2018Gaussian Process Behaviour in Wide Deep Neural Networkscited by 317
  6. 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 288
  7. 2016Exponential expressivity in deep neural networks through transient chaoscited by 261
  8. 2021Deep learning: a statistical viewpointcited by 240
  9. 2016Deep Information Propagationcited by 195
  10. 2020Feature Learning in Infinite-Width Neural Networkscited by 190
  11. 2021The Principles of Deep Learning Theorycited by 173
  12. 2022Neural Networks can Learn Representations with Gradient Descentcited by 161
  13. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
  14. 2020When Do Neural Networks Outperform Kernel Methods?cited by 150
  15. 2022High-dimensional Asymptotics of Feature Learning: How One Gradient Step Improves the Representationcited by 150
  16. 2020Tensor Programs II: Neural Tangent Kernel for Any Architecturecited by 143
  17. 2023SGD learning on neural networks: leap complexity and saddle-to-saddle dynamicscited by 143
  18. 2022The merged-staircase property: a necessary and nearly sufficient condition for SGD learning of sparse functions on two-layer neural networkscited by 142
  19. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 141
  20. 2023Scaling Laws for Generative Mixed-Modal Language Modelscited by 134
  21. 2020Infinite attention: NNGP and NTK for deep attention networkscited by 121
  22. 2019Finite Depth and Width Corrections to the Neural Tangent Kernelcited by 115
  23. 2022Scaling Laws vs Model Architectures: How does Inductive Bias Influence Scaling?cited by 103
  24. 2019On the Impact of the Activation Function on Deep Neural Networks Trainingcited by 102
  25. 2017Mean Field Residual Networks: On the Edge of Chaoscited by 83
  26. 2019Non-Gaussian processes and neural networks at finite widthscited by 78
  27. 2019Asymptotics of Wide Networks from Feynman Diagramscited by 77
  28. 2022Neural Networks Efficiently Learn Low-Dimensional Representations with SGDcited by 63
  29. 2023Learning time-scales in two-layers neural networkscited by 57
  30. 2021Rapid training of deep neural networks without skip connections or normalization layers using Deep Kernel Shapingcited by 52
  31. 2018Products of Many Large Random Matrices and Gradients in Deep Neural Networkscited by 49
  32. 2020Stable ResNetcited by 49
  33. 2023Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal Propagationcited by 45
  34. 2022The Neural Covariance SDE: Shaped Infinite Depth-and-Width Networks at Initializationcited by 41
  35. 2021The Future is Log-Gaussian: ResNets and Their Infinite-Depth-and-Width Limit at Initializationcited by 33
  36. 2021Precise characterization of the prior predictive distribution of deep ReLU networkscited by 28
  37. 2022Deep Learning without Shortcuts: Shaping the Kernel with Tailored Rectifierscited by 28
  38. 2018Dynamical Isometry is Achieved in Residual Networks in a Universal Way for any Activation Functioncited by 22

50 most cited of 54 All 54 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 6; 2024: 18; 2025: 13; 2026: 10.

47 papers.

Sort:

By area:

  1. 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 377
  2. 2025Don't be lazy: CompleteP enables compute-efficient deep transformerscited by 78
  3. 2023Transformers as Support Vector Machinescited by 74
  4. 2023Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limitcited by 66
  5. 2025The Curse of Depth in Large Language Modelscited by 62
  6. 2024The Impact of Initialization on LoRA Finetuning Dynamicscited by 54
  7. 2024Attention with Markov: A Framework for Principled Analysis of Transformers via Markov Chainscited by 40
  8. 2024Infinite Limits of Multi-head Transformer Dynamicscited by 39
  9. 2023Simplifying Transformer Blockscited by 37
  10. 2024Measure-to-measure interpolation using Transformerscited by 29
  11. 2026There Will Be a Scientific Theory of Deep Learningcited by 29
  12. 2024Geometric Dynamics of Signal Propagation Predict Trainability of Transformerscited by 24
35 more
  1. 2024Super Consistency of Neural Network Landscapes and Learning Rate Transfercited by 23
  2. 2025Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisationcited by 17
  3. 2025Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Timecited by 16
  4. 2025Always Skip Attentioncited by 13
  5. 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
  6. 2024Understanding and Minimising Outlier Features in Neural Network Trainingcited by 10
  7. 2024Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformerscited by 9
  8. 2025AltLoRA: Towards Better Gradient Approximation in Low-Rank Adaptation with Alternating Projectionscited by 9
  9. 2026Learning Rate Scaling across LoRA Ranks and Transfer to Full Finetuningcited by 9
  10. 2023Towards Training Without Depth Limits: Batch Normalization Without Gradient Explosioncited by 8
  11. 2026Clustering in Deep Stochastic Transformerscited by 8
  12. 2024Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamicscited by 7
  13. 2024Bayesian Inference with Deep Weakly Nonlinear Networkscited by 5
  14. 2025Infinite-Width Limit of a Single Attention Layer: Analysis via Tensor Programscited by 5
  15. 2025Attention-Only Transformers via Unrolled Subspace Denoisingcited by 5
  16. 2023Differential Equation Scaling Limits of Shaped and Unshaped Neural Networkscited by 4
  17. 2024Pretraining Graph Transformers with Atom-in-a-Molecule Quantum Properties for Improved ADMET Modelingcited by 3
  18. 2024ReLU's Revival: On the Entropic Overload in Normalization-Free Large Language Modelscited by 3
  19. 2024AERO: Entropy-Guided Framework for Private LLM Inferencecited by 3
  20. 2025Attention-based clusteringcited by 3
  21. 2025Bayes optimal learning of attention-indexed modelscited by 3
  22. 2024Generalized Probabilistic Attention Mechanism in Transformerscited by 2
  23. 2025Provable Watermarking for Data Poisoning Attackscited by 2
  24. 2026Transforming Rank: How Architecture Navigates the Spectral Pathologies of Depthcited by 2
  25. 2023Commutative Width and Depth Scaling in Deep Neural Networkscited by 1
  26. 2024Federated Learning with Flexible Architecturescited by 1
  27. 2026Finite-Time Analysis of Gradient Descent for Shallow Transformerscited by 1
  28. 2026Weight-Decay Turns Transformer Loss Landscapes Villani: Functional-Analytic Foundations for Optimization and Generalizationcited by 1
  29. 2026Bayesian Inference with Shaped Deep Non-linear MLPscited by 1
  30. 2024A Generalization Bound for Nearly-Linear Networkscited by 0
  31. 2024Simplifying CLIP: Unleashing the Power of Large-Scale Models on Consumer-level Computerscited by 0
  32. 2025Deep Neural Nets as Hamiltonianscited by 0
  33. 2026Deciphering Neural Reparameterized Full-Waveform Inversion with Neural Sensitivity Kernel and Wave Tangent Kernelcited by 0
  34. 2026Geometric Dyson Brownian Motions and the Free Log-Normal Limit for a Non-Square Gaussian Matrix Productcited by 0
  35. 2026Optimal Learning Rate Scaling Depends on Data in Deep Scalar Linear Networkscited by 0