{"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/self-supervised-class-cognizant-few-shot","title":"Self-Supervised Class-Cognizant Few-Shot Classification","arxiv_id":"2202.08149","date":"2022-02-15","proceeding":null,"authors":["Ojas Kishore Shirekar","Hadi Jamali-Rad"],"abstract":"Unsupervised learning is argued to be the dark matter of human intelligence. To build in this direction, this paper focuses on unsupervised learning from an abundance of unlabeled data followed by few-shot fine-tuning on a downstream classification task. To this aim, we extend a recent study on adopting contrastive learning for self-supervised pre-training by incorporating class-level cognizance through iterative clustering and re-ranking and by expanding the contrastive optimization loss to account for it. To our knowledge, our experimentation both in standard and cross-domain scenarios demonstrate that we set a new state-of-the-art (SoTA) in (5-way, 1 and 5-shot) settings of standard mini-ImageNet benchmark as well as the (5-way, 5 and 20-shot) settings of cross-domain CDFSL benchmark. Our code and experimentation can be found in our GitHub repository: https://github.com/ojss/c3lr.","url_abs":"https://arxiv.org/abs/2202.08149v1","url_pdf":"https://arxiv.org/pdf/2202.08149v1.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":"self-supervised-class-cognizant-few-shot","repo_url":"https://github.com/ojss/c3lr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"classification-1","task_name":"Classification"},{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"re-ranking","task_name":"Re-Ranking"},{"task_slug":"unsupervised-few-shot-image-classification","task_name":"Unsupervised Few-Shot Image Classification"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/unsupervised-few-shot-image-classification-on","task":"Unsupervised Few-Shot Image Classification","dataset":"Mini-Imagenet 5-way (1-shot)","model":"C^3LR","rank_in_archive_order":14,"of":28,"metrics":{"Accuracy":"47.92"},"uses_additional_data":false},{"leaderboard":"/sota/unsupervised-few-shot-image-classification-on-1","task":"Unsupervised Few-Shot Image Classification","dataset":"Mini-Imagenet 5-way (5-shot)","model":"C^3LR","rank_in_archive_order":14,"of":28,"metrics":{"Accuracy":"64.81"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2202.08149","atlas_url":"https://app.syntology.ai/?focus=2202.08149","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2202.08149"}},"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/ojss/c3lr","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":1},"by_repo_kind":{"official":{"samples":1,"ran":0,"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":"c00f1d9594b0678a","entry":"custom_doc_links","repo":"ojss/c3lr","repo_kind":"official","path":"unsupervised_meta_learning/_nbdev.py","file_url":"https://github.com/ojss/c3lr/blob/HEAD/unsupervised_meta_learning/_nbdev.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c00f1d9594b0678a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}