NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Attention-Based Dropout Layer for Weakly Supervised Object Localization

Junsuk Choe, Hyunjung Shim

Abstract

Weakly Supervised Object Localization (WSOL) is a challenging task that requires identifying object boundaries using only image-level labels. Conventional approaches like Class Activation Mapping (CAM) often suffer from a "discriminative part" bias, where the model focuses only on the most salient features of an object (e.g., the head of a bird). We introduce the Attention-based Dropout Layer (ADL), a lightweight, parameter-free module that encourages the model to capture the full extent of objects. By stochastically hiding discriminative regions and highlighting informative ones, ADL forces the network to explore less obvious features. Our method achieves state-of-the-art results on the CUB-200-2011 and ImageNet datasets.

Introduction

In WSOL, models are trained to localize objects without bounding box annotations. However, Convolutional Neural Networks (CNNs) tend to be "lazy," identifying only the minimum set of features necessary for classification. This leads to incomplete heatmaps that fail to cover the entire object body. While previous "adversarial erasing" techniques attempted to solve this, they often introduced significant computational overhead or required complex multi-stage training. ADL addresses these issues by providing a simple, parameter-free alternative that can be plugged into existing architectures.

The Attention-based Dropout Layer (ADL)

The proposed ADL is a single module that can be integrated into standard CNN architectures like ResNet or VGG with zero additional parameters.

The ADL architecture generates a self-attention map to create a drop mask and an importance map, which are stochastically applied during training.

The layer operates through three main phases:

  1. Self-Attention Generation: Feature maps from a convolutional layer undergo channel-wise average pooling to produce a 2D self-attention map of where the network is currently focusing.
  2. Component Creation:
    • Drop Mask: The attention map is thresholded to identify the most discriminative regions, which are then set to zero. This "hides" the primary features from the model during training.
  3. Importance Map: A sigmoid function is applied to the attention map to highlight all informative regions, aiding classification power.
  4. Stochastic Selection: During training, the module randomly selects between applying the Drop Mask or the Importance Map for each iteration.

By hiding the "best" features some of the time, the model is forced to learn "second-best" features (like the body or tail of a bird), leading to a more complete localization of the object. At test time, the ADL is deactivated, and the model uses its comprehensive knowledge to produce superior heatmaps.

Experimental Results

The researchers evaluated ADL on two primary benchmarks: CUB-200-2011 (a fine-grained bird dataset) and ImageNet-1k.

Quantitative Performance

On the CUB-200-2011 dataset, ADL achieved a Top-1 localization accuracy of 52.36% using a VGG backbone, a significant improvement over the vanilla CAM baseline (34.41%). On the much larger ImageNet dataset, ADL reached 48.71% Top-1 localization accuracy with an InceptionV3 backbone, outperforming more complex adversarial erasing techniques.

Qualitative Analysis

Visualizations demonstrate that ADL-trained models produce heatmaps that more accurately reflect the entire silhouette of the target object compared to standard CAM.

Qualitative comparison showing how ADL (bottom rows) produces more comprehensive heatmaps and accurate bounding boxes compared to baseline methods (top rows).

Discussion and Limitations

ADL successfully manages the trade-off between classification accuracy and localization precision. Unlike previous methods that require extra convolutional branches or multiple forward-backward passes, ADL adds negligible computational overhead.

One identified limitation is Background Co-occurrence. In cases where an object consistently appears with a specific background (e.g., a snowmobile is almost always in snow), hiding the object may lead the model to mistakenly localize the background as part of the class. Future research will focus on refining the Drop Mask to better distinguish between low-discriminative object parts and irrelevant background noise.

Conclusion

The Attention-based Dropout Layer provides a simple yet powerful solution for WSOL. Its parameter-free nature and ease of integration make it a highly efficient alternative to existing adversarial erasing techniques, setting a new standard for weakly supervised localization tasks.

Summary updated

BibTeX
@inproceedings{choe2019attention,
  author = {Junsuk Choe and Hyunjung Shim},
  title = {{Attention-Based Dropout Layer for Weakly Supervised Object Localization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00232},
}
Figure