NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Investigation into the Training Dynamics of Learned Optimizers

Jan Sobotka, Petr Šimánek, Daniel Vašata · DOI

TL;DR

This paper dives deep into the "black box" of learned optimizers (L2O), revealing how they break traditional geometric constraints imposed by neural network symmetries, leading to faster initial convergence. The research also highlights L2O's ability to dampen noisy gradients, suggesting it acts as a stabilizing force in the optimization process.

What Problem Does This Paper Address?

Deep learning relies heavily on optimization algorithms to train complex models. While hand-crafted optimizers like SGD and Adam have been extensively studied, learned optimizers (L2O) – essentially neural networks trained to perform optimization – are a newer frontier. Despite promising results, L2O's internal workings, stability, and generalization capabilities remain poorly understood. This lack of insight hinders their practical adoption and further development. This paper aims to demystify L2O by analyzing their training dynamics, specifically focusing on how they interact with neural network symmetries and the nature of their parameter updates, and comparing them to established optimizers.

Methods

The authors investigate L2O by analyzing their optimization trajectories through several lenses:

  • Symmetries and Gradient Geometry: They formalize how symmetries in neural network architectures impose geometric constraints on gradients. They then measure how L2O's parameter updates deviate from these constraints (translation, rescale, and scale symmetries) compared to traditional optimizers like SGD, Adam, and the recently proposed Lion optimizer.
  • Symmetry Breaking Regularization: To understand the importance of this freedom, they introduce a regularization term during meta-training that penalizes L2O for breaking these geometric constraints and observe the impact on performance.
  • Heavy-Tailedness of Gradient and Parameter Update Noise: They analyze the "tail-index" (alpha) of the noise distribution in gradients and parameter updates. Lower alpha values indicate heavier tails, which can sometimes be beneficial for generalization.
  • Update Covariance: They study the variation of parameter updates across different samples by examining the largest eigenvalue of the update covariance matrix.
  • Update Histograms: They visualize the distribution of the absolute values of parameter updates over training iterations.

Datasets

The experiments were conducted using the MNIST classification task. The optimizee networks used were feed-forward neural networks with one hidden layer, employing activation functions like sigmoid, Leaky ReLU, and batch normalization followed by ReLU.

Key Insights and Ideas

  • Breaking the Rules is Good (Initially): L2O optimizers exhibit a pronounced tendency to break the geometric constraints imposed by neural network symmetries, especially early in training. This "symmetry breaking" appears to be crucial for their rapid initial convergence.
  • L2O as a Noise Filter: Despite gradients often exhibiting heavy-tailed noise, L2O's parameter updates show a less heavy-tailed distribution. This suggests L2O acts as a stabilizing force, clipping or attenuating noisy gradient information.
  • Trade-off with Regularization: Imposing symmetry constraints on L2O during meta-training significantly hinders its optimization speed, reinforcing the idea that this freedom is beneficial.
  • Lion's Similarities: The recently proposed Lion optimizer shows some similarities to L2O in its symmetry-breaking behavior, suggesting that manually designed optimizers can also benefit from deviating from strict geometric constraints.
  • Generalization Challenges: While L2O's updates are less heavy-tailed, their ability to generalize to longer training runs (beyond the meta-training length) can degrade, correlating with decreasing alpha estimates.

Key Results

  • L2O shows significantly larger deviations from geometric constraints compared to SGD and Adam, particularly at the start of training.
  • Regularizing L2O against symmetry breaking drastically reduces its optimization speed.
  • L2O updates exhibit less heavy-tailed noise than gradients, and generally less than Adam or SGD.
  • The update covariance for L2O shows the largest variation among the tested optimizers.
  • L2O's update distribution starts with a predominance of large updates, gradually shifting towards a shape similar to Adam's.

Limitations and Future Work

  • Generalization to Longer Training: A key limitation is L2O's tendency to struggle with generalization to training runs significantly longer than those seen during meta-training. This is linked to decreasing alpha estimates. Future work could explore methods to improve this long-term generalization.
  • Understanding Symmetry Teleportation: The authors suggest further investigation into the connection between symmetry breaking and concepts like "symmetry teleportation" for finding steeper gradients.
  • Designing Better Optimizers: The insights gained from comparing L2O with traditional optimizers, particularly the benefits of symmetry breaking and noise attenuation, could inform the design of more robust and scalable hand-crafted optimizers.
  • Impact of Data Normalization: The study notes that data normalization choices can influence the heavy-tailedness of noise distributions, suggesting this is an area for further exploration.

Summary updated

BibTeX
@misc{sobotka2023investigation,
  author = {Jan Sobotka and Petr Šimánek and Daniel Vašata},
  title = {{Investigation into the Training Dynamics of Learned Optimizers}},
  year = {2023},
  eprint = {2312.07174},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.07174},
}
Figure