On Implicit Attribute Localization for Generalized Zero-Shot Learning

Shiqi Yang, Kai Wang, Luis Herranz, Joost van de Weijer

TL;DR

This paper reveals that standard deep learning models for Zero-Shot Learning (ZSL) already implicitly localize visual attributes, a capability that's been overlooked. They propose SELAR, a simple method that leverages this implicit localization by switching from global average pooling to global maximum pooling, achieving state-of-the-art performance in Generalized ZSL (GZSL) without complex attention mechanisms.

What Problem Does This Paper Address?

Generalized Zero-Shot Learning (GZSL) aims to recognize objects from classes that were not seen during training, relying on semantic descriptions (attributes) of those classes. A major challenge in GZSL is the "seen class bias," where models tend to favor the classes they were trained on. Many recent approaches try to tackle this by explicitly identifying discriminative regions in images that correspond to specific attributes, often using complex part detectors or attention mechanisms. However, these methods add significant complexity and require additional training data or intricate architectures. This paper questions whether these complex additions are truly necessary, proposing that simpler, standard ZSL pipelines might already possess the ability to localize attributes implicitly.

Methods

The authors first demonstrate that existing ZSL pipelines, even without explicit attention or part detection, implicitly localize attributes. They show that the Class Activation Maps (CAMs) derived from these models highlight regions relevant to specific attributes. Building on this, they propose SELAR (Simple and Effective Localized Attribute Representation). The core of SELAR is a simple modification to the standard ZSL pipeline: replacing Global Average Pooling (GAP) with Global Maximum Pooling (GMP).

The intuition is that GAP averages features across an entire feature map, potentially diluting localized attribute information. GMP, on the other hand, selects the maximum activation from a feature map, forcing the model to focus on the most salient spatial location. This encourages the feature extractor to produce more localized "Attribute Activation Maps" (AAMs), which are then aggregated. SELAR also uses a 1x1 convolution for mapping to the semantic space and initializes the final fully connected layer with the attribute matrix, keeping it fixed. The feature extractor is typically pre-trained and can be fine-tuned.

Datasets

The authors evaluate their method on three standard GZSL datasets:

  • CUB (Caltech-UCSD Birds 200): A fine-grained dataset known for its localized attributes.
  • SUN (Scene Attributes Database): A dataset with attributes that are sometimes less localized.
  • AWA2 (Animals with Attributes 2): A dataset with more abstract attributes.

No new benchmarks were introduced.

Key Insights and Ideas

  • Implicit Localization is Powerful: Standard ZSL models, when properly analyzed (e.g., via CAMs), already exhibit attribute localization. This capability is often overlooked in favor of explicit, complex mechanisms.
  • Pooling Matters for Localization: The choice of spatial aggregation (GAP vs. GMP) significantly impacts the degree of attribute localization. GMP is shown to be more effective at encouraging localized representations.
  • Simplicity Wins: A simple change like switching pooling methods can lead to substantial performance gains, outperforming more complex state-of-the-art methods. This suggests that focusing on fundamental architectural choices can be highly effective.
  • Attribute Localization Aids GZSL: By encouraging more precise attribute localization, SELAR effectively reduces the bias towards seen classes, leading to better performance on unseen classes.

Key Results

SELAR achieves state-of-the-art performance on the fine-grained CUB dataset and competitive results on SUN and AWA2 for non-generative GZSL methods. It notably surpasses more complex methods that use explicit attention or part detection. The paper also reports a lower seen-unseen bias (S/U ratio) for SELAR compared to other methods. For instance, on CUB, SELAR achieves an H score of 51.1 (with GAP) and 55.0 (with GMP), outperforming many prior methods. The ablation study in Table II shows that using GMP in the attribute space yields the best results.

Limitations and Future Work

The authors acknowledge that for datasets like SUN, where attributes are less localized, the benefit of GMP over GAP is less pronounced. They suggest that future work could explore more sophisticated ways to leverage implicit attribute localization, potentially combining it with other techniques. The paper advocates for SELAR as a strong, easy-to-implement baseline for future GZSL research, implying that further exploration of its architecture and training strategies could yield even better results.

Summary updated

BibTeX
@article{yang2021implicit,
  author = {Shiqi Yang and Kai Wang and Luis Herranz and Joost van de Weijer},
  title = {{On Implicit Attribute Localization for Generalized Zero-Shot Learning}},
  journal = {IEEE Signal Processing Letters},
  year = {2021},
  url = {https://openreview.net/forum?id=dJ-e9WMIp1u},
}
Figure