Meta-Learning with Warped Gradient Descent

Sebastian Flennerhag, Andrei A. Rusu, Razvan Pascanu, Hujun Yin, Raia Hadsell

Abstract

Warped Gradient Descent (WarpGrad) is a meta-learning framework designed to overcome the scalability challenges of gradient-based adaptation. By interleaving meta-learned "warp-layers" into a neural network, WarpGrad learns to precondition gradients, effectively warping the loss surface to facilitate faster and more stable learning. Unlike traditional methods that require backpropagating through long adaptation trajectories, WarpGrad employs a trajectory-agnostic meta-objective, allowing it to scale to complex tasks in reinforcement learning and continual learning. Our results demonstrate state-of-the-art performance across few-shot classification, maze navigation, and forgetting-prevention benchmarks.

Introduction

Meta-learning, or "learning to learn," aims to develop models that can rapidly adapt to new tasks with minimal data. Current approaches generally fall into two categories: memory-based methods (e.g., RNNs) and gradient-based methods (e.g., MAML). While gradient-based methods offer strong inductive biases, they often face a "scaling wall" because meta-optimization typically requires backpropagating through the entire task-specific learning process. This becomes computationally prohibitive for tasks requiring hundreds or thousands of adaptation steps. WarpGrad aims to bridge this gap by providing a scalable, gradient-based approach that does not need to "look back" through the entire history of learning steps.

Methodology

The core innovation of WarpGrad is the warp-layer. Instead of just learning a single initialization point, WarpGrad interleaves non-linear layers (warp-layers) between the standard layers of a task-learner.

Gradient Preconditioning

In the backward pass, backpropagating through these warp-layers implicitly multiplies the gradients by a preconditioning matrix. This transformation "warps" the geometry of the parameter space, aligning gradients with directions that promote long-term descent.

The WarpGrad architecture, showing the interleaving of warp-layers (φ) with task-learner layers (θ) and the resulting gradient preconditioning.

Trajectory Agnosticism

Unlike MAML, which optimizes for a final performance after $K$ steps, WarpGrad uses a meta-objective that is "trajectory agnostic." It treats learning as a Markov process, optimizing the warp-layers to ensure that every step taken by the task-learner is in a direction that facilitates long-term descent. This removes the requirement of backpropagating through time (BPTT) for the adaptation process.

Key Insights and Geometric Interpretation

WarpGrad effectively learns a Riemannian metric. It transforms a "rugged" loss landscape with narrow valleys into a smooth, bowl-like surface where standard gradient descent can slide easily to the minimum.

Conceptual illustration of how the warp-layer (P) transforms the standard gradient (∇L) into a warped gradient (P∇L) to reach a better parameter state (θ'').

Furthermore, by making warp-layers non-linear, the preconditioning becomes data-dependent. The "warp" applied to the gradients changes based on the specific input the model is seeing, allowing for much more flexible adaptation than fixed scaling factors.

Experimental Evaluation

The authors evaluated WarpGrad across a diverse set of challenges:

  • Few-shot Classification: Warp-MAML outperformed standard MAML on miniImageNet (52.3% vs 48.7% for 1-shot) and tieredImageNet.
  • Multi-shot Adaptation: On the multi-shot Omniglot benchmark, where adaptation takes hundreds of steps, Warp-Leap achieved ~83.6% accuracy, significantly outperforming Reptile (~70.8%).
  • Reinforcement Learning: In a maze navigation task requiring memory, Warp-RNN outperformed specialized memory-based meta-learners, reaching a mean cumulative reward of ~160 compared to ~125 for baselines.
  • Continual Learning: In a sine wave regression task, WarpGrad successfully learned a geometry that allowed the model to adapt to new tasks without erasing its ability to perform on previous ones, effectively preventing catastrophic forgetting.

Conclusion

WarpGrad provides a scalable and flexible framework for meta-learning by learning the geometry of the optimization landscape. While it avoids backpropagating through long trajectories, it still relies on second-order gradients in its exact form, though first-order approximations prove effective. Future work could explore even more efficient ways to sample from parameter trajectories and derive principled meta-objectives specifically tailored for lifelong learning scenarios.

Summary updated

BibTeX
@inproceedings{flennerhag2020meta,
  author = {Sebastian Flennerhag and Andrei A. Rusu and Razvan Pascanu and Hujun Yin and Raia Hadsell},
  title = {{Meta-Learning with Warped Gradient Descent}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure