Skip to main content
QUICK REVIEW

[Paper Review] Dual Cross-Attention Learning for Fine-Grained Visual Categorization and Object Re-Identification

Haowei Zhu, Wenjing Ke|arXiv (Cornell University)|May 4, 2022
Domain Adaptation and Few-Shot LearningComputer Science17 citations
TL;DR

This paper proposes Dual Cross-Attention Learning (DCAL), a method that enhances vision Transformers for fine-grained visual categorization and person re-identification by introducing global-local cross-attention (GLCA) to strengthen spatial discriminative cues and pair-wise cross-attention (PWCA) to regularize attention learning via image pair comparison. DCAL improves multiple self-attention baselines, achieving 2.8% and 2.4% mAP gains over DeiT-Tiny and ViT-Base on MSMT17, respectively.

ABSTRACT

Recently, self-attention mechanisms have shown impressive performance in various NLP and CV tasks, which can help capture sequential characteristics and derive global information. In this work, we explore how to extend self-attention modules to better learn subtle feature embeddings for recognizing fine-grained objects, e.g., different bird species or person identities. To this end, we propose a dual cross-attention learning (DCAL) algorithm to coordinate with self-attention learning. First, we propose global-local cross-attention (GLCA) to enhance the interactions between global images and local high-response regions, which can help reinforce the spatial-wise discriminative clues for recognition. Second, we propose pair-wise cross-attention (PWCA) to establish the interactions between image pairs. PWCA can regularize the attention learning of an image by treating another image as distractor and will be removed during inference. We observe that DCAL can reduce misleading attentions and diffuse the attention response to discover more complementary parts for recognition. We conduct extensive evaluations on fine-grained visual categorization and object re-identification. Experiments demonstrate that DCAL performs on par with state-of-the-art methods and consistently improves multiple self-attention baselines, e.g., surpassing DeiT-Tiny and ViT-Base by 2.8% and 2.4% mAP on MSMT17, respectively.

Motivation & Objective

  • To improve vision Transformer performance on fine-grained visual categorization and object re-identification by addressing subtle visual variations.
  • To enhance spatial discriminative feature learning by modeling interactions between global images and local high-response regions.
  • To regularize attention learning using image pair comparisons to reduce overfitting and improve generalization.
  • To design cross-attention mechanisms that are compatible with existing self-attention modules and require no extra inference cost.

Proposed method

  • Proposes global-local cross-attention (GLCA), which computes cross-attention between selected local query vectors and the full set of key-value vectors from the global image to emphasize discriminative spatial regions.
  • Introduces pair-wise cross-attention (PWCA), which treats a second image as a distractor during training to diffuse attention responses and improve robustness.
  • Uses combined key-value vectors from both images in PWCA to increase attention learning difficulty and encourage discovery of complementary features.
  • Applies PWCA only during training; it is removed at inference, ensuring no computational overhead.
  • Integrates GLCA and PWCA as plug-in modules compatible with various vision Transformer backbones such as DeiT and ViT.
  • Employs standard self-attention as the base, with DCAL components added to refine attention maps and feature representations.

Experimental results

Research questions

  • RQ1Can cross-attention between global images and local high-response regions improve spatial discrimination in fine-grained recognition?
  • RQ2Can using a paired image as a distractor during training regularize attention learning and reduce overfitting to spurious features?
  • RQ3Does the proposed dual cross-attention mechanism consistently improve performance across diverse vision Transformer architectures on FGVC and Re-ID benchmarks?
  • RQ4How does the attention distribution change when using GLCA and PWCA compared to standard self-attention?

Key findings

  • DCAL improves DeiT-Tiny by 2.8% mAP and ViT-Base by 2.4% mAP on the MSMT17 Re-ID benchmark, outperforming state-of-the-art methods.
  • On CUB-200-2011, DCAL boosts DeiT-Tiny to 92.0% top-1 accuracy and achieves 89.7% top-1 accuracy with CaiT-XS24.
  • The method improves Swin-T by 0.9% top-1 accuracy on CUB and 1.0% mAP on MSMT17, demonstrating generalization across architectures.
  • Abllation studies show that removing GLCA and PWCA blocks reduces accuracy by only 0.3% on CUB and 0.1% on VeRi-776, confirming their effectiveness.
  • Visualization confirms that DCAL reduces misleading attention and diffuses responses to more complementary object parts.
  • Despite a 1.7-hour training time increase over the baseline (3.8h vs. 2.1h), the method remains practical due to the small scale of fine-grained datasets.

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.