Learning to learn by gradient descent by gradient descent
Marcin AndrychowiczMisha DenilSergio Gomez ColmenarejoMatthew W. HoffmanDavid PfauTom SchaulNando de Freitas
Presents a meta-learning framework that uses recurrent neural networks to automatically learn optimization algorithms via gradient descent, showing that learned update rules can outperform traditional hand-designed optimizers across various machine learning tasks.
Modern machine learning relies heavily on optimization algorithms to train complex models. While machine learning has successfully transitioned from manual feature engineering to automated, data-driven feature learning, the optimization algorithms used to train these systems are still designed by hand. These general-purpose, hand-crafted optimizers often fail to exploit the specialized structures inherent in specific problem domains. The article addresses this limitation by investigating whether the design of optimization algorithms can itself be cast as an automated learning problem.
The primary objective of the article is to demonstrate that an optimization algorithm parameterized by a recurrent neural network can be trained via gradient descent to optimize other mathematical functions and machine learning models, effectively learning domain-specific update strategies that surpass standard hand-designed optimizers.
To achieve this, the authors implemented an optimizer using a coordinatewise recurrent network—specifically a Long Short-Term Memory (LSTM) architecture. In this setup, a small neural network learns to propose parameter updates based on incoming gradient information while maintaining an internal state across optimization steps. This coordinate-level design enables the optimizer to scale to tens of thousands of parameters without an explosion in model size. The approach was evaluated across synthetic convex quadratic functions, multilayer perceptrons on image classification tasks (MNIST), convolutional neural networks on more complex image classification (CIFAR-10), and neural style transfer problems.
The findings demonstrate that the learned optimizers consistently converge faster and reach lower loss values than established, hand-crafted baselines such as standard gradient descent, momentum-based methods, and adaptive step-size algorithms like ADAM and RMSprop. First, on synthetic quadratic tasks, the learned optimizer converged substantially faster than all baseline methods. Second, when applied to neural networks, the learned optimizer generalized well to variations in network size, layer count, and extended training iterations, though it struggled when tested on activation functions fundamentally different from its training regime, such as switching from sigmoid to rectified linear units. Third, in convolutional network tasks, splitting the optimizer into separate modules for convolutional and fully connected layers allowed rapid convergence, even when transferring to datasets with unseen class labels. Finally, in neural art styling tasks, an optimizer trained on low-resolution images with a single artistic style successfully generalized to double the resolution and entirely new artistic styles, handling nearly 50,000 parameters effectively.
These results imply that automating optimizer design can significantly improve optimization efficiency and reduce the computational time required to train specialized models. By treating algorithm design as a transfer learning problem, organizations can develop customized optimizers that exploit repeated problem structures across workflows, rather than relying on generic rules. However, the inability of the learned optimizer to generalize across fundamentally different non-linear activation functions highlights clear operational boundaries.
Organizations seeking to apply these techniques should consider learned optimizers for recurring, structurally similar optimization workloads, such as continuous neural rendering or specialized domain retraining. Prior to deployment, teams should conduct pilot tests to verify performance and establish safeguards, as the learned optimizers should not be applied to architectures or mathematical properties that diverge substantially from the training distribution. Further research is warranted to expand cross-architecture transferability and explore richer coordinate-communication mechanisms.
- Paper: Adam: A Method for Stochastic Optimization, Diederik P. Kingma et al. (2015). Understanding the Adam optimizer is essential because the source paper builds directly upon it by replacing standard updates with an LSTM meta-optimizer.
- Paper: Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks, Chelsea Finn et al. (2017). MAML establishes the foundational meta-learning paradigm for rapid task adaptation that the source paper extends to learning the optimization algorithm itself.
- Paper: Optimization as a Model for Few-Shot Learning, S. Ravi et al. (2017). This paper applies the learned optimization concepts introduced in the source directly to the challenge of few-shot image classification.
- Paper: On First-Order Meta-Learning Algorithms, Alex Nichol et al. (2018). This work continues the exploration of meta-learning initiated by the source by investigating first-order approximations to simplify gradient-based adaptation.
