HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Meta-Learning with Implicit Gradients

Aravind Rajeswaran Chelsea Finn Sham Kakade Sergey Levine

Meta-Learning with Implicit Gradients

Abstract

A core capability of intelligent systems is the ability to quickly learn new tasks by drawing on prior experience. Gradient (or optimization) based meta-learning has recently emerged as an effective approach for few-shot learning. In this formulation, meta-parameters are learned in the outer loop, while task-specific models are learned in the inner-loop, by using only a small amount of data from the current task. A key challenge in scaling these approaches is the need to differentiate through the inner loop learning process, which can impose considerable computational and memory burdens. By drawing upon implicit differentiation, we develop the implicit MAML algorithm, which depends only on the solution to the inner level optimization and not the path taken by the inner loop optimizer. This effectively decouples the meta-gradient computation from the choice of inner loop optimizer. As a result, our approach is agnostic to the choice of inner loop optimizer and can gracefully handle many gradient steps without vanishing gradients or memory constraints. Theoretically, we prove that implicit MAML can compute accurate meta-gradients with a memory footprint that is, up to small constant factors, no more than that which is required to compute a single inner loop gradient and at no overall increase in the total computational cost. Experimentally, we show that these benefits of implicit MAML translate into empirical gains on few-shot image recognition benchmarks.

Code Repositories

prolearner/hypertorch
pytorch
Mentioned in GitHub
aravindr93/imaml_dev
Official
pytorch
dbaranchuk/memory-efficient-maml
pytorch
Mentioned in GitHub
spiglerg/pyMeta
tf
Mentioned in GitHub
bojianhou/oagd
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
few-shot-image-classification-on-mini-2iMAML HF
Accuracy: 49.30
few-shot-image-classification-on-omniglot-1-1iMAML, Hessian-Free
Accuracy: 96.18
few-shot-image-classification-on-omniglot-1-2iMAML, Hessian-Free
Accuracy: 99.50
few-shot-image-classification-on-omniglot-5-1iMAML, Hessian-Free
Accuracy: 99.14%
few-shot-image-classification-on-omniglot-5-2iMAML, Hessian-Free
Accuracy: 99.74%

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Meta-Learning with Implicit Gradients | Papers | HyperAI