Commuting Width and Depth Limits in Residual Networks

This direction is merged into another direction: depth-dependent residual scaling. Its last version stays readable and citable here.

Version 1 of 111 papers16 conceptsfrozen 2026-10-04

In deep learning theory, we often simplify complex neural networks by taking them to their mathematical extremes. We might imagine a network that is infinitely wide ($W \to \infty$) to understand its convergence as a Gaussian Process, or infinitely deep ($L \to \infty$) to study its signal propagation.

For years, a major hurdle in this field was that these two limits did not play well together. In standard "vanilla" feedforward networks, the order in which you take these limits matters. If you make a network infinitely deep first, the signal often becomes chaotic or vanishes before you can even consider its width. This lack of "commutativity" meant that our theories for wide networks didn't necessarily apply to the very deep networks used in practice.

However, recent research has shown that for residual architectures, these limits actually commute. This discovery provides a robust theoretical foundation for modern deep learning, proving that deep, narrow ResNets behave predictably like their infinite-width counterparts.

The Problem of Non-Commuting Limits

To understand why commutativity matters, imagine a grid where the x-axis is width and the y-axis is depth. Theoretical researchers want to reach the top-right corner (infinite width and infinite depth).

In vanilla architectures, taking the "depth-first" path usually leads to a dead end. As Mihai Nica and Mufan Bill Li explore in Differential Equation Scaling Limits of Shaped and Unshaped Neural Networks, unshaped networks become unstable as depth increases. The mathematical representation of the network changes fundamentally depending on whether you prioritize width or depth, making it difficult to create a unified "scaling law" that works for all architectures.

Why Residual Connections Change the Math

The breakthrough comes from the structure of the residual connection itself. By adding the input of a layer to its output, ResNets ensure that the identity mapping is preserved.

Etai Littwin and Tomer Galanti demonstrated in On Random Kernels of Residual Architectures that these connections keep the network "well-behaved." While vanilla networks require massive width to avoid chaotic behavior at depth, residual connections allow even narrow models to stay close to the stable Neural Tangent Kernel (NTK) regime.

The key mechanism that enables commutativity is the scaling of the residual branch. Soufiane Hayou and Greg Yang proved in Width and Depth Limits Commute in Residual Networks that if you scale the residual branches by $1/\sqrt{L}$ (where $L$ is depth), the order of limits no longer matters. Whether you take width to infinity first or depth to infinity first, you arrive at the same stable Gaussian Process. This $1/\sqrt{L}$ scaling ensures that the total variance of the signal doesn't explode as it passes through hundreds of layers.

From Discrete Layers to Continuous Equilibrium

This principle of commuting limits extends beyond standard ResNets into more exotic architectures like Deep Equilibrium (DEQ) models and Recurrent Neural Networks (RNNs).

Why This Matters for Practitioners

While this research is highly theoretical, its implications are practical. It tells us that the "infinite-width" approximations we use to study neural networks are not just mathematical toys—they are legitimate descriptions of the deep, finite-width networks we use in production.

As Tianxiang Gao and colleagues argue in Wide Neural Networks as Gaussian Processes: Lessons from Deep Equilibrium Models, this mathematical stability is exactly what makes these architectures expressive and trainable at extreme scales. By ensuring that width and depth limits commute, we ensure that our models remain stable, predictable, and powerful as they grow.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_commuting_width_and_depth_limits_in_resi_69430547,
  title = {Commuting Width and Depth Limits in Residual Networks},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/commuting-width-and-depth-limits-in-residual-networks/rdr_69430547c6c8455b904641feffce4505},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_commuting_width_and_depth_limits_in_resi_69430547_v1,
  title = {Commuting Width and Depth Limits in Residual Networks},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/commuting-width-and-depth-limits-in-residual-networks/rdr_69430547c6c8455b904641feffce4505/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}