Mitigating Generation Shifts for Generalized Zero-Shot Learning

Zhi Chen, Yadan Luo, Sen Wang, Ruihong Qiu, Jingjing Li, Zi Huang

TL;DR

Researchers have developed GSMFlow, a generative framework that tackles the "generation shift" problem in Generalized Zero-Shot Learning (GZSL). By using conditional normalizing flows combined with visual perturbations and relative semantic positioning, the model synthesizes highly realistic unseen class features, achieving state-of-the-art performance across major benchmarks.

What Problem Does This Paper Address?

In Generalized Zero-Shot Learning (GZSL), a model must recognize objects it has never seen before (unseen classes) while still remembering those it has (seen classes). Since no images exist for unseen classes during training, generative models are often used to "hallucinate" visual features based on text-like semantic attributes (e.g., "has wings," "is yellow").

However, these models suffer from generation shifts: the synthesized features often don't match the real distribution of unseen data. The authors identify three main culprits:

Illustration of three types of generation shifts: Semantic Inconsistency, Variance Decay, and Structural Permutation.
  1. Semantic Inconsistency: The generated features don't actually align well with their input attributes.
  2. Variance Decay: The model "collapses," generating very similar, repetitive samples that lack the diversity (poses, lighting) of real images.
  3. Structural Permutation: The geometric relationships between classes (e.g., a tiger should be closer to a cat than to a bird) are lost in the translation from attributes to visuals.

Methods

The authors propose GSMFlow (Generation Shifts Mitigating Flow), built on the foundation of Normalizing Flows. Unlike GANs or VAEs, flows are composed of invertible bijective transformations, allowing for exact likelihood estimation and more stable training.

The GSMFlow architecture, highlighting the visual perturbation strategy and the relative positioning module for global semantics.

Key innovations include:

  • Explicit Conditional Encoding: While previous flow-based models encoded semantics implicitly, GSMFlow injects semantic information directly into every "affine coupling layer." This forces the model to maintain a tight correlation between attributes and generated visuals.
  • Visual Perturbation Strategy: To fight variance decay, the authors dynamically inject Gaussian noise (filtered through a dropout mask) into the training samples. This "virtual sampling" exposes the generator to a wider variety of patterns, encouraging it to produce more diverse unseen features.
  • Relative Positioning: To preserve class relationships, the authors transform raw attributes into "global semantics." They calculate the similarity of a class to three "anchors" (the most similar, least similar, and median similarity classes). This preserves the inter-class geometric structure.
  • Prototype Loss: A specific loss function ensures that even with noise injection, the "center" (prototype) of a class remains stable, preventing the distribution from drifting too far.

Datasets

The model was evaluated on four standard ZSL benchmarks:

  • CUB (Caltech UCSD Birds-200-2011): 200 fine-grained bird species.
  • FLO (Oxford Flowers): 102 fine-grained flower categories.
  • AWA2 (Animals with Attributes 2): A large dataset of 50 animal classes.
  • aPaY (Attribute Pascal and Yahoo): A coarse-grained dataset with 42 classes.

Key Insights and Ideas

  • Diversity is a Choice: Variance decay isn't just a failure of the model; it's a lack of exposure. By artificially diversifying the seen classes through perturbation, the model learns the concept of diversity, which it then applies when generating unseen classes.
  • Explicit is Better than Implicit: In generative tasks, "disentangling" features is popular. However, this paper argues that for GZSL, repeatedly "reminding" the network of the semantic goal at every layer is more effective for maintaining consistency.
  • Geometry Matters: Classes don't exist in a vacuum. By using relative positioning to anchors, the model ensures that the "neighborhood" of a class in the attribute space is mirrored in the visual space, making the final classifier's job much easier.

Key Results

GSMFlow consistently outperformed both embedding-based and generative state-of-the-art (SOTA) methods.

  • AWA2: Achieved a Harmonic Mean (H) of 72.3%, a significant jump over the previous flow-based SOTA (IZF) at 68.0%.
  • CUB: Reached an H-score of 64.3% (vs. IZF's 59.4%).
  • Qualitative Success: t-SNE visualizations show that while traditional GANs produce tight, "collapsed" clusters for unseen classes, GSMFlow produces broad, overlapping distributions that much more closely resemble real-world data.

Limitations and Future Work

The authors note that the performance is sensitive to certain hyperparameters, such as the perturbation weight ($\lambda_1$) and the dimensionality of the global semantic vectors. If the perturbation is too high, the features become noisy; if the semantic dimension is too low, the model loses the ability to distinguish between similar classes.

Future work could explore more sophisticated ways to choose "semantic anchors" or investigate if these flow-based techniques can be applied to other "low-data" regimes like few-shot learning or domain adaptation.

Summary updated

BibTeX
@inproceedings{chen2021mitigating,
  author = {Zhi Chen and Yadan Luo and Sen Wang and Ruihong Qiu and Jingjing Li and Zi Huang},
  title = {{Mitigating Generation Shifts for Generalized Zero-Shot Learning}},
  booktitle = {ACM Multimedia},
  year = {2021},
  doi = {10.1145/3474085.3475258},
}
Figure