Part-guided Relational Transformers for Fine-grained Visual Recognition

Yifan Zhao, Jia Li, Xiaowu Chen, Yonghong Tian · DOI

Abstract

Fine-grained visual recognition (FGVR) requires identifying subtle inter-class differences, such as the specific beak shape of a bird or the headlight design of a car. Traditional methods often rely on costly manual part annotations or struggle with the local receptive fields of standard Convolutional Neural Networks (CNNs). This paper introduces the PArt-guided Relational Transformers (PART) framework, which automates part discovery through Class Activation Maps (CAMs) and models their spatial relationships using Transformers. By treating part-specific branches as regularization during training and discarding them during inference, PART achieves state-of-the-art performance on benchmarks like CUB-200-2011 while maintaining test-time efficiency.

Introduction

Fine-grained visual recognition is the task of distinguishing between highly similar subcategories. The challenge lies in the "subtle differences" where a single feature might be the only clue to an object's identity. Standard CNNs often fail here because they excel at local textures but lack the mechanism to perceive long-term spatial relationships across an entire object. Furthermore, many existing part-based models require labor-intensive human annotations (bounding boxes or masks) to guide the network.

The PART framework addresses these issues by creating a model that discovers discriminative parts autonomously and uses Transformers to understand the contextual relationship between these parts and the global image structure.

The PART Framework

The PART architecture integrates two main components into a standard CNN backbone, such as ResNet:

  1. Automatic Part Discovery Module: Instead of human labels, this module leverages Class Activation Maps (CAMs) to identify regions the network naturally prioritizes. To prevent the model from focusing on the same area, a ranking and suppression strategy (similar to Non-Maximum Suppression) is employed to ensure the discovery of diverse, non-overlapping semantic parts.
  2. Relational Transformation Module: Identified part features are processed through a Transformer architecture. Utilizing Positional Encoding and Multi-Head Self-Attention, the model constructs a "global-to-local" map, learning how specific parts (e.g., a wing) relate to others (e.g., the head) and the overall body.
Overview of the PART framework architecture, featuring automatic part discovery and relational transformer modules.

The Inference Trick

A significant innovation of PART is the asymmetry between training and testing. The part-specific branches act as a form of structural regularization during training. Once the model has learned these complex relationships, the auxiliary branches can be discarded for inference. This allows the final model to remain lightweight and fast in production while retaining the accuracy gains of the multi-branch training phase.

Experimental Results

The authors evaluated PART on three gold-standard benchmarks: CUB-200-2011 (birds), Stanford-Cars, and FGVC-Aircrafts.

As shown in the comparison below, PART achieved state-of-the-art (SOTA) results, particularly on the CUB-200-2011 dataset, where it reached 90.1% accuracy using a ResNet101 backbone, outperforming previous leaders like API-Net and PMG.

Comparison of PART against state-of-the-art part-based and feature-based methods on the CUB-200-2011 dataset.

Additional results include 95.3% accuracy on Stanford-Cars and 94.6% on FGVC-Aircrafts. Qualitative analysis via Grad-CAM visualizations confirms that PART consistently localizes multiple distinct semantic parts, whereas baseline models often focus on single, noisy areas.

Key Insights and Discussion

  • Transformers as CNN Enhancers: The research suggests that CNNs are effectively "restricted" Transformers. Adding a Transformer layer "unrestricts" the model, allowing it to capture the long-range dependencies necessary for fine-grained tasks.
  • Unsupervised Part Learning: The emergence of discriminative parts during training can be leveraged to eliminate the need for manual annotations, provided that diversity is explicitly enforced.
  • Part Saturation: Experiments indicated that discovering too many parts (e.g., exceeding 4) can lead to performance degradation as the model begins to incorporate background noise into its relational calculations.

Conclusion

PART demonstrates that combining the local feature extraction of CNNs with the global relational modeling of Transformers provides a powerful tool for fine-grained recognition. By automating part discovery and optimizing for inference efficiency, the framework offers a scalable solution for complex visual categorization tasks without the burden of manual part labeling.

Summary updated

BibTeX
@article{zhao2021part,
  author = {Yifan Zhao and Jia Li and Xiaowu Chen and Yonghong Tian},
  title = {{Part-guided Relational Transformers for Fine-grained Visual Recognition}},
  journal = {IEEE Trans. Image Process.},
  year = {2021},
  doi = {10.1109/tip.2021.3126490},
}
Figure