The application of two-level attention models in deep convolutional neural network for fine-grained image classification

Tianjun Xiao, Yichong Xu, Kuiyuan Yang, Jiaxing Zhang, Yuxin Peng, Zheng Zhang

Introduction

Fine-grained image classification involves distinguishing between highly similar sub-categories, such as specific bird species or dog breeds. This task is notoriously difficult due to two primary factors: small inter-class variance, where different species look nearly identical, and large intra-class variance, where individuals of the same species appear different due to changes in pose, lighting, or rotation.

A Caspian Tern in flight, characterized by its large red bill and black cap.

Traditionally, overcoming these challenges required "strong supervision," involving expensive manual annotations like bounding boxes and part landmarks. This paper introduces a two-level attention mechanism that achieves state-of-the-art performance using only "weak supervision"—image-level category labels—by automatically identifying both the whole object and its most discriminative parts.

Methodology: A Two-Level Attention Pipeline

The proposed model mimics human visual attention through a multi-stage pipeline designed to prune noise and focus on relevant features:

  1. Bottom-Up Proposals: The system employs Selective Search to generate thousands of candidate image patches. While many are background noise, this ensures a high recall rate for the target object.
  2. Object-Level Attention (FilterNet): A CNN named FilterNet evaluates these patches, selecting only those likely to contain the general category (e.g., "bird"). These filtered patches are then used to train a DomainNet, a CNN specialized for the specific domain.
  3. Part-Level Attention: The authors observed that internal filters in the DomainNet naturally specialize in specific parts (e.g., heads or wings). By applying spectral clustering to the weights of convolutional layers (specifically conv4), the model groups these filters into automated "part detectors."
  4. Fusion Pipeline: The final classification combines two streams: an object-level classifier focusing on FilterNet-selected patches and a part-level classifier (SVM) extracting features from regions identified by the automated part detectors.

Experimental Results

The model was evaluated on the ILSVRC2012 (Dog and Bird subsets) and the CUB200-2011 (Caltech-UCSD Birds) benchmarks. Notably, the authors avoided using the manual bounding boxes provided in CUB200-2011 to test the efficacy of their weakly supervised approach.

  • Significant Error Reduction: On the ILSVRC dog dataset, the error rate dropped from 40.1% (standard CNN) to 28.1%. On the bird dataset, it fell from 21.1% to 11.0%.
  • State-of-the-Art Performance: Using the VGGNet architecture, the model achieved nearly 78% accuracy on CUB200-2011.
  • Beating Strong Supervision: Remarkably, the model outperformed several existing methods that relied on manual spatial data, proving that automated attention can be more effective than rigid human-defined boxes.

Key Insights and Discussion

A primary finding of this research is the emergence of "part detectors" within deep networks. Without explicit instruction, neurons naturally evolve to detect discriminative features like a bird's head because they are essential for the classification task. Furthermore, by using "Filtering as Attention," the model discards background noise early, allowing the DomainNet to focus entirely on subtle nuances. This demonstrates that weakly supervised pipelines are highly competitive and scalable to new domains where detailed labeling is impractical.

Limitations and Future Work

Despite its success, the model faces challenges with part ambiguity, as some spectral clusters remain noisy or capture non-discriminative patterns. Future research could focus on a more integrated "end-to-end" training process where object and part levels reinforce each other. Additionally, the computational cost of processing thousands of initial patches suggests a need for more efficient region proposal mechanisms in future iterations.

Summary updated

BibTeX
@inproceedings{xiao2015application,
  author = {Tianjun Xiao and Yichong Xu and Kuiyuan Yang and Jiaxing Zhang and Yuxin Peng and Zheng Zhang},
  title = {{The application of two-level attention models in deep convolutional neural network for fine-grained image classification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  doi = {10.1109/cvpr.2015.7298685},
}
Figure