Skip to main content
QUICK REVIEW

[Paper Review] I2DFormer: Learning Image to Document Attention for Zero-Shot Image Classification

Muhammad Ferjad Naeem, Yongqin Xian|arXiv (Cornell University)|Sep 21, 2022
Domain Adaptation and Few-Shot LearningComputer Science21 citations
TL;DR

I2DFormer jointly learns image and document embeddings using a novel Image to Document (I2D) Attention to align patches with document words, enabling state-of-the-art unsupervised semantic embeddings for zero-shot and generalized zero-shot learning across AWA2, CUB, and FLO without attribute vocabularies.

ABSTRACT

Despite the tremendous progress in zero-shot learning(ZSL), the majority of existing methods still rely on human-annotated attributes, which are difficult to annotate and scale. An unsupervised alternative is to represent each class using the word embedding associated with its semantic class name. However, word embeddings extracted from pre-trained language models do not necessarily capture visual similarities, resulting in poor zero-shot performance. In this work, we argue that online textual documents, e.g., Wikipedia, contain rich visual descriptions about object classes, therefore can be used as powerful unsupervised side information for ZSL. To this end, we propose I2DFormer, a novel transformer-based ZSL framework that jointly learns to encode images and documents by aligning both modalities in a shared embedding space. In order to distill discriminative visual words from noisy documents, we introduce a new cross-modal attention module that learns fine-grained interactions between image patches and document words. Consequently, our I2DFormer not only learns highly discriminative document embeddings that capture visual similarities but also gains the ability to localize visually relevant words in image regions. Quantitatively, we demonstrate that our I2DFormer significantly outperforms previous unsupervised semantic embeddings under both zero-shot and generalized zero-shot learning settings on three public datasets. Qualitatively, we show that our method leads to highly interpretable results where document words can be grounded in the image regions.

Motivation & Objective

  • Motivate unsupervised semantic embeddings for ZSL using online documents as rich visual descriptions.
  • Develop a cross-modal framework that aligns images with documents in a shared embedding space.
  • Distill discriminative visual words from noisy documents via a patch-to-word I2D Attention module.
  • Produce highly interpretable, grounded embeddings and demonstrate generalization to unseen classes.

Proposed method

  • Use a dual-stream transformer: an image transformer F and a document transformer G with a shared embedding space of dimension r.
  • I2D Global: learn a global image–document embedding by projecting f_CLS(x) and g_CLS(d) into a joint space and computing s(x,d) = f_CLS(x) · g_CLS(d).
  • I2D Attention: compute cross-modal attention A(x,d) between image patch embeddings f_p(x) and document word embeddings g_t(d) to produce patch-aware representations; derive a local score s_local(x,d) from the attended patch features.
  • Train with cross-entropy losses L_CLS and L_local to maximize compatibility for correct image–document pairs and encourage discriminative local associations.
  • Document embeddings (I2DEmb) are learned without image-level language supervision but are grounded by visual inputs, enabling downstream ZSL with any ZSL model.

Experimental results

Research questions

  • RQ1Can noisy online documents describing object classes be transformed into visually aligned, discriminative embeddings for zero-shot classification?
  • RQ2Does a cross-modal attention that links image patches to document words improve ZSL performance over global alignment alone?
  • RQ3Are the learned document embeddings interpretable and groundable in image regions for unseen classes?

Key findings

  • I2DFormer consistently outperforms previous unsupervised semantic embeddings on AWA2, CUB, and FLO across ZSL and GZSL settings.
  • The I2D Attention module yields substantial gains over using I2DGlobal alone (relative improvements of 8–16 percentage points in ZSL/GZSL on key datasets).
  • The learned document embeddings (I2DEmb) achieve SOTA results among unsupervised semantic embeddings, e.g., ZSL: AWA2 ≈ 76.4%, CUB ≈ 45.4%, FLO ≈ 40.0%.
  • In GZSL, I2DFormer achieves competitive harmonic means, notably on FLO (≈51.5%).
  • Qualitative analyses show the model grounds discriminative document words to specific image regions, enabling interpretable localization of visual attributes for unseen classes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.