Abstract
We introduce count-guided weakly supervised localization (C-WSL), an approach that uses per-class object count as a new form of supervision to improve weakly supervised localization (WSL). C-WSL uses a simple count-based region selection algorithm to select high-quality regions, each of which covers a single object instance during training, and improves existing WSL methods by training with the selected regions. To demonstrate the effectiveness of C-WSL, we integrate it into two WSL architectures and conduct extensive experiments on VOC2007 and VOC2012. Experimental results show that C-WSL leads to large improvements in WSL and that the proposed approach significantly outperforms the state-of-the-art methods. The results of annotation experiments on VOC2007 suggest that a modest extra time is needed to obtain per-class object counts compared to labeling only object categories in an image. Furthermore, we reduce the annotation time by more than 2$$\times$$ and 38$$\times$$ compared to center-click and bounding-box annotations.
Introduction: The "Grouping" Challenge in WSL
Weakly Supervised Localization (WSL) aims to train object detectors using only image-level labels (e.g., "there is a dog in this image") rather than expensive bounding boxes. While this significantly reduces human labor, it introduces a major "grouping" error. When multiple instances of the same category appear together—such as a herd of sheep—standard WSL models often learn to draw one giant box around the entire group instead of individual boxes for each animal. This occurs because the image-level label is satisfied as long as any part of the image is correctly classified; the model lacks the incentive to distinguish between one instance and several.
Methodology: Count-Guided Supervision
The core innovation of this work is Count-guided Weakly Supervised Localization (C-WSL). By providing the model with the number of objects in a class, we can regularize the localization process and force the detector to identify distinct instances.
The framework relies on the Count-based Region Selection (CRS) algorithm. Instead of selecting only the single highest-scoring region during training, CRS selects the top $C$ regions, where $C$ is the known object count for that class.
Count-based Region Selection (CRS)
To prevent the model from selecting $C$ nearly identical or overlapping boxes, C-WSL enforces a spatial constraint using an asymmetric overlap measure. This prevents a large "mega-box" from swallowing smaller, more accurate boxes that represent individual instances.
As shown in the figure above, regions are evaluated based on their confidence scores and their spatial relationships. "Exclusive" links (marked with red Xs) indicate regions that overlap too significantly to be considered distinct instances, while "compatible" links allow the selection of multiple distinct objects.
Integration and Efficiency
C-WSL is designed to be modular and can be integrated into existing WSL architectures such as ADR (Alternating Detector Refinement) and ODR (Online Detector Refinement).
A key insight of the paper is that count labels are remarkably "cheap" to produce. Humans possess the psychological ability of "subitizing"—instantly recognizing the number of objects in a small group (usually 1–4) without manual counting. The authors found that obtaining count labels takes only 0.9 seconds per image, making it 38x faster than drawing bounding boxes and 2x faster than "center-click" annotations.
Experimental Results
Evaluations on PASCAL VOC 2007 and 2012 demonstrate the effectiveness of C-WSL:
- Accuracy: On VOC2007, C-WSL achieved a 48.2% mAP, a significant improvement over the previous state-of-the-art (OICR) at 41.2%.
- Localization: The "Correct Localization" (CorLoc) metric saw substantial gains, particularly in crowded scenes. For the sheep category, CorLoc improved from 64.6% to 83.5%.
Limitations and Future Work
While C-WSL effectively addresses the grouping problem, it faces challenges when object counts are very high (e.g., a crowd of 50 people), as the subitizing advantage disappears. Additionally, while counts help determine the number of boxes, they do not necessarily help with the extent (size) of boxes for non-rigid objects like humans, where models still tend to focus on discriminative parts like faces. Future work may explore incorporating rough size estimates to further refine part-localization issues.
Summary updated