Learning Common Rationale to Improve Self-Supervised Representation for Fine-Grained Visual Recognition Problems

Yangyang Shu, Anton van den Hengel, Lingqiao Liu

Abstract

Standard self-supervised learning (SSL) often suffers from a "coarse-grained bias," where models focus on easy-to-distinguish background features rather than the subtle details necessary for fine-grained visual recognition (FGVR). This paper introduces a "GradCAM Fitting Branch" (GFB) designed to identify the "common rationale"—the most frequently occurring discriminative parts of an object—across a dataset. By integrating this auxiliary branch into existing SSL pipelines and using its output as a spatial attention mask during inference, the proposed method significantly improves performance on FGVR tasks without requiring human-labeled part annotations.

Introduction

Self-supervised learning (SSL) has enabled models to learn powerful representations from vast amounts of unlabeled data. However, in contrastive learning frameworks like MoCo, models often minimize loss by identifying superficial differences, such as background textures or lighting, rather than the intrinsic features of the objects themselves. This "coarse-grained bias" is particularly detrimental for Fine-Grained Visual Recognition (FGVR), where distinguishing between similar species or models requires focusing on specific parts like beaks, wings, or wheels.

Visual comparison of attention maps showing the coarse-grained bias in standard SSL (MoCo v2, VICReg) vs. the focused attention of the proposed method (Ours).

Methods

The authors propose a "fitting and masking" procedure that utilizes GradCAM as a teacher to guide an auxiliary branch, ensuring the model focuses on the most relevant object parts.

  1. GradCAM as a Teacher: GradCAM maps are generated to visualize the current focus of the SSL objective. These maps serve as a noisy target for the auxiliary branch.
  2. GradCAM Fitting Branch (GFB): A small branch consisting of a $1 \\times 1$ convolution with $K$ filters and a max-out operation is added to the encoder.
  3. Common Rationale Discovery: By restricting the GFB's capacity (using a simple architecture), it is forced to ignore noisy, image-specific details and instead capture "common rationales"—consistent patterns like heads or wings that appear across the entire dataset. This mimics a form of spatial regularization.
  4. Inference via Weighted Pooling: During training, the GFB learns the attention mask as a side-task. At test time, the GFB generates a spatial attention mask used for weighted average pooling, focusing the final feature representation on the identified rationales rather than the whole image.
Overview of the proposed architecture, illustrating the MoCo contrastive loss pipeline, the GradCAM Fitting Branch (GFB), and the weighted average pooling used during inference.

Results and Discussion

The method was evaluated on several benchmark fine-grained datasets, including CUB-200-2011 (birds), Stanford Cars, FGVC Aircraft, and iNaturalist 2019.

Key findings include:

  • Performance Gains: On the CUB-200-2011 dataset, the method achieved 71.31% Top-1 accuracy (linear probing), a 3.01% improvement over the MoCo v2 baseline. Image retrieval performance saw an even larger jump, reaching 49.69% rank-1 accuracy (a 6.97% increase).
  • Robustness: When labels are scarce (e.g., using only 20% of training labels), the proposed method's advantage over standard SSL becomes more pronounced, demonstrating that it learns more discriminative and generalizable features.
  • Capacity Constraint: The researchers found that limiting the GFB's fitting capacity is crucial; if the branch is too powerful, it overfits to the noisy GradCAM maps and fails to discover the common rationale.

Conclusion

The "common rationale" approach effectively mitigates the coarse-grained bias in SSL for fine-grained tasks by forcing the model to focus on consistent, discriminative object parts. While highly effective for structured objects like birds and cars, its impact on general, coarse-grained datasets is less dramatic. Future work will explore extending this mechanism to Vision Transformers and broader visual recognition domains.

Summary updated

BibTeX
@inproceedings{shu2023learning,
  author = {Yangyang Shu and Anton van den Hengel and Lingqiao Liu},
  title = {{Learning Common Rationale to Improve Self-Supervised Representation for Fine-Grained Visual Recognition Problems}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure