Skip to main content
QUICK REVIEW

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

Luke Metz, Niru Maheswaranathan|arXiv (Cornell University)|Sep 23, 2020
Machine Learning and Data ClassificationComputer Science67 references14 citations
TL;DR

This paper introduces a scalable, general-purpose learned optimizer trained on thousands of diverse machine learning tasks using massive compute. It employs a hierarchical neural architecture with access to validation loss and other task features, enabling robust generalization and self-training, outperforming prior methods in stability, adaptability, and out-of-distribution performance.

ABSTRACT

Much as replacing hand-designed features with learned functions has revolutionized how we solve perceptual tasks, we believe learned algorithms will transform how we train models. In this work we focus on general-purpose learned optimizers capable of training a wide variety of problems with no user-specified hyperparameters. We introduce a new, neural network parameterized, hierarchical optimizer with access to additional features such as validation loss to enable automatic regularization. Most learned optimizers have been trained on only a single task, or a small number of tasks. We train our optimizers on thousands of tasks, making use of orders of magnitude more compute, resulting in optimizers that generalize better to unseen tasks. The learned optimizers not only perform well, but learn behaviors that are distinct from existing first order optimizers. For instance, they generate update steps that have implicit regularization and adapt as the problem hyperparameters (e.g. batch size) or architecture (e.g. neural network width) change. Finally, these learned optimizers show evidence of being useful for out of distribution tasks such as training themselves from scratch.

Motivation & Objective

  • To overcome the brittleness and poor generalization of prior learned optimizers by scaling training to thousands of diverse tasks.
  • To improve optimizer robustness by incorporating additional task signals such as validation loss and architectural metadata.
  • To design a hierarchical, neural network-based optimizer architecture with strong inductive bias for better performance and generalization.
  • To enable the learned optimizer to train new optimizers from scratch, demonstrating self-hosting capability analogous to self-compiling compilers.
  • To establish a scalable, high-compute pipeline for training and evaluating learned optimizers with low variance and high fidelity.

Proposed method

  • The optimizer is trained via bilevel optimization: an outer loop updates the optimizer's parameters based on performance across many inner tasks.
  • A hierarchical neural network architecture processes gradients, validation loss, and model hyperparameters to generate adaptive parameter updates.
  • The training dataset comprises over 1,000 diverse machine learning tasks, including variations in batch size, network width, and data distribution.
  • Massive-scale training uses ~60,000 CPU cores for a month (~5,000 CPU years), enabling long unrolls and stable outer-loss estimation.
  • A distributed evaluation system with evaluation chiefs and workers runs full training trajectories on held-out tasks to measure generalization.
  • Summary aggregation is performed via RPC with batching and stochastic logging to minimize overhead and enable post-hoc analysis.

Experimental results

Research questions

  • RQ1Can a learned optimizer generalize effectively across thousands of diverse machine learning tasks, rather than just a few?
  • RQ2Does incorporating validation loss and architectural metadata improve the stability and performance of learned optimizers?
  • RQ3Can a learned optimizer train new optimizers from scratch, demonstrating self-hosting capability?
  • RQ4How does scaling compute and task diversity impact the generalization and robustness of learned optimizers?
  • RQ5What are the computational and environmental costs of training such a system, and can it be made more efficient?

Key findings

  • The learned optimizer generalizes effectively to unseen tasks, including those with different batch sizes and network widths, due to training on a diverse task distribution of over 1,000 tasks.
  • The optimizer learns implicit regularization through its update rules, adapting dynamically to changes in hyperparameters and architecture, unlike standard first-order optimizers.
  • The model successfully trains new learned optimizers from scratch, demonstrating self-hosting capability, a key milestone analogous to self-compiling compilers.
  • Evaluation on out-of-distribution tasks shows strong performance, confirming the optimizer’s robustness beyond the meta-training distribution.
  • The training process required approximately 60,000 CPU cores for a month, consuming around 200 megawatt-hours of energy, highlighting the high computational cost.
  • Despite the high compute cost, the authors argue that such optimizers, once trained, could eliminate the need for hyperparameter tuning in downstream training, offering long-term savings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.