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 Challenge of Weakly Supervised Localization
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, hand-drawn bounding boxes. While this drastically reduces human labor, it introduces a significant performance gap.
A primary failure mode in WSL is instance grouping. Because the model only knows a category is present, it often learns to associate high confidence with a single "loose" box that encompasses multiple instances of the same object. Standard WSL methods typically pick the single top-scoring region as a "pseudo-ground-truth" for refinement, which reinforces this error.
Count-guided Weakly Supervised Localization (C-WSL)
The authors propose Count-based Region Selection (CRS), a greedy algorithm designed to identify $C$ high-quality, non-overlapping regions, where $C$ is the known object count for a class. This approach leverages the "subitizing" advantage: humans can determine the number of objects in a scene almost instantly if the count is small (typically 1-4), making count labels nearly as "free" as simple category labels.
Methodology
The CRS algorithm works by representing object proposals as nodes in a graph. An edge exists between two nodes if their spatial overlap is below a certain threshold. The algorithm then seeks a subset of $C$ regions that maximizes the total confidence score while ensuring all selected regions are compatible (non-overlapping). To prevent picking sub-parts of a larger object, an asymmetric area-of-overlap measure is used.
CRS is integrated into two common WSL architectures:
- Alternating Detector Refinement (ADR): An iterative process where the model generates pseudo-labels using CRS and then retrains itself.
- Online Detector Refinement (ODR): An efficient end-to-end framework where multiple refinement stages share a backbone and are trained simultaneously.
Key Results and Insights
Extensive experiments on PASCAL VOC 2007 and 2012 demonstrate the effectiveness of C-WSL:
- State-of-the-Art Performance: On VOC 2007, the C-WSL:ODR+FRCNN variant achieved 48.2% mAP, a significant jump over the baseline OICR (41.2%).
- Efficiency: Count annotation is roughly 38x faster than drawing bounding boxes and 2x-4x faster than providing center-clicks, yet it provides enough spatial constraint to significantly close the gap with strongly supervised models.
- Impact on Multi-Object Classes: The benefit is most pronounced in categories that frequently appear in groups, such as "bottle," "chair," and "sheep."
Limitations and Future Work
Despite improvements, certain categories like "person" remain challenging due to high appearance variation, where detectors still tend to focus on discriminative parts (like heads). Future work may involve estimating object size to further filter out small parts and exploring performance in extremely crowded scenes with counts exceeding the current cap of 15.
Summary updated