SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.04232 · 2019

A Closer Look at Few-shot Classification

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1904.04232.json · badge: /api/ran/1904.04232.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
tjujianyu/rrl canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
vinuni-vishc/Few-Shot-Cosine-Transformer extension (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
yinboc/few-shot-meta-baseline reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
hu-my/taskattributedistance extension (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
change_model Ran
ran; our contract draft was wrong, not the code
vinuni-vishc/Few-Shot-Cosine-Transformer/train_test.py
pointer only (licence: NOASSERTION) · get_code("021c112dc2125292")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, vinuni-vishc/Few-Shot-Cosine-Transformer (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv1x1 Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from MediaBrain-SJTU/BCL
pointer only · get_code("d9def42110729a85")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv3x3 Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from MediaBrain-SJTU/BCL
pointer only · get_code("160bb14bd76201b4")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

direct_test Ran
ran, honoured the contract we drafted
vinuni-vishc/Few-Shot-Cosine-Transformer/train_test.py
pointer only (licence: NOASSERTION) · get_code("5c27b393f7f2a9a1")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, vinuni-vishc/Few-Shot-Cosine-Transformer (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mean_confidence_interval Ran
ran, violated the contract we drafted
yinboc/few-shot-meta-baseline/test_few_shot.py
code served (permissive licence) · get_code("3233bdb56ef8b4da")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import scipy.stats

# Construct valid arguments for mean_confidence_interval
# The function takes:
# - data: array-like data to compute confidence interval for
# - confidence: float between 0 and 1 (default 0.95)

# Create sample data
data = np.array([1.2, 1.5, 1.3, 1.4, 1.6, 1.45, 1.55, 1.38])

ARGS = {
    "data": data,
    "confidence": 0.95
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
train Ran
ran; our contract draft was wrong, not the code
vinuni-vishc/Few-Shot-Cosine-Transformer/train_test.py
pointer only (licence: NOASSERTION) · get_code("55beb8cfed8198d9")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, vinuni-vishc/Few-Shot-Cosine-Transformer (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

transform_model_input_data_type Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tjujianyu/rrl/src/models.py
pointer only (licence: NONE) · get_code("70cf13356ae5b0bd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tjujianyu/rrl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

feature_evaluation_with_dists Not yet run
unverified (harvested, no recorded run)
hu-my/taskattributedistance/plot_distance_acc.py
pointer only (licence: NONE) · get_code("5290c92ce05cddca")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hu-my/taskattributedistance when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 4 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 4 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
conv1x1 431 other papers
27 dated earlier, 5 the same month, 398 later, 1 undated · 38 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1506.01186 (2015-06)
Cyclical Learning Rates for Training Neural Networks
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
and 428 more not named here
conv3x3 312 other papers
11 dated earlier, 2 the same month, 298 later, 1 undated · 31 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
and 309 more not named here
mean_confidence_interval 1 other paper
1 later
2003.04390 (2020-03)
Meta-Baseline: Exploring Simple Meta-Learning for Few-Shot Learning
transform_model_input_data_type 1 other paper
1 later
2203.15516 (2022-03)
Rich Feature Construction for the Optimization-Generalization Dilemma

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1904.04232")
get_code_for_paper("1904.04232")
have("1904.04232")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1904.04232.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1904.04232.svg)](https://syntology.ai/paper/1904.04232)

Connect an agent — have() is free.