DIFFCZSL: Compositional Zero-Shot Learning Regularized by Diffusion Representations
Organizations: The Hong Kong University of Science and Technology
Abstract
Compositional Zero-Shot Learning (CZSL) aims to recognize unseen attribute-object compositions by leveraging knowledge of primitive concepts learned from seen compositions. Although recent works achieve impressive performance in CZSL by leveraging large vision-language models, they primarily rely on discriminative representations that may not explicitly preserve the structured relationships between primitive concepts and their compositions. Motivated by the recent success of diffusion-based classifiers and their competitive performance relative to discriminative models, we investigate whether intermediate diffusion representations can provide complementary cues for CZSL. To this end, we propose DIFFCZSL, a diffusion-augmented framework that injects generative priors from pre-trained diffusion models into CLIP-based CZSL pipelines. We extract intermediate diffusion representations and project them into the CLIP embedding space to provide auxiliary supervision on both image and text modalities. Through contrastive alignment between CLIP embeddings and diffusion features during training, our method encourages the embedding geometry toward richer composition-aware semantics, while introducing no additional cost at inference time. Extensive experiments on three public CZSL benchmarks demonstrate consistent improvements over strong CLIP-based baselines under both closed-world and open-world settings. Our results highlight the complementary strengths of generative diffusion representations and discriminative vision-language models for compositional generalization.
Figures & tables
| MIT-States ( Isola et al., 2015 ) | UT-Zappos ( Yu and Grauman, 2014 ) | C-GQA ( Naeem et al., 2021 ) | ||||||||||
| Method | Seen | Unseen | HM | AUC | Seen | Unseen | HM | AUC | Seen | Unseen | HM | AUC |
| Closed-world Results | ||||||||||||
| CLIP [ICML21] | 30.2 | 46.0 | 26.1 | 11.0 | 15.8 | 49.1 | 15.6 | 5.0 | 7.5 | 25.0 | 8.6 | 1.4 |
| CoOP [IJCV22] | 34.4 | 47.6 | 29.8 | 13.5 | 52.1 | 49.3 | 34.6 | 18.8 | 20.5 | 26.8 | 17.1 | 4.4 |
| DFSP(i2t) [CVPR23] | 47.4 | 52.4 | 37.2 | 20.7 | 64.2 | 66.4 | 45.1 | 32.1 | 35.6 | 29.3 | 24.3 | 8.7 |
| DFSP(BiF) [CVPR23] | 47.1 | 52.8 | 37.7 | 20.8 | 63.3 | 69.2 | 47.1 | 33.5 | 36.5 | 32.0 | 26.2 | 9.9 |
| Method | MIT-States | UT-Zappos | ||||||
| S | U | HM | AUC | S | U | HM | AUC | |
| Troika | 49.0 | 53.0 | 39.2 | 22.1 | 66.8 | 73.4 | 54.6 | 41.7 |
| + DINOv3 | 49.6 | 53.3 | 39.6 | 22.3 | 70.5 | 72.5 | 54.2 | 42.5 |
| + DIFF | 50.5 | 53.4 | 39.9 | 23.1 | 72.2 | 74.0 | 57.6 | 46.2 |
| Method | MIT-States | UT-Zappos | C-GQA |
| CSP | 15m 25s | 9m 40s | 36m 20s |
| + DIFF | 15m 57s | 10m 07s | 37m 17s |
| Troika | 59m 26s | 19m 36s | 199m 35s |
| + DIFF | 65m 35s | 22m 24s | 203m 06s |
| CAMS | 7m 35s | 6m 36s | 23m 39s |
| + DIFF | 9m 18s | 7m 41s | 26m 15s |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | MIT-States | UT-Zappos | C-GQA |
| Learning rate | |||
| Batch size | 64 | 32 | 16 |
| Gradient accumulation | 2 | 2 | 4 |
| Epochs | 20 | 20 | 15 |
| Image alignment weight | 0.1 | 0.5 | 0.1 |
| Text alignment weight | 1 | 0.5 | 0.8 |
| Hyperparameter | MIT-States | UT-Zappos | C-GQA |
| Learning rate | |||
| Batch size | 8 | 16 | 16 |
| Gradient accumulation | 8 | 4 | 1 |
| Epochs | 10 | 10 | 15 |
| Image alignment weight | 0.7 | 0.5 | 0.7 |
| Text alignment weight | 0.3 | 0.5 | 0.3 |
| Hyperparameter | MIT-States | UT-Zappos | C-GQA |
| Learning rate | |||
| Batch size | 64 | 64 | 16 |
| Gradient accumulation | 1 | 1 | 1 |
| Epochs | 15 | 15 | 15 |
| Image alignment weight | 0.5 | 0.5 | 0.5 |
| Text alignment weight | 0.1 | 0.1 | 0.5 |
| Method | MIT-States | UT-Zappos | ||||||
| S | U | HM | AUC | S | U | HM | AUC | |
| Troika† (baseline) | 49.0 0.4 | 53.0 0.2 | 39.3 0.2 | 22.1 0.1 | 66.8 1.1 | 73.8 0.6 | 54.6 0.5 | 41.7 0.7 |
| DIFF-Troika (ours) | 49.9 0.6 | 53.2 0.2 | 39.6 0.3 | 22.6 0.4 | 71.0 1.2 | 74.4 0.4 | 57.7 0.2 | 45.4 0.8 |
| Method | Mean | Median | Q25 | Q75 | Max |
| CLIP | 0.1887 | 0.1818 | 0.1342 | 0.2310 | 0.4561 |
| Diffusion | 0.2012 | 0.1935 | 0.1552 | 0.2456 | 0.5654 |
Zero-Shot Learning
Zero-shot learning lets models recognize classes or solve tasks absent from task-specific training examples by using semantic descriptions or pretrained knowledge.
See all 184 papers