The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limit
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
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2016Layer Normalizationcited by 5,669
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
- 2017Deep Neural Networks as Gaussian Processescited by 622
38 more
- 2017Deep Learning Scaling is Predictable, Empiricallycited by 582
- 2018A Mean Field View of the Landscape of Two-Layers Neural Networkscited by 466
- 2018On the Global Convergence of Gradient Descent for Over-parameterized Models using Optimal Transportcited by 426
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
- 2018Gaussian Process Behaviour in Wide Deep Neural Networkscited by 317
- 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 288
- 2016Exponential expressivity in deep neural networks through transient chaoscited by 261
- 2021Deep learning: a statistical viewpointcited by 240
- 2016Deep Information Propagationcited by 195
- 2020Feature Learning in Infinite-Width Neural Networkscited by 190
- 2021The Principles of Deep Learning Theorycited by 173
- 2022Neural Networks can Learn Representations with Gradient Descentcited by 161
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
- 2020When Do Neural Networks Outperform Kernel Methods?cited by 150
- 2022High-dimensional Asymptotics of Feature Learning: How One Gradient Step Improves the Representationcited by 150
- 2020Tensor Programs II: Neural Tangent Kernel for Any Architecturecited by 143
- 2023SGD learning on neural networks: leap complexity and saddle-to-saddle dynamicscited by 143
- 2022The merged-staircase property: a necessary and nearly sufficient condition for SGD learning of sparse functions on two-layer neural networkscited by 142
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 141
- 2023Scaling Laws for Generative Mixed-Modal Language Modelscited by 134
- 2020Infinite attention: NNGP and NTK for deep attention networkscited by 121
- 2019Finite Depth and Width Corrections to the Neural Tangent Kernelcited by 115
- 2022Scaling Laws vs Model Architectures: How does Inductive Bias Influence Scaling?cited by 103
- 2019On the Impact of the Activation Function on Deep Neural Networks Trainingcited by 102
- 2017Mean Field Residual Networks: On the Edge of Chaoscited by 83
- 2019Non-Gaussian processes and neural networks at finite widthscited by 78
- 2019Asymptotics of Wide Networks from Feynman Diagramscited by 77
- 2022Neural Networks Efficiently Learn Low-Dimensional Representations with SGDcited by 63
- 2023Learning time-scales in two-layers neural networkscited by 57
- 2021Rapid training of deep neural networks without skip connections or normalization layers using Deep Kernel Shapingcited by 52
- 2018Products of Many Large Random Matrices and Gradients in Deep Neural Networkscited by 49
- 2020Stable ResNetcited by 49
- 2023Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal Propagationcited by 45
- 2022The Neural Covariance SDE: Shaped Infinite Depth-and-Width Networks at Initializationcited by 41
- 2021The Future is Log-Gaussian: ResNets and Their Infinite-Depth-and-Width Limit at Initializationcited by 33
- 2021Precise characterization of the prior predictive distribution of deep ReLU networkscited by 28
- 2022Deep Learning without Shortcuts: Shaping the Kernel with Tailored Rectifierscited by 28
- 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
Citing papers per year: 2023: 6; 2024: 18; 2025: 13; 2026: 10.
47 papers.
Sort:
By area:
- 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 377
- 2025Don't be lazy: CompleteP enables compute-efficient deep transformerscited by 78
- 2023Transformers as Support Vector Machinescited by 74
- 2023Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limitcited by 66
- 2025The Curse of Depth in Large Language Modelscited by 62
- 2024The Impact of Initialization on LoRA Finetuning Dynamicscited by 54
- 2024Attention with Markov: A Framework for Principled Analysis of Transformers via Markov Chainscited by 40
- 2024Infinite Limits of Multi-head Transformer Dynamicscited by 39
- 2023Simplifying Transformer Blockscited by 37
- 2024Measure-to-measure interpolation using Transformerscited by 29
- 2026There Will Be a Scientific Theory of Deep Learningcited by 29
- 2024Geometric Dynamics of Signal Propagation Predict Trainability of Transformerscited by 24
35 more
- 2024Super Consistency of Neural Network Landscapes and Learning Rate Transfercited by 23
- 2025Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisationcited by 17
- 2025Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Timecited by 16
- 2025Always Skip Attentioncited by 13
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
- 2024Understanding and Minimising Outlier Features in Neural Network Trainingcited by 10
- 2024Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformerscited by 9
- 2025AltLoRA: Towards Better Gradient Approximation in Low-Rank Adaptation with Alternating Projectionscited by 9
- 2026Learning Rate Scaling across LoRA Ranks and Transfer to Full Finetuningcited by 9
- 2023Towards Training Without Depth Limits: Batch Normalization Without Gradient Explosioncited by 8
- 2026Clustering in Deep Stochastic Transformerscited by 8
- 2024Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamicscited by 7
- 2024Bayesian Inference with Deep Weakly Nonlinear Networkscited by 5
- 2025Infinite-Width Limit of a Single Attention Layer: Analysis via Tensor Programscited by 5
- 2025Attention-Only Transformers via Unrolled Subspace Denoisingcited by 5
- 2023Differential Equation Scaling Limits of Shaped and Unshaped Neural Networkscited by 4
- 2024Pretraining Graph Transformers with Atom-in-a-Molecule Quantum Properties for Improved ADMET Modelingcited by 3
- 2024ReLU's Revival: On the Entropic Overload in Normalization-Free Large Language Modelscited by 3
- 2024AERO: Entropy-Guided Framework for Private LLM Inferencecited by 3
- 2025Attention-based clusteringcited by 3
- 2025Bayes optimal learning of attention-indexed modelscited by 3
- 2024Generalized Probabilistic Attention Mechanism in Transformerscited by 2
- 2025Provable Watermarking for Data Poisoning Attackscited by 2
- 2026Transforming Rank: How Architecture Navigates the Spectral Pathologies of Depthcited by 2
- 2023Commutative Width and Depth Scaling in Deep Neural Networkscited by 1
- 2024Federated Learning with Flexible Architecturescited by 1
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformerscited by 1
- 2026Weight-Decay Turns Transformer Loss Landscapes Villani: Functional-Analytic Foundations for Optimization and Generalizationcited by 1
- 2026Bayesian Inference with Shaped Deep Non-linear MLPscited by 1
- 2024A Generalization Bound for Nearly-Linear Networkscited by 0
- 2024Simplifying CLIP: Unleashing the Power of Large-Scale Models on Consumer-level Computerscited by 0
- 2025Deep Neural Nets as Hamiltonianscited by 0
- 2026Deciphering Neural Reparameterized Full-Waveform Inversion with Neural Sensitivity Kernel and Wave Tangent Kernelcited by 0
- 2026Geometric Dyson Brownian Motions and the Free Log-Normal Limit for a Non-Square Gaussian Matrix Productcited by 0
- 2026Optimal Learning Rate Scaling Depends on Data in Deep Scalar Linear Networkscited by 0
- 2026Transforming Rank: How Architecture Navigates the Spectral Pathologies of Depth15 Jul 2026
- 2026Optimal Learning Rate Scaling Depends on Data in Deep Scalar Linear Networks8 Jul 2026
- 2026Geometric Dyson Brownian Motions and the Free Log-Normal Limit for a Non-Square Gaussian Matrix Product29 Jun 2026
- 2026Bayesian Inference with Shaped Deep Non-linear MLPs29 May 2026
- 2026Deciphering Neural Reparameterized Full-Waveform Inversion with Neural Sensitivity Kernel and Wave Tangent Kernel14 May 2026
- 2026Weight-Decay Turns Transformer Loss Landscapes Villani: Functional-Analytic Foundations for Optimization and Generalization7 May 2026
- 2026There Will Be a Scientific Theory of Deep Learning23 Apr 2026
- 2026Learning Rate Scaling across LoRA Ranks and Transfer to Full Finetuning5 Feb 2026
- 2026Clustering in Deep Stochastic Transformers29 Jan 2026
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformers23 Jan 2026
- 2025Provable Watermarking for Data Poisoning Attacks10 Oct 2025
- 2025Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time1 Oct 2025
35 more
- 2025Attention-Only Transformers via Unrolled Subspace Denoising4 Jun 2025
- 2025Bayes optimal learning of attention-indexed models2 Jun 2025
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer1 Jun 2025
- 2025Infinite-Width Limit of a Single Attention Layer: Analysis via Tensor Programs1 Jun 2025
- 2025Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisation30 May 2025
- 2025Attention-based clustering19 May 2025
- 2025AltLoRA: Towards Better Gradient Approximation in Low-Rank Adaptation with Alternating Projections18 May 2025
- 2025Always Skip Attention4 May 2025
- 2025Don't be lazy: CompleteP enables compute-efficient deep transformers2 May 2025
- 2025Deep Neural Nets as Hamiltonians31 Mar 2025
- 2025The Curse of Depth in Large Language Models9 Feb 2025
- 2024Simplifying CLIP: Unleashing the Power of Large-Scale Models on Consumer-level Computers22 Nov 2024
- 2024Measure-to-measure interpolation using Transformers7 Nov 2024
- 2024Generalized Probabilistic Attention Mechanism in Transformers21 Oct 2024
- 2024AERO: Entropy-Guided Framework for Private LLM Inference16 Oct 2024
- 2024ReLU's Revival: On the Entropic Overload in Normalization-Free Large Language Models12 Oct 2024
- 2024Pretraining Graph Transformers with Atom-in-a-Molecule Quantum Properties for Improved ADMET Modeling10 Oct 2024
- 2024A Generalization Bound for Nearly-Linear Networks9 Jul 2024
- 2024Federated Learning with Flexible Architectures14 Jun 2024
- 2024The Impact of Initialization on LoRA Finetuning Dynamics12 Jun 2024
- 2024Understanding and Minimising Outlier Features in Neural Network Training29 May 2024
- 2024Bayesian Inference with Deep Weakly Nonlinear Networks26 May 2024
- 2024Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformers24 May 2024
- 2024Infinite Limits of Multi-head Transformer Dynamics24 May 2024
- 2024Geometric Dynamics of Signal Propagation Predict Trainability of Transformers5 Mar 2024
- 2024Super Consistency of Neural Network Landscapes and Learning Rate Transfer27 Feb 2024
- 2024Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics23 Feb 2024
- 2024LoRA+: Efficient Low Rank Adaptation of Large Models19 Feb 2024
- 2024Attention with Markov: A Framework for Principled Analysis of Transformers via Markov Chains6 Feb 2024
- 2023Simplifying Transformer Blocks3 Nov 2023
- 2023Differential Equation Scaling Limits of Shaped and Unshaped Neural Networks18 Oct 2023
- 2023Towards Training Without Depth Limits: Batch Normalization Without Gradient Explosion3 Oct 2023
- 2023Commutative Width and Depth Scaling in Deep Neural Networks2 Oct 2023
- 2023Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limit28 Sep 2023
- 2023Transformers as Support Vector Machines31 Aug 2023
- 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 377
- 2025Don't be lazy: CompleteP enables compute-efficient deep transformerscited by 78
- 2023Transformers as Support Vector Machinescited by 74
- 2023Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limitcited by 66
- 2025The Curse of Depth in Large Language Modelscited by 62
- 2024The Impact of Initialization on LoRA Finetuning Dynamicscited by 54
- 2024Attention with Markov: A Framework for Principled Analysis of Transformers via Markov Chainscited by 40
- 2024Infinite Limits of Multi-head Transformer Dynamicscited by 39
- 2023Simplifying Transformer Blockscited by 37
- 2024Measure-to-measure interpolation using Transformerscited by 29
- 2026There Will Be a Scientific Theory of Deep Learningcited by 29
- 2024Geometric Dynamics of Signal Propagation Predict Trainability of Transformerscited by 24
12 most cited of 46 All 46 (JSON)
- 2026Transforming Rank: How Architecture Navigates the Spectral Pathologies of Depth15 Jul 2026
- 2026Optimal Learning Rate Scaling Depends on Data in Deep Scalar Linear Networks8 Jul 2026
- 2026Geometric Dyson Brownian Motions and the Free Log-Normal Limit for a Non-Square Gaussian Matrix Product29 Jun 2026
- 2026Bayesian Inference with Shaped Deep Non-linear MLPs29 May 2026
- 2026Deciphering Neural Reparameterized Full-Waveform Inversion with Neural Sensitivity Kernel and Wave Tangent Kernel14 May 2026
- 2026Weight-Decay Turns Transformer Loss Landscapes Villani: Functional-Analytic Foundations for Optimization and Generalization7 May 2026
- 2026There Will Be a Scientific Theory of Deep Learning23 Apr 2026
- 2026Learning Rate Scaling across LoRA Ranks and Transfer to Full Finetuning5 Feb 2026
- 2026Clustering in Deep Stochastic Transformers29 Jan 2026
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformers23 Jan 2026
- 2025Provable Watermarking for Data Poisoning Attacks10 Oct 2025
- 2025Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time1 Oct 2025
12 newest of 46 All 46 (JSON)