TL;DR
This paper introduces "partial Jacobians" as a new tool to understand and diagnose the critical initialization of deep neural networks. They show that by carefully choosing network architectures, particularly with LayerNorm and residual connections, networks can be made "everywhere-critical," meaning they are trainable regardless of initialization. This offers a path to more robust and easier-to-train deep learning models.
What Problem Does This Paper Address?
Deep neural networks are notoriously difficult to understand theoretically, especially when it comes to initialization. Poor initialization can lead to gradients that either explode or vanish, making training impossible. While the "infinite-width" limit of neural networks has been shown to behave like Gaussian Processes (GPs), providing some theoretical grounding, translating this into practical, reliable initialization strategies for real-world, finite-width networks remains a challenge. The authors aim to bridge this gap by providing a practical method to diagnose and achieve "criticality" – a state where gradients propagate well – in deep networks.
Methods
The core innovation is the introduction of partial Jacobians. These are defined as the derivatives of preactivations at one layer with respect to preactivations at an earlier layer ($l_0 \leq l$). By analyzing the norms of these partial Jacobians, specifically their averaged Frobenius norm (APJN), the authors derive recurrence relations. These relations allow them to study how gradients propagate through the network as a function of depth and hyperparameters like weight/bias variances ($\sigma_w, \sigma_b$).
They then leverage these recurrence relations to:
- Empirically diagnose criticality: A simple numerical test based on APJN helps identify critical initialization points.
- Derive theoretical conditions for criticality: They establish relationships between hyperparameters and network architecture that lead to critical behavior.
- Analyze architectural components: They specifically investigate the impact of LayerNorm (applied to preactivations) and residual connections on criticality.
Datasets
- MNIST (for generating inputs for experiments)
- Fashion MNIST (for training experiments)
- CIFAR-10 (for training experiments)
Key Insights and Ideas
- Partial Jacobians as a diagnostic tool: Analyzing the norms of partial Jacobians provides a practical way to understand gradient propagation and diagnose criticality, moving beyond abstract theoretical concepts.
- Criticality as a key to trainability: The paper reinforces the idea that networks initialized at a "critical point" are more trainable, as gradients are neither exploding nor vanishing.
- LayerNorm and Residual Connections are crucial: The authors demonstrate that strategically combining LayerNorm (applied to preactivations) with residual connections (especially with $\mu=1$) can lead to networks that are "everywhere-critical," meaning they are trainable for any initialization. This significantly simplifies the initialization problem.
- Architecture dictates initialization needs: Different architectures (e.g., MLPs, ResNets, MLP-Mixers) have different "optimal" initialization strategies, which the authors' framework helps to uncover.
Key Results
- Empirical criticality test: A simple and cheap numerical test based on APJN is developed, allowing for practical selection of optimal initialization.
- Theoretical framework for criticality: Recurrence relations for NNGP kernel and partial Jacobians are derived, enabling analytical study of criticality.
- "Everywhere-critical" architectures: The paper shows that specific combinations of LayerNorm (on preactivations) and $\mu=1$ residual connections make networks critical for any initialization. This is demonstrated for MLP, ResNet, and MLP-Mixer architectures.
- Quantitative analysis of activation functions: The framework is applied to erf, ReLU, and GELU activation functions, revealing their specific criticality conditions and behaviors. For example, for erf activation with $\mu=1$ residual connections, the network enters a subcritical phase with APJN growing exponentially.
Limitations and Future Work
- Transformer architectures: While empirical results for Vision Transformers (ViTs) are presented, a robust theoretical foundation for their initialization is still lacking. The authors aim to extend their theory to attention mechanisms.
- Graph Neural Networks: Generalizing the methods to graph neural networks is an open challenge.
- Scaling up experiments: The authors plan to scale their experiments to larger image datasets and language tasks to further validate their findings and explore efficiency gains.
- Non-universal critical exponents: For some activation functions (like erf with $\mu=1$ residual connections), the critical exponent is non-universal, making precise theoretical prediction more challenging.
Summary updated