A Shared Multi-Attention Framework for Multi-Label Zero-Shot Learning

Dat Huynh, Ehsan ElhamifarCVPR 2020

Abstract

Multi-label zero-shot learning (ML-ZSL) presents a significant challenge in computer vision: recognizing and localizing multiple objects in an image without having seen those specific categories during training. Traditional approaches either use global features, missing small objects, or scale poorly with the number of labels. This paper introduces LESA (LEarning by Sharing Attentions), a framework that utilizes a small set of shared, label-agnostic attention modules. By dynamically selecting relevant features from this shared pool based on semantic embeddings, LESA effectively transfers knowledge from seen to unseen categories. Experimental results on NUS-WIDE and Open Images v4 demonstrate that LESA achieves state-of-the-art performance in both recognition and localization tasks.

Introduction

Most computer vision models operate under a "closed-world" assumption, limited to categories present in their training data. Zero-Shot Learning (ZSL) attempts to overcome this by leveraging semantic descriptions, such as word embeddings, to recognize "unseen" labels. Multi-Label ZSL (ML-ZSL) is particularly demanding because images often contain multiple objects of varying scales. Standard ZSL methods often rely on a single global feature, which fails to capture smaller or peripheral objects. Conversely, assigning a unique attention mechanism to every possible label is computationally prohibitive and prone to overfitting, especially given the lack of training data for unseen categories.

Methods

The proposed LESA framework addresses these issues through a Shared Multi-Attention approach. Instead of a single global attention map or one map per label, LESA employs a fixed, small number ($M$) of shared attention modules.

The LESA architecture: an image is processed through CNNs to extract features, which are then passed through a multi-attention mechanism to produce shared attention maps.
  1. Attention Sharing: Each label (seen or unseen) selects the most relevant features from the shared pool based on its semantic vector. This allows the model to learn general foreground and background features applicable across various categories.
  2. Compatibility Function: A bilinear function projects these attention features into a joint visual-label semantic space, where compatibility scores are calculated.
  3. Loss Functions: To train the model without ground-truth bounding boxes, a four-part loss function is used:
  4. Ranking Loss ($L_{rank}$): Prioritizes present labels over absent ones.
  5. Diversity Loss ($L_{div}$): Encourages attention modules to focus on distinct image regions.
  6. Relevance Loss ($L_{rel}$): Ensures attention-focused scores outperform simple regional averages.
  7. Distribution Loss ($L_{dist}$): Prevents reliance on a subset of modules, ensuring all $M$ modules are utilized.

Results and Key Insights

LESA was evaluated on the NUS-WIDE and Open Images (v4) datasets. On NUS-WIDE, LESA improved the mean Average Precision (mAP) by 4.3% for ZSL and 2.9% for generalized ZSL. On the massive Open Images dataset, it achieved a 1.4% improvement in F1 score.

Qualitative results showing LESA's ability to localize unseen labels by attending to relevant visual regions.

Crucially, the model demonstrates strong localization capabilities for unseen objects. For instance, it can focus on a "surfboard" (unseen) by leveraging learned attentions for "action" and "waves" (seen). The model also automatically allocates attention based on label complexity; simple labels like "road" may use one module, while complex ones like "cityscape" utilize several. Unlike recurrent models that find objects sequentially, LESA computes all attentions simultaneously, making it significantly faster for large-scale applications.

Conclusion

LESA provides an efficient and scalable solution for ML-ZSL by sharing attention modules across labels. While highly effective for concrete objects, future work is needed to address abstract concepts (e.g., "travel") that lack clear spatial localization. Integrating knowledge graphs to better model label relationships remains a promising direction for further improving knowledge transfer.

Summary updated

BibTeX
@inproceedings{huynh2020shared,
  author = {Dat Huynh and Ehsan Elhamifar},
  title = {{A Shared Multi-Attention Framework for Multi-Label Zero-Shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00880},
}
Figure