Tasks, stability, architecture, and compute: Training more effective learned optimizers, and using them to train themselves

Luke Metz, Niru Maheswaranathan, C. Daniel Freeman, Ben Poole, Jascha Sohl-DicksteinarXiv 2020

Abstract

While deep learning has automated feature engineering, the optimization algorithms used to train these models remain largely hand-designed. This paper presents a significant advancement in "learned optimizers"—neural networks trained to act as optimization algorithms. By leveraging massive computational scale, a diverse distribution of thousands of tasks, and a novel hierarchical architecture, the authors develop an optimizer that generalizes to unseen architectures like ResNets and achieves the "self-hosting" milestone of training itself from scratch.

Introduction

Traditional optimizers like SGD and Adam require expert tuning of hyperparameters such as learning rate schedules and momentum. Previous attempts to learn these update rules have often resulted in "brittle" models that fail to generalize beyond their specific training tasks. This research identifies three critical barriers to progress: computational scale, task diversity, and architectural inductive bias. By addressing these, the authors demonstrate that learned optimizers can match or exceed the performance of finely-tuned hand-designed baselines.

Hierarchical Architecture and Methods

The authors frame optimizer discovery as a bilevel optimization problem. An "inner loop" involves the learned optimizer training a target model, while an "outer loop" updates the optimizer's own weights to minimize the target model's validation loss.

To balance global context with parameter-specific updates, they propose a hierarchical architecture. A per-tensor LSTM tracks global statistics (like training/validation loss and gradient norms) and communicates across layers, while a per-parameter Feed-Forward (FF) network computes the actual updates for individual weights based on local gradient information.

The hierarchical architecture combines a per-tensor LSTM for global context with a per-parameter FF network for local updates.

To ensure stability over long training horizons, the authors utilize Persistent Evolutionary Strategies (PES). This derivative-free approach allows for smoother optimization landscapes compared to standard backpropagation through unrolled training steps.

Scaling and Task Diversity

Generalization is achieved by training on TaskSet, a massive collection of approximately 6,000 diverse optimization tasks, including RNNs, CNNs, and Variational Autoencoders. The research highlights a clear scaling law: as the number of training tasks increases, the optimizer's performance becomes more consistent and its ability to generalize to unseen architectures improves significantly.

Performance comparison of different architectures (a) and the impact of scaling the number of training tasks on test loss (b).

Key Results and Insights

  • Self-Hosting: The optimizer reached a "compiler-complete" moment, successfully training a new version of itself from scratch, matching the performance of a version trained by Adam.
  • Implicit Regularization: The learned optimizer discovered internal strategies for weight decay. When tested on 2D loss surfaces, it naturally moved toward the origin to improve generalization, likely because it was optimized to minimize validation loss rather than just training loss.
  • Outperforming Baselines: The model consistently outperformed default Adam and performed comparably to "expert-tuned" baselines that required up to 1,000 hyperparameter search trials.
  • Zero-Shot Generalization: Despite being trained on small proxy tasks, the optimizer successfully trained large-scale models like ResNet-35 on ImageNet without any additional tuning.

Limitations and Future Work

The primary drawback is the extreme computational cost; training required roughly 5,000 CPU years. Additionally, the current architecture has a high memory overhead, requiring 5x more storage per parameter than Adam. Future work will focus on improving the memory efficiency of these models and decoding the specific optimization logic discovered by the LSTM layers.

Summary updated

BibTeX
@misc{metz2020tasks,
  author = {Luke Metz and Niru Maheswaranathan and C. Daniel Freeman and Ben Poole and Jascha Sohl-Dickstein},
  title = {{Tasks, stability, architecture, and compute: Training more effective learned optimizers, and using them to train themselves}},
  year = {2020},
  eprint = {2009.11243},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.11243},
}
Figure