Weakly Supervised Local Attention Network for Fine-Grained Visual Classification

Tao Hu, Honggang Qi, Cong Huang, Qingming Huang, Yan Lu, Jizheng Xu

Introduction

Fine-Grained Visual Classification (FGVC) is a specialized computer vision task focused on distinguishing between highly similar sub-categories, such as identifying specific bird species or car models. This task is inherently difficult due to high intra-class variance (e.g., a bird in different flight poses) and low inter-class variance (e.g., two different species sharing nearly identical plumage patterns except for subtle details).

Traditional approaches to FGVC often rely on expensive, expert-level human annotations to label specific object parts. Weakly supervised methods, which use only image-level category labels, often suffer from "lazy" learning—focusing exclusively on the single most discriminative feature (like a bird's head) while ignoring other critical parts. The Weakly Supervised Bilinear Attention Network (WS-BAN) addresses these challenges by learning to attend to a diverse array of object parts without requiring part-level labels.

Methodology

The WS-BAN architecture introduces a robust, part-aware framework through three primary innovations: Bilinear Attention Pooling, Attention Regularization, and Attention Dropout.

1. Bilinear Attention Pooling (BAP)

While standard bilinear pooling captures interactions between two feature streams, WS-BAN repurposes this mechanism to integrate "what" and "where" information. The network generates $M$ distinct attention maps, each representing a specific visual part. These maps are element-wise multiplied with the global feature maps to extract part-specific feature vectors. These vectors are then concatenated to form a comprehensive feature matrix for classification.

2. Attention Regularization and Dropout

To ensure that attention maps remain semantically consistent across different images (e.g., ensuring a specific map always focuses on the "wing"), the authors employ a regularization loss. This encourages part features to cluster around learned "part centers."

Furthermore, to prevent the model from over-relying on a few dominant features, Attention Dropout is introduced. By randomly deactivating specific attention maps during training, the network is forced to discover and utilize less obvious but still discriminative parts of the object.

3. Two-Stage Refinement

As illustrated in the full pipeline, the model utilizes its learned attention maps to perform implicit object localization. By averaging these maps, the system generates an object mask to locate and crop the subject. This cropped image is then processed in a second stage to refine the final prediction.

The full WS-BAN pipeline, illustrating the two-stage refinement process and the integration of Bilinear Attention Pooling (BAP).

Experimental Results

The WS-BAN model was evaluated on three benchmark datasets: CUB-200-2011 (birds), Stanford Cars, and FGVC-Aircraft. The model achieved state-of-the-art (SOTA) performance across the board:

  • CUB-200-2011: 88.8% accuracy (surpassing previous SOTA).
  • Stanford Cars: 93.6% accuracy.
  • FGVC-Aircraft: 92.3% accuracy.

Beyond classification, the model demonstrated exceptional localization capabilities. On the CUB dataset, WS-BAN reduced localization error to 28.2%, nearly halving the 54.1% error rate of previous weakly supervised methods like VGGnet-ACoL.

Key Insights

The Power of Granularity

One of the most significant findings is that increasing the number of attention maps (up to 32 or 64) consistently improves performance. This suggests that a more granular representation of object parts allows the model to capture a richer set of discriminative features.

Visualizing Attention Diversity

Qualitative analysis confirms that the combination of regularization and dropout leads to highly diverse attention maps. Instead of redundant maps focusing on the same area, the model successfully tracks various anatomical parts of the subject, as shown in the visualization below.

Visualization of diverse attention maps ($a_1$ through $a_8$) generated by WS-BAN, showing accurate tracking of different anatomical parts.

Conclusion

WS-BAN represents a significant step forward in weakly supervised fine-grained classification. By combining Bilinear Attention Pooling with strategic regularization and dropout, the model achieves superior accuracy and localization without the need for manual part annotations. Future work may explore the application of BAP to more complex tasks such as semantic segmentation and object detection.

Summary updated

BibTeX
@misc{hu2018weakly,
  author = {Tao Hu and Honggang Qi and Cong Huang and Qingming Huang and Yan Lu and Jizheng Xu},
  title = {{Weakly Supervised Local Attention Network for Fine-Grained Visual Classification}},
  year = {2018},
  eprint = {1808.02152},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.02152},
}
Figure