Papers › On First-Order Meta-Learning Algorithms

On First-Order Meta-Learning Algorithms

8 Mar 2018arXiv:1803.02999archive 2025-07-28

Alex Nichol, Joshua Achiam, John Schulman

This paper considers meta-learning problems, where there is a distribution of tasks, and we would like to obtain an agent that performs well (i.e., learns quickly) when presented with a previously unseen task sampled from this distribution. We analyze a family of algorithms for learning a parameter initialization that can be fine-tuned quickly on a new task, using only first-order derivatives for the meta-learning updates. This family includes and generalizes first-order MAML, an approximation to MAML obtained by ignoring second-order derivatives. It also includes Reptile, a new algorithm that we introduce here, which works by repeatedly sampling a task, training on it, and moving the initialization towards the trained weights on that task. We expand on the results from Finn et al. showing that first-order meta-learning algorithms perform well on some well-established benchmarks for few-shot classification, and we provide theoretical analysis aimed at understanding why these algorithms work.

PaperPDFCodeCode 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="1803.02999")

Code

Syntology Ran 24 of 42 code samples harvested from 8 repositories linked to this paper; 18 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · violated contract; 14 ran · our draft was wrong; 4 ran · fixture could not drive it; 3 ran with no contract checked.

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

13 repositories listed; official and paper-mentioned ones first.

openai/supervised-reptile officialmentioned on GitHubtf report
Yuzhe-CHEN/NerfSNN mentioned on GitHubpytorchMIT report
aravindMahadevan/metaLearningAlgos mentioned on GitHubpytorch report
gabrielhuang/reptile-pytorch mentioned on GitHubpytorchBSD-2-Clause report
gebob19/REPTILE-Metalearning mentioned on GitHubpytorch report
gebob19/cscd94-metalearning mentioned on GitHubpytorch report
gebob19/cscd94_metalearning mentioned on GitHubpytorch report
hfahrudin/reptile_implement_tf2 mentioned on GitHubtf report
radrumond/Chameleon mentioned on GitHubtf report
sanowar-raihan/nerf-meta mentioned on GitHubpytorch 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

42 samples harvested; 24 ran; 1 honoured the contract we drafted; 18 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.

1ran · honoured contract
2ran · violated contract
14ran · our draft was wrong
4ran · fixture could not drive it
3ran
18unverified

Licence: 13 of the 42 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 8 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.

