Feature Learning Dynamics in Infinite-Depth ResNets

Zihan Yao, Ruoyu Wu, Tianxiang GaoNeurIPS 2026

TL;DR

When training deep neural networks, backpropagation reuses the exact same weights from the forward pass in reverse—a mathematical tangle that makes predicting how features evolve at massive depths notoriously difficult. By cleanly untangling this "weight-reuse" effect in Residual Networks (ResNets), the authors show that while this feedback vanishes at initialization in wide networks, a single step of training locks it in as a permanent guiding force. Most surprisingly, they prove that once training begins, the order in which you scale a network's width and depth fundamentally changes the math: infinity doesn't commute.

What Problem Does This Paper Address?

To understand why deep networks learn useful representations rather than memorizing data, theorists often study networks scaled to infinite width or infinite depth, where messy discrete layers smooth out into clean differential equations. Using modern scaling rules like $\mu$P and depth-$\mu$P (which carefully scale weights and residual branches by $1/\sqrt{\text{width}}$ and $1/\sqrt{\text{depth}}$ so signals don't explode or vanish), we already understand how signals propagate through infinitely deep ResNets at initialization.

The headache begins the moment you start training with Stochastic Gradient Descent (SGD). Forward propagation multiplies features by weight matrices $W_\ell$, while backpropagation multiplies error gradients by their transposes $W_\ell^\top$. Because $W_\ell$ and $W_\ell^\top$ share the same random numbers, forward features and backward gradients become statistically entangled. Theorists often dodge this using the "Gradient Independence Assumption" (GIA)—pretending the backward pass uses a fresh, independent set of weights. But once SGD updates the weights, information from the backward pass feeds back into all future forward passes. How do you isolate this weight-reuse coupling, and does it survive as networks grow infinitely wide and deep?

Methods

Rather than immediately jumping to infinity or relying on heuristic approximations, the authors analyze finite ResNets (with pre-activation single-layer blocks) trained via stream SGD.

Their core mathematical scalpel is an exact conditional Gaussian representation. Before taking any limits, they rewrite the matrix multiplications at each layer by conditioning on the computation history so far. Because the initial weights are Gaussian, multiplying by a weight matrix reveals its behavior along the specific direction of the current layer's features, while leaving orthogonal directions completely untouched. This allows the authors to split any forward or backward step into two exact pieces:

  1. A deterministic projection onto previously seen features and gradients (isolating weight reuse).
  2. Fresh, independent Gaussian noise.

Armed with this exact finite-size decomposition, they carefully track error bounds as width ($n$) and depth ($L$) grow toward infinity, translating discrete layer-by-layer updates into continuous-depth Stochastic Differential Equations (SDEs).

Datasets

Experiments are conducted using CIFAR-10 to empirically test theoretical scaling rates, compare standard vs. decoupled backpropagation, and track matrix conditioning over training epochs. No new benchmarks are introduced.

Key Insights and Ideas

  • Pre-activation saves deep ResNets: Before diving into dynamics, the authors prove that classic post-activation ResNets (where ReLU happens after adding the residual branch) can suffer from diverging hidden states as depth grows, even with $1/\sqrt{L}$ scaling. Pre-activation ResNets (used in modern Transformers) avoid this trap naturally.
  • Gradient independence works at initialization—uniformly: At initialization, pretending backward weights are independent (GIA) introduces an error of only $O(n^{-1/2})$ that doesn't blow up no matter how deep the network gets. Forward and backward passes smoothly converge to coupled SDEs regardless of how $n$ and $L$ approach infinity.
  • One step of SGD makes weight reuse permanent: After just a single SGD step, weight reuse stops vanishing. In the subsequent forward pass, the interaction between updated features and the old backward pass creates a "response term" that enters at the exact same mathematical scale as the direct SGD update itself, permanently shaping the continuous-depth learning trajectory.
  • Width and depth limits do not commute during training: At initialization, taking width $\to \infty$ then depth $\to \infty$ gives the exact same result as doing it in reverse. Post-update, this symmetry shatters. Using a simple linear ResNet counterexample, the authors show that if you fix width $n$ and let depth $L \to \infty$, rare random initializations compound across layers, causing feature moments to explode to infinity—even though taking width $\to \infty$ first keeps everything finite and well-behaved.

Key Results

  • Initialization Convergence: Joint forward and backward finite-network states converge to continuous-depth SDEs in coordinatewise $L^p$ norm (for $p \ge 2$) at rates of $O(n^{-1/2} + L^{-1})$ for forward features and $O(n^{-1/2} + L^{-1/2})$ for backward gradients.
  • Post-Update Error Bounds: After one SGD step (taking the width limit before the depth limit), updated features and outputs match the limiting SDE within an $L^p$ error of $C_{p,L}n^{-1/2} + C_p L^{-1/2}$ (where $C_{p,L}$ depends on depth $L$). Sweeps over widths ($32$ to $1024$) and depths ($2$ to $32+$) on CIFAR-10 empirically confirm smooth power-law error decay even after 30 epochs.
  • Decoupled Backprop Experiments: Training width-128 depth-$\mu$P ResNets on CIFAR-10 with decoupled backward weights yields training and test loss curves remarkably close to standard backpropagation, suggesting the surviving theoretical response term may either be small in magnitude or alter features in ways that minimally impact overall loss.
  • Conditioning Decay: Extending the $O(n^{-1/2})$ width convergence to $k$ steps requires history Gram matrices (tracking past features and gradients) to remain invertible. Empirical tracking on CIFAR-10 (widths $512$ to $4096$, depth $4$) shows minimum eigenvalues start positive (~$0.2$–$0.4$) but steadily decay toward zero over 1,000 steps as successive updates become linearly dependent.

Limitations and Future Work

The rigorous proofs focus on ResNets with single-layer residual blocks trained via single-sample stream SGD, primarily for a single update step. Extending the math to multiple updates runs into two hurdles:

  1. History matrices become nearly singular during training, breaking standard regression bounds.
  2. For general nonlinear activations over multiple steps, activation derivatives become entangled with future backward noise, leaving the multistep continuous-depth equations formal candidates rather than fully proven limits (though the authors prove the multistep $O(L^{-1/2})$ rate for linear activations).

Future directions include handling poorly conditioned feature histories, rigorously justifying multistep nonlinear backward SDEs, and extending conditional Gaussian representations to Transformers and adaptive optimizers like Adam.

Summary updated

Abstract

Deep neural networks have achieved remarkable success in practice, yet a mechanistic understanding of how features evolve during training remains incomplete, particularly in the large-depth limit. We investigate this question in residual networks (ResNets) with single-layer blocks trained by SGD under depth-$\mu$P. Tracking these dynamics is challenging because backpropagation couples forward features and backward gradients via the reuse of weight matrices $W_\ell$ and their transposes $W_\ell^\top$. To isolate this structural dependence, we derive exact conditional Gaussian representations that isolate the weight-reuse effect at finite width and depth. At initialization, its effect vanishes at rate $O(n^{-1/2})$ in coordinatewise $L^p$ uniformly in depth. This allows the joint forward and backward processes to converge to their continuous-depth limits at coordinatewise $L^p$ rates of $O(n^{-1/2}+L^{-1})$ and $O(n^{-1/2}+L^{-1/2})$, respectively, for every $p\geq 2$. After one SGD update, features evolve according to a stochastic differential equation whose drift incorporates both the direct SGD contribution and a persistent response to the initial backward pass. We bound the $L^p$ approximation error for the updated features and network output by $C_{p,L}n^{-1/2} + C_pL^{-1/2}$. However, a linear ResNet counterexample demonstrates that updated feature moments can diverge as depth grows at fixed width, showing that the width and depth limits need not commute. Finally, for multiple updates, we derive mean-field recursions by tracking accumulated feature and gradient histories, recovering the $C_{p,L}n^{-1/2} + C_p L^{-1/2}$ convergence rate under nondegeneracy conditions on the history Gram matrices.
BibTeX
@inproceedings{yao2026feature,
  author = {Zihan Yao and Ruoyu Wu and Tianxiang Gao},
  title = {{Feature Learning Dynamics in Infinite-Depth ResNets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lBVOJogILX},
}
Figure