Fine-Grained Attention for Weakly Supervised Object Localization

Junghyo Sohn, Eunjin Jeon, Wonsik Jung, Eunsong Kang, Heung-Il SukarXiv 2021

Addressing the "Discriminative Part" Bias in WSOL

Weakly Supervised Object Localization (WSOL) aims to localize objects using only image-level class labels, avoiding the high cost of manual bounding box annotations. However, standard models trained with image-level labels often suffer from "discriminative part" bias. For instance, a model might learn to identify a bird solely by its beak, resulting in a localized bounding box that misses the wings and tail. While previous methods attempted to solve this by randomly "erasing" parts of the image to force the network to look elsewhere, these approaches often require sensitive hyperparameters and can disrupt the learning process.

The Residual Fine-Grained Attention (RFGA) Module

To overcome these limitations, researchers have introduced the Residual Fine-Grained Attention (RFGA) module. This module is designed to capture the full extent of an object by generating high-resolution, element-wise attention maps without the heavy computational burden of 3D convolutions.

Architecture of the Residual Fine-Grained Attention (RFGA) module, illustrating the triple-view attention generation and the residual feature calibration.

The RFGA module operates in three distinct stages:

  1. Triple-view Attentions: The 3D feature tensor is compressed into three 1D vectors representing the Channel ($z_c$), Height ($z_h$), and Width ($z_w$) views. Local interactions are captured using efficient 1D convolutions.
  2. Attention Expansion: These views are combined via an outer sum to produce a 3D attention map ($M$) of the same dimensions as the original feature map. This allows for "fine-grained" attention where every single element in the feature map receives a unique weight.
  3. Feature Calibration (The Residual Trick): The module employs a residual connection: $\hat{X} = X \oplus (X \odot M)$. This mathematical structure incentivizes the attention map to "excite" regions with low initial activation, effectively forcing the network to pay attention to the less obvious, non-discriminative parts of the object's body.

Evaluation on Fine-Grained Benchmarks

The RFGA method was evaluated on three challenging fine-grained datasets where inter-class differences are subtle:

  • CUB-200-2011: 200 bird categories.
  • FGVC Aircraft: 100 aircraft categories.
  • Stanford Dogs: 102 dog breeds.

Results and Qualitative Analysis

RFGA achieved state-of-the-art performance across all benchmarks, significantly improving both Maximum Bounding Box Accuracy (MaxBoxAcc) and Mean Intersection over Union (mIoU). On the CUB-200-2011 dataset, RFGA reached a MaxBoxAcc of 32.55%, a substantial improvement over the standard Class Activation Map (CAM) baseline of 25.71%. Similar gains were observed in Aircraft (54.60% vs 40.21%) and Dogs (54.42% vs 49.35%).

Qualitative comparison of RFGA against state-of-the-art methods across the CUB, Aircraft, and Dogs datasets.

Qualitatively, RFGA produces much "fuller" attention maps. As shown in the comparisons above, while baseline methods like CAM or SENet often focus on small regions (like a bird's head or an airplane's engine), RFGA successfully highlights the entire silhouette of the object, leading to much more accurate bounding boxes.

Conclusion and Future Work

By utilizing a triple-view outer sum and a residual connection, RFGA provides a robust, hyperparameter-free way to mitigate discriminative part bias in WSOL. While the method excels at single-object localization, future research will focus on extending this fine-grained attention mechanism to multi-object scenarios and further narrowing the gap between localization and classification performance.

Summary updated

BibTeX
@misc{sohn2021fine,
  author = {Junghyo Sohn and Eunjin Jeon and Wonsik Jung and Eunsong Kang and Heung-Il Suk},
  title = {{Fine-Grained Attention for Weakly Supervised Object Localization}},
  year = {2021},
  eprint = {2104.04952},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.04952},
}
Figure