Training Learned Optimizers with Randomly Initialized Learned Optimizers

Luke Metz, C. Daniel Freeman, Niru Maheswaranathan, Jascha Sohl-DicksteinarXiv 2021

TL;DR

Can AI learn to optimize itself without human intervention? This paper demonstrates that a population of randomly initialized learned optimizers can bootstrap their own training from scratch using Population Based Training, entirely eliminating hand-designed algorithms like Adam from the loop and ultimately outperforming them.

What Problem Does This Paper Address?

In meta-learning ("learning to learn"), researchers design neural networks to act as optimizers, often outperforming traditional hand-designed algorithms like Adam or SGD on specific tasks. However, these "learned optimizers" suffer from a fundamental dependency: their own training process (the outer-training loop) is almost always orchestrated by a hand-designed optimizer.

This creates an engineering bottleneck and a philosophical paradox—we are still relying on human heuristics to teach an AI how to optimize. The authors tackle this challenge by asking: Can we remove the human-designed optimizer entirely and let a randomly initialized learned optimizer train itself from scratch?

Methods

The authors introduce a hierarchical, three-layered learning framework to achieve self-training without any hand-designed optimizers in the loop:

  1. Base Layer: A target model (e.g., a standard neural network) is trained on a specific task using a learned optimizer.
  2. Middle Layer: The parameters of this learned optimizer are updated using another learned optimizer from the population.
  3. Final Layer: Population Based Training (PBT) manages a pool of 10 randomly initialized learned optimizers.
Figure 1: Schematic of the three nested layers of learning when training a learned optimizer. Each subsequent layer uses many iterations of the previous layer for each update. In the base layer (left), we train some target model using gradient descent with a learned optimizer. In the middle layer we update the learned optimizer parameters, using a learned optimizer, to perform better at training the target tasks. In the final layer (right), we employ population based training to guide the learned optimizer in the middle layer used to train the learned optimizers.

At the start, models within the population are randomly selected to optimize each other. Every 3 hours, an evolutionary step occurs: the performance of two randomly selected optimizers is evaluated on a validation suite. The poorer-performing optimizer's parameters and its corresponding "outer-optimizer" are overwritten by the better-performing ones. To maintain diversity, there is a 50% chance to randomly swap in a different outer-optimizer from the population, and a 10% chance to re-sample the gradient truncation length (choosing between 200, 300, 400, or 800 steps).

Datasets

To ensure the optimizers learn generalizable strategies rather than overfitting to a single problem, the outer-loss function evaluates them across a highly diverse set of tasks. This benchmark includes:

  • Image classification using Convolutional Neural Networks (CNNs).
  • Language modeling using Recurrent Neural Networks (RNNs).

During the evolutionary selection phase, the optimizers are evaluated across a standardized slice of 100 tasks for 10,000 inner-steps to compute a normalized learning curve.

Key Insights and Ideas

  • The Compounding Feedback Loop: Initially, progress is incredibly slow and unstable because random optimizers are attempting to train other random optimizers. However, as soon as an optimizer makes a minor, accidental improvement, it becomes slightly better at training its peers. This triggers a positive feedback loop, rapidly accelerating training velocity later in the timeline.
  • True Algorithmic Independence: The system successfully removes human bias from the optimization loop, proving that self-referential machine learning systems can bootstrap effectively from complete randomness.

Key Results

The entire training process was run for 10 days on a massive cluster of 500,000 CPU cores.

Training curves showing learned optimizer performance over 10 days
  • Early Phase (Days 0–0.5): Performance is poor, and many models diverge due to the chaotic nature of random initialization.
  • Mid Phase (Days 2–4): The population stabilizes, learning to optimize well enough to match the performance of a standard Adam optimizer using a fixed learning rate across all evaluation tasks.
  • Late Phase (Days 5–10): The self-trained optimizers enter a highly effective regime, ultimately outperforming a highly competitive baseline: Adam with its learning rate individually tuned for each specific problem.

Limitations and Future Work

  • Extreme Compute Costs: Bootstrapping an optimizer from scratch requires an immense amount of compute (500K CPU cores for 10 days), making this approach impractical for standard laboratory settings.
  • Task Selection: The authors note that their diverse training task set is likely larger than necessary to enable self-training, but due to compute constraints, they were unable to explore smaller, more optimized task distributions.
  • Future Directions: The authors suggest that as machine learning tasks grow more complex, building these types of positive, self-improving feedback loops will be crucial for achieving progress beyond what human-engineered heuristics can offer.

Summary updated

BibTeX
@misc{metz2021training,
  author = {Luke Metz and C. Daniel Freeman and Niru Maheswaranathan and Jascha Sohl-Dickstein},
  title = {{Training Learned Optimizers with Randomly Initialized Learned Optimizers}},
  year = {2021},
  eprint = {2101.07367},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.07367},
}
Figure