{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/generating-classification-weights-with-gnn","title":"Generating Classification Weights with GNN Denoising Autoencoders for Few-Shot Learning","arxiv_id":"1905.01102","date":"2019-05-03","proceeding":"CVPR 2019 6","authors":["Spyros Gidaris","Nikos Komodakis"],"abstract":"Given an initial recognition model already trained on a set of base classes, the goal of this work is to develop a meta-model for few-shot learning. The meta-model, given as input some novel classes with few training examples per class, must properly adapt the existing recognition model into a new model that can correctly classify in a unified way both the novel and the base classes. To accomplish this goal it must learn to output the appropriate classification weight vectors for those two types of classes. To build our meta-model we make use of two main innovations: we propose the use of a Denoising Autoencoder network (DAE) that (during training) takes as input a set of classification weights corrupted with Gaussian noise and learns to reconstruct the target-discriminative classification weights. In this case, the injected noise on the classification weights serves the role of regularizing the weight generating meta-model. Furthermore, in order to capture the co-dependencies between different classes in a given task instance of our meta-model, we propose to implement the DAE model as a Graph Neural Network (GNN). In order to verify the efficacy of our approach, we extensively evaluate it on ImageNet based few-shot benchmarks and we report strong results that surpass prior approaches. The code and models of our paper will be published on: https://github.com/gidariss/wDAE_GNN_FewShot","url_abs":"https://arxiv.org/abs/1905.01102v1","url_pdf":"https://arxiv.org/pdf/1905.01102v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"generating-classification-weights-with-gnn","repo_url":"https://github.com/gidariss/wDAE_GNN_FewShot","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"classification-1","task_name":"Classification"},{"task_slug":"denoising","task_name":"Denoising"},{"task_slug":"few-shot-learning","task_name":"Few-Shot Learning"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"graph-neural-network","task_name":"Graph Neural Network"}],"methods":[{"method_slug":"denoising-autoencoder","method_name":"Denoising Autoencoder"},{"method_slug":"graph-neural-network","method_name":"Graph Neural Network"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1905.01102","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1905.01102"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/gidariss/wDAE_GNN_FewShot","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":1,"unverified":7},"by_repo_kind":{"official":{"samples":8,"ran":1,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"57889d72f516d105","entry":"buildLabelIndex","repo":"gidariss/wDAE_GNN_FewShot","repo_kind":"official","path":"low_shot_learning/utils.py","file_url":"https://github.com/gidariss/wDAE_GNN_FewShot/blob/HEAD/low_shot_learning/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"57889d72f516d105"}},{"code_sha256_prefix":"0579910fda20b6c9","entry":"compute_top1_and_top5_accuracy","repo":"gidariss/wDAE_GNN_FewShot","repo_kind":"official","path":"low_shot_learning/algorithms/fewshot/imagenet_lowshot.py","file_url":"https://github.com/gidariss/wDAE_GNN_FewShot/blob/HEAD/low_shot_learning/algorithms/fewshot/imagenet_lowshot.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0579910fda20b6c9"}},{"code_sha256_prefix":"89d139765fc146a3","entry":"convertImgFromNormalizedTensorToUint8Numpy","repo":"gidariss/wDAE_GNN_FewShot","repo_kind":"official","path":"low_shot_learning/utils.py","file_url":"https://github.com/gidariss/wDAE_GNN_FewShot/blob/HEAD/low_shot_learning/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"89d139765fc146a3"}},{"code_sha256_prefix":"7c7f583a37437002","entry":"extract_features","repo":"gidariss/wDAE_GNN_FewShot","repo_kind":"official","path":"low_shot_learning/algorithms/classification/utils.py","file_url":"https://github.com/gidariss/wDAE_GNN_FewShot/blob/HEAD/low_shot_learning/algorithms/classification/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7c7f583a37437002"}},{"code_sha256_prefix":"729c95479e7e7b73","entry":"few_shot_feature_classification","repo":"gidariss/wDAE_GNN_FewShot","repo_kind":"official","path":"low_shot_learning/algorithms/fewshot/utils.py","file_url":"https://github.com/gidariss/wDAE_GNN_FewShot/blob/HEAD/low_shot_learning/algorithms/fewshot/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"729c95479e7e7b73"}},{"code_sha256_prefix":"a932df89602afdb0","entry":"load_features_labels","repo":"gidariss/wDAE_GNN_FewShot","repo_kind":"official","path":"low_shot_learning/datasets/mini_imagenet_dataset.py","file_url":"https://github.com/gidariss/wDAE_GNN_FewShot/blob/HEAD/low_shot_learning/datasets/mini_imagenet_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a932df89602afdb0"}},{"code_sha256_prefix":"220bb097ca9d20d2","entry":"load_pickle_data","repo":"gidariss/wDAE_GNN_FewShot","repo_kind":"official","path":"low_shot_learning/utils.py","file_url":"https://github.com/gidariss/wDAE_GNN_FewShot/blob/HEAD/low_shot_learning/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"220bb097ca9d20d2"}},{"code_sha256_prefix":"9480141f35f83ef2","entry":"softmax_with_novel_prior","repo":"gidariss/wDAE_GNN_FewShot","repo_kind":"official","path":"low_shot_learning/algorithms/fewshot/imagenet_lowshot.py","file_url":"https://github.com/gidariss/wDAE_GNN_FewShot/blob/HEAD/low_shot_learning/algorithms/fewshot/imagenet_lowshot.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9480141f35f83ef2"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}