Abstract
This paper investigates the "point-and-count" (P&C) task, which requires the simultaneous localization and counting of multiple instances of an object class. By comparing two distinct pipelines—Count-then-Point (C2P) and Point-then-Count (P2C)—the authors reveal that while modern Convolutional Neural Networks (CNNs) are powerful classifiers, they struggle with scale variance and data bias when tasked with precise spatial localization. The study demonstrates that counting and pointing are complementary tasks that benefit from different architectural priorities.
Introduction
In computer vision, the tasks of identifying "what" is in an image (classification) and "where" it is located (localization) are often treated separately. Standard object detection relies on bounding boxes or pixel-level segmentation, yet humans possess a more fundamental ability: the capacity to glance at a scene and "point and count" instances almost effortlessly.
The authors identify a "what-and-where deadlock" in deep learning. As data moves deeper into a CNN, spatial resolution is typically sacrificed for semantic richness. This makes it difficult to pinpoint the exact locations of multiple instances of the same object. This research investigates whether it is more effective to estimate the count first to guide localization, or to find salient points first to derive the count.
Methods
The authors propose and compare two alternative architectures based on the VGG network architecture:
- Count-then-Point (C2P): This approach treats counting as a supervised learning problem. It extracts features from the last pooling and first two fully-connected layers of a VGG19 model. An SVM classifies the image into a count category (e.g., 0, 1, 2, 3, 4+). This predicted count then acts as a constraint for a Gaussian Mixture Model (GMM) applied to the activation heatmap of the final convolutional layer to identify specific locations.
- Point-then-Count (P2C): This approach utilizes a "class signature"—a dictionary of the most relevant feature maps for a specific category. By pruning the global heatmap using this signature, the system isolates activations relevant to the target class. An off-the-shelf clustering algorithm is applied to these activations; the number of resulting clusters determines the count, and the cluster centers serve as the "points."
Datasets and Evaluation
The study utilizes three primary datasets:
- SOS (Salient Object Subitizing): 6,900 images labeled with counts from 0 to 4+.
- MSO (Multiple Salient Objects): A subset of SOS providing bounding box annotations to evaluate pointing accuracy.
- MNIST-LEGO: A synthetic benchmark introduced by the authors where MNIST digits are "stacked" to create new object classes. This allows for controllable complexity, scale, and background noise to test specific failure modes like scale variance.
Key Results and Insights
The experiments revealed that C2P and P2C have complementary strengths. C2P is more robust when a single object dominates the scene, while P2C is superior at distinguishing multiple instances because its class-specific signatures filter out noise.
On the SOS dataset, the C2P model achieved a mean counting accuracy of 71%, outperforming previous state-of-the-art methods. However, while P2C struggled more with the absolute count (50% accuracy, largely due to "zero-object" cases), it was significantly more precise at localization. At a 0.5 overlap threshold, P2C achieved pointing accuracies between 0.92 and 0.97, consistently outperforming C2P.
Several critical challenges were identified:
- Scale Invariance: Both models struggle with scale; large objects are often over-counted (fragmented), while small objects are missed or blurred together.
- Data Bias: Pre-trained networks show a strong preference for classes seen frequently during training, sometimes ignoring central subjects in favor of familiar background objects.
- Parallel Suppression: When objects are close together, CNNs may only produce a strong heatmap for one, effectively "suppressing" the other due to rigid receptive fields.
Conclusion
The results suggest that the two methods are synergistic. A system that understands "what" it is looking for (P2C signature) but is constrained by a learned "how many" (C2P count) would likely achieve optimal performance. Future work will focus on moving toward unified, end-to-end architectures that handle counting and pointing in a single pass while addressing the persistent challenge of scale variance.
Summary updated