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

Zero-Shot Compositional Concept Learning

Guangyue Xu, Parisa Kordjamshidi, Joyce Y. Chai

Abstract

In this paper, we study the problem of recognizing compositional attribute-object concepts within the zero-shot learning (ZSL) framework. We propose an episode-based cross-attention (EpiCA) network which combines merits of cross-attention mechanism and episode-based training strategy to recognize novel compositional concepts. Firstly, EpiCA bases on cross-attention to correlate concept-visual information and utilizes the gated pooling layer to build contextualized representations for both images and concepts. The updated representations are used for a more in-depth multi-modal relevance calculation for concept recognition. Secondly, a two-phase episode training strategy, especially the transductive phase, is adopted to utilize unlabeled test examples to alleviate the low-resource learning problem. Experiments on two widely-used zero-shot compositional learning (ZSCL) benchmarks have demonstrated the effectiveness of the model compared with recent approaches on both conventional and generalized ZSCL settings.

Introduction

Humans possess a remarkable ability for compositional generalization: once we understand the concept of "sliced" (from seeing sliced tomatoes or bread) and the concept of an "apple," we can immediately recognize a "sliced apple" without prior exposure. For artificial intelligence, however, this remains a significant challenge. Zero-Shot Compositional Learning (ZSCL) aims to enable models to recognize novel combinations of seen attributes and objects.

The primary difficulty lies in the non-linear way attributes transform an object's visual appearance. A "sliced" tomato looks different from a "sliced" cake, and a "red" apple differs significantly from a "peeled" one. Traditional models often treat these as static vectors, failing to capture the dynamic interaction between attribute and object. Furthermore, models often suffer from "seen-class bias," where they attempt to force-fit new images into categories encountered during training.

Illustration of the zero-shot compositional learning task where concepts like 'sliced' and 'apple' are learned separately and composed to recognize novel pairs.

The EpiCA Framework

To address these challenges, we introduce the Episode-based Cross-Attention (EpiCA) network. The architecture is designed to "ground" linguistic concepts in specific visual regions and leverage unlabeled data to mitigate bias.

Cross-Attention and Gated Pooling

EpiCA moves beyond global image-text comparisons. It employs a cross-attention mechanism to identify which image regions correspond to the "attribute" and which correspond to the "object." This spatial grounding allows the model to learn that "sliced" manifests differently depending on the object's geometry. A gated pooling layer further refines this by filtering out irrelevant background noise, focusing the model's attention on salient features that define the attribute-object pair.

Two-Phase Episode Training

The training strategy is divided into two distinct phases:

  • Inductive Phase: The model is trained on "episodes"—small, task-specific batches—using seen concepts to simulate the zero-shot environment.
  • Transductive Phase: To combat "seen-class bias," the model utilizes unlabeled images from the test set. By generating "pseudo-labels" for high-confidence predictions, the model adjusts its internal representations to better fit the distribution of unseen concepts, significantly reducing the domain shift problem.
The architecture of the Episode-based Cross-Attention (EpiCA) network, featuring embedding, scoring, and cross-attention phases.

Experimental Evaluation

EpiCA was evaluated on two major benchmarks: MIT-States (245 objects, 115 attributes) and UT-Zappos (12 shoe types, 16 materials). The researchers tested the model in both conventional ZSCL and the more realistic Generalized ZSCL setting.

The model achieved state-of-the-art performance across multiple metrics. On UT-Zappos, EpiCA reached 55.48% accuracy in the conventional setting, outperforming previous methods like SymNet. More impressively, in the Generalized ZSCL setting on MIT-States, EpiCA achieved an AUC of 9.01, more than doubling the performance of previous leading models (4.3). Ablation studies confirmed that every component mattered; removing cross-attention or gated pooling led to significant accuracy drops of up to 10%.

Discussion and Conclusion

The success of EpiCA highlights the importance of visual grounding and context-aware transformations in compositional learning. By treating recognition as a relevance-matching game between image regions and linguistic concepts, the model better mimics human visual intelligence.

Despite these gains, limitations remain. Qualitative analysis shows that the model occasionally struggles with fine-grained or opposite attribute distinctions, such as "New" vs. "Old." Future research should explore incorporating complex relational information and scene context to further enhance the robustness of zero-shot compositional recognition.

Summary updated

BibTeX
@inproceedings{xu2021zero,
  author = {Guangyue Xu and Parisa Kordjamshidi and Joyce Y. Chai},
  title = {{Zero-Shot Compositional Concept Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
}
Figure