Introduction
This paper introduces a learned gradient descent optimizer based on a novel hierarchical Recurrent Neural Network (RNN) architecture that drastically reduces memory and compute overhead. By meta-training on a diverse ensemble of tiny toy problems and baking in standard optimization tricks (like momentum and dynamic scaling), the learned optimizer successfully generalizes to train massive neural networks like ResNet and Inception on ImageNet. This represents a scale and level of generalization previously impossible for learned optimizers.
The Challenge: Generalization and Scaling
"Learning to learn" (meta-learning) has shown great promise, particularly the idea of replacing hand-designed optimizers like SGD or ADAM with neural networks that learn how to update parameters. However, previous attempts at learned optimizers hit two major walls:
- Lack of Generalization: They severely overfit to their training tasks. An optimizer trained on a small network with Sigmoid activations would fail completely when applied to a network with ReLU activations, let alone a completely different architecture. They also failed when run for more optimization steps than they saw during training.
- Poor Scaling: Previous architectures used large RNNs for every single parameter in the target network. This created massive memory and computational overhead, making it impossible to apply them to modern, large-scale deep learning problems.
Methods: A Hierarchical Approach
The authors achieve this breakthrough through a combination of architectural innovations and a revamped meta-training pipeline.
Hierarchical RNN Architecture
To solve the compute and memory bottlenecks, the authors split the optimizer into three distinct levels:
- Parameter RNN: A tiny RNN (just 10 hidden units) applied to every single parameter.
- Tensor RNN: A medium-sized RNN for every parameter tensor (e.g., a whole weight matrix or layer) that aggregates information from the Parameter RNNs.
- Global RNN: A single network-wide RNN that tracks global optimization state.
This hierarchy allows the optimizer to capture complex inter-parameter dependencies with minimal per-parameter overhead.
Optimization-Inspired Features & Meta-Training
Instead of forcing the RNN to learn optimization entirely from scratch, the authors feed it inputs inspired by successful hand-designed optimizers. This includes Nesterov-style attention (computing gradients slightly ahead of the current position), momentum on multiple timescales, and dynamic input scaling (similar to ADAM/RMSProp).
Crucially, instead of meta-training on neural networks, they train the optimizer on a diverse ensemble of tiny, non-neural-network tasks (e.g., 2D loss landscapes, noisy quadratics). They optimize the average log loss of the target problems to strongly encourage exact convergence, and draw the number of training steps from a heavy-tailed distribution to force the optimizer to handle long time horizons.
Key Insights
- Diversity beats scale for meta-training: You don't need to train an optimizer on neural networks for it to work on neural networks. Meta-training on a diverse ensemble of tiny, pathological math problems teaches the RNN the "physics" of loss landscapes well enough to generalize to deep learning zero-shot.
- Inductive biases are crucial: Giving the RNN access to standard optimization concepts—like exponential moving averages of gradients and relative learning rates—makes it vastly more robust.
Key Results
- Zero-Shot Generalization: The optimizer successfully trains small ConvNets on MNIST, despite never seeing a neural network during its meta-training phase.
- Massive Scale: The optimizer stably trains Inception V3 and ResNet V2 on ImageNet for 10,000 to 20,000 steps. This is a vastly different scale than the 2D toy problems it was trained on, proving unprecedented transferability.
- Robustness & Efficiency: The learned optimizer is significantly less sensitive to the choice of initial learning rate compared to ADAM or RMSProp. Furthermore, as the batch size of the target problem increases, the wall-clock time overhead of the learned optimizer shrinks, approaching the speed of standard ADAM.
Limitations and Future Work
While the optimizer performs incredibly well in the early and middle stages of training massive models, it eventually stops making effective progress later in training (e.g., the loss plateaus around 6.5 for Inception V3). Fixing this late-stage stagnation is a primary goal for future work. Additionally, for very small minibatches, the RNN's forward pass still introduces a noticeable wall-clock time penalty compared to simple mathematical updates like ADAM.
Summary updated