Feature Learning Dynamics in Infinite-Depth ResNets
Zihan Yao ⋅ Ruoyu Wu ⋅ Tianxiang Gao
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.
Successful Page Load