{"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/simple-semantic-aided-few-shot-learning","title":"Simple Semantic-Aided Few-Shot Learning","arxiv_id":"2311.18649","date":"2023-11-30","proceeding":"CVPR 2024 1","authors":["Hai Zhang","Junzhe Xu","Shanlin Jiang","Zhenan He"],"abstract":"Learning from a limited amount of data, namely Few-Shot Learning, stands out as a challenging computer vision task. Several works exploit semantics and design complicated semantic fusion mechanisms to compensate for rare representative features within restricted data. However, relying on naive semantics such as class names introduces biases due to their brevity, while acquiring extensive semantics from external knowledge takes a huge time and effort. This limitation severely constrains the potential of semantics in Few-Shot Learning. In this paper, we design an automatic way called Semantic Evolution to generate high-quality semantics. The incorporation of high-quality semantics alleviates the need for complex network structures and learning algorithms used in previous works. Hence, we employ a simple two-layer network termed Semantic Alignment Network to transform semantics and visual features into robust class prototypes with rich discriminative features for few-shot classification. The experimental results show our framework outperforms all previous methods on six benchmarks, demonstrating a simple network with high-quality semantics can beat intricate multi-modal modules on few-shot classification tasks. Code is available at https://github.com/zhangdoudou123/SemFew.","url_abs":"https://arxiv.org/abs/2311.18649v3","url_pdf":"https://arxiv.org/pdf/2311.18649v3.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":"simple-semantic-aided-few-shot-learning","repo_url":"https://github.com/zhangdoudou123/semfew","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"few-shot-image-classification","task_name":"Few-Shot Image Classification"},{"task_slug":"few-shot-learning","task_name":"Few-Shot Learning"},{"task_slug":null,"task_name":"Few-Shot LearningFew-Shot Image Classification"},{"task_slug":null,"task_name":"Simple Semantic-Aided Few-Shot Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/few-shot-image-classification-on-mini-2","task":"Few-Shot Image Classification","dataset":"Mini-Imagenet 5-way (1-shot)","model":"SemFew-Trans","rank_in_archive_order":16,"of":105,"metrics":{"Accuracy":"78.94"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-mini-3","task":"Few-Shot Image Classification","dataset":"Mini-Imagenet 5-way (5-shot)","model":"SemFew-Trans","rank_in_archive_order":20,"of":95,"metrics":{"Accuracy":"86.49"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2311.18649","atlas_url":"https://app.syntology.ai/?focus=2311.18649","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.18649"}},"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/zhangdoudou123/semfew","reach":{"status":"ok"}}],"summary":{"ran_fixture":2,"ran_draft_wrong":4,"ran":2},"by_repo_kind":{"official":{"samples":8,"ran":8,"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":8,"samples":[{"code_sha256_prefix":"144d10b49baeb8a6","entry":"window_partition","repo":"zhangdoudou123/semfew","repo_kind":"official","path":"model/swin_transformer.py","file_url":"https://github.com/zhangdoudou123/semfew/blob/HEAD/model/swin_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":2,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"144d10b49baeb8a6"}},{"code_sha256_prefix":"d9def42110729a85","entry":"conv1x1","repo":"zhangdoudou123/semfew","repo_kind":"official","path":"model/res18.py","file_url":"https://github.com/zhangdoudou123/semfew/blob/HEAD/model/res18.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"zhangdoudou123/semfew","repo_kind":"official","path":"model/res12.py","file_url":"https://github.com/zhangdoudou123/semfew/blob/HEAD/model/res12.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"00e569acd6b45ef0","entry":"conv3x3","repo":"zhangdoudou123/semfew","repo_kind":"official","path":"model/WRN28.py","file_url":"https://github.com/zhangdoudou123/semfew/blob/HEAD/model/WRN28.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"00e569acd6b45ef0"}},{"code_sha256_prefix":"55120f2026b56aa2","entry":"drop_path","repo":"zhangdoudou123/semfew","repo_kind":"official","path":"model/vision_transformer.py","file_url":"https://github.com/zhangdoudou123/semfew/blob/HEAD/model/vision_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"55120f2026b56aa2"}},{"code_sha256_prefix":"eff73993564ab59b","entry":"loggers","repo":"zhangdoudou123/semfew","repo_kind":"official","path":"logger.py","file_url":"https://github.com/zhangdoudou123/semfew/blob/HEAD/logger.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"eff73993564ab59b"}},{"code_sha256_prefix":"9668fcac8fe0b39d","entry":"resnet18","repo":"zhangdoudou123/semfew","repo_kind":"official","path":"model/resnet18.py","file_url":"https://github.com/zhangdoudou123/semfew/blob/HEAD/model/resnet18.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9668fcac8fe0b39d"}},{"code_sha256_prefix":"61bf152e6a42a184","entry":"window_reverse","repo":"zhangdoudou123/semfew","repo_kind":"official","path":"model/swin_transformer.py","file_url":"https://github.com/zhangdoudou123/semfew/blob/HEAD/model/swin_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"61bf152e6a42a184"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}