{"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/generalized-and-incremental-few-shot-learning","title":"Generalized and Incremental Few-Shot Learning by Explicit Learning and Calibration without Forgetting","arxiv_id":"2108.08165","date":"2021-08-18","proceeding":"ICCV 2021 10","authors":["Anna Kukleva","Hilde Kuehne","Bernt Schiele"],"abstract":"Both generalized and incremental few-shot learning have to deal with three major challenges: learning novel classes from only few samples per class, preventing catastrophic forgetting of base classes, and classifier calibration across novel and base classes. In this work we propose a three-stage framework that allows to explicitly and effectively address these challenges. While the first phase learns base classes with many samples, the second phase learns a calibrated classifier for novel classes from few samples while also preventing catastrophic forgetting. In the final phase, calibration is achieved across all classes. We evaluate the proposed framework on four challenging benchmark datasets for image and video few-shot classification and obtain state-of-the-art results for both generalized and incremental few shot learning.","url_abs":"https://arxiv.org/abs/2108.08165v1","url_pdf":"https://arxiv.org/pdf/2108.08165v1.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":"generalized-and-incremental-few-shot-learning","repo_url":"https://github.com/annusha/lcwof","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"classifier-calibration","task_name":"Classifier calibration"},{"task_slug":"few-shot-learning","task_name":"Few-Shot Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2108.08165","atlas_url":"https://app.syntology.ai/?focus=2108.08165","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2108.08165"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/annusha/lcwof","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/annusha/LCwoF","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3,"ran_honours":3,"ran_draft_wrong":3,"unverified":4},"by_repo_kind":{"official":{"samples":13,"ran":9,"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":"1d34df9e4341284e","entry":"Meter","repo":"annusha/LCwoF","repo_kind":"official","path":"mini_imgnet/episode_training_clean.py","file_url":"https://github.com/annusha/LCwoF/blob/HEAD/mini_imgnet/episode_training_clean.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1d34df9e4341284e"}},{"code_sha256_prefix":"694356acaabb8f42","entry":"Precision","repo":"annusha/LCwoF","repo_kind":"official","path":"mini_imgnet/episode_training_clean.py","file_url":"https://github.com/annusha/LCwoF/blob/HEAD/mini_imgnet/episode_training_clean.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"694356acaabb8f42"}},{"code_sha256_prefix":"373de0d7d664a0f9","entry":"Viz","repo":"annusha/LCwoF","repo_kind":"official","path":"mini_imgnet/episode_training_clean.py","file_url":"https://github.com/annusha/LCwoF/blob/HEAD/mini_imgnet/episode_training_clean.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"373de0d7d664a0f9"}},{"code_sha256_prefix":"db8232296a32d4c7","entry":"adjust_lr","repo":"annusha/LCwoF","repo_kind":"official","path":"mini_imgnet/episode_training_clean.py","file_url":"https://github.com/annusha/LCwoF/blob/HEAD/mini_imgnet/episode_training_clean.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"db8232296a32d4c7"}},{"code_sha256_prefix":"c56a0c2cc164834d","entry":"am","repo":"annusha/LCwoF","repo_kind":"official","path":"mini_imgnet/episode_training_clean.py","file_url":"https://github.com/annusha/LCwoF/blob/HEAD/mini_imgnet/episode_training_clean.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c56a0c2cc164834d"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"annusha/lcwof","repo_kind":"official","path":"mini_imgnet/resnet12.py","file_url":"https://github.com/annusha/lcwof/blob/HEAD/mini_imgnet/resnet12.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"97d75a6bfbfeb6a9","entry":"hm","repo":"annusha/LCwoF","repo_kind":"official","path":"mini_imgnet/episode_training_clean.py","file_url":"https://github.com/annusha/LCwoF/blob/HEAD/mini_imgnet/episode_training_clean.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"97d75a6bfbfeb6a9"}},{"code_sha256_prefix":"734b599ac298081d","entry":"visdom_plot_losses","repo":"annusha/LCwoF","repo_kind":"official","path":"mini_imgnet/episode_training_clean.py","file_url":"https://github.com/annusha/LCwoF/blob/HEAD/mini_imgnet/episode_training_clean.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"734b599ac298081d"}},{"code_sha256_prefix":"75594f59772b57c0","entry":"visdom_scatter_update","repo":"annusha/LCwoF","repo_kind":"official","path":"mini_imgnet/episode_training_clean.py","file_url":"https://github.com/annusha/LCwoF/blob/HEAD/mini_imgnet/episode_training_clean.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"75594f59772b57c0"}},{"code_sha256_prefix":"1fa76092363e9543","entry":"Training","repo":"annusha/LCwoF","repo_kind":"official","path":"mini_imgnet/episode_training_clean.py","file_url":"https://github.com/annusha/LCwoF/blob/HEAD/mini_imgnet/episode_training_clean.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":"1fa76092363e9543"}},{"code_sha256_prefix":"5251b5bd5881ebf2","entry":"get_classes","repo":"annusha/lcwof","repo_kind":"official","path":"mini_imgnet/create_episodes.py","file_url":"https://github.com/annusha/lcwof/blob/HEAD/mini_imgnet/create_episodes.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":"5251b5bd5881ebf2"}},{"code_sha256_prefix":"606ebc63d184a29c","entry":"load_few_shot","repo":"annusha/lcwof","repo_kind":"official","path":"mini_imgnet/update_arg_parse.py","file_url":"https://github.com/annusha/lcwof/blob/HEAD/mini_imgnet/update_arg_parse.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":"606ebc63d184a29c"}},{"code_sha256_prefix":"ce274f35d81dafd6","entry":"set_bn_eval","repo":"annusha/LCwoF","repo_kind":"official","path":"mini_imgnet/episode_training_clean.py","file_url":"https://github.com/annusha/LCwoF/blob/HEAD/mini_imgnet/episode_training_clean.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":"ce274f35d81dafd6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}