_mini_batches openai/supervised-reptile/supervised_reptile/reptile.py official repository ran · our draft was wrong MIT (permissive) · a9fca842e7dce3dc · report
_sample_mini_dataset openai/supervised-reptile/supervised_reptile/reptile.py official repository ran · our draft was wrong MIT (permissive) · 8a4d810f710c7156 · report
_split_train_test openai/supervised-reptile/supervised_reptile/reptile.py official repository ran · our draft was wrong MIT (permissive) · d91fc29b93983a36 · report
add_vars openai/supervised-reptile/supervised_reptile/reptile.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 4e38232a76ab2c21 · report
average_vars openai/supervised-reptile/supervised_reptile/reptile.py official repository ran · violated contract MIT (permissive) · 59c0d53cfcbb2398 · report
interpolate_vars openai/supervised-reptile/supervised_reptile/reptile.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · b6a6811d1b4f3cb1 · report
scale_vars openai/supervised-reptile/supervised_reptile/reptile.py official repository ran · violated contract fingerprinted MIT (permissive) · 546a058c2eeefb61 · report
subtract_vars openai/supervised-reptile/supervised_reptile/reptile.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 3880e32be4fd7c7f · report
Reptile openai/supervised-reptile/supervised_reptile/reptile.py official repository unverified MIT (permissive) · 12c044306a7432d7 · report
VariableState openai/supervised-reptile/supervised_reptile/reptile.py official repository unverified MIT (permissive) · fc567dbf68a97f9c · report
MiniimagenetModel peisungtsai/Reptile-Pytorch-Implementation/reptile.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 8d746ce18ec482a7 · report
SineModel hfahrudin/reptile_implement_tf2/Reptile.py community (archive-listed) ran MIT (permissive) · 4c7e734776a0037f · report
Variable_ peisungtsai/Reptile-Pytorch-Implementation/reptile.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · e2090b8a7ed2f304 · report
average_vars peisungtsai/Reptile-Pytorch-Implementation/reptile.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 634c4ae3d42d183d · report
clone_model peisungtsai/Reptile-Pytorch-Implementation/reptile.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 5756a43251ee78a0 · report
copy_model hfahrudin/reptile_implement_tf2/Reptile.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 5b32ff71531a63f4 · report
get_loss peisungtsai/Reptile-Pytorch-Implementation/reptile.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 1aec86f12ed5bdbf · report
get_optimizer peisungtsai/Reptile-Pytorch-Implementation/reptile.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 4119f639d71237d9 · report
get_rays_shapenet sanowar-raihan/nerf-meta/shapenet_train.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 874a035aef959ab0 · report
interpolate_vars peisungtsai/Reptile-Pytorch-Implementation/reptile.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · e1d757cc1d97469e · report
np_to_tensor hfahrudin/reptile_implement_tf2/Reptile.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 6898b2b8e89e013c · report
padCols radrumond/Chameleon/code/reptile.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 663789fdc8b48fc7 · report
predict_label peisungtsai/Reptile-Pytorch-Implementation/reptile.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · 1e9509d17fafd962 · report
sample_points sanowar-raihan/nerf-meta/shapenet_train.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · ee6a21f2e9ccd76e · report
sample_task MaximeVandegar/Papers-in-100-Lines-of-Code/On_First_Order_Meta_Learning_Algorithms/reptile.py community (archive-listed) ran MIT (permissive) · 38ba8a7c486030e7 · report
volume_render sanowar-raihan/nerf-meta/shapenet_train.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · ea9eecfceada7f03 · report
GBML learnables/learn2learn/learn2learn/algorithms/gbml.py community (archive-listed) unverified MIT (permissive) · c2a3170df7df4870 · report
Reptile peisungtsai/Reptile-Pytorch-Implementation/reptile.py community (archive-listed) unverified no licence file found · pointer only · d215ca39171d7e6a · report
Reptile radrumond/Chameleon/code/reptile.py community (archive-listed) unverified no licence file found · pointer only · 862a81450c933234 · report
argument_parser peisungtsai/Reptile-Pytorch-Implementation/reptile.py community (archive-listed) unverified no licence file found · pointer only · e5b4fcff02414010 · report
compute_loss hfahrudin/reptile_implement_tf2/Reptile.py community (archive-listed) unverified MIT (permissive) · ac866a5f88b92797 · report
find_latest_file gabrielhuang/reptile-pytorch/utils.py community (archive-listed) unverified BSD-2-Clause (permissive) · b63cb25f52bfa440 · report
inner_loop sanowar-raihan/nerf-meta/shapenet_train.py community (archive-listed) unverified MIT (permissive) · 649f40959e38546d · report
list_dir gabrielhuang/reptile-pytorch/utils.py community (archive-listed) unverified BSD-2-Clause (permissive) · 9bc2cdc80cede326 · report
list_files gabrielhuang/reptile-pytorch/utils.py community (archive-listed) unverified BSD-2-Clause (permissive) · fdee3ec4c52c3c4e · report
loss_function hfahrudin/reptile_implement_tf2/Reptile.py community (archive-listed) unverified MIT (permissive) · 97d6ee1a0025a4d4 · report
perform_k_training_steps MaximeVandegar/Papers-in-100-Lines-of-Code/On_First_Order_Meta_Learning_Algorithms/reptile.py community (archive-listed) unverified MIT (permissive) · 7c5446461cabc053 · report
reptile MaximeVandegar/Papers-in-100-Lines-of-Code/On_First_Order_Meta_Learning_Algorithms/reptile.py community (archive-listed) unverified MIT (permissive) · a7a5b0bb081fdc90 · report
savePlot radrumond/Chameleon/code/reptile.py community (archive-listed) unverified no licence file found · pointer only · a2a852379817fd88 · report
train_batch hfahrudin/reptile_implement_tf2/Reptile.py community (archive-listed) unverified MIT (permissive) · 6ccf8109b819b534 · report
train_meta sanowar-raihan/nerf-meta/shapenet_train.py community (archive-listed) unverified MIT (permissive) · 9ad33249189e3716 · report
train_reptile hfahrudin/reptile_implement_tf2/Reptile.py community (archive-listed) unverified MIT (permissive) · 7ce7bf6a46593388 · 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 10-way (1-shot) Reptile+BN Accuracy 32.0 #11 of 14 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 10-way (1-shot) Reptile Accuracy 31.1 #14 of 14 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 10-way (5-shot) Reptile+BN Accuracy 47.6 #12 of 14 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 10-way (5-shot) Reptile Accuracy 44.7 #14 of 14 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 5-way (1-shot) Reptile + Transduction Accuracy 49.97 #100 of 105 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 5-way (5-shot) Reptile + Transduction Accuracy 65.99 #90 of 95 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 1-Shot, 20-way Reptile + Transduction Accuracy 89.43% #18 of 20 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 1-Shot, 5-way Reptile + Transduction Accuracy 97.68 #17 of 17 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 5-Shot, 20-way Reptile + Transduction Accuracy 97.12% #18 of 19 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 5-Shot, 5-way Reptile + Transduction Accuracy 99.48 #13 of 16 Archive leaderboard report
Few-Shot Image Classification Tiered ImageNet 10-way (1-shot) Reptile+BN Accuracy 35.3 #10 of 13 Archive leaderboard report
Few-Shot Image Classification Tiered ImageNet 10-way (1-shot) Reptile Accuracy 33.7 #13 of 13 Archive leaderboard report
Few-Shot Image Classification Tiered ImageNet 10-way (5-shot) Reptile+BN Accuracy 52.0 #12 of 13 Archive leaderboard report
Few-Shot Image Classification Tiered ImageNet 10-way (5-shot) Reptile Accuracy 48.0 #13 of 13 Archive leaderboard report
Image Classification Tiered ImageNet 5-way (5-shot) Reptile + BN Accuracy 71.03 #3 of 7 Archive leaderboard report
Image Classification Tiered ImageNet 5-way (5-shot) Reptile Accuracy 66.47 #7 of 7 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