Gradient descent in Gaussian random fields as a toy model for high-dimensional optimisation in deep learning

Mariano Chouza, Stephen J. Roberts, Stefan ZohrenarXiv 2018

Introduction

Training deep neural networks involves navigating high-dimensional loss landscapes with millions of parameters. While gradient descent (GD) is remarkably effective in these non-convex environments, the theoretical reasons for its efficiency remain partially understood. This research bridges random geometry and deep learning by modeling loss landscapes as Gaussian Random Fields (GRFs), allowing for an analytical study of optimization dynamics.

Modeling the Loss Landscape

The authors utilize GRFs—Gaussian Processes where the input is a parameter vector—to represent the complex, non-convex nature of neural network loss functions. This approach moves beyond static descriptions of landscapes to analyze the actual dynamics of a gradient descent step.

A single step of gradient descent from $\mathbf{x}_0$ to $\mathbf{x}_1$ in a Gaussian Random Field landscape.

Methodology

The study employs several theoretical tools to dissect the optimization process:

  1. Analytical Derivations: Using multivariate Gaussian properties, the authors derive exact expressions for the mean and variance of the loss value after a single gradient step.
  2. Asymptotic Analysis: Through moment-generating functions, they prove that as dimensionality $N \to \infty$, the distribution of the improved loss converges to a Gaussian distribution.
  3. Topological Estimation: The Euler characteristic of excursion sets—a tool from algebraic topology—is used to estimate the expected value of the local minimum, providing a benchmark for GD performance.
  4. Numerical Simulation: Theoretical results are verified through high-dimensional GRF simulations up to $N=500$, using a spectral representation for efficiency.

Key Insights

The Optimal Learning Rate

A significant finding is that the optimal learning rate $\eta$ scales as $(N+1)^{-1/2}$. This provides a theoretical basis for why learning rates often require adjustment as model architectures grow in size and dimensionality.

In high dimensions, GD is exponentially more efficient than random search. In a 500-dimensional space, a single optimal gradient step achieves a reduction in loss that would require approximately $10^{41}$ random trials to replicate.

The $\sqrt{e}$ Gap

The research demonstrates that a single optimal step brings the system within a constant factor ($\sqrt{e} \approx 1.65$) of the expected local minimum within a unit radius. This suggests that the initial gradient direction captures a substantial portion of the available local improvement.

Results and Empirical Validation

The expected improvement in the field value after one optimal step scales with the square root of the dimensionality: $E[\phi_1] \approx -\sqrt{N/e}$.

Expected value of the field after one optimal step as a function of dimensionality $N$, showing close agreement between exact and asymptotic results.

Furthermore, the paper rigorously proves the Asymptotic Normality of the improved loss. As $N$ increases, the rescaled field value converges to a normal distribution. Empirical simulations perfectly match these theoretical predictions across various dimensions and learning rates, confirming the robustness of the GRF toy model.

Conclusion and Future Directions

While this GRF model provides powerful insights into high-dimensional optimization, it focuses primarily on single-step dynamics. Future work could extend this framework to full trajectories, incorporate heavy-tailed correlation structures more characteristic of real networks, and model the effects of mini-batch stochasticity (SGD). Despite its "black box" nature, the model's success in classification tasks suggests that the high-dimensional geometry of the landscape itself is a primary driver of deep learning's success.

Summary updated

BibTeX
@misc{chouza2018gradient,
  author = {Mariano Chouza and Stephen J. Roberts and Stefan Zohren},
  title = {{Gradient descent in Gaussian random fields as a toy model for high-dimensional optimisation in deep learning}},
  year = {2018},
  eprint = {1803.09119},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.09119},
}
Figure