TL;DR
This paper introduces partial Jacobians as a powerful tool to diagnose and achieve "criticality"—a state where gradients neither explode nor vanish—in deep neural networks. The authors prove that combining LayerNorm on preactivations with residual connections creates an "everywhere-critical" regime, allowing very deep networks to train effectively regardless of how their weights and biases are initialized.
What Problem Does This Paper Address?
Deep neural networks are notoriously difficult to train because of the "exploding and vanishing gradient" problem. As signals propagate through many layers, they tend to either grow uncontrollably or shrink to zero, stalling the learning process. To prevent this, networks must be initialized at a critical point, where signal propagation is stable.
Traditionally, finding this critical initialization requires precise, architecture-specific tuning of hyperparameters like weight and bias variances ($\sigma_w, \sigma_b$). This paper seeks a more general theoretical framework and a practical, low-cost numerical test to ensure criticality across diverse modern architectures like ResNets and MLP-Mixers.
Methods
The authors introduce partial Jacobians ($J^{l_0,l}$), which are the derivatives of preactivations at layer $l$ with respect to those at an earlier layer $l_0$. They focus on a deterministic measure called the Averaged Partial Jacobian Norm (APJN).
Key methodological steps include:
- Recurrence Relations: Deriving how the APJN evolves layer-by-layer in the infinite-width limit. This allows them to calculate a "correlation length" ($\xi$) that characterizes gradient stability.
- Fixed Point Analysis: Identifying regimes where the network reaches a stable state (criticality) rather than diverging or collapsing.
- Numerical Diagnostic: Implementing a "cheap" empirical test for criticality using Hutchinson’s trace estimator, which can be easily integrated into existing training pipelines.
Datasets
The theoretical findings were validated through experiments on several standard benchmarks:
- MNIST & FashionMNIST: Used for initial validation of Jacobian scaling and demonstrating trainability across different initialization regimes.
- CIFAR-10: Used to test modern, complex architectures like ResNet110 and MLP-Mixer.
Key Insights and Ideas
- Pre-activation LayerNorm is Essential: The paper demonstrates that applying LayerNorm to preactivations (Pre-LN) is fundamentally different from applying it to activations. Pre-LN significantly enhances the correlation length, turning a single critical point in hyperparameter space into a much more forgiving critical line.
- The "Everywhere-Critical" Regime: The most striking insight is that combining Pre-LN with residual connections of strength $\mu=1$ makes the network critical for any choice of weight and bias initialization. This explains the remarkable robustness of modern architectures to initialization settings.
- Algebraic vs. Exponential Scaling: Away from criticality, Jacobians grow or shrink exponentially with depth. At criticality, they scale algebraically (e.g., $l^{-\zeta}$), which is much more manageable for training. This is clearly visualized in the log-log plots of Figure 1.
Key Results
The authors successfully mapped the "phase diagrams" of various architectures, identifying regions of stability (ordered phase), instability (chaotic phase), and criticality.
- Universal Trainability: Experiments on FashionMNIST (Figure 3) confirmed that networks in the "everywhere-critical" regime (Pre-LN + Residuals) maintain high trainability across a vast range of initializations, whereas standard MLPs only train within a narrow, precisely tuned band.
- Modern Architectures: They proved that ResNet and MLP-Mixer architectures naturally inhabit this stable regime when configured correctly, providing a theoretical justification for their success.
Limitations and Future Work
- Transformers: While the method is empirically applicable to Vision Transformers (ViTs), a robust theoretical foundation for how the attention mechanism affects criticality is still missing.
- Topology: The generalization of these methods to more complex topologies, such as graph neural networks, remains an open question.
- Finite-Width Effects: The current theory relies on the infinite-width limit. As networks become deeper relative to their width (increasing $L/N$ ratio), finite-width corrections become more significant and require further study.
- Scaling: The authors plan to scale their experiments to larger datasets and more complex language-modeling tasks to further validate the "everywhere-critical" regime's benefits.
Summary updated