Skip to main content
QUICK REVIEW

[Paper Review] A free lunch from ViT:Adaptive Attention Multi-scale Fusion Transformer for Fine-grained Visual Recognition

Yuan Zhang, Jian Cao|arXiv (Cornell University)|Oct 4, 2021
Advanced Neural Network ApplicationsComputer Science13 citations
TL;DR

This paper proposes AFTrans, a novel Vision Transformer-based model that enhances fine-grained visual recognition by adaptively fusing multi-scale features through a Selective Attention Collection Module (SACM). By leveraging attention weights to dynamically emphasize relevant patches, AFTrans captures both global and local representations without box annotations, achieving state-of-the-art performance on CUB-200-2011, Stanford Dogs, and iNat2017 benchmarks.

ABSTRACT

Learning subtle representation about object parts plays a vital role in fine-grained visual recognition (FGVR) field. The vision transformer (ViT) achieves promising results on computer vision due to its attention mechanism. Nonetheless, with the fixed size of patches in ViT, the class token in deep layer focuses on the global receptive field and cannot generate multi-granularity features for FGVR. To capture region attention without box annotations and compensate for ViT shortcomings in FGVR, we propose a novel method named Adaptive attention multi-scale Fusion Transformer (AFTrans). The Selective Attention Collection Module (SACM) in our approach leverages attention weights in ViT and filters them adaptively to correspond with the relative importance of input patches. The multiple scales (global and local) pipeline is supervised by our weights sharing encoder and can be easily trained end-to-end. Comprehensive experiments demonstrate that AFTrans can achieve SOTA performance on three published fine-grained benchmarks: CUB-200-2011, Stanford Dogs and iNat2017.

Motivation & Objective

  • To address the limitation of Vision Transformers in capturing multi-granularity features for fine-grained visual recognition.
  • To enable end-to-end learning of global and local receptive fields without requiring bounding box annotations.
  • To enhance feature representation by adaptively filtering and fusing attention maps from different scales.
  • To design a lightweight, trainable module that integrates seamlessly into existing ViT architectures.

Proposed method

  • The Selective Attention Collection Module (SACM) adaptively filters attention weights from ViT to emphasize important patches based on their relative importance.
  • Multiple scales—global and local—are generated by applying SACM at different layers of the ViT encoder.
  • A weight-sharing encoder is used to supervise the multi-scale pipeline, enabling end-to-end training with minimal additional parameters.
  • The method leverages the self-attention mechanism of ViT to extract hierarchical representations without modifying the original architecture significantly.
  • The fusion of multi-scale features is performed through a learnable attention-based aggregation mechanism that enhances discriminative capacity.
  • The model is trained end-to-end on standard fine-grained benchmarks using standard cross-entropy loss.

Experimental results

Research questions

  • RQ1Can adaptive attention mechanisms improve feature representation in Vision Transformers for fine-grained visual recognition?
  • RQ2How can multi-scale features be effectively fused without relying on bounding box annotations?
  • RQ3Can a lightweight module be designed to enhance ViT’s ability to capture local and global context simultaneously?
  • RQ4Does the proposed method achieve state-of-the-art performance on standard fine-grained benchmarks?

Key findings

  • AFTrans achieves state-of-the-art accuracy on the CUB-200-2011 benchmark, outperforming previous methods without using bounding box annotations.
  • On the Stanford Dogs dataset, AFTrans achieves a top-1 accuracy that surpasses existing Transformer-based models by a significant margin.
  • The model achieves competitive performance on the iNat2017 benchmark, demonstrating generalization across diverse fine-grained categories.
  • Ablation studies confirm that the SACM module and multi-scale fusion significantly improve performance, validating the design choices.
  • The method achieves these results with minimal architectural modifications and without additional supervision, highlighting its efficiency and effectiveness.

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.