Attribute Prototype Network for Zero-Shot Learning

Wenjia Xu, Yongqin Xian, Jiuniu Wang, Bernt Schiele, Zeynep Akata

TL;DR

The Attribute Prototype Network (APN) improves Zero-Shot Learning by teaching models to "localize" specific visual attributes (like a bird's "yellow belly") within an image using only class-level labels. By disentangling correlated features and focusing on local image regions, APN achieves state-of-the-art performance and provides interpretable visual evidence for its classifications.

What Problem Does This Paper Address?

Zero-Shot Learning (ZSL) aims to recognize objects from classes the model has never seen during training. It does this by using "attributes"—shared semantic descriptions like "striped," "has wings," or "blue crown."

Most ZSL models rely on global image features. However, the authors identify a major pitfall: spurious correlations. For example, in a training set, "yellow crown" and "yellow belly" might always appear together. A standard model might learn a "shortcut" by looking at the whole image, failing when it encounters a novel class that has a "black crown" but a "yellow belly."

To solve this, the model needs locality: the ability to zoom in and associate specific image regions with specific attributes. The challenge is doing this in a "weakly supervised" manner—without having humans manually draw boxes around every bird part during training.

Methods

The authors propose the Attribute Prototype Network (APN), which consists of three main components designed to jointly learn global and local features.

Attribute Prototype Network Architecture
  1. Base Module (BaseMod): A standard CNN backbone (like ResNet101) that extracts global features for overall classification.
  2. Prototype Module (ProtoMod): This is the core innovation. For every attribute (e.g., "red beak"), the model learns a prototype vector. This vector acts like a search query that scans the intermediate feature maps of the CNN to find the most similar local patch.
  3. Joint Loss Functions:
    • Attribute Regression ($L_{Reg}$): Forces the model to predict the correct attributes based on the best-matching local patches.
  4. Attribute Decorrelation ($L_{AD}$): This is the "anti-shortcut" mechanism. It groups attributes by body part (e.g., all "eye" colors) and encourages the model to share features within a group but compete across different groups. This prevents the model from using the "belly" region to predict "eye" attributes.
  5. Compactness Regularizer ($L_{CPT}$): Ensures that the "attention" of a prototype is concentrated on a small, specific region rather than being smeared across the whole image.

Datasets

The model was evaluated on three standard ZSL benchmarks:

  • CUB (Caltech-UCSD Birds-200-2011): 11,788 images of 200 bird species with 312 attributes.
  • AwA2 (Animals with Attributes 2): 37,322 images of 50 animal classes with 85 attributes.
  • SUN (Scene UNderstanding): 14,340 images of 717 scene categories with 102 attributes.

Key Insights and Ideas

  • Locality is Key for Generalization: By forcing the model to find where an attribute is, it becomes much harder for the model to rely on background noise or accidental correlations.
  • Disentanglement via Semantic Grouping: The authors used existing knowledge (e.g., knowing which attributes belong to the "wing" vs. the "head") to design the decorrelation loss. This "semantic tie" helps the model learn cleaner, more distinct features.
  • Interpretability as a Side Effect: Because the model uses prototypes to find attributes, we can visualize "similarity maps." This allows researchers to see exactly which part of the image the model thinks is a "blue crown," making the "black box" of deep learning more transparent.

Key Results

Localization Heatmaps: APN vs. BaseMod
  • Superior Localization: As seen in the similarity maps above, APN successfully isolates specific body parts (breast, belly, back, head, wing, leg) compared to the baseline model, which smears attention across the image. On the CUB dataset, APN achieved a "Percentage of Correctly Localized Parts" (PCP) of 52.8%, a massive jump from the 30.7% achieved by a standard baseline.
  • State-of-the-Art Accuracy: APN outperformed existing non-generative models on all three datasets. In the difficult Generalized Zero-Shot Learning (GZSL) setting—where the model must identify both seen and unseen classes—it achieved a harmonic mean (H) of 67.2% on CUB and 65.5% on AwA2.
  • Boosting Generative Models: The authors showed that the features learned by APN are so high-quality that they can be used to improve other ZSL models (like generative VAEs/GANs), leading to further performance gains.

Limitations and Future Work

  • Attribute Conflation: The model still occasionally struggles with very similar attributes, such as "white belly" vs. "white breast," because they often overlap spatially and look identical.
  • Gap with Supervised Methods: While APN is excellent for a weakly supervised method, there is still a performance gap compared to models trained with full human-annotated part bounding boxes (e.g., SPDA-CNN).
  • Future Direction: The authors suggest that better handling of attribute correlations remains a challenging and open problem for the ZSL community. Exploring more complex spatial relationships between attributes could be a next step.

Summary updated

BibTeX
@inproceedings{xu2020attribute,
  author = {Wenjia Xu and Yongqin Xian and Jiuniu Wang and Bernt Schiele and Zeynep Akata},
  title = {{Attribute Prototype Network for Zero-Shot Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=mHI_XaRdQce},
}
Figure