{"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/learning-conditional-attributes-for-1","title":"Learning Conditional Attributes for Compositional Zero-Shot Learning","arxiv_id":"2305.17940","date":"2023-05-29","proceeding":"CVPR 2023 1","authors":["Qingsheng Wang","Lingqiao Liu","Chenchen Jing","Hao Chen","Guoqiang Liang","Peng Wang","Chunhua Shen"],"abstract":"Compositional Zero-Shot Learning (CZSL) aims to train models to recognize novel compositional concepts based on learned concepts such as attribute-object combinations. One of the challenges is to model attributes interacted with different objects, e.g., the attribute ``wet\" in ``wet apple\" and ``wet cat\" is different. As a solution, we provide analysis and argue that attributes are conditioned on the recognized object and input image and explore learning conditional attribute embeddings by a proposed attribute learning framework containing an attribute hyper learner and an attribute base learner. By encoding conditional attributes, our model enables to generate flexible attribute embeddings for generalization from seen to unseen compositions. Experiments on CZSL benchmarks, including the more challenging C-GQA dataset, demonstrate better performances compared with other state-of-the-art approaches and validate the importance of learning conditional attributes. Code is available at https://github.com/wqshmzh/CANet-CZSL","url_abs":"https://arxiv.org/abs/2305.17940v2","url_pdf":"https://arxiv.org/pdf/2305.17940v2.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":"learning-conditional-attributes-for-1","repo_url":"https://github.com/wqshmzh/canet-czsl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"attribute","task_name":"Attribute"},{"task_slug":"compositional-zero-shot-learning","task_name":"Compositional Zero-Shot Learning"},{"task_slug":"zero-shot-learning","task_name":"Zero-Shot Learning"}],"methods":[{"method_slug":"base","method_name":"BASE"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/compositional-zero-shot-learning-on-mit-2","task":"Compositional Zero-Shot Learning","dataset":"MIT-States","model":"CANet","rank_in_archive_order":1,"of":2,"metrics":{"AUC":"5.4","Attribute accuracy":"30.2","Object accuracy":"32.6","Seen accuracy":"29","Unseen accuracy":"26.2","best HM":"17.9"},"uses_additional_data":false},{"leaderboard":"/sota/compositional-zero-shot-learning-on-ut","task":"Compositional Zero-Shot Learning","dataset":"UT Zappos50K","model":"CANet","rank_in_archive_order":1,"of":1,"metrics":{"AUC":"33.1","Attribute accuracy":"48.4","Object accuracy":"72.6","Seen accuracy":"61","Unseen accuracy":"66.3","best HM":"47.3"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.17940","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.17940"}},"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/wqshmzh/canet-czsl","reach":null}],"summary":{"ran":4,"ran_fixture":2,"unverified":3},"by_repo_kind":{"official":{"samples":9,"ran":6,"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":9,"samples":[{"code_sha256_prefix":"489268fd0cbaa517","entry":"AttrAdapter","repo":"wqshmzh/canet-czsl","repo_kind":"official","path":"model/CANet.py","file_url":"https://github.com/wqshmzh/canet-czsl/blob/HEAD/model/CANet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"489268fd0cbaa517"}},{"code_sha256_prefix":"e3cdf2acc58d7856","entry":"HyperNet","repo":"wqshmzh/canet-czsl","repo_kind":"official","path":"model/CANet.py","file_url":"https://github.com/wqshmzh/canet-czsl/blob/HEAD/model/CANet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"e3cdf2acc58d7856"}},{"code_sha256_prefix":"86b1cab4e42f9138","entry":"HyperNetStructure","repo":"wqshmzh/canet-czsl","repo_kind":"official","path":"model/CANet.py","file_url":"https://github.com/wqshmzh/canet-czsl/blob/HEAD/model/CANet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"86b1cab4e42f9138"}},{"code_sha256_prefix":"199c4a7179cfd0fe","entry":"MLP","repo":"wqshmzh/canet-czsl","repo_kind":"official","path":"model/CANet.py","file_url":"https://github.com/wqshmzh/canet-czsl/blob/HEAD/model/CANet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"199c4a7179cfd0fe"}},{"code_sha256_prefix":"4d3bbc067a832537","entry":"load_fasttext_embeddings","repo":"wqshmzh/canet-czsl","repo_kind":"official","path":"model/CANet.py","file_url":"https://github.com/wqshmzh/canet-czsl/blob/HEAD/model/CANet.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"DEP_MISSING","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"4d3bbc067a832537"}},{"code_sha256_prefix":"8fdd4c546860a41a","entry":"load_word2vec_embeddings","repo":"wqshmzh/canet-czsl","repo_kind":"official","path":"model/CANet.py","file_url":"https://github.com/wqshmzh/canet-czsl/blob/HEAD/model/CANet.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"DEP_MISSING","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"8fdd4c546860a41a"}},{"code_sha256_prefix":"010039bf01818d17","entry":"CANet","repo":"wqshmzh/canet-czsl","repo_kind":"official","path":"model/CANet.py","file_url":"https://github.com/wqshmzh/canet-czsl/blob/HEAD/model/CANet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"010039bf01818d17"}},{"code_sha256_prefix":"aba0a7e44b8a0d05","entry":"load_glove_embeddings","repo":"wqshmzh/canet-czsl","repo_kind":"official","path":"model/CANet.py","file_url":"https://github.com/wqshmzh/canet-czsl/blob/HEAD/model/CANet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"aba0a7e44b8a0d05"}},{"code_sha256_prefix":"6b5dc9727f0f6fc7","entry":"load_word_embeddings","repo":"wqshmzh/canet-czsl","repo_kind":"official","path":"model/CANet.py","file_url":"https://github.com/wqshmzh/canet-czsl/blob/HEAD/model/CANet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"6b5dc9727f0f6fc7"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}