Free: Feature refinement for generalized zero-shot learning

Shiming Chen, Wenjie Wang, Beihao Xia, Qinmu Peng, Xinge You, Feng Zheng, Ling Shao

TL;DR

This paper introduces FREE, a novel method for Generalized Zero-Shot Learning (GZSL) that tackles the critical issue of cross-dataset bias. By refining visual features using a dedicated module and novel loss functions, FREE significantly improves recognition performance on both seen and unseen classes, outperforming existing state-of-the-art methods.

What Problem Does This Paper Address?

Generalized Zero-Shot Learning (GZSL) aims to enable models to recognize classes they haven't seen during training, a crucial capability for real-world AI. A major hurdle in GZSL is the "visual-semantic domain gap" – the mismatch between how visual features are represented and how semantic information (like attributes or descriptions) is encoded. Compounding this is the "seen-unseen bias," where models tend to favor the classes they were trained on.

However, this paper highlights a more subtle but significant problem: cross-dataset bias. Current GZSL methods often rely on visual features extracted from models pre-trained on large datasets like ImageNet. While powerful, these ImageNet features can be ill-suited for specific GZSL benchmarks (like bird or flower datasets) due to differences in data collection and inherent biases. This mismatch leads to "poor-quality" visual features for the target GZSL task, limiting the overall performance, especially for fine-grained datasets where these biases are more pronounced. The authors argue that directly transferring ImageNet features without addressing this bias is a fundamental limitation.

Methods

FREE tackles the cross-dataset bias by introducing a Feature Refinement (FR) module that works in conjunction with a generative GZSL framework. The overall approach is divided into two stages:

  • Stage 1: Feature Generation and Initial Refinement:
    • The paper revisits and utilizes a f-VAEGAN (Variational Autoencoder Generative Adversarial Network) as a baseline for learning the semantic-to-visual mapping. This module generates synthetic visual features for unseen classes.
  • Simultaneously, the FR module is introduced to learn discriminative representations from both real seen visual features and the synthesized unseen visual features.
  • Crucially, the f-VAEGAN and FR modules are jointly optimized in this stage, allowing them to mutually benefit.
  • Stage 2: Feature Refinement and Classification:
    • The trained FR module is then used to refine the visual features of both seen and unseen classes.
  • To achieve this refinement, FREE introduces two novel loss functions:
  • Self-Adaptive Margin Center Loss (SAMC-loss): This loss encourages intra-class compactness (keeping features of the same class close) and inter-class separability (pushing features of different classes apart). It adaptively balances these two aspects using a factor γ, which is tuned differently for fine-grained (larger γ) and coarse-grained (smaller γ) datasets.
  • Semantic Cycle-Consistency Loss: This loss ensures that the semantic embeddings derived from refined visual features are consistent with the original semantic embeddings, further guiding the FR module to learn semantically relevant representations.
  • Finally, the refined features from various layers of the FR module are concatenated to create "fully refined features" that are then used to train a standard classifier. This inductive approach allows the model to generalize to new datasets.

Datasets

The paper evaluates FREE on five standard GZSL benchmark datasets:

  • CUB (Caltech UCSD Birds 200): A fine-grained dataset.
  • SUN (SUN Attribute): A fine-grained dataset.
  • FLO (Oxford Flowers): A fine-grained dataset.
  • AWA1 (Animals with Attributes 1): A coarse-grained dataset.
  • AWA2 (Animals with Attributes 2): A coarse-grained dataset.

The authors use the same seen/unseen splits and class embeddings as a prior influential work [58] for fair comparison.

Key Insights and Ideas

  • Cross-dataset bias is a fundamental bottleneck: The paper strongly argues that the common practice of using ImageNet pre-trained features directly in GZSL is suboptimal due to inherent biases in data collection, leading to poor visual representations for GZSL tasks.
  • Feature refinement as a solution: Instead of just relying on generative models or fine-tuning, FREE proposes actively refining visual features within the GZSL framework. This is a more direct approach to combatting the negative effects of cross-dataset bias.
  • Joint optimization is key: The simultaneous training of the generative f-VAEGAN and the FR module allows them to learn complementary information, leading to more robust semantic-visual mapping and better feature representations.
  • Adaptive loss for diverse datasets: The SAMC-loss's adaptive balance factor γ is a clever way to tailor the model's learning objective to the specific characteristics of fine-grained (where subtle distinctions matter) versus coarse-grained (where broader separation is needed) datasets.
  • Concatenating multi-layer features: Extracting and combining features from different layers of the FR module captures richer, more discriminative information, leading to the "fully refined" features.

Key Results

  • FREE consistently achieves significant performance gains over its baseline (f-VAEGAN) and other state-of-the-art methods across all five benchmark datasets.
  • The harmonic mean (H) on AWA1, AWA2, and CUB datasets are reported as 66.0%, 67.1%, and 57.7%, respectively, often outperforming other methods.
  • FREE also achieves competitive results on SUN and FLO, indicating its effectiveness on both coarse- and fine-grained datasets.
  • The paper demonstrates that FREE maintains a good balance between seen and unseen class performance, unlike some methods that excel on one but falter on the other.
  • Ablation studies confirm that both the SAMC-loss and the semantic cycle-consistency loss contribute positively to FREE's performance, and their combination is most effective.
  • The t-SNE visualizations show that FREE's refined features are more clustered and separated, visually supporting the improvement in discriminative power.

Limitations and Future Work

  • Fine-tuning vs. FREE: While FREE shows competitive results against fine-tuning on FLO and AWA2, the paper acknowledges that fine-tuning can alleviate cross-dataset bias to some extent. However, it also points out that fine-tuning can lead to ineffectiveness and overfitting, which FREE aims to avoid by integrating refinement into the generative process.
  • Computational Cost: While not explicitly detailed as a limitation, the joint training of multiple components (encoder, generator, discriminator, FR module) suggests a potentially higher computational cost compared to simpler methods.
  • Future Work: The authors believe that FREE's feature refinement approach can be effectively integrated into other generative GZSL methods, suggesting a broader applicability of their core idea. They also suggest that further exploration of how to best leverage multi-layer features could yield even better results.

Summary updated

Abstract

Generalized zero-shot learning (GZSL) has achieved significant progress, with many efforts dedicated to overcoming the problems of visual-semantic domain gaps and seen-unseen bias. However, most existing methods directly use feature extraction models trained on ImageNet alone, ignoring the cross-dataset bias between ImageNet and GZSL benchmarks. Such a bias inevitably results in poor-quality visual features for GZSL tasks, which potentially limits the recognition performance on both seen and unseen classes. In this paper, we propose a simple yet effective GZSL method, termed feature refinement for generalized zero-shot learning (FREE), to tackle the above problem. FREE employs a feature refinement (FR) module that incorporates semantic-visual mapping into a unified generative model to refine the visual features of seen and unseen class samples. Furthermore, we propose a self-adaptive margin center loss (SAMC-loss) that cooperates with a semantic cycle-consistency loss to guide FR to learn class-and semantically-relevant representations, and concatenate the features in FR to extract the fully refined features. Extensive experiments on five benchmark datasets demonstrate the significant performance gain of FREE over current state-of-the-art methods and its baseline. The code is available at https://github. com/shiming-chen/FREE.
BibTeX
@inproceedings{chen2021free,
  author = {Shiming Chen and Wenjie Wang and Beihao Xia and Qinmu Peng and Xinge You and Feng Zheng and Ling Shao},
  title = {{Free: Feature refinement for generalized zero-shot learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=PgmGxqDXxw},
}
Figure