Abstract
Weakly Supervised Object Localization (WSOL) methods generate both classification and localization results by learning from only image category labels. Previous methods usually utilize class activation map (CAM) to obtain target object regions. However, most of them only focus on improving foreground object parts in CAM, but ignore the important effect of its background contents. In this paper, we propose a confidence segmentation (ConfSeg) module that builds confidence score for each pixel in CAM without introducing additional hyper-parameters. The generated sample-specific confidence mask is able to indicate the extent of determination for each pixel in CAM, and further supervises additional CAM extended from internal feature maps. Besides, we introduce Co-supervised Augmentation (CoAug) module to capture feature-level representation for foreground and background parts in CAM separately. Then a metric loss is applied at batch sample level to augment distinguish ability of our model, which helps a lot to localize more related object parts. Our final model, CSoA, combines the two modules and achieves superior performance, e.g. $37.69\%$ and $48.81\%$ Top-1 localization error on CUB-200 and ILSVRC datasets, respectively, which outperforms all previous methods and becomes the new state-of-the-art.
Introduction
Weakly Supervised Object Localization (WSOL) is a challenging task that aims to locate objects within an image using only image-level labels, avoiding the high cost of manual bounding box annotations. The standard approach involves using Class Activation Maps (CAMs) to identify regions that contribute most to classification. However, CAMs are inherently "greedy," often focusing only on the most discriminative parts of an object (e.g., a bird's head) rather than its full extent. Furthermore, existing methods frequently neglect the background, missing critical contextual information that could help refine object boundaries.
Methodology: The CSoA Framework
To address these limitations, we propose the CSoA (Confidence Segmentation and Co-supervised Augmentation) framework. This approach integrates two novel modules designed to regulate CAMs through both internal pixel-level confidence and external batch-level feature relationships.
Confidence Segmentation (ConfSeg)
Unlike prior methods that rely on fixed, global thresholds to separate foreground from background, the ConfSeg module generates a sample-specific confidence mask. By comparing CAMs generated at different network layers, it calculates the distance of each pixel from the mean activation value. This identifies pixels the model is "confident" about—either definitely foreground or definitely background—and uses these high-confidence regions to supervise and refine the localization maps in an auto-adaptive manner.
Co-supervised Augmentation (CoAug)
The CoAug module treats localization as a feature-learning problem using metric learning. It operates at the batch level to ensure that:
- Foreground features of the same category across different images are similar.
- Foreground and background features within the same image are distinct.
- Foregrounds of different categories are well-separated in the feature space.
This multi-level supervision forces the model to learn a more robust representation of the entire object, capturing its full body rather than just isolated features.
Experimental Results
We evaluated CSoA on two standard benchmarks: CUB-200-2011 (fine-grained bird species) and ILSVRC (ImageNet).
Performance Benchmarks
CSoA achieved state-of-the-art results on both datasets:
- CUB-200: Achieved a 37.69% Top-1 localization error, a significant improvement over the VGGnet baseline (53.42%).
- ILSVRC: Achieved a 48.81% Top-1 localization error.
Importantly, CSoA maintains high classification integrity. On CUB-200, it reduced classification error to 21.41% while simultaneously improving localization accuracy, demonstrating that better localization can support better classification.
Discussion and Insights
The success of CSoA highlights several key principles for WSOL:
- Background as a Constraint: Explicitly modeling background features prevents foreground regions from over-expanding into non-object areas.
- Adaptivity: Dynamic, sample-specific thresholds (ConfSeg) are far more effective than fixed thresholds for handling diverse image complexities.
- Cross-Sample Collaboration: Learning shared features across a batch (CoAug) helps the model understand that an object is a collection of related parts rather than a single discriminative point.
Limitations and Future Work
While CSoA advances the state-of-the-art, the final bounding box extraction still depends on a pre-defined hyperparameter ($\theta$). Future research could focus on making this final step fully learnable or end-to-end. Additionally, exploring the module's effectiveness across different backbone architectures beyond VGGNet and GoogLeNet remains an area for further investigation.
Summary updated