Unified Framework for Open-World Compositional Zero-Shot Learning

Hirunima Jayasekara, Khoi Pham, Nirat Saini, Abhinav Shrivastava

TL;DR

This paper introduces a unified, single-stream transformer framework for Open-World Compositional Zero-Shot Learning (OW-CZSL). By combining an intelligent TopK text selection module with a novel Sparse Linear Compositor, the model achieves state-of-the-art performance while drastically reducing computational overhead, even outperforming massive Vision-Language Models like CLIP on complex benchmarks.

What Problem Does This Paper Address?

Compositional Zero-Shot Learning (CZSL) challenges machine learning models to recognize novel combinations of known primitives—such as identifying a "wet dog" after only seeing "wet cats" and "dry dogs" during training.

In the realistic Open-World setting (OW-CZSL), the model doesn't get a neat cheat sheet of which unseen pairs might appear during testing. Instead, the output space explodes to include all possible combinations of attributes ($A$) and objects ($O$). If a dataset has hundreds of attributes and objects, the search space becomes massive ($|A| \times |O|$), leading to severe computational bottlenecks.

Prior approaches typically rely on dual-stream architectures (processing images and text separately) and fuse them late via simple dot products. This limits deep inter-modality interaction and forces the network to exhaustively compute similarity scores for every single potential pair during inference.

Methods

The authors propose a unified framework based on a standard Vision Transformer (ViT) that processes both visual and textual features simultaneously in a single stream.

The overall architecture of the proposed method featuring the TopK Selection and Sparse Linear Compositor modules.

The architecture introduces two key novel modules:

  1. TopK Embedding Selection Module: To avoid evaluating every possible attribute-object pair, this module uses cross-attention between the image embeddings and a text vocabulary (built from BERT embeddings) to automatically surface a subset of the top $K$ most relevant candidate text tokens before the main transformer encoder.
  2. Sparse Linear Compositor (SLC): Traditional fully connected layers mapping primitives to pairs suffer from a parameter explosion of $O((|A| + |O|)(|A| \cdot |O|))$, leading to severe overfitting. The SLC instead uses a sparse linear layer that computes attribute and object predictions separately as auxiliary tasks, then combines them using a learnable weighted addition. This reduces the computational complexity to a clean $O(|A| \cdot |O|)$.

Datasets

The framework was evaluated on three standard OW-CZSL benchmarks:

  • MIT-States: 53,753 images containing common objects and their modified states (115 attributes, 245 objects).
  • C-GQA: A challenging composition-focused dataset derived from GQA, featuring everyday objects (413 attributes, 674 objects).
  • VAW-CZSL: A large-scale dataset designed to mitigate low-sample issues, containing 92,583 images (440 attributes, 541 objects).

Key Insights and Ideas

  • Deep, Early Fusion Matters: Moving away from dual-stream architectures to a single-stream transformer allows the model to dedicate its computational capacity to modeling the intricate interactions between visual patches and text tokens across all layers.
  • Structural Sparsity Beats Full Connectivity: In massive label spaces, fully connected layers overfit. Structurally enforcing compositionality via the Sparse Linear Compositor allows the model to generalize to unseen pairs using only a tiny fraction (often less than 1%) of the parameters a standard linear layer would require.
  • Intelligent Gating: The TopK module proves that text matching can act as an effective candidate generator during the initial stage of inference, bypassing the need for exhaustive combinatorial searches.

Key Results

The proposed model achieved state-of-the-art results across all three datasets when compared to non-CLIP baselines.

Main performance table showing Area Under the Curve (AUC) and Harmonic Mean (HM) across the three datasets.

Most notably, the framework was pitted against massive pre-trained Vision-Language Models like CLIP and Compositional Soft Prompting (CSP). The proposed model outperformed CLIP and CSP on both the C-GQA and VAW-CZSL datasets. For instance, on VAW-CZSL, it achieved a 6.7% Harmonic Mean (HM) compared to CLIP's 3.9% and CSP's 3.6%—all while utilizing only 25% of the parameters and 10% of the pre-training data required by CLIP.

Limitations and Future Work

Despite its strong performance, the model struggles with complex, "in-the-wild" images that contain multiple objects or objects with multiple attributes simultaneously (e.g., a scene with a "small, brown, sleeping cat"). The authors note that extending the framework to handle multi-primitive and multi-entity scenarios effectively is a crucial direction for future work.

Summary updated

BibTeX
@inproceedings{jayasekara2025unified,
  author = {Hirunima Jayasekara and Khoi Pham and Nirat Saini and Abhinav Shrivastava},
  title = {{Unified Framework for Open-World Compositional Zero-Shot Learning}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00761},
}
Figure