Papers › Meta-Learning with Implicit Gradients

Meta-Learning with Implicit Gradients

10 Sep 2019NeurIPS 2019 12arXiv:1909.04630archive 2025-07-28

Aravind Rajeswaran, Chelsea Finn, Sham Kakade, Sergey Levine

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1909.04630")

Code

Syntology Ran 27 of 36 code samples harvested from 6 repositories linked to this paper; 9 have no recorded run. Of those that ran: 3 ran · honoured contract; 1 ran · violated contract; 16 ran · our draft was wrong; 3 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 7 samples from 1 repository, 7 ran; community (archive-listed): 29 samples from 5 repositories, 20 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

aravindr93/imaml_dev officialpytorch report
bojianhou/oagd mentioned on GitHubpytorch report
dbaranchuk/memory-efficient-maml mentioned on GitHubpytorch report
prolearner/hypertorch mentioned on GitHubpytorch report
spiglerg/pyMeta mentioned on GitHubtf report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

36 samples harvested; 27 ran; 3 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
1ran · violated contract
16ran · our draft was wrong
3ran · fixture could not drive it
4ran
9unverified

Licence: 10 of the 36 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 6 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Learner aravindr93/imaml_dev/implicit_maml/learner_model.py official repository ran MIT (permissive) · 973d52f05dd6e23a · report
make_conv_network aravindr93/imaml_dev/implicit_maml/learner_model.py official repository ran · our draft was wrong MIT (permissive) · 706bb24c4aec6c01 · report
make_fc_network aravindr93/imaml_dev/implicit_maml/learner_model.py official repository ran · our draft was wrong MIT (permissive) · 7f3e1e88acd582cb · report
to_cuda aravindr93/imaml_dev/implicit_maml/learner_model.py official repository ran · fixture could not drive it MIT (permissive) · b6491973ad8364e5 · report
to_device aravindr93/imaml_dev/implicit_maml/learner_model.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 902012dfacde484f · report
to_numpy aravindr93/imaml_dev/implicit_maml/learner_model.py official repository ran · honoured contract MIT (permissive) · 4e11fa374508129f · report
to_tensor aravindr93/imaml_dev/implicit_maml/learner_model.py official repository ran · honoured contract MIT (permissive) · c5c66678ce4d5e06 · report
ClipGradNorm dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) ran MIT (permissive) · 9cf41b1fd2f938db · report
IngraphGradientDescent dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) ran MIT (permissive) · 15ad46d31a457fbd · report
TaskAsSequenceOfTasks spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py community (archive-listed) ran no licence file found · pointer only · 50268c702c3160f7 · report
copy_and_replace dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 90253eecd694ad99 · report
disable_batchnorm_stats dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) ran · our draft was wrong MIT (permissive) · ad022c385193f969 · report
f1 spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py community (archive-listed) ran · honoured contract no licence file found · pointer only · 878503c8b4732592 · report
f2 spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 63a920c05cd66bfd · report
fixed_point prolearner/hypertorch/hypergrad/hypergradients.py community (archive-listed) ran · our draft was wrong MIT (permissive) · a283594886b8397a · report
fixed_point prolearner/hypergrad/hypergrad/hypergradients.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 1248bd4de1408eff · report
fixed_point bojianhou/oagd/Meta-Learning/hypergrad/hypergradients.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · ce8a310ec44f2617 · report
get_cnn_omniglot prolearner/hypertorch/examples/iMAML.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 2b7ea8d2c1a114db · report
get_updated_model dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 79cbcc7d66c3e96b · report
inner_loop prolearner/hypertorch/examples/iMAML.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 67807e9ca0f086f6 · report
is_namedtuple dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) ran · violated contract MIT (permissive) · 639811fcfbb1e7a8 · report
nested_flatten dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) ran · our draft was wrong MIT (permissive) · ef358865b0254efe · report
nested_pack dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) ran · our draft was wrong MIT (permissive) · eabcf3817110a345 · report
reverse prolearner/hypertorch/hypergrad/hypergradients.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 0d5e60bd446341fb · report
reverse_unroll prolearner/hypertorch/hypergrad/hypergradients.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 729450e798657a96 · report
steepest_descent spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 02e3849d39eb6ee7 · report
stoch_AID prolearner/hypertorch/hypergrad/hypergradients.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 38aac91c527d23aa · report
GradBasedMetaLearner spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py community (archive-listed) unverified no licence file found · pointer only · 7e872f029aaf816a · report
GradientCheckpointMAML dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) unverified MIT (permissive) · 6901e9808bfb8df0 · report
Hvp spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py community (archive-listed) unverified no licence file found · pointer only · b665a79811957562 · report
NaiveMAML dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) unverified MIT (permissive) · 3c24eaee08990b03 · report
Task spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py community (archive-listed) unverified no licence file found · pointer only · ca574f805c91d123 · report
_nested_pack dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) unverified MIT (permissive) · 7f93a8de5e9255d0 · report
do_not_copy dbaranchuk/memory-efficient-maml/torch_maml/maml.py community (archive-listed) unverified MIT (permissive) · 866ceb16f029bf5d · report
grads_on_batch spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py community (archive-listed) unverified no licence file found · pointer only · 04a97a435d9b70d9 · report
iMAMLMetaLearner spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py community (archive-listed) unverified no licence file found · pointer only · d1abea6ef957cede · report

Tasks

Few-Shot Image ClassificationFew-Shot LearningMeta-Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Few-Shot Image Classification Mini-Imagenet 5-way (1-shot) iMAML HF Accuracy 49.30 #102 of 105 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 1-Shot, 20-way iMAML, Hessian-Free Accuracy 96.18 #10 of 20 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 1-Shot, 5-way iMAML, Hessian-Free Accuracy 99.50 #6 of 17 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 5-Shot, 20-way iMAML, Hessian-Free Accuracy 99.14% #8 of 19 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 5-Shot, 5-way iMAML, Hessian-Free Accuracy 99.74% #8 of 16 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

MAML

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections