TL;DR
Learned optimizers—neural networks trained to act as optimization algorithms—have long been powerful but opaque "black boxes." This paper uses dynamical systems theory to reverse-engineer them, revealing that they don't just find "magic" shortcuts; they autonomously rediscover and refine classic techniques like momentum, gradient clipping, and learning rate schedules.
The Black Box of Learned Optimization
In the world of deep learning, we typically rely on "hand-designed" optimizers like Adam, RMSProp, or standard Stochastic Gradient Descent (SGD). Recently, researchers have started using meta-learning to train optimizers—often parameterized as Recurrent Neural Networks (RNNs)—to outperform these baselines.
While these learned optimizers frequently achieve superior performance on specific tasks, they are notoriously difficult to interpret. We haven't known if they are implementing entirely new optimization theories or simply combining existing ones in clever ways. This lack of transparency makes it hard to trust them in production or use their "logic" to design better manual optimizers. The authors set out to bridge this gap by treating learned optimizers as nonlinear dynamical systems and "interrogating" their inner state.
Reverse-Engineering Methods
The authors analyze learned optimizers trained on four different tasks. To "see" what the RNN is thinking, they employ two primary reverse-engineering tools:
- Update Functions: They visualize the relationship between an input gradient ($g$) and the resulting parameter update ($\Delta x$) at specific points in the optimizer's hidden state. This allows them to see if the optimizer is acting linearly (like SGD) or saturating.
- Linearization and Fixed Points: By treating the RNN as a dynamical system, they find "fixed points" (states where the optimizer stops changing if the input is zero). They then perform a Taylor expansion (linearization) around these points. This allows them to decompose the complex RNN dynamics into eigenvalues and eigenvectors, which can be directly compared to classical concepts like momentum timescales.
Datasets and Performance
The authors trained and evaluated their optimizers on four disparate tasks designed to cover various loss surface geometries:
- Linear Regression: A simple convex problem with a constant Hessian.
- Rosenbrock Function: A classic non-convex optimization test case featuring a narrow, curved valley.
- Two Moons: Training a fully connected neural network on a toy 2D classification dataset.
- MNIST: Training a four-layer convolutional neural network (CNN) on handwritten digits.
In all four tasks, the meta-learned optimizers outperformed well-tuned baselines (Adam, RMSProp, and Momentum) on the meta-objective (average training loss).
Key Insights: What Did the Optimizers Learn?
By mapping high-dimensional RNN behaviors to human-understandable mechanisms, the authors discovered several fascinating behaviors:
- The Rediscovery of Momentum: By looking at the Jacobian of the RNN at fixed points, the authors found that the optimizer's state dynamics effectively implement momentum. The "slowest" decaying modes in the RNN correspond almost perfectly to the momentum timescales used in hand-designed algorithms. In several cases, the "learned" momentum hyperparameter matched the optimal hyperparameter found via an exhaustive grid search for a classical momentum optimizer.
- Autonomous Learning Rate Schedules: Some optimizers learned to change the learning rate over time even without any gradient input. They do this by starting the RNN state far from a fixed point and letting it naturally "drift" toward equilibrium, effectively acting as a built-in decay schedule.
- The "S-Curve" of Adaptation: For the Rosenbrock task, the authors found that the optimizer's fixed points form an S-shaped manifold. Large gradients push the optimizer state toward the "tails" of the S-curve, where the update function becomes shallower. This is a sophisticated, learned form of Learning Rate Adaptation—slowing down when gradients are huge to avoid overshooting.
- Layer-Specific Logic: In the MNIST task, the optimizer learned to treat weights and biases differently. It also applied different learning rate schedules to different layers of the CNN, likely by sensing the different gradient statistics inherent in deep architectures.
Limitations and Future Work
While the paper provides a brilliant "Rosetta Stone" for interpreting learned optimizers, there are notable limitations. The tasks studied are relatively small, and it remains to be seen if the same interpretable mechanisms dominate when training massive models like Transformers on ImageNet or large language datasets. Furthermore, while the authors isolated specific mechanisms, we still lack a holistic picture of how these parts are stitched together into a single, cohesive algorithm.
A natural next step suggested by the authors is using these insights to perform symbolic regression—taking the "logic" found in the RNN and writing it down as a new, transparent mathematical formula that can be used without the computational overhead of an RNN.
Summary updated