Abstract
Weakly Supervised Object Localization (WSOL) aims to identify object boundaries using only image-level category labels. A persistent challenge in WSOL is the tendency of classification-driven models to focus exclusively on the most discriminative object parts, leading to incomplete localization maps. We present Structure-Preserving Activation (SPA), a two-stage framework designed to maintain the structural integrity of localized objects. SPA introduces a Restricted Activation Module (RAM) during training to discourage sparse activations and a Self-Correlation Map Generating (SCG) module during inference to reconstruct the full object geometry via high-order pixel correlations.
Introduction
The standard approach to WSOL utilizes Class Activation Mapping (CAM). However, because CAM is optimized for classification, the network often identifies only the minimum set of features necessary to distinguish a class—such as a bird's beak—while ignoring the rest of the body. This "lazy" behavior results in heatmaps that fail to capture the object's full extent. While previous methods have employed adversarial erasing to force the network to look at secondary features, these often result in fragmented or noisy localizations. SPA addresses this by preserving structural information throughout the learning and inference process.
Methodology
The SPA framework consists of two primary components: the Restricted Activation Module (RAM) and the Self-Correlation Map Generating (SCG) module.
Restricted Activation Module (RAM)
To prevent the network from converging on a single high-response point, RAM applies a sigmoid layer to the feature maps and introduces a Restricted Activation Loss ($L_{RA}$). This loss is guided by pseudo-masks generated from the variance of softmax outputs across all classes. The underlying intuition is that background pixels exhibit low variance across class predictions, whereas foreground object pixels show high variance, allowing for a coarse but effective separation of object and background without location labels.
Self-Correlation Map Generating (SCG)
During inference, the SCG module refines the initial activation maps. It leverages High-order Self-Correlation (HSC) to aggregate structural information. While 1st-order correlation identifies pixels with similar visual features, 2nd-order correlation captures pixels that share similar structural contexts. This allows the model to "fill in" non-discriminative parts (like a bird's wing) that are structurally related to the discriminative parts (like the head), even if their visual appearances differ significantly.
Results and Evaluation
SPA was evaluated on the ILSVRC (ImageNet) and CUB-200-2011 benchmarks. On ImageNet using a VGG16 backbone, SPA achieved a Top-1 Localization Error of 50.44%, a substantial improvement over the 57.20% error rate of the CAM baseline. On the fine-grained CUB-200-2011 dataset, SPA reached a Top-1 Loc Error of 46.41% with an InceptionV3 backbone.
Qualitative analysis confirms that SPA produces heatmaps that closely follow the actual geometric boundaries of objects, successfully including peripheral parts like legs, wings, and tails that are typically omitted by standard WSOL methods.
Conclusion
SPA effectively mitigates the structural loss inherent in classification-based localization. By combining restricted training activations with high-order structural correlations during inference, the method achieves state-of-the-art performance in weakly supervised settings. Future research will address the challenges of multi-instance localization and the computational demands of high-order correlation mapping.
Summary updated