Abstract
Generalized Zero-Shot Learning (GZSL) addresses the challenge of recognizing objects from both seen and unseen classes using semantic descriptions. While generative models like GANs and VAEs have been used to synthesize missing visual features for unseen classes, they often suffer from training instability and approximate likelihood estimation. This paper introduces VAE-cFlow, a novel framework that conditions an invertible generative flow on a modified VAE latent space. By leveraging exact likelihood estimation and stable training, VAE-cFlow generates high-quality synthetic features, achieving state-of-the-art performance on large-scale benchmarks including ImageNet.
Introduction
In modern deep learning, models excel at recognizing objects with abundant labeled data but struggle with the "long tail" of rare or unseen categories. Zero-Shot Learning (ZSL) bridges this gap by utilizing semantic attributes (e.g., "has stripes") to identify new classes. The more realistic Generalized ZSL (GZSL) setting requires models to distinguish between seen and unseen classes simultaneously during inference.
Current state-of-the-art (SOTA) approaches treat GZSL as a data augmentation problem, using Generative Adversarial Networks (GANs) or Variational Auto-Encoders (VAEs) to synthesize visual features for unseen classes. However, GANs are prone to mode collapse and training instability, while VAEs optimize only a lower bound of the data likelihood, often resulting in less precise feature generation. VAE-cFlow addresses these limitations by employing Generative Flows, which provide exact likelihood estimation and more stable convergence.
Methodology
The VAE-cFlow architecture is a hybrid model consisting of a VAE-based conditioner and a conditional Normalizing Flow.
1. VAE Conditioner
Rather than feeding raw semantic attributes directly into the flow, the model uses a VAE to encode attributes into a latent distribution. To optimize this space for classification, the authors introduced three modifications:
- Reconstruction Loss: Ensures the latent variable preserves the original semantic information.
- Relaxed Mean Constraint: Unlike standard VAEs that force all classes toward a zero mean, VAE-cFlow allows class-specific clusters to form, enhancing discriminability.
- Classification Regularization: An explicit loss term encourages latent variables to be easily separable by class.
2. Generative Flow
The core of the model is a sequence of invertible transformations (Additive Coupling Layers and Actnorm). During training, the flow maps real visual features to a simple Gaussian distribution, conditioned on the VAE's latent variable. The invertibility allows for the calculation of the exact log-likelihood of the training data.
3. Feature Synthesis and Classification
To recognize unseen classes, the model encodes the class attributes via the VAE to obtain a latent variable. It then runs the flow in reverse to generate synthetic visual features. These features are combined with real features from seen classes to train a standard linear classifier for the GZSL task.
Experiments and Results
The model was evaluated on standard benchmarks including AwA1/2, CUB, SUN, and the large-scale ImageNet21K dataset.
Quantitative Performance
VAE-cFlow established new SOTA records, particularly in large-scale scenarios. On ImageNet21K, it achieved a 3.9% improvement on the M500 split and a 3.1% improvement on the M1K split over previous leading methods like CADA-VAE. On the SUN dataset, the harmonic mean (balancing seen and unseen accuracy) improved by 2.5%.
Qualitative Analysis
t-SNE visualizations demonstrate that synthetic features generated by VAE-cFlow are highly representative of real data distributions. The model effectively separates different unseen classes in the feature space. A key finding was the "Temperature Trick": adjusting the sampling temperature ($T$) during generation allowed the model to match the diversity of synthetic features to that of real seen classes, which was vital for performance.
Conclusion
VAE-cFlow demonstrates that combining the attribute-encoding capabilities of VAEs with the exact likelihood estimation of Generative Flows significantly improves feature synthesis for GZSL. While the model faces some challenges in small-scale ZSL and increased computational complexity due to the dimensionality requirements of invertible flows, its superior performance on large-scale benchmarks marks a significant advancement in the field. Future work may explore more complex invertible architectures to further refine the conditional distribution estimation.
Summary updated