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

Learning Clustering-based Prototypes for Compositional Zero-Shot Learning

Hongyu Qu, Jianan Wei, Xiangbo Shu, Wenguan Wang

Introduction

Compositional Zero-Shot Learning (CZSL) aims to empower computer vision models with the ability to recognize novel combinations of known concepts. For instance, a model trained on "red apple" and "green car" should ideally generalize to identify a "green apple." To achieve this, current methodologies typically attempt to disentangle "primitives"—the underlying attributes (e.g., "red," "broken") and objects (e.g., "apple," "car").

However, a significant limitation in existing CZSL research is the reliance on a single centroid vector to represent each primitive. This approach fails to account for high intra-concept variance; the visual manifestation of an attribute like "broken" differs drastically when applied to a glass bottle versus a mountain trail. To address this, we introduce CLUSPRO (Clustering-based Prototype mining), a framework that replaces single-vector representations with a dynamic set of prototypes to capture the natural visual diversity of concepts.

The CLUSPRO Framework

CLUSPRO is built upon a pre-trained Vision-Language Model (CLIP) and utilizes online clustering to discover multiple sub-patterns for each attribute and object. The training process consists of two primary alternating phases:

1. Local-aware Prototype Assignment

Instead of assigning one representation per primitive, CLUSPRO assigns $K$ prototypes (e.g., $K=5$). During training, the model performs online clustering across the embedding space, assigning visual features to these prototypes. These prototypes are updated via a momentum-based approach, allowing the model to learn fine-grained sub-patterns—such as different textures of "suede" or types of "brokenness"—across the entire dataset rather than just within small training batches.

2. Prototype-anchored Representation Learning

Once prototypes are established, they serve as anchors to organize the embedding space through two complementary loss functions:

  • Prototype-based Contrastive Learning: This forces image features to align with their assigned sub-prototype while remaining dissimilar to irrelevant prototypes. This creates distinct boundaries between concepts and their various sub-manifestations.
  • Prototype-based Decorrelation Learning: Utilizing the Hilbert-Schmidt Independence Criterion (HSIC), this step ensures that attribute and object embeddings remain statistically independent. This prevents the representation of an object (e.g., "apple") from being erroneously influenced by its paired attribute (e.g., "green").

Crucially, these prototypes are used only during training to shape the embedding space. During inference, they are discarded, allowing the model to evaluate images in a non-parametric fashion without additional computational overhead.

Experimental Evaluation

Datasets

CLUSPRO was evaluated on three benchmark CZSL datasets:

  • MIT-States: 53k images featuring 115 attributes and 245 objects.
  • UT-Zappos: 50k fine-grained images of shoes with 16 attributes and 12 objects.
  • C-GQA: A large-scale dataset containing 39k images with 453 attributes and 870 objects.

Performance and Efficiency

CLUSPRO demonstrates state-of-the-art (SOTA) performance across both Closed-World (CW) and Open-World (OW) settings. In the CW setting, the model achieved absolute Area Under the Curve (AUC) gains of +1.4 on MIT-States, +4.9 on UT-Zappos, and +2.5 on C-GQA.

The improvements were even more pronounced in the challenging Open-World setting, where the model must distinguish between all possible combinations. CLUSPRO showed relative AUC improvements of +9.4% on MIT-States, +19.7% on UT-Zappos, and +11.1% on C-GQA compared to previous leaders like Troika and CDS-CZSL.

Beyond accuracy, CLUSPRO is highly efficient. It requires fewer than half the trainable parameters of the SOTA Troika model (8.7M vs. 21.7M) and maintains faster inference speeds, as the clustering mechanism does not add any parameters or latency to the testing phase.

Conclusion and Future Work

CLUSPRO proves that acknowledging the visual diversity of individual words through multi-prototype representation is critical for compositional generalization. By using dynamically updated prototypes as dataset-informed anchors, the model achieves superior disentanglement and accuracy.

Despite its success, the model faces challenges with long-tail distributions, as rare primitives may not provide enough data for effective prototype mining. Additionally, the current version uses a fixed number of prototypes ($K$) for all concepts. Future research will explore dynamically determining $K$ based on concept variance and integrating Large Language Models (LLMs) to provide more context-aware descriptions for complex attribute-object pairs.

Summary updated

BibTeX
@inproceedings{qu2025learning,
  author = {Hongyu Qu and Jianan Wei and Xiangbo Shu and Wenguan Wang},
  title = {{Learning Clustering-based Prototypes for Compositional Zero-Shot Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=eE2PXlNydB},
}
Figure