Abstract
Weakly supervised object localization (WSOL) aims to localize objects using only image-level labels. Recently a new paradigm has emerged by generating a foreground prediction map (FPM) to achieve localization task. Existing FPM-based methods use cross-entropy (CE) to evaluate the foreground prediction map and to guide the learning of generator. We argue for using activation value to achieve more efficient learning. It is based on the experimental observation that, for a trained network, CE converges to zero when the foreground mask covers only part of the object region. While activation value increases until the mask expands to the object boundary, which indicates that more object areas can be learned by using activation value. In this paper, we propose a Background Activation Suppression (BAS) method. Specifically, an Activation Map Constraint module (AMC) is designed to facilitate the learning of generator by suppressing the background activation value. Meanwhile, by using the foreground region guidance and the area constraint, BAS can learn the whole region of the object. In the inference phase, we consider the prediction maps of different categories together to obtain the final localization results. Extensive experiments show that BAS achieves significant and consistent improvement over the baseline methods on the CUB-200-2011 and ILSVRC datasets.
Introduction
Weakly Supervised Object Localization (WSOL) is the challenging task of identifying the spatial extent of an object within an image when only image-level labels are available during training. The conventional approach, Class Activation Mapping (CAM), often suffers from a "greedy" tendency, where the model focuses solely on the most discriminative parts of an object—such as the head of a bird—rather than its entire body.
Recent advancements have attempted to solve this by generating Foreground Prediction Maps (FPM). However, these methods typically rely on Cross-Entropy (CE) loss to guide the generator. This paper identifies a fundamental "mismatch" in using CE for localization: the loss often drops to zero as soon as the model identifies any part of the object, providing no further incentive to explore the object's full boundaries. To address this, we propose Background Activation Suppression (BAS), which leverages activation values to guide the model toward more complete object coverage.
Methodology
The core of the BAS method is the Activation Map Constraint (AMC) module. This module shifts the training objective from simple classification to a more nuanced evaluation of the foreground mask quality through four distinct loss functions:
- Background Activation Suppression ($L_{BAS}$): This innovation calculates the ratio of activation in the predicted background relative to the total image activation. By minimizing this ratio, the model is forced to shift all relevant activations into the foreground mask.
- Area Constraint ($L_{AC}$): To prevent the model from collapsing the foreground mask into a tiny, high-activation point, this loss encourages the background area to be as large as possible while still maintaining suppressed activation.
- Foreground Region Guidance ($L_{FRG}$): This utilizes high-level semantic features to ensure the predicted foreground mask remains aligned with the general region of interest.
- Classification Loss ($L_{CLS}$): A standard cross-entropy signal ensures the model maintains its ability to correctly categorize the object.
During the Inference Phase, BAS employs a Top-k strategy. Rather than relying on a single top category, it averages the prediction maps of the most likely categories, resulting in a more robust and spatially connected localization map.
Experimental Results
BAS was evaluated on two major benchmarks: CUB-200-2011 (fine-grained bird species) and ILSVRC (large-scale ImageNet). The method demonstrated state-of-the-art (SOTA) performance across multiple architectures, including VGG16, ResNet50, and InceptionV3.
- Quantitative Performance: On CUB-200-2011 with a VGG16 backbone, BAS achieved 71.33% Top-1 Localization accuracy, a significant improvement over the 41.06% achieved by the original CAM. On the massive ILSVRC dataset, BAS reached 52.96% Top-1 Loc, outperforming complex alternatives like ORNet.
- Qualitative Sharpness: Visually, BAS produces significantly more complete localization maps. While CAM often highlights only small regions, BAS maps clearly outline the entire silhouette of the target object.
Discussion and Conclusion
The primary insight of this work is that activation suppression is a more effective guide for localization than cross-entropy maximization. By focusing on what should not be active in the background, the model naturally learns the full extent of the foreground object.
Despite its success, BAS faces challenges with Object Scale, particularly when objects are very small relative to the background. Future work may involve a two-stage approach, where an initial localization pass informs a subsequent high-resolution crop for more detailed boundary refinement. Overall, BAS provides a simple yet powerful framework for improving the fidelity of weakly supervised localization.
Summary updated