Deconstructing the Goldilocks Zone of Neural Network Initialization

Artem Vysogorets, Anna Dawid, Julia Kempe · DOI · OpenReview

Introduction

In the study of neural network optimization, the "Goldilocks zone" has emerged as a critical concept for understanding successful training. First identified by Fort and Scherlis (2019), this zone is a hollow spherical shell in parameter space where the loss Hessian exhibits an "excess of positive curvature." Networks initialized within this shell tend to train efficiently, while those outside it often suffer from slow convergence or outright failure. This paper provides a rigorous analytical deconstruction of this phenomenon, moving beyond empirical observation to a theoretical framework that links curvature to model confidence and logit gradient dynamics.

The Mobility of the Goldilocks Zone

A primary contribution of this research is the discovery that the Goldilocks zone is not a fixed geometric property of weight magnitudes. Instead, it is a functional state of the model's output distribution. By focusing on homogeneous neural networks—where scaling weights by $\alpha$ scales outputs by $\alpha^L$—the authors demonstrate that the initialization scale $\alpha$ and the softmax temperature $T$ are mathematically interchangeable regarding Hessian properties.

Figure 1: Excess positive curvature as a function of initialization scale $\alpha$ and softmax temperature $T$. By setting $T = \alpha^L$, the Goldilocks zone can be recreated at any scale, demonstrating its functional nature.

As illustrated in Figure 1, the "Goldilocks" properties can be induced at any initialization norm by appropriately scaling the temperature ($T = \alpha^L$). This mobility suggests that the zone is fundamentally tied to the entropy of the softmax distribution. Using a "Uniform Softmax Output" (USO) model, the authors prove that the highest excess of positive curvature occurs when model confidence is at its lowest—a state that also corresponds to low initial loss.

Gauss-Newton Decomposition and the Source of Curvature

To pinpoint the origin of the excess positive curvature, the authors employ a Gauss-Newton decomposition of the Hessian ($H$). The Hessian is split into the G-term (related to the gradients of the model outputs) and the H-term (related to the second derivatives of the outputs).

Figure 2: Decomposition of the Hessian into the G-term and H-term. The excess positive curvature that defines the Goldilocks zone is driven primarily by the G-term dominating the H-term.

The analysis, supported by a Random Logit Model, reveals that the G-term is the sole source of the excess positive curvature. As shown in Figure 2, the G-term dominates the H-term precisely within the Goldilocks zone. The authors derive a necessary and sufficient condition for the zone's existence: $\|G'\|_2 \gtrsim \|H'\|_2$. This condition provides a formal metric for evaluating initialization schemes.

Failure Modes and Optimization Dynamics

The paper identifies two distinct ways a network can fail to reach the Goldilocks zone:

  1. Vanishing Gradients at Small Norms: When $\alpha$ is too small, logit gradients (the G-term) decay faster than the H-term, causing the positive curvature to vanish. Interestingly, if the learning rate is tuned correctly, these networks may initially diverge until their weights grow enough to "circle back" into the Goldilocks zone.
  2. Saturated Softmax at Large Norms: When $\alpha$ is too large, the model becomes overly confident, producing one-hot outputs. This saturation causes the G-term to plummet to zero, effectively killing the curvature.

Furthermore, the authors uncover the "zero logit" phenomenon. In convolutional architectures like LeNet-5, large-norm initializations can lead to an increasing number of dead activations. This traps the network in a non-functional state even if it technically resides within the curvature-defined boundaries of the zone, showing that curvature alone is an imperfect predictor of trainability.

Conclusion

By deconstructing the Goldilocks zone, this work provides a deeper understanding of why certain initializations succeed. The revelation that the zone is a mobile, functional state tied to logit gradients offers new avenues for optimizing deep networks. While the current study focuses on homogeneous networks and full-batch gradient descent, it sets the stage for future research into how these dynamics interact with modern architectural features like Batch Normalization and the stochasticity of SGD.

Summary updated

BibTeX
@inproceedings{vysogorets2024deconstructing,
  author = {Artem Vysogorets and Anna Dawid and Julia Kempe},
  title = {{Deconstructing the Goldilocks Zone of Neural Network Initialization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=DJXt63RLO1},
}
Figure