Papers › Prototype Completion with Primitive Knowledge for Few-Shot Learning

Prototype Completion with Primitive Knowledge for Few-Shot Learning

10 Sep 2020CVPR 2021 1arXiv:2009.04960archive 2025-07-28

Baoquan Zhang, Xutao Li, Yunming Ye, Zhichao Huang, Lisai Zhang

Few-shot learning is a challenging task, which aims to learn a classifier for novel classes with few examples. Pre-training based meta-learning methods effectively tackle the problem by pre-training a feature extractor and then fine-tuning it through the nearest centroid based meta-learning. However, results show that the fine-tuning step makes very marginal improvements. In this paper, 1) we figure out the key reason, i.e., in the pre-trained feature space, the base classes already form compact clusters while novel classes spread as groups with large variances, which implies that fine-tuning the feature extractor is less meaningful; 2) instead of fine-tuning the feature extractor, we focus on estimating more representative prototypes during meta-learning. Consequently, we propose a novel prototype completion based meta-learning framework. This framework first introduces primitive knowledge (i.e., class-level part or attribute annotations) and extracts representative attribute features as priors. Then, we design a prototype completion network to learn to complete prototypes with these priors. To avoid the prototype completion error caused by primitive knowledge noises or class differences, we further develop a Gaussian based prototype fusion strategy that combines the mean-based and completed prototypes by exploiting the unlabeled samples. Extensive experiments show that our method: (i) can obtain more accurate prototypes; (ii) outperforms state-of-the-art techniques by 2% - 9% in terms of classification accuracy. Our code is available online.

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

Code

Syntology Ran 4 of 13 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhangbq-research/Prototype_Completion_for_FSL officialmentioned in paperpytorchMIT 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

13 samples harvested; 4 ran; 0 honoured the contract we drafted; 9 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 · our draft was wrong
3ran
9unverified

Licence: 0 of the 13 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 zhangbq-research/Prototype_Completion_for_FSL. “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.

conv1x1 zhangbq-research/Prototype_Completion_for_FSL/models/resnet12_2.py official repository ran MIT (permissive) · de92832114f71d8c · report
conv3x3 zhangbq-research/Prototype_Completion_for_FSL/models/resnet12_2.py official repository ran MIT (permissive) · e5b7c79b0b62af96 · report
norm_layer zhangbq-research/Prototype_Completion_for_FSL/models/resnet12_2.py official repository ran MIT (permissive) · f36ac42575cd46ee · report
one_hot zhangbq-research/Prototype_Completion_for_FSL/models/classification_heads.py official repository ran · our draft was wrong MIT (permissive) · 7c64c35be7f02395 · report
CosineNetHead zhangbq-research/Prototype_Completion_for_FSL/models/classification_heads.py official repository unverified MIT (permissive) · 068a0a6a30e1e25c · report
CosineNetHead zhangbq-research/Prototype_Completion_for_FSL/models/classification_heads_orgin.py official repository unverified MIT (permissive) · 4ec52ee88c7bc858 · report
FuseCosineNetHead zhangbq-research/Prototype_Completion_for_FSL/models/classification_heads.py official repository unverified MIT (permissive) · f7312cd2956a3b29 · report
constructedges zhangbq-research/Prototype_Completion_for_FSL/prior/make_miniimagenet_primitive_knowledge.py official repository unverified MIT (permissive) · 161f62eb1a752b4c · report
count_accuracy zhangbq-research/Prototype_Completion_for_FSL/utils.py official repository unverified MIT (permissive) · fb61241b42c06d73 · report
getnode zhangbq-research/Prototype_Completion_for_FSL/prior/make_miniimagenet_primitive_knowledge.py official repository unverified MIT (permissive) · 0c7425262620b51b · report
getwnid zhangbq-research/Prototype_Completion_for_FSL/prior/make_miniimagenet_primitive_knowledge.py official repository unverified MIT (permissive) · 212f1ff29913b717 · report
l2_loss zhangbq-research/Prototype_Completion_for_FSL/utils.py official repository unverified MIT (permissive) · 78ac9e19f328f531 · report
pick_vectors zhangbq-research/Prototype_Completion_for_FSL/utils.py official repository unverified MIT (permissive) · a2b31023f6121fdf · report

Tasks

AttributeFew-Shot LearningMeta-Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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