Papers › Matching Networks for One Shot Learning

Matching Networks for One Shot Learning

13 Jun 2016NeurIPS 2016 12arXiv:1606.04080archive 2025-07-28

Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Koray Kavukcuoglu, Daan Wierstra

Learning from a few examples remains a key challenge in machine learning. Despite recent advances in important domains such as vision and language, the standard supervised deep learning paradigm does not offer a satisfactory solution for learning new concepts rapidly from little data. In this work, we employ ideas from metric learning based on deep neural features and from recent advances that augment neural networks with external memories. Our framework learns a network that maps a small labelled support set and an unlabelled example to its label, obviating the need for fine-tuning to adapt to new class types. We then define one-shot learning problems on vision (using Omniglot, ImageNet) and language tasks. Our algorithm improves one-shot accuracy on ImageNet from 87.6% to 93.2% and from 88.0% to 93.8% on Omniglot compared to competing approaches. We also demonstrate the usefulness of the same model on language modeling by introducing a one-shot task on the Penn Treebank.

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="1606.04080")

Code

Syntology Ran 6 of 16 code samples harvested from 5 repositories linked to this paper; 10 have no recorded run. Of those that ran: 5 ran · our draft was wrong; 1 ran · fixture could not drive it.

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

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

AntreasAntoniou/MatchingNetworks mentioned on GitHubtfMIT report
KamalM8/Few-Shot-learning-Fashion mentioned on GitHubpytorch report
LiuXinyu12378/MatchingNetworks mentioned on GitHubtfMIT report
RajeevReddyIlavala/Low-Shot-Learning-Learning mentioned on GitHubpytorchNOASSERTION report
Sha-Lab/FEAT mentioned on GitHubpytorch report
WenbinLee/DN4 mentioned on GitHubpytorchNOASSERTION report
adriangonz/statistical-nlp-17 mentioned on GitHubpytorch report
cnichkawde/MatchingNetwork mentioned on GitHub report
cnielly/prototypical-networks-omniglot mentioned on GitHubpytorch report
fiveai/on-episodes-fsl mentioned on GitHubpytorch report
fujenchu/matchingNet mentioned on GitHubpytorchApache-2.0 report
hrdwsong/ProtoNet-Paddle mentioned on GitHubpaddle report
knnaraghi/fewshot mentioned on GitHubtf report
oscarknagg/few-shot mentioned on GitHubpytorch report
qitianwu/nodeformer mentioned on GitHubpytorch report
sambi97/Low-shot-learning_-Deep-learning-project mentioned on GitHubpytorchNOASSERTION report
schatty/matching-networks-tf mentioned on GitHubtf report
welkincici/MatchingNet mentioned on GitHubtf report
wenbinlee/defensivefsl 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

16 samples harvested; 6 ran; 0 honoured the contract we drafted; 10 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.

5ran · our draft was wrong
1ran · fixture could not drive it
10unverified

Licence: 6 of the 16 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 5 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.

encode_lowshot_trainset facebookresearch/low-shot-shrink-hallucinate/matching_network.py community (archive-listed) ran · fixture could not drive it licence not identified · pointer only · f48ebd2b61e5d2ee · report
mean_confidence_interval fujenchu/matchingNet/utils.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · fbec209cee9a4df8 · report
perelement_accuracy facebookresearch/low-shot-shrink-hallucinate/matching_network.py community (archive-listed) ran · our draft was wrong fingerprinted licence not identified · pointer only · e8592464cb90d8a9 · report
perelement_accuracy facebookresearch/low-shot-shrink-hallucinate/low_shot.py community (archive-listed) ran · our draft was wrong fingerprinted licence not identified · pointer only · bf3de7601f74fa35 · report
preprocess_config schatty/matching-networks-tf/scripts/train/run_train.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 5d3cb59c1da5b053 · report
preprocess_config schatty/matching-networks-tf/scripts/eval/run_eval.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 53241b134fbef5ed · report
augment_image AntreasAntoniou/MatchingNetworks/data.py community (archive-listed) unverified MIT (permissive) · 022f6566a93cb4b6 · report
build_experiment_folder AntreasAntoniou/MatchingNetworks/utils/storage.py community (archive-listed) unverified MIT (permissive) · c2ad5f5a2003fec1 · report
get_combination_miniImageNet_5way1shot_random_pathonly_episode_variableWays fujenchu/matchingNet/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 65ca7af4547afb9c · report
get_test_loader facebookresearch/low-shot-shrink-hallucinate/low_shot.py community (archive-listed) unverified licence not identified · pointer only · e18676657d36d810 · report
load_statistics AntreasAntoniou/MatchingNetworks/utils/storage.py community (archive-listed) unverified MIT (permissive) · 348fc98221adb8ed · report
lr_schedule KamalM8/Few-Shot-learning-Fashion/experiments/proto_nets.py community (archive-listed) unverified MIT (permissive) · c7b885cfa7d6a165 · report
randomCrop fujenchu/matchingNet/dataloader.py community (archive-listed) unverified Apache-2.0 (permissive) · 40e189283ad47450 · report
read_miniImageNet_pathonly fujenchu/matchingNet/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 9a4547e2e8c3de87 · report
train_matching_network facebookresearch/low-shot-shrink-hallucinate/matching_network.py community (archive-listed) unverified licence not identified · pointer only · e6d5e6bdc3bf15c4 · report
training_loop facebookresearch/low-shot-shrink-hallucinate/low_shot.py community (archive-listed) unverified licence not identified · pointer only · 3bfa0f8b278ac054 · report

Tasks

Few-Shot Image ClassificationFew-Shot LearningLanguage ModelingLanguage ModellingMetric LearningOne-Shot Learning

Datasets

Introduced by this paper, per the archive.

mini-Imagenet

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Few-Shot Image Classification Meta-Dataset Matching Networks Accuracy 56.247 #20 of 22 Archive leaderboard report
Few-Shot Image Classification Meta-Dataset Rank Matching Networks Mean Rank 10.5 #11 of 13 Archive leaderboard report
Few-Shot Image Classification Mini-ImageNet-CUB 5-way (1-shot) MatchingNet (Vinyals et al., 2016) Accuracy 45.59 #5 of 12 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 5-way (1-shot) Matching Nets (Cosine Matching Fn) Accuracy 46.6 #104 of 105 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 5-way (5-shot) Matching Nets (Cosine Matching Fn) Accuracy 60 #95 of 95 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 1-Shot, 20-way Matching Nets Accuracy 93.8% #15 of 20 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 1-Shot, 5-way Matching Nets Accuracy 98.1 #14 of 17 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 5-Shot, 20-way Matching Nets Accuracy 98.5% #13 of 19 Archive leaderboard report
Few-Shot Image Classification OMNIGLOT - 5-Shot, 5-way Matching Nets Accuracy 98.9 #16 of 16 Archive leaderboard report
Few-Shot Image Classification Stanford Cars 5-way (1-shot) Matching Nets FCE++ Accuracy 34.80 #6 of 6 Archive leaderboard report
Few-Shot Image Classification Stanford Cars 5-way (5-shot) Matching Nets FCE++ Accuracy 44.70 #6 of 6 Archive leaderboard report
Few-Shot Image Classification Stanford Dogs 5-way (5-shot) Matching Nets FCE++ Accuracy 47.50 #6 of 6 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.

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