Learning Invariant Visual Representations for Compositional Zero-Shot Learning

Tian Zhang, Kongming Liang, Ruoyi Du, Xian Sun, Zhanyu Ma, Jun Guo

Abstract

Compositional Zero-Shot Learning (CZSL) aims to recognize novel combinations of known primitives, such as identifying a "peeled potato" after only seeing "peeled bananas" and "unpeeled potatoes." A significant challenge in this field is spurious correlation, where models mistakenly link attributes to the specific objects they appeared with during training. This paper proposes the Invariant Visual Representations (IVR) framework, which reframes CZSL as an out-of-distribution (OOD) generalization problem. By learning features that remain invariant across different contexts, IVR effectively decouples attributes from objects, leading to superior performance on unseen combinations.

Introduction: The Challenge of Spurious Correlation

The core task of CZSL is to generalize from seen pairs (e.g., "red apple") to unseen pairs (e.g., "red tomato"). Most existing models fail because they learn biased representations; for instance, the color "red" might be inextricably tied to the shape of an "apple" in the model's latent space. This coupling prevents the model from recognizing the same attribute when it appears on a different object.

The IVR Framework

The authors introduce IVR to address these biases by treating objects as "domains" for attributes and vice versa. This perspective shifts the focus from simple feature matching to Domain Generalization (DG).

Conceptual overview of the dual-domain perspective in IVR.

Dual-Domain Perspective

To recognize an attribute like "peeled" reliably, the visual feature should ideally look the same regardless of whether the object is a banana or a potato. IVR achieves this through a dual-branch architecture:

  1. Object-Domain Branch: Learns attribute features that are invariant across different objects.
  2. Attribute-Domain Branch: Learns object features that are invariant across different attributes.

Technical Implementation: RIM and GIM

The framework employs two key mechanisms to enforce invariance during training with triplet inputs (e.g., peeled potato, mashed potato, and peeled banana):

  • Representation Invariant Mechanism (RIM): This identifies feature channels that vary significantly across different domains. It applies a mask to filter out these domain-specific "spurious" channels, forcing the classifier to rely on invariant characteristics.
  • Gradient Invariant Mechanism (GIM): GIM ensures that the model's optimization path is consistent across different contexts by minimizing the distance between gradients from different domains. This ensures the model captures the intrinsic nature of the primitive rather than context-specific noise.
The IVR architecture featuring the object-domain and attribute-domain branches, incorporating RIM and GIM.

Experimental Evaluation

The IVR framework was evaluated on three major benchmarks: UT-Zappos50K (shoes), Clothing16K (apparel), and AO-CLEVr (synthetic logic). The authors notably excluded the Mit-States dataset due to high label noise and ambiguity, which can hinder the evaluation of true compositional logic.

Key Results

IVR significantly outperformed previous state-of-the-art methods like CompCos and TMN:

  • UT-Zappos50K: Achieved an Area Under Curve (AUC) of 30.6 (vs. 28.7 SOTA).
  • Clothing16K: Reached an AUC of 87.0 (vs. 84.7 SOTA).
  • Generalization Balance: Unlike models that overfit to seen pairs, IVR maintained high performance on unseen pairs, demonstrating a more robust balance between seen and unseen accuracy.

Conclusion and Future Work

By reframing CZSL as an out-of-distribution problem, IVR provides a principled way to decouple attributes and objects. The use of gradients as a diagnostic tool and the implementation of invariance masks allow the model to ignore spurious correlations.

A remaining challenge is the "Single Composition" problem, where a primitive only appears in one specific combination during training (e.g., "fuzzy" only with "kiwi"). In such cases, decoupling remains mathematically difficult. Future research will focus on handling these singleton cases and extending invariant learning to more complex multi-concept scenarios.

Summary updated

BibTeX
@inproceedings{zhang2022learning,
  author = {Tian Zhang and Kongming Liang and Ruoyi Du and Xian Sun and Zhanyu Ma and Jun Guo},
  title = {{Learning Invariant Visual Representations for Compositional Zero-Shot Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20053-3\_20},
}
Figure