Introduction
Researchers have developed RNNprop, a "learning-to-learn" optimizer that uses a recurrent neural network to automatically find the best descent steps for training other models. By introducing clever training tricks like Random Scaling and Relative Gradients, they fixed the two biggest flaws in previous meta-optimizers: their inability to generalize to new architectures and their tendency to "explode" during long training runs.
The Problem with Early Meta-Optimizers
Training deep neural networks is often a "black art" involving the tedious manual tuning of learning rates and optimization algorithms (like Adam or SGD). The field of meta-learning aims to automate this by training a "meta-optimizer" (usually an LSTM) to observe the gradients of a "target" model and predict the best parameter updates.
However, early meta-optimizers (like DeepMind’s DMoptimizer) suffered from two major "brittleness" issues:
- Poor Generalization: If you trained the meta-optimizer on a network using Sigmoid activations but tried to use it on a network with ReLU, it would fail miserably.
- Short Horizons: They were typically trained for short bursts (e.g., 100 steps). If you tried to use them for 1,000 or 10,000 steps, the loss would often skyrocket, making them useless for real-world training.
Methods: The RNNprop Approach
The authors propose a new model called RNNprop and specific training strategies to solve these issues:
- RNNprop Architecture: Unlike previous models that took raw gradients as input, RNNprop uses relative gradients. It normalizes the gradient by its moving average of the second moment (similar to how Adam or RMSprop works). This makes the optimizer scale-invariant—it cares about the shape of the loss landscape, not the absolute magnitude of the numbers.
- Random Scaling: To prevent the meta-optimizer from overfitting to a specific problem scale, the authors randomly scale the parameters of the objective function during training. This acts as a form of "data augmentation" for the optimization process.
- Combination with Convex Functions: To help the RNN learn the basics of gradient descent quickly, they mix the complex, non-convex loss function of a neural network with a simple, "easy-to-solve" convex quadratic function. This provides a stable baseline for the RNN to learn from in the early stages of training.
- Gradient Clipping: The final update is passed through a bounding function (like
tanhorsigmoid) and scaled by a factor $\alpha$, ensuring that the meta-optimizer never suggests a step size that is dangerously large.
Key Insights
- The "Second Class" Advantage: The authors categorize optimizers into two classes. Class 1 (SGD, Momentum) depends on absolute gradient size. Class 2 (Adam, RMSprop) uses relative sizes. By forcing RNNprop into Class 2 via normalization, they made it inherently more robust to changes in network architecture.
- Optimization as a Policy: By viewing optimization through the lens of reinforcement learning, they realized that the meta-optimizer is essentially learning a "policy" for navigation. Random Scaling ensures this policy is robust enough to handle different "terrains."
Key Results
The authors evaluated their meta-optimizer on several standard benchmarks (MNIST, CIFAR-10, and Synthetic Sequence Data) to test its ability to generalize.
- Long Horizons: While previous meta-optimizers (like DMoptimizer) failed and diverged after a few hundred steps, RNNprop successfully trained models for 10,000 steps without the loss exploding.
- Cross-Architecture Generalization: RNNprop, trained only on a simple 1-layer MLP, successfully optimized CNNs and LSTMs. It even handled networks with up to 10 hidden layers, whereas traditional meta-optimizers failed as soon as the network got deeper than the training case.
- Competitive Performance: In many tasks, RNNprop outperformed hand-tuned versions of Adam and RMSprop, particularly in the early stages of training where it found steeper descent paths.
Limitations and Future Work
Despite the improvements, the authors note that RNNprop is not yet a "universal" optimizer. On extremely long horizons or specific complex datasets, the best hand-tuned traditional optimizers (like a perfectly tuned Adam) can still eventually catch up or slightly outperform it.
Future work should focus on making the meta-optimizer even more generic so it can be applied to a wider variety of tasks beyond those "analogous" to its training set. There is also room to explore more elaborate RNN architectures to capture even more complex optimization dynamics.
Summary updated