Attribute Prototype Network for Any-Shot Learning

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

Introduction

The Attribute Prototype Network (APN) is a novel framework designed for "any-shot" learning—recognizing new objects with either zero or very few training examples. In computer vision, Zero-Shot Learning (ZSL) and Few-Shot Learning (FSL) aim to recognize novel classes that weren't seen during training. ZSL typically relies on semantic attributes (e.g., "has stripes," "is furry") to bridge the gap between known and unknown classes.

However, standard deep learning models often struggle with two primary issues:

  1. Locality: Models might recognize a bird species based on the whole image but lack explicit knowledge of where specific identifying features (attributes) are located.
  2. Correlation Shortcuts: Models often learn spurious correlations, such as "yellow crown" and "yellow belly" always appearing together. This leads to failure when encountering a new class with a different combination of these traits.

The APN addresses these challenges by explicitly localizing and decorrelating attributes to create a more robust image representation that transfers knowledge to unseen categories far more effectively than standard global features.

Methods

The APN architecture consists of three main components designed to work in concert to identify and refine attribute-level features without requiring human-provided bounding boxes or part annotations.

Architecture of the Attribute Prototype Network (APN) featuring ProtoMod, BaseMod, and ZoomInMod.
  • Base Module (BaseMod): A standard CNN backbone extracts global features and maps them into a semantic embedding space where images are compared against class attribute vectors.
  • Prototype Module (ProtoMod): This core innovation learns a set of "attribute prototypes" in the feature space. It computes a similarity map between these prototypes and local image features to pinpoint exactly where an attribute (like "black eye") exists.
  • Attribute Decorrelation (AD) Loss: This forces the model to learn distinct features for different body parts, preventing reliance on accidental correlations.
  • Compactness Regularizer ($\\mathcal{L}_{CPT}$): This ensures attribute "attention" is focused on a small, specific region rather than being spread across the whole image.
  • Zoom-In Module (ZoomInMod): Once the most informative attribute regions are identified, the model automatically crops and "zooms in" on the object, re-processing the cropped image to discard noisy backgrounds and focus on discriminative details.

Experimental Setup

The model was evaluated on three widely used benchmarks for fine-grained classification:

  • 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 Results and Insights

The APN achieved state-of-the-art (SOTA) performance across multiple benchmarks. On the CUB dataset, ZSL accuracy reached 75.0%, while AWA2 reached 69.9%. Beyond classification accuracy, the model significantly improved part localization. On CUB, the Percentage of Correctly Localized Parts (PCK) improved from a baseline of 30.7% to 53.4%.

Ablation study and performance comparison on ZSL benchmarks and part localization tasks.

Key Insights

  • Localization as a Bridge: Better localization leads to better transfer. Knowing exactly what a "striped wing" looks like on a known species allows the model to recognize it more easily on an unseen species.
  • Decorrelation is Vital: Forcing the network to compete for features across different attribute groups prevents "shortcuts," making the model robust to novel trait combinations.
  • Weak Supervision Effectiveness: The results prove that class-level attributes combined with specialized loss functions are sufficient to "discover" part locations without expensive pixel-level masks.

Limitations and Future Work

While highly effective for physical objects, the performance gain on the SUN (scenes) dataset was smaller. Scene attributes (like "sunny" or "open area") are often global and abstract, making them harder to localize than physical body parts. Additionally, the model occasionally confuses highly similar attributes, such as "yellow belly" versus "yellow breast." Future work may involve extending this framework to handle abstract semantic relations or integrating self-supervised learning to further reduce reliance on labeled attribute datasets.

Summary updated

BibTeX
@article{xu2022attribute,
  author = {Wenjia Xu and Yongqin Xian and Jiuniu Wang and Bernt Schiele and Zeynep Akata},
  title = {{Attribute Prototype Network for Any-Shot Learning}},
  journal = {Int. J. Comput. Vis.},
  year = {2022},
  url = {https://openreview.net/forum?id=82BQL40pi3f},
}
Figure