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

Learning Graph Embeddings for Compositional Zero-shot Learning

Muhammad Ferjad Naeem, Yongqin Xian, Federico Tombari, Zeynep Akata · DOI

Introduction

Compositional Zero-Shot Learning (CZSL) aims to recognize novel combinations of known states and objects. While humans can easily identify a "wet dog" after seeing "wet grass" and a "dry dog," machines struggle because the visual appearance of a state (e.g., "sliced") varies significantly across different objects (e.g., "apple" vs. "bread"). Previous methods often treated combinations as independent classes or relied on rigid external knowledge bases, failing to capture the nuanced dependencies between primitives and their compositions.

Methodology: Compositional Graph Embeddings (CGE)

This paper introduces Compositional Graph Embeddings (CGE), an end-to-end framework that learns to represent images and labels in a shared compositional space.

Overview of the CGE framework, showing the propagation of information through a Graph Convolutional Network (GCN) to learn embeddings in a compositional space.

The core of CGE is a Compositional Graph where nodes represent states, objects, and their compositions. Edges connect compositions to their constituent primitives (e.g., "cute dog" connects to "cute" and "dog"), providing a strong inductive bias. A Graph Convolutional Network (GCN) propagates information across this structure, allowing knowledge from seen compositions to inform the embeddings of unseen ones. The system then learns a scoring function to measure the compatibility between image features and graph nodes.

Experimental Setup

The model was evaluated on three benchmarks:

  • MIT-States: A large dataset of natural objects in various states.
  • UT-Zappos: A fine-grained dataset of shoes.
  • C-GQA: A new, larger, and cleaner benchmark curated from the GQA dataset, featuring over 9.5k compositional labels to better test true reasoning.

Key Results

CGE significantly outperformed previous state-of-the-art models across all datasets. On MIT-States, it achieved a test AUC of 6.5%, more than doubling the previous best. On the challenging C-GQA benchmark, it reached 3.6% AUC, again doubling the performance of the strongest baseline.

Qualitative results showing retrieved compositional labels for images across MIT-States, UT-Zappos, and C-GQA datasets.

Qualitative analysis reveals that CGE's top predictions are often visually accurate even when they don't match the exact ground truth (e.g., predicting "tiny animal" for a "wet cat"). This suggests a deep semantic understanding of the relationship between states and objects.

Discussion and Insights

A key finding was that the graph acts as a powerful regularizer, preventing the model from simply memorizing seen pairs. Interestingly, shallow GCNs (2 layers) were found to be more effective than deeper ones, which can suffer from "over-smoothing" and lose discriminative power. Furthermore, the model's ability to better understand states improved its underlying object detection, suggesting a successful disentanglement of visual primitives.

Conclusion

CGE demonstrates that structured graph representations can effectively bridge the gap between seen and unseen concept combinations in CZSL. By leveraging the inherent relationships between states and objects without relying on external knowledge bases, CGE provides a robust and flexible framework for compositional reasoning in computer vision.

Summary updated

BibTeX
@inproceedings{naeem2021learning,
  author = {Muhammad Ferjad Naeem and Yongqin Xian and Federico Tombari and Zeynep Akata},
  title = {{Learning Graph Embeddings for Compositional Zero-shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00101},
}
Figure