NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Siamese Contrastive Embedding Network for Compositional Zero-Shot Learning

Xiangyu Li, Xu Yang, Kun Wei, Cheng Deng, Muli YangCVPR 2022

Abstract

Compositional Zero-Shot Learning (CZSL) aims to recognize unseen compositions formed from seen state and object during training. Since the same state may be various in the visual appearance while entangled with different objects, CZSL is still a challenging task. Some methods recognize state and object with two trained classifiers, ignoring the impact of the interaction between object and state; the other methods try to learn the joint representation of the state-object compositions, leading to the domain gap between seen and unseen composition sets. In this paper, we propose a novel Siamese Contrastive Embedding Network (SCEN) for unseen composition recognition. Considering the entanglement between state and object, we embed the visual feature into a Siamese Contrastive Space to capture prototypes of them separately, alleviating the interaction between state and object. In addition, we design a State Transition Module (STM) to increase the diversity of training compositions, improving the robustness of the recognition model. Extensive experiments indicate that our method significantly outperforms the state-of-the-art approaches on three challenging benchmark datasets, including the recent proposed C-QGA dataset.

Introduction

Compositional Zero-Shot Learning (CZSL) is the task of recognizing novel combinations of known states (attributes) and objects. While humans can easily generalize from "green grass" and "brown horse" to "green horse," AI models struggle because states and objects are visually entangled. For instance, the visual manifestation of "sliced" differs significantly between an apple and a banana.

Conceptual overview of disentangling state and object prototypes to address visual entanglement.

Existing approaches often fail by either ignoring the interaction between states and objects or by learning joint representations that do not generalize well to unseen pairs, resulting in a significant domain gap between training and testing distributions.

Methodology

The proposed Siamese Contrastive Embedding Network (SCEN) addresses these challenges through two main components: dual contrastive embedding spaces and a generative augmentation module.

Siamese Contrastive Embedding

SCEN projects visual features into two distinct spaces: a State Contrastive Space and an Object Contrastive Space. By employing contrastive learning, the model learns to isolate state-specific and object-specific features. For a "sliced apple," the state encoder is trained to pull the representation closer to other "sliced" objects while pushing it away from irrelevant samples, effectively disentangling the "sliced-ness" from the "apple-ness."

Architecture of the Siamese Contrastive Embedding Network (SCEN), featuring dual contrastive spaces and the State Transition Module (STM).

State Transition Module (STM)

To bridge the domain gap between seen and unseen compositions, the State Transition Module (STM) generates "virtual" training samples. By combining known object features with various state features, the STM allows the model to hallucinate and learn from reasonable but unseen combinations during the training phase, enhancing its robustness at test time.

Experiments and Results

The model was evaluated on three benchmark datasets: MIT-States, UT-Zappos, and the complex C-GQA dataset. SCEN achieved state-of-the-art (SOTA) performance across all metrics:

  • MIT-States: 5.3% AUC (vs. 5.1% previous SOTA).
  • UT-Zappos: 32.0% AUC (vs. 28.7% previous SOTA).
  • C-GQA: 4.0% AUC, demonstrating scalability to large-scale compositional logic.

Ablation studies confirmed that both the contrastive embedding and the STM are essential, as removing either component significantly degraded performance.

Conclusion

SCEN effectively tackles the entanglement problem in CZSL by disentangling states and objects into separate contrastive spaces and augmenting training data through virtual compositions. Future work will explore multi-label frameworks to better handle the inherent visual ambiguity where multiple attributes may validly describe a single image.

Summary updated

BibTeX
@inproceedings{li2022siamese,
  author = {Xiangyu Li and Xu Yang and Kun Wei and Cheng Deng and Muli Yang},
  title = {{Siamese Contrastive Embedding Network for Compositional Zero-Shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=4WIQYIyYdtu},
}
Figure