Understanding Scaling Laws in Deep Neural Networks via Feature Learning Dynamics

Zihan Yao, Ruoyu Wu, Tianxiang GaoSubmission to ICLR 2026 · Desk rejected

TL;DR

This paper introduces Neural Feature Dynamics (NFD), the first mathematically rigorous framework characterizing feature learning in deep ResNets under the joint infinite-width and infinite-depth limit. Through NFD, the authors explain diminishing returns in scaling, prove that the long-debated Gradient Independence Assumption (GIA) is restored at infinite depth, and solve the breakdown of hyperparameter (HP) transfer in multi-layer residual blocks using a simple depth-aware learning rate correction.

What Problem Does This Paper Address?

While empirical scaling laws predict predictable performance gains as models grow, ultra-deep networks frequently run into optimization instability, loss spikes, and diminishing returns. Existing scaling laws describe what successful scaling looks like, but cannot explain why or when scaling succeeds or fails at large depths.

A prominent line of theory—Maximal Update Parameterization ($\mu$P)—successfully explained feature learning and enabled zero-shot hyperparameter transfer across model widths. However, extending $\mu$P to depth (depth-$\mu$P via residual scaling of $1/\sqrt{L}$) breaks down in practice, particularly when residual blocks contain two or more internal layers. The authors tackle the lack of a principled, training-time theory for feature learning in ultra-deep networks.

Methods

The authors study pre-activation ResNets trained with SGD under depth-$\mu$P and derive their continuous-depth, infinite-width limits:

  • Pre- vs. Post-Activation Analysis: They first prove that post-activation ResNets can diverge at large depth even with $1/\sqrt{L}$ scaling for positive-dominant activations like ReLU, providing a theoretical foundation for using pre-activation designs.
  • Neural Feature Dynamics (NFD): Using the Tensor Programs (TP) framework alongside McKean–Vlasov stochastic differential equations (SDEs), they prove that as width $n \to \infty$ and depth $L \to \infty$, the forward features and backpropagated gradients converge to a coupled forward–backward SDE system driven by independent Brownian motions.
  • Depth-Aware Learning Rate: Analyzing two-layer residual blocks through NFD reveals that representation learning in the first layer vanishes with depth. To fix this, they scale the first layer's learning rate by $\sqrt{L}$: $$\eta_1 = \eta_c n \sqrt{L}, \quad \eta_2 = \eta_c n$$

Datasets

  • CIFAR-10: Used for empirical validation across various network widths (32 to 4,096) and depths (2 to 128) under SGD.
  • No new benchmarks or datasets were introduced.

Key Insights and Ideas

  • Restoration of GIA During Training: The Gradient Independence Assumption (treating backward weights $W^\top$ as statistically independent from forward weights $W$) is known to fail during training at finite depth due to accumulated weight reuse correlations. NFD proves that these coupling correlations scale as $\mathcal{O}(1/L^2)$; in the infinite-depth limit, they vanish! GIA becomes provably valid throughout training, opening a tractable mathematical regime for end-to-end feature learning analysis.
  • Why Scaling Saturates (Diminishing Returns): Increasing width or depth simply reduces the approximation error to the deterministic NFD/SDE limit. Once the network closely approximates this limiting SDE, scaling capacity naturally plateaus. While expanding the SDE time-horizon $T$ enlarges the functional RKHS capacity, doing so trades off practical optimization stability.
  • Anatomy of the Multi-Layer Failure: In a two-layer residual block, the first layer ($W_{\ell,1}$) learns internal representations, while the second layer ($W_{\ell,2}$) controls residual-stream dynamics. Under standard depth-$\mu$P, internal feature updates vanish at an $\mathcal{O}(1/\sqrt{L})$ rate, causing internal feature learning to collapse even though the residual stream remains active.

Key Results

  • Theoretical Convergence Rate: Both forward features and backward gradients converge to the NFD limit with an error bounded by $\mathcal{O}(L^{-1} + n^{-1})$, confirming width–depth commutativity empirically on CIFAR-10.
  • Empirical Validation of GIA: Training ResNets with decoupled backward weights (using independent copies of forward weights) matches standard backpropagation only under depth-$\mu$P as depth increases, while vanilla DNNs and standard $\mu$P diverge or fail to align.
  • Restoring Hyperparameter Transfer:
  • Standard depth-$\mu$P on two-layer blocks shows inconsistent optimal learning rates across depths (depths 6 and 9 peaked near $\eta_c = 1.0$ and overfit on test sets, whereas depth 3 peaked at $\eta_c = 0.5$).
  • With the proposed depth-aware learning rate ($\eta_1 \propto \sqrt{L}$), the loss curves align across depths 3, 6, and 9, perfectly transferring an optimal $\eta_c = 0.5$.
  • On a depth-64, width-128 ResNet on CIFAR-10, the depth-aware LR correction achieves consistently lower training and test losses, improving test accuracy from ~49% to ~52%.

Limitations and Future Work

  • Architectures and Optimizers: The theoretical derivations and experiments focus on pre-activation ResNets trained with SGD. Extending NFD to attention-based Transformer architectures and adaptive optimizers (e.g., AdamW) remains an open challenge.
  • Asymptotic Limit Order: The formal convergence theorem is established sequentially ($n \to \infty$ then $L \to \infty$), although empirical tests indicate the limits commute.
  • Capacity vs. Stability Trade-off: While increasing time horizon $T$ theoretically boosts expressive capacity, excessively large $T$ causes severe optimization instability that is not yet fully mitigated.

Summary updated

Abstract

The empirical success of deep learning is often attributed to scaling laws that predict steady performance gains as model, data, and compute increase. However, large models often suffer severe training instability and diminishing returns, indicating that scaling laws only describe *what success looks like* but not *when and why scaling succeeds or fails*. A central barrier is the lack of a rigorous understanding of feature learning at *large depth*: while $\mu$P provides a principled characterization of feature learning dynamics in the infinite-width limit and enables hyperparameter (HP) transfer across width, its depth extension, i.e., depth-$\mu$P, faces critical challenges, especially in residual blocks with more than one internal layer. In this paper, we address this gap by deriving the **Neural Feature Dynamics (NFD)**, a coupled forward-backward stochastic system that rigorously characterizes the training dynamics of ResNets in the joint infinite-width and infinite-depth limit. NFD reveals when scaling laws hold, explains diminishing returns, and shows that the *gradient-independence assumption (GIA)*, known to fail during training at finite depth, becomes provably valid again at infinite depth, identifying a new regime where end-to-end feature learning remains *tractable* for analysis. Moreover, NFD uncovers a structural cause of the failure of depth-$\mu$P: representation learning collapses in the first layer of two-layer residual blocks. Motivated by this insight, we introduce a simple **depth-aware learning-rate correction** that restores depth-wise HP transfer and yields overall stronger performance.
BibTeX
@misc{yao2025understanding,
  author = {Zihan Yao and Ruoyu Wu and Tianxiang Gao},
  title = {{Understanding Scaling Laws in Deep Neural Networks via Feature Learning Dynamics}},
  year = {2025},
  eprint = {2512.21075},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.21075},
}
Figure