Abstract
Weakly Supervised Object Localization (WSOL) aims to identify object locations using only image-level labels, avoiding the high cost of bounding box annotations. However, standard approaches like Class Activation Mapping (CAM) often focus solely on the most discriminative parts of an object (e.g., a bird's head). This paper introduces the Dual-attention Guided Dropblock Module (DGDM), a lightweight, plug-and-play component that improves localization by intelligently "hiding" obvious object parts during training. By utilizing both channel and spatial attention, DGDM forces the network to recognize the entire object while preventing attention from bleeding into the background. The module achieves state-of-the-art results on major benchmarks like CUB-200-2011 and Stanford Cars with zero additional parameters.
Introduction
The core challenge in WSOL is the "most discriminative part" problem. If a neural network can classify a bird species just by its beak, it lacks the incentive to learn the wings or tail, leading to incomplete localization. Previous "adversarial erasing" methods attempted to solve this by hiding active pixels, but they often failed because neighboring pixels in convolutional layers are highly correlated, allowing the network to "cheat." Furthermore, these methods frequently caused "attention misdirection," where the model's focus wandered into the background, resulting in oversized bounding boxes.
Methodology
The proposed DGDM addresses these issues through two primary mechanisms:
- Channel Attention Guided Dropout (CAGD): This component models interdependencies between feature channels. It ranks channels by importance and applies dropout to the most dominant ones, preventing the model from over-relying on a few specific feature detectors.
- Spatial Attention Guided Dropblock (SAGD): Instead of erasing random pixels, SAGD erases contiguous regions (blocks). It uses a self-attention map to identify both the most discriminative foreground parts and the background. By masking these specific regions, it forces the network to seek out subtle object features while simultaneously anchoring the focus away from the background.
DGDM is applied stochastically during training, alternating between showing the model an "importance map" (highlighting the object) and a "drop mask" (hiding the object) to balance classification accuracy with localization precision.
Key Insights and Results
A critical insight of this work is that contiguous erasing is superior to pixel-based dropout. Because convolutional layers have high spatial correlation, hiding a single pixel is ineffective if adjacent pixels contain redundant information. Hiding a block forces the network to find entirely different visual patterns.
As shown in the figure above, the module effectively captures the full extent of the object (red boxes) compared to the ground truth (green boxes) by generating comprehensive attention maps.
Performance Benchmarks
The researchers evaluated DGDM on three major datasets using VGG, ResNet, and InceptionV3 backbones:
- CUB-200-2011: Achieved 59.40% Top-1 Localization accuracy with ResNet50, significantly outperforming the previous state-of-the-art (DANet at 51.10%).
- Stanford Cars: Reached 90.25% Top-1 Loc on ResNet50, surpassing the popular ADL (Attention-based Dropout Layer) method.
- Efficiency: The module adds zero extra parameters and negligible computational overhead, making it highly practical for real-world deployment.
Conclusion and Future Work
DGDM effectively manages the trade-off between classification and localization by forcing models to look beyond the most obvious features. While it sets new benchmarks, future work could explore its sensitivity to hyperparameters like block_size and its performance in complex scenes with multiple overlapping objects. Additionally, adapting this dual-attention strategy for Vision Transformers (ViTs) represents a promising next step as the field moves toward non-convolutional architectures.
Summary updated