Papers › A Closer Look at Few-shot Classification

A Closer Look at Few-shot Classification

8 Apr 2019ICLR 2019 5arXiv:1904.04232archive 2025-07-28

Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Frank Wang, Jia-Bin Huang

Few-shot classification aims to learn a classifier to recognize unseen classes during training with limited labeled examples. While significant progress has been made, the growing complexity of network designs, meta-learning algorithms, and differences in implementation details make a fair comparison difficult. In this paper, we present 1) a consistent comparative analysis of several representative few-shot classification algorithms, with results showing that deeper backbones significantly reduce the performance differences among methods on datasets with limited domain differences, 2) a modified baseline method that surprisingly achieves competitive performance when compared with the state-of-the-art on both the \miniI and the CUB datasets, and 3) a new experimental setting for evaluating the cross-domain generalization ability for few-shot classification algorithms. Our results reveal that reducing intra-class variation is an important factor when the feature backbone is shallow, but not as critical when using deeper backbones. In a realistic cross-domain evaluation setting, we show that a baseline method with a standard fine-tuning practice compares favorably against other state-of-the-art few-shot learning algorithms.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

The archive's official repository (wyharveychen/CloserLookFewShot) was not harvested; the 8 samples below come from 5 community repositories.

Syntology 8 code samples harvested from 5 repositories linked to this paper: 7 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 1 honoured, 1 violated, 0 with no contract checked; 5 where Syntology's instrument failed) · 1 unverified. Where Syntology's instrument failed: 4 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: community (archive-listed): 8 samples from 5 repositories, 7 ran (2 with no instrument failure; 5 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 4 of its repositories that Syntology harvested for other papers:

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 2 of the 7 samples that ran have no recorded date.

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

wyharveychen/CloserLookFewShot officialmentioned in papermentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
Lieberk/Paddle-FSL-Baseline mentioned on GitHubpaddleNOASSERTIONSyntology: not harvested report
anujinho/trident mentioned on GitHubpytorchMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Transductive Decoupled Variational Inference for Few-Shot Classification (arXiv:2208.10559; that paper's own run record: 8 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 0 honoured, 0 violated, 6 with no contract checked; 2 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
caesarea38/doclangid mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to A Simple Framework for Contrastive Learning of Visual Representations (arXiv:2002.05709; that paper's own run record: 115 ran (of which 33 constructed an object rather than computing a result; 89 with no instrument failure: 1 honoured, 1 violated, 87 with no contract checked; 26 where Syntology's instrument failed) · 22 unverified); nothing checks that they implement this paper's method. report
cyvius96/few-shot-meta-baseline mentioned on GitHubpytorchMITSyntology: 2 samples, 2 ran (2 instrument-failed) · 0 unverified report
hu-my/taskattributedistance mentioned on GitHubpytorchSyntology: 1 sample, 0 ran · 1 unverified report
mikehuisman/revisiting-learned-optimizers mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks (arXiv:1703.03400; that paper's own run record: 103 ran (of which 35 constructed an object rather than computing a result; 72 with no instrument failure: 6 honoured, 1 violated, 65 with no contract checked; 31 where Syntology's instrument failed) · 51 unverified); nothing checks that they implement this paper's method. report
tjujianyu/rrl mentioned on GitHubpytorchSyntology: 1 sample, 1 ran (1 instrument-failed) · 0 unverified report
vinuni-vishc/Few-Shot-Cosine-Transformer mentioned on GitHubpytorchSyntology: 3 samples, 3 ran (2 instrument-failed) · 0 unverified report
vinuni-vishc/few-shot-transformer mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
yinboc/few-shot-meta-baseline mentioned on GitHubpytorchSyntology: 1 sample, 1 ran (0 instrument-failed) · 0 unverified report
neverCV/Baseline_FSL paddleAGPL-3.0Syntology: not harvested report
sicara/easy-few-shot-learning pytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Prototypical Networks for Few-shot Learning (arXiv:1703.05175; that paper's own run record: 50 ran (of which 14 constructed an object rather than computing a result; 29 with no instrument failure: 5 honoured, 0 violated, 24 with no contract checked; 21 where Syntology's instrument failed) · 14 unverified), Laplacian Regularized Few-Shot Learning (arXiv:2006.15486; that paper's own run record: 5 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 4 where Syntology's instrument failed) · 7 unverified) and Transductive Information Maximization For Few-Shot Learning (arXiv:2008.11297; that paper's own run record: 9 ran (of which 2 constructed an object rather than computing a result; 7 with no instrument failure: 0 honoured, 0 violated, 7 with no contract checked; 2 where Syntology's instrument failed) · 1 unverified); nothing checks that they implement this paper's method. 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.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

