RevCD -- Reversed Conditional Diffusion for Generalized Zero-Shot Learning
William Heyden, Habib Ullah, M. Salman Siddiqui, Fadi Al Machot
TL;DR
This work tackles generalized zero-shot learning by introducing RevCD, a reversed conditional diffusion model that generates semantic embeddings conditioned on visual inputs to bridge seen and unseen classes. By modeling the semantic posterior with a diffusion process conditioned on $x$, and optimizing a composite objective $\\mathcal{L}_{total} = \lambda_1 \\mathcal{L}_{rec} + \lambda_2 \\mathcal{L}_{noise} + \lambda_3 \\mathcal{L}_{classification}$, RevCD achieves strong seen-class accuracy while maintaining competitive unseen-class performance across AwA2, CUB, and SUN datasets. The architecture uses cross Hadamard-Addition embeddings, time-dependent sinusoidal encodings, and a visual-conditioned U-Net, enabling classifier-free guidance during sampling. Experimental results demonstrate the promise of diffusion-based density estimation as a back-end for GZSL, with notable gains on semantically diverse datasets and robust cross-dataset performance. The work provides open-source code and lays groundwork for diffusion-centric approaches in zero-shot settings.
Abstract
In Generalized Zero-Shot Learning (GZSL), we aim to recognize both seen and unseen categories using a model trained only on seen categories. In computer vision, this translates into a classification problem, where knowledge from seen categories is transferred to unseen categories by exploiting the relationships between visual features and available semantic information, such as text corpora or manual annotations. However, learning this joint distribution is costly and requires one-to-one training with corresponding semantic information. We present a reversed conditional Diffusion-based model (RevCD) that mitigates this issue by generating semantic features synthesized from visual inputs by leveraging Diffusion models' conditional mechanisms. Our RevCD model consists of a cross Hadamard-Addition embedding of a sinusoidal time schedule and a multi-headed visual transformer for attention-guided embeddings. The proposed approach introduces three key innovations. First, we reverse the process of generating semantic space based on visual data, introducing a novel loss function that facilitates more efficient knowledge transfer. Second, we apply Diffusion models to zero-shot learning - a novel approach that exploits their strengths in capturing data complexity. Third, we demonstrate our model's performance through a comprehensive cross-dataset evaluation. The complete code will be available on GitHub.
