Abstract
Weakly-supervised object localization aims to indicate the category as well as the scope of an object in an image given only the image-level labels. Most of the existing works are based on Class Activation Mapping (CAM) and endeavor to enlarge the discriminative area inside the activation map to perceive the whole object, yet ignore the co-occurrence confounder of the object and context (e.g., fish and water), which makes the model inspection hard to distinguish object boundaries. Besides, the use of CAM also brings a dilemma problem that the classification and localization always suffer from a performance gap and can not reach their highest accuracy simultaneously. In this paper, we propose a casual knowledge distillation method, dubbed KG-CI-CAM, to address these two under-explored issues in one go. More specifically, we tackle the co-occurrence context confounder problem via causal intervention (CI), which explores the causalities among image features, contexts, and categories to eliminate the biased object-context entanglement in the class activation maps. Based on the de-biased object feature, we additionally propose a multi-teacher causal distillation framework to balance the absorption of classification knowledge and localization knowledge during model training. Extensive experiments on several benchmarks demonstrate the effectiveness of KG-CI-CAM in learning clear object boundaries from confounding contexts and addressing the dilemma problem between classification and localization performance.
Introduction
Weakly-supervised Object Localization (WSOL) identifies object bounding boxes using only image-level category labels, avoiding the need for expensive pixel-level annotations. While Class Activation Mapping (CAM) is a standard tool for this task, it suffers from two major hurdles:
- Entangled Context: Models often confuse objects with their frequent backgrounds (e.g., boats and water), leading to activation maps that bleed into the surroundings and result in oversized bounding boxes.
- The Classification-Localization (C-L) Dilemma: There is an inherent performance trade-off between classification and localization. Classification networks use pooling to focus on high-level semantics, while localization requires fine-grained spatial details. Improving one often degrades the other, creating a performance gap where a model cannot be optimal at both tasks simultaneously.
Methodology
The proposed KG-CI-CAM (Knowledge-guided Causal Intervention CAM) framework addresses these issues through a two-stage approach:
Causal Intervention (CI-CAM)
The background context is treated as a "confounder" in a Structural Causal Model. To break spurious correlations, a Causal Context Pool stores contextual information across different classes. By applying "backdoor adjustment," the model is forced to observe how features change across various contexts, effectively de-biasing the object features and producing cleaner activation maps that respect object boundaries.
Multi-source Knowledge Guidance (KG)
To resolve the C-L dilemma, the framework employs two specialized "expert" models to guide the main student network:
- Classification Expert: Focuses on the most discriminative foreground features while suppressing background noise.
- Localization Expert: Uses a "Difference Loss" to ensure the foreground contains the entire object while the background contains as little as possible.
The student model is trained by simultaneously absorbing classification logits and localization activation maps from these experts, achieving a superior balance between the two tasks than a single-task network could.
Experimental Results
KG-CI-CAM was evaluated on the CUB-200-2011 and ILSVRC 2016 benchmarks. On CUB-200-2011 using a VGG16 backbone, the model achieved a Top-1 Localization accuracy of 73.0%, a significant improvement over the 65.6% baseline (NL-CCAM). It also improved Top-1 Classification to 79.2%.
Visualizations demonstrate that KG-CI-CAM produces tighter, more accurate bounding boxes that cover the entire object while successfully excluding confounding background elements like branches or water. The quantitative analysis shows that KG-CI-CAM consistently pushes the Pareto front of the C-L dilemma further than previous methods.
Conclusion
KG-CI-CAM effectively addresses the entangled context and C-L dilemma in WSOL by combining causal inference with multi-expert knowledge distillation. By formalizing background as a confounder and bridging the spatial information gap, the method sets a new state-of-the-art for weakly-supervised localization. Future work will investigate the integration of additional knowledge sources, such as text descriptions, to further refine object boundary detection.
Summary updated