The Neural Covariance SDE: Shaped Infinite Depth-and-Width Networks at Initialization
Mufan Bill Li, Mihai Nica, Daniel M. Roy
Abstract
The logit outputs of a feedforward neural network at initialization are conditionally Gaussian, given a random covariance matrix defined by the penultimate layer. In this work, we study the distribution of this random matrix. Recent work has shown that shaping the activation function as network depth grows large is necessary for this covariance matrix to be non-degenerate. However, the current infinite-width-style understanding of this shaping method is unsatisfactory for large depth: infinite-width analyses ignore the microscopic fluctuations from layer to layer, but these fluctuations accumulate over many layers. To overcome this shortcoming, we study the random covariance matrix in the shaped infinite-depth-and-width limit. We identify the precise scaling of the activation function necessary to arrive at a non-trivial limit, and show that the random covariance matrix is governed by a stochastic differential equation (SDE) that we call the Neural Covariance SDE. Using simulations, we show that the SDE closely matches the distribution of the random covariance matrix of finite networks. Additionally, we recover an if-and-only-if condition for exploding and vanishing norms of large shaped networks based on the activation function.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
18 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Scalable Optimization in the Modular Norm cites Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limit
- Don't be lazy: CompleteP enables compute-efficient deep transformers cites Scalable Optimization in the Modular Norm
- Don't be lazy: CompleteP enables compute-efficient deep transformers cites The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limit
- Don't be lazy: CompleteP enables compute-efficient deep transformers cites Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limit
- The Impact of Initialization on LoRA Finetuning Dynamics cites The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limit
- The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limit cites Asymptotics of representation learning in finite Bayesian neural networks
- The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limit cites Finite Depth and Width Corrections to the Neural Tangent Kernel
- The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limit cites High-dimensional Asymptotics of Feature Learning: How One Gradient Step Improves the Representation
- Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limit cites Finite Depth and Width Corrections to the Neural Tangent Kernel
- Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limit cites The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limit
- High-dimensional Asymptotics of Feature Learning: How One Gradient Step Improves the Representation cites Polylogarithmic width suffices for gradient descent to achieve arbitrarily small test error with shallow ReLU networks
Cited by top-tier papers18
- Don't be lazy: CompleteP enables compute-efficient deep transformersNolan Dey, Bin Claire Zhang, Lorenzo Noci, Mufan Bill Li et al.NeurIPS 2025 · 77 citations
- Scalable Optimization in the Modular NormTim Large, Yang Liu, Jacob Huh, Hyojin Bahng et al.NeurIPS 2024 · 70 citations
- The Impact of Initialization on LoRA Finetuning DynamicsSoufiane Hayou, Nikhil Ghosh, Bin YuNeurIPS 2024 · 63 citations
- The Shaped Transformer: Attention Models in the Infinite Depth-and-Width LimitLorenzo Noci, Chuning Li, Mufan Bill Li, Bobby He et al.NeurIPS 2023 · 59 citations
- Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling LimitBlake Bordelon, Lorenzo Noci, Mufan Bill Li, Boris Hanin et al.ICLR 2024 · 54 citations
Builds on12
- Polylogarithmic width suffices for gradient descent to achieve arbitrarily small test error with shallow ReLU networksZiwei Ji, Matus TelgarskyICLR 2020 · 193 citations
- High-dimensional Asymptotics of Feature Learning: How One Gradient Step Improves the RepresentationJimmy Ba, Murat A. Erdogdu, Taiji Suzuki, Zhichao Wang et al.NeurIPS 2022 · 173 citations
- Finite Depth and Width Corrections to the Neural Tangent KernelBoris Hanin, Mihai NicaICLR 2020 · 169 citations
- Generalization of Two-layer Neural Networks: An Asymptotic ViewpointJimmy Ba, Murat A. Erdogdu, Taiji Suzuki, Denny Wu et al.ICLR 2020 · 77 citations
- Asymptotics of representation learning in finite Bayesian neural networksJacob A. Zavatone-Veth, Abdulkadir Canatar, Benjamin S. Ruben, Cengiz PehlevanNeurIPS 2021 · 45 citations
Related papers
- Width and Depth Limits Commute in Residual NetworksSoufiane Hayou, Greg YangICML 2023 · 23 citations
- Scaling Properties of Deep Residual NetworksAlain-Sam Cohen, Rama Cont, Alain Rossier, Renyuan XuICML 2021 · 21 citations
- Large-width functional asymptotics for deep Gaussian neural networksDaniele Bracale, Stefano Favaro, Sandra Fortini, Stefano PeluchettiICLR 2021 · 2 citations
- The future is log-Gaussian: ResNets and their infinite-depth-and-width limit at initializationMufan Bill Li, Mihai Nica, Daniel M. RoyNeurIPS 2021 · 41 citations
- Neural signature kernels as infinite-width-depth-limits of controlled ResNetsNicola Muca Cirone, Maud Lemercier, Cristopher SalviICML 2023 · 33 citations
