DIFFCZSL: Compositional Zero-Shot Learning Regularized by Diffusion Representations

Hangyu Tian, Zhenqi He, Yanghao Wang, Long ChenarXiv 2026

TL;DR

DIFFCZSL is a novel framework that supercharges CLIP-based models for Compositional Zero-Shot Learning (CZSL) by leveraging the hidden strengths of generative diffusion models. By using intermediate diffusion features as a regularizer during training and discarding them at inference, the method significantly improves a model's ability to recognize unseen attribute-object pairs without adding any computational overhead during deployment.

What Problem Does This Paper Address?

Compositional Zero-Shot Learning (CZSL) challenges AI models to recognize novel combinations of known primitives—for instance, identifying a "sliced banana" at test time after only seeing "sliced apples" and "ripe bananas" during training.

Currently, state-of-the-art CZSL models rely heavily on Vision-Language Models (VLMs) like CLIP. However, CLIP-based approaches suffer from two core limitations:

  1. Limited Intra-Composition Interaction: CLIP often exhibits "bag-of-words" behavior. It matches images to text by looking for attributes and objects independently, failing to capture how an attribute fundamentally alters an object's appearance (e.g., how "ripeness" looks different on a banana versus an apple).
  2. Limited Inter-Composition Relational Consistency: CLIP's embedding space tends to be highly object-centric. It clusters images by object identity rather than preserving a shared, consistent geometric transformation for attributes across different object contexts.
Figure 1: (a) CZSL aims to recognize unseen attribute-object compositions by learning from seen composi- tions. (b) Comparison between CLIP and diffusion embedding spaces. CLIP tends to form object-centric clusters, resulting in limited shared compositional structure across different objects. Diffusion representa- tions exhibit more consistent compositional patterns, leading to a more structured and shared compositional subspace. (c) Prior evidence from the Winoground compositional reasoning benchmark, adapted from (Li et al., 2023a). Diffusion-based representations substantially outperform CLIP on object, relation, and joint compositional reasoning, suggesting that diffusion models capture compositional semantics more effectively than contrastive representations. (d) Overview of our approach: We propose to regularize the CLIP embed- dings with diffusion features through representation alignment for better compositional generalization.

The authors observe that text-conditioned diffusion models, by virtue of their generative denoising objectives, are inherently better at capturing how multiple concepts jointly manifest in visual content.

Methods

Instead of replacing the efficient CLIP backbone with a slow diffusion model, the authors propose DIFFCZSL, a plug-and-play regularization framework used exclusively during training.

Overview of the DIFFCZSL framework compared to standard baselines

The pipeline operates as follows:

  • Feature Extraction: Given an image and its attribute-object text prompt, intermediate text-conditioned spatial features are extracted from a frozen diffusion model. To prevent noise from degrading the representations, they utilize CleanDIFT, a method that extracts features directly from clean images.
  • Dual-Space Projection: The spatial features are globally average-pooled and passed through two lightweight, learnable multi-layer perceptron (MLP) projection heads. One head maps the features into CLIP's visual embedding space, and the other maps them into CLIP's textual space.
  • Dual-Space Compositional Distillation: The framework applies a bidirectional contrastive loss ($L_{img}$ and $L_{txt}$) to align CLIP's image and text embeddings with these projected diffusion priors. This forces CLIP's embedding geometry to adopt the richer, composition-aware relational structures found in the diffusion model.
  • Zero-Cost Inference: Once training is complete, the diffusion model and projection heads are completely removed. The fine-tuned CLIP baseline handles inference alone, incurring zero extra computational or latency costs.

Datasets

The authors evaluated DIFFCZSL across three widely accepted CZSL benchmarks under both closed-world (restricted target space) and open-world (all possible primitive combinations) settings:

  • MIT-States: 53,753 images featuring 115 attributes and 245 object categories.
  • UT-Zappos50K: 50,025 fine-grained images of shoes across 16 attributes and 12 categories.
  • C-GQA: A large-scale dataset containing 39,298 images with a highly diverse real-world vocabulary.

Key Insights and Ideas

  • Generative vs. Discriminative Priors: Generative training (denoising) forces a network to understand structural and contextual interactions between concepts to reconstruct an image. Contrastive training (like CLIP's) only requires learning enough global features to distinguish one image-text pair from another.
  • Shared Compositional Subspaces: Relational analysis reveals that attribute-induced displacement vectors are significantly more consistent across different objects in diffusion spaces than in CLIP spaces. This stability is exactly what enables robust zero-shot generalization.
  • The Power of Noise-Free Diffusion: Ablation studies demonstrated that extracting features from clean images (CleanDIFT) outperforms standard noise-conditioned diffusion feature extraction, as noise injection introduces unwanted variability that can disrupt task-relevant semantic cues.

Key Results

Integrating DIFFCZSL into prominent CLIP-based baselines (such as CSP, Troika, and CAMS) yielded consistent quantitative and qualitative improvements:

  • Quantitative Gains: On the MIT-States dataset under the closed-world setting, adding DIFFCZSL to the Troika baseline boosted the Harmonic Mean (HM) from 39.2 to 39.9 and the Area Under the Curve (AUC) from 22.1 to 23.1. On UT-Zappos, DIFF-Troika pushed the HM from 54.6 to 57.6 and AUC from 41.7 to 46.2.
  • Qualitative Improvements: As shown in the qualitative analysis, DIFFCZSL helps models correctly identify complex geometric properties (like "coiled shell" vs. the baseline's "eroded rock"). Furthermore, when the model does fail, its predictions are often semantically much closer to the ground truth (e.g., predicting "thin book" instead of "dented box" for a "thick book").
Qualitative success and failure cases on MIT-States and UT-Zappos

Limitations and Future Work

While DIFFCZSL successfully transfers generative compositionality to discriminative models, some limitations remain:

  • Training Overhead: Although inference is unaffected, extracting features from large diffusion models during training increases per-epoch training time (e.g., adding a few minutes per epoch depending on the baseline architecture).
  • Persistent Fine-Grained Failures: The model still struggles with highly subtle attribute variations or complex textures that closely mimic backgrounds.

The authors suggest that future work could explore integrating increasingly advanced diffusion backbones or extending this dual-space distillation strategy to other complex multimodal compositional reasoning tasks.

Summary updated

BibTeX
@misc{tian2026diffczsl,
  author = {Hangyu Tian and Zhenqi He and Yanghao Wang and Long Chen},
  title = {{DIFFCZSL: Compositional Zero-Shot Learning Regularized by Diffusion Representations}},
  year = {2026},
  eprint = {2608.19871},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.19871},
}
Figure