8 samples harvested: 7 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 1 honoured, 1 violated, 0 with no contract checked; 5 where Syntology's instrument failed) · 1 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
1ran · violated contract
4ran · our draft was wrong
1ran; the contract check could not run
1unverified

Licence: 7 of the 8 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; the list below is grouped by repository, each group headed by its name and what it is to the paper. 2 samples whose link to this paper records no repository are listed under one of this paper's own repositories, because identical code was harvested from it for another paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

cyvius96/few-shot-meta-baseline community (archive-listed) 2 samples, 2 ran (2 instrument-failed) · 0 unverified
conv1x1 in 691 papers meta-dataset/models/resnet.py identical code Syntology harvested from this repository for another paper; this paper's link records no repository, path or licence of its own ran · our draft was wrong licence of this copy not recorded · d9def42110729a85 · report fixture: signature in_planes:int/0/int, out_planes:int/0/int, stride:int/0/int · returned Conv2d · level recorded, date not recorded
conv3x3 in 1,376 papers meta-dataset/models/resnet.py identical code Syntology harvested from this repository for another paper; this paper's link records no repository, path or licence of its own ran · our draft was wrong licence of this copy not recorded · 160bb14bd76201b4 · report fixture: signature in_planes:int/0/int, out_planes:int/0/int, stride:int/0/int, groups:int/0/int, dilation:int/0/int · returned Conv2d · level recorded, date not recorded
hu-my/taskattributedistance community (archive-listed) 1 sample, 0 ran · 1 unverified
feature_evaluation_with_dists plot_distance_acc.py unverified no licence file found · pointer only · 5290c92ce05cddca · report
tjujianyu/rrl community (archive-listed) 1 sample, 1 ran (1 instrument-failed) · 0 unverified
transform_model_input_data_type src/models.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 70cf13356ae5b0bd · report fixture: signature model_input:Tensor/4/float, input_type:str/0/str · returned Tensor · level recorded 2026-09-22
vinuni-vishc/Few-Shot-Cosine-Transformer community (archive-listed) 3 samples, 3 ran (2 instrument-failed) · 0 unverified
change_model train_test.py ran · our draft was wrong fingerprinted licence not identified · pointer only · 021c112dc2125292 · report fixture: signature model_name:str/0/str · returned str · level recorded 2026-09-22
direct_test train_test.py ran · honoured contract licence not identified · pointer only · 5c27b393f7f2a9a1 · report fixture: signature test_loader:list/1/tuple, model:callable/0/?, params:Params/0/? · returned tuple · level recorded 2026-09-22
train in 522 papers train_test.py ran · our draft was wrong licence not identified · pointer only · 55beb8cfed8198d9 · report fixture: signature base_loader:list/1/tuple, val_loader:list/1/tuple, model:callable/0/?, optimization:str/0/str, num_epoch:int/0/int, params:Params/0/? · returned MinimalModel · level recorded 2026-09-22
yinboc/few-shot-meta-baseline community (archive-listed) 1 sample, 1 ran (0 instrument-failed) · 0 unverified
mean_confidence_interval in 16 papers test_few_shot.py ran · violated contract fingerprinted MIT (permissive) · 3233bdb56ef8b4da · report fixture: signature data:ndarray/1/float, confidence:float/0/float · returned float64 · level recorded 2026-09-22

Tasks

Domain GeneralizationFew-Shot LearningGeneral Classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Few-Shot Image Classification Dirichlet CUB-200 (5-way, 1-shot) Baseline++ 1:1 Accuracy 69.4 #6 of 8 Archive leaderboard report
Few-Shot Image Classification Dirichlet CUB-200 (5-way, 5-shot) Baseline++ 1:1 Accuracy 87.5 #5 of 8 Archive leaderboard report
Few-Shot Image Classification Dirichlet Mini-Imagenet (5-way, 1-shot) Baseline ++ 1:1 Accuracy 60.4 #7 of 12 Archive leaderboard report
Few-Shot Image Classification Dirichlet Mini-Imagenet (5-way, 5-shot) Baseline++ 1:1 Accuracy 79.7 #6 of 12 Archive leaderboard report
Few-Shot Image Classification Dirichlet Tiered-Imagenet (5-way, 1-shot) Baseline++ 1:1 Accuracy 68.0 #7 of 9 Archive leaderboard report
Few-Shot Image Classification Dirichlet Tiered-Imagenet (5-way, 5-shot) Baseline++ 1:1 Accuracy 84.2 #7 of 9 Archive leaderboard report
Few-Shot Image Classification Mini-ImageNet-CUB 5-way (1-shot) Baseline++ (Chen et al., 2019) Accuracy 33.04 #12 of 12 Archive leaderboard report
Few-Shot Image Classification Mini-ImageNet-CUB 5-way (5-shot) Baseline++ (Chen et al., 2019) Accuracy 62.04 #6 of 8 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