Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

TransFG: A Transformer Architecture for Fine-grained Recognition

About

Fine-grained visual classification (FGVC) which aims at recognizing objects from subcategories is a very challenging task due to the inherently subtle inter-class differences. Most existing works mainly tackle this problem by reusing the backbone network to extract features of detected discriminative regions. However, this strategy inevitably complicates the pipeline and pushes the proposed regions to contain most parts of the objects thus fails to locate the really important parts. Recently, vision transformer (ViT) shows its strong performance in the traditional classification task. The self-attention mechanism of the transformer links every patch token to the classification token. In this work, we first evaluate the effectiveness of the ViT framework in the fine-grained recognition setting. Then motivated by the strength of the attention link can be intuitively considered as an indicator of the importance of tokens, we further propose a novel Part Selection Module that can be applied to most of the transformer architectures where we integrate all raw attention weights of the transformer into an attention map for guiding the network to effectively and accurately select discriminative image patches and compute their relations. A contrastive loss is applied to enlarge the distance between feature representations of confusing classes. We name the augmented transformer-based model TransFG and demonstrate the value of it by conducting experiments on five popular fine-grained benchmarks where we achieve state-of-the-art performance. Qualitative results are presented for better understanding of our model.

Ju He, Jie-Neng Chen, Shuai Liu, Adam Kortylewski, Cheng Yang, Yutong Bai, Changhu Wang• 2021

Related benchmarks

TaskDatasetResultRank
Fine-grained Image ClassificationCUB200 2011 (test)
Accuracy91.7
536
Fine-grained Image ClassificationStanford Cars (test)
Accuracy94.8
348
Fine-grained visual classificationFGVC-Aircraft (test)
Top-1 Acc80.59
287
Image ClassificationCUB-200-2011 (test)
Top-1 Acc91.7
276
Fine-grained Image ClassificationCUB-200 2011
Accuracy91.7
222
Fine-grained Image ClassificationStanford Cars
Accuracy94.8
206
Fine-grained visual classificationNABirds (test)
Top-1 Accuracy90.8
157
Fine-grained Image ClassificationStanford Dogs (test)
Accuracy92.3
117
Fine-grained Visual CategorizationStanford Cars (test)
Accuracy94.8
110
Image ClassificationStanford Dogs (test)
Top-1 Acc92.3
85
Showing 10 of 44 rows

Other info

Follow for update