Papers › Learning Attention as Disentangler for Compositional Zero-shot Learning

Learning Attention as Disentangler for Compositional Zero-shot Learning

27 Mar 2023CVPR 2023 1arXiv:2303.15111archive 2025-07-28

Shaozhe Hao, Kai Han, Kwan-Yee K. Wong

Compositional zero-shot learning (CZSL) aims at learning visual concepts (i.e., attributes and objects) from seen compositions and combining concept knowledge into unseen compositions. The key to CZSL is learning the disentanglement of the attribute-object composition. To this end, we propose to exploit cross-attentions as compositional disentanglers to learn disentangled concept embeddings. For example, if we want to recognize an unseen composition "yellow flower", we can learn the attribute concept "yellow" and object concept "flower" from different yellow objects and different flowers respectively. To further constrain the disentanglers to learn the concept of interest, we employ a regularization at the attention level. Specifically, we adapt the earth mover's distance (EMD) as a feature similarity metric in the cross-attention module. Moreover, benefiting from concept disentanglement, we improve the inference process and tune the prediction score by combining multiple concept probabilities. Comprehensive experiments on three CZSL benchmark datasets demonstrate that our method significantly outperforms previous works in both closed- and open-world settings, establishing a new state-of-the-art.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2303.15111")

Code

Syntology Ran 5 of 11 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 3 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

haoosz/ade-czsl officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 5 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · fixture could not drive it
2ran
6unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from haoosz/ade-czsl. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calculate_margines haoosz/ade-czsl/models/common.py official repository ran fingerprinted MIT (permissive) · e1f2aca5ffc5a9b3 · report
compute_cosine_similarity haoosz/ade-czsl/models/ade.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 7388b930197b0c81 · report
drop_path haoosz/ade-czsl/models/multi_head_attention.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 55120f2026b56aa2 · report
same_domain_triplet_loss haoosz/ade-czsl/models/common.py official repository ran MIT (permissive) · 59725ffc3ce58459 · report
trunc_normal_ haoosz/ade-czsl/models/vision_transformer.py official repository ran · fixture could not drive it MIT (permissive) · 915b71e73a54fc97 · report
cos_logits haoosz/ade-czsl/visual_concept_retrieval.py official repository unverified MIT (permissive) · 7f600db4d6fef4ee · report
emd_inference_opencv haoosz/ade-czsl/models/emd_utils.py official repository unverified MIT (permissive) · 829d4aa345489492 · report
emd_inference_opencv_test haoosz/ade-czsl/models/emd_utils.py official repository unverified MIT (permissive) · 4d2e05bc40a813cc · report
get_image_extractor haoosz/ade-czsl/models/image_extractor.py official repository unverified MIT (permissive) · 7dacb21751b86b46 · report
l2_all_batched haoosz/ade-czsl/models/common.py official repository unverified MIT (permissive) · 2a1c66c4d01008db · report
vit_tiny haoosz/ade-czsl/models/vision_transformer.py official repository unverified MIT (permissive) · f7bba5d7d89fc9dc · report

Tasks

AttributeCompositional Zero-Shot LearningDisentanglementZero-Shot Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections