Abstract
Generalized Zero-Shot Learning (GZSL) aims to recognize objects from both seen and unseen classes by leveraging semantic descriptions. A common approach involves using generative models to synthesize visual features for unseen classes. However, these models often suffer from "generation shifts"—discrepancies between synthesized and real-world data. We introduce GSMFlow, a novel generative framework based on Normalizing Flows designed to mitigate these shifts. By incorporating boundary sample mining and relative semantic positioning, GSMFlow produces diverse and semantically accurate visual features, achieving state-of-the-art performance across several benchmarks.
The Problem: Generation Shifts in GZSL
In GZSL, models are trained on "seen" classes and must generalize to "unseen" classes using attribute vectors. While generative models like GANs can "imagine" features for unseen classes, the resulting data often exhibits three critical flaws known as generation shifts:
- Semantic Inconsistency: Synthesized features fail to accurately reflect the input attributes.
- Variance Collapse: The model produces overly similar samples, missing the natural diversity (e.g., different angles or lighting) found in real images.
- Structure Disorder: The geometric relationships between classes in the semantic space are not preserved in the generated visual space.
Methodology: The GSMFlow Framework
GSMFlow utilizes Normalizing Flows to create a reversible mapping between a simple Gaussian distribution and complex visual features. Unlike GANs, flows offer more stable training and can perform both generation and inference within a single architecture.
The framework introduces three key technical innovations:
Explicit Conditional Coupling
To ensure semantic consistency, GSMFlow injects class attributes directly into every layer of the flow process. This explicit conditioning keeps the generation process strictly tied to the target class's semantic definition.
Boundary Sample Mining with Entropy Maximization
To combat variance collapse, the authors implement a strategy to find "hard" samples near the decision boundaries of seen classes. By maximizing prediction entropy, the model is forced to explore the full distribution of a class rather than converging on a single "safe" point, leading to much higher diversity in the synthesized data.
Relative Semantic Positioning
To prevent structure disorder, GSMFlow re-encodes raw attribute vectors based on their "relative position" to three semantic anchors: the most similar, least similar, and median classes. This preserves the global structure of the semantic space during the transition to visual features.
Experiments and Results
GSMFlow was evaluated on four major GZSL benchmarks: aPaY, AWA2, CUB, and FLO. The primary metric used is the Harmonic Mean (H), which balances accuracy for both seen and unseen classes.
GSMFlow established new state-of-the-art results on several datasets:
- aPaY: 51.3% (up from 49.8%)
- AWA2: 72.8% (up from 70.3%)
- FLO: 88.3% (up from 86.6%)
On the fine-grained CUB dataset, the model achieved a highly competitive 66.1%. Qualitative analysis using t-SNE visualizations confirmed that GSMFlow’s synthesized features align much more closely with real-world unseen data than previous GAN-based approaches.
Conclusion
GSMFlow addresses the fundamental limitations of generative GZSL by focusing on the quality and diversity of synthesized features. By leveraging the stability of Normalizing Flows and innovative sampling strategies, it effectively mitigates generation shifts. Future work will explore integrating these flow-based generators with end-to-end backbone fine-tuning to further bridge the gap between "imagined" and real-world visual features.
Summary updated