Focus Longer to See Better: Recursively Refined Attention for Fine-Grained Image Classification

Prateek Shroff, Tianlong Chen, Yunchao Wei, Zhangyang Wang

Abstract

Deep Neural Network has shown great strides in the coarse-grained image classification task. It was in part due to its strong ability to extract discriminative feature representations from the images. However, the marginal visual difference between different classes in fine-grained images makes this very task harder. In this paper, we tried to focus on these marginal differences to extract more representative features. Similar to human vision, our network repetitively focuses on parts of images to spot small discriminative parts among the classes. Moreover, we show through interpretability techniques how our network focus changes from coarse to fine details. Through our experiments, we also show that a simple attention model can aggregate (weighted) these finer details to focus on the most dominant discriminative part of the image. Our network uses only image-level labels and does not need bounding box/part annotation information. Further, the simplicity of our network makes it an easy plug-n-play module. Apart from providing interpretability, our network boosts the performance (up to 2%) when compared to its baseline counterparts.

Introduction

Fine-grained image classification (FGIC) remains a significant challenge in computer vision. Unlike generic classification, which distinguishes between broad categories like "bird" and "car," FGIC requires identifying subtle differences between closely related sub-categories, such as specific bird species or dog breeds. The primary hurdles are small inter-class variations and large intra-class variations caused by pose, lighting, or occlusion. While traditional methods rely on labor-intensive part-level annotations (e.g., bounding boxes for beaks or wings), this research proposes a weakly supervised approach that learns to "look longer" at image patches to discover discriminative features automatically.

Proposed Method: Recursively Refined Attention

The authors introduce a two-stream architecture designed to capture both global context and localized fine-grained details.

Two-Stream Architecture

  1. Global Stream: A standard CNN backbone (VGG19) processes the entire image to maintain a global perspective.
  2. Local Stream: This stream focuses on a specific image patch extracted via weakly supervised methods. It uses a recursive refinement process where a CNN-extracted feature map is fed into a set of stacked LSTMs for $T$ time steps (typically $T=10$). The recurrent nature of the LSTM allows the model to iteratively refine its focus.
The two-stream architecture featuring the Global Stream and the recursive Local Stream with stacked LSTMs and an Attention Module.

Weighted Attention

Rather than simply summing features, an attention module aggregates the outputs from all $T$ time steps. This mechanism learns to weight the most discriminative "refined" steps, allowing the model to ignore generic early features and focus on the most useful details for classification.

Experimental Results and Discussion

The model was evaluated on two benchmark datasets: CUB200-2011 (bird species) and Stanford Dogs (dog breeds). The addition of the Local Stream provided a consistent boost, improving accuracy on CUB200-2011 from 77.8% to 79.6% (+1.8%) and on Stanford Dogs from 77.2% to 78.7% (+1.5%).

Coarse-to-Fine Visualization

Using Grad-CAM interpretability techniques, the authors demonstrate that the model's attention evolves over time. At $T=1$, the attention is broad and covers general areas. By $T=10$, the focus has narrowed significantly to highly specific discriminative points, such as the tip of a bird's beak or the unique shape of a dog's ear.

Visualization of the attention refinement process from T=1 to T=10, showing the transition from coarse to fine-grained focus on a dog's head.

Key Insights

  • Temporal Refinement: LSTMs, typically used for sequences, are effectively repurposed here to "think longer" about static image patches.
  • The "Sweet Spot": Performance peaks at approximately 10 time steps. Looking "too long" (e.g., $T=25$) leads to diminishing returns and potential overfitting on hyper-specific details that may not generalize well.
  • Attention vs. Summation: Ablation studies showed that simple feature summation across time steps actually hurts performance, highlighting the necessity of the attention module to select relevant features.

Conclusion

This work presents a simple yet effective "plug-and-play" module for fine-grained classification. By mimicking the human visual system's ability to focus on details over time, the network achieves state-of-the-art performance improvements without requiring expensive manual part annotations. Future research could explore integrating more modern backbones like Vision Transformers and automating the initial patch selection process within the recursive loop.

Summary updated

BibTeX
@inproceedings{shroff2020focus,
  author = {Prateek Shroff and Tianlong Chen and Yunchao Wei and Zhangyang Wang},
  title = {{Focus Longer to See Better: Recursively Refined Attention for Fine-Grained Image Classification}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00442},
}
Figure