Meta-learning with negative learning rates

Alberto Bernacchia

Introduction

In a surprising twist on "learning to learn," this paper proves that for many common machine learning models, the best way to train a meta-learning algorithm like MAML is to use a negative learning rate in the inner loop. While we usually want models to move toward lower error, using a negative rate during training helps the model find a better global starting point that generalizes far more effectively to new tasks.

The Meta-Learning Debate

Meta-learning, specifically the popular Model-Agnostic Meta-Learning (MAML) framework, works through a "bi-level" optimization process.

The MAML framework splits into meta-training and meta-testing phases.

There is an inner loop, where the model adapts to a specific task using a few gradient steps, and an outer loop, which updates the model's initial parameters (the "meta-parameters") so that the inner loop adaptation is as successful as possible.

Recently, the research community has debated whether this inner loop is even necessary. Some empirical studies suggest that simply training a good feature extractor—effectively setting the inner learning rate to zero—works just as well or better. This paper seeks to resolve the debate by mathematically analyzing how the inner loop learning rate affects performance. Is zero really the limit, or can we do even better by going into the negatives?

Analytical Approach

Because empirical "black-box" testing often misses nuanced hyperparameter dynamics, the author uses Random Matrix Theory and exact solutions of linear models to derive an algebraic expression for the test loss of MAML.

The study covers three main scenarios:

  1. Mixed Linear Regression: A standard setup where tasks are defined by different linear functions.
  2. Overparameterized vs. Underparameterized Regimes: Analyzing models where the number of parameters is much larger (or smaller) than the available data.
  3. Nonlinear Models: Extending the theory to wide neural networks using the Neural Tangent Kernel (NTK) framework, which allows nonlinear networks to be approximated as linear models during training.

To validate these exact mathematical proofs, the author utilizes synthetic datasets, including Gaussian mixed linear regression, Wishart covariance models, and quadratic nonlinear regression tasks for 2-layer ReLU networks.

Key Insights: The Power of Negative Learning

The most striking finding of the paper is the divergence between training and testing dynamics.

Test loss as a function of adaptation learning rate (left) and training learning rate (right), showing the optimal training rate is negative.
  • Positive for Adaptation, Negative for Training: The optimal learning rate for adaptation (testing on a new task) is always positive, as the model needs to move toward the task-specific solution. However, the optimal learning rate for meta-training is consistently negative.
  • Why Negative? A negative learning rate in the inner loop essentially "pushes" the parameters away from the task-specific solution during training. In the outer loop, the meta-parameters must compensate for this "bad" inner step. This tension forces the meta-parameters to land in a region of the parameter space that is more robust and centered among all possible tasks, rather than being biased toward any single one.
  • The "Zero" Fallacy: While recent papers suggested that a learning rate of zero (no inner loop) is better than a positive one, this paper mathematically proves that zero is just a stop on the way to an even better negative value.
  • Overparameterization Matters: The effect is particularly pronounced in overparameterized models (the "lazy training" regime), which describes most modern deep learning architectures. The author provides exact formulas showing that in the overparameterized case, the derivative of the loss at a zero learning rate is positive, meaning performance must improve if the learning rate is decreased into negative territory.

Limitations and Future Work

While the theoretical and synthetic empirical results are strong, the paper notes a few limitations. The current theory is strictly derived for regression problems with squared loss; extending this to classification (cross-entropy loss) involves significantly more complex math. Additionally, the model assumes tasks are drawn independently, whereas real-world tasks often have complex correlations. Finally, the nonlinear results rely on the "lazy training" assumption, leaving it unclear if these findings hold for models that undergo substantial feature learning.

Future work should explore these negative rates in large-scale classification benchmarks to see if the theoretical gains translate to state-of-the-art computer vision and NLP models.

Summary updated

BibTeX
@inproceedings{bernacchia2021meta,
  author = {Alberto Bernacchia},
  title = {{Meta-learning with negative learning rates}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=gIq47EG8jpA},
}
Figure