SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.07305 · CVPR · 2022

Pushing the Limits of Simple Pipelines for Few-Shot Learning: External Data and Fine-Tuning Make a Difference

Timothy Hospedales, Shell Hu, Da Li, Minyoung Kim, Jan Stühmer

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 19 functions out of this paper's own repositories and ran 14 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
hushell/pmf_cvpr22 canonical 14 of 19
FunctionStatusWhere it lives
np2th Ran hushell/pmf_cvpr22/models/resnet_v2.py
code served (permissive licence) · get_code("7d8eaf5537f699e4")
swish Ran hushell/pmf_cvpr22/models/vit_google.py
code served (permissive licence) · get_code("0f786c407fb1ee4c")
DiffAugment Ran hushell/pmf_cvpr22/models/utils.py
code served (permissive licence) · get_code("98235a49e66df4c8")
build_transform Ran hushell/pmf_cvpr22/datasets/cifar_fs_elite.py
code served (permissive licence) · get_code("f0f38cfab1ecddd0")
conv1x1 Ran hushell/pmf_cvpr22/models/resnet_v2.py
code served (permissive licence) · get_code("b0f916df39e78ae5")
conv3x3 Ran hushell/pmf_cvpr22/models/resnet_v2.py
code served (permissive licence) · get_code("4e5bf13dbdc4f008")
dataset_setting Ran hushell/pmf_cvpr22/datasets/mini_imagenet.py
code served (permissive licence) · get_code("1511126d79e9b40b")
dataset_setting Ran hushell/pmf_cvpr22/datasets/cifar_fs.py
code served (permissive licence) · get_code("b1b53caaa091d2ba")
dataset_setting Ran hushell/pmf_cvpr22/datasets/cifar_fs_elite.py
code served (permissive licence) · get_code("196d8eff1ed207d4")
drop_path Ran hushell/pmf_cvpr22/models/vision_transformer.py
code served (permissive licence) · get_code("55120f2026b56aa2")
entropy_loss Ran hushell/pmf_cvpr22/models/deploy.py
code served (permissive licence) · get_code("af188f96f841e377")
rand_brightness Ran hushell/pmf_cvpr22/models/utils.py
code served (permissive licence) · get_code("011230b2b9b8fb6f")
random_hflip Ran hushell/pmf_cvpr22/models/utils.py
code served (permissive licence) · get_code("e3e99bdecc02eb33")
unique_indices Ran hushell/pmf_cvpr22/models/deploy.py
code served (permissive licence) · get_code("b1abb876763549d7")
beit_base_patch16_224 Not yet run hushell/pmf_cvpr22/models/beit.py
code served (permissive licence) · get_code("051c35752a444b56")
beit_base_patch16_384 Not yet run hushell/pmf_cvpr22/models/beit.py
code served (permissive licence) · get_code("657ea09a85528243")
beit_large_patch16_224 Not yet run hushell/pmf_cvpr22/models/beit.py
code served (permissive licence) · get_code("7ef377ba295aa2db")
vit_small Not yet run hushell/pmf_cvpr22/models/vision_transformer.py
code served (permissive licence) · get_code("14af5cea1b69d0a8")
vit_tiny Not yet run hushell/pmf_cvpr22/models/vision_transformer.py
code served (permissive licence) · get_code("bd29518a98e56cf5")

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 learning (FSL) is an important and topical problem in computer vision that has motivated extensive research into numerous methods spanning from sophisticated metalearning methods to simple transfer learning baselines. We seek to push the limits of a simple-but-effective pipeline for real-world few-shot image classification in practice. To this end, we explore few-shot learning from the perspective of neural architecture, as well as a three stage pipeline of pre-training on external data, meta-training with labelled few-shot tasks, and task-specific fine-tuning on unseen tasks. We investigate questions such as: 1 How pre-training on external data benefits FSL? 2 How state of the art transformer architectures can be exploited? and 3 How to best exploit fine-tuning? Ultimately, we show that a simple transformer-based pipeline yields surprisingly good performance on standard benchmarks such as Mini-ImageNet, CIFAR-FS, CDFSL and Meta-Dataset. Our code is available at https://hushell.github.io/pmf.

For agents

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

get_harvested_code_for_paper("2204.07305")
get_code_for_paper("2204.07305")
have("2204.07305")

Connect an agent — have() is free.