CAMS: Towards Compositional Zero-Shot Learning via Gated Cross-Attention and Multi-Space Disentanglement

Pan Yang, Cheng Deng, Jing Yang, Han Zhao, Yun Liu +3 more
11/20/2025
cs.CV

Official code: ybyangjing/CAMS (6 stars, last commit 2026-03-02).

Abstract

Compositional zero-shot learning (CZSL) aims to learn the concepts of attributes and objects in seen compositions and to recognize their unseen compositions. Most Contrastive Language-Image Pre-training (CLIP)-based CZSL methods focus on disentangling attributes and objects by leveraging the global semantic representation obtained from the image encoder. However, this representation has limited representational capacity and do not allow for complete disentanglement of the two. To this end, we propose CAMS, which aims to extract semantic features from visual features and perform semantic disentanglement in multidimensional spaces, thereby improving generalization over unseen attribute-object compositions. Specifically, CAMS designs a Gated Cross-Attention that captures fine-grained semantic features from the high-level image encoding blocks of CLIP through a set of latent units, while adaptively suppressing background and other irrelevant information. Subsequently, it conducts Multi-Space Disentanglement to achieve disentanglement of attribute and object semantics. Experiments on three popular benchmarks (MIT-States, UT-Zappos, and C-GQA) demonstrate that CAMS achieves state-of-the-art performance in both closed-world and open-world settings. The code is available at https://github.com/ybyangjing/CAMS.

View on arXivView PDF

Code Implementations(1)

ybyangjing/CAMSOfficial100%
60PythonNov 20, 20257 months ago

Similar Papers

Cite this paper

@article{yang2025cams,
  title  = {CAMS: Towards Compositional Zero-Shot Learning via Gated Cross-Attention and Multi-Space Disentanglement},
  author = {Pan Yang and Cheng Deng and Jing Yang and Han Zhao and Yun Liu and Yuling Chen and Xiaoli Ruan and Yanping Chen},
  year   = {2025},
  eprint = {2511.16378},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.16378v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.16378.svg)](https://codeofpaper.com/paper/2511.16378)

Discussion