Zero-shot Object Counting with Good Exemplars
Huilin Zhu, Jingling Yuan, Zhengwei Yang, Yu Guo, Zheng Wang, Xian Zhong, Shengfeng He
TL;DR
This work tackles zero-shot object counting by addressing exemplar quality, a key bottleneck for scalable performance across unseen classes. It introduces VA-Count, a framework consisting of an Exemplar Enhancement Module (EEM) and a Noise Suppression Module (NSM) that jointly refine exemplar discovery and mitigate misidentifications, leveraging Vision-Language Pretaining models such as Grounding DINO for cross-modal alignment. The method defines density maps $D^p$, $D^n$, and $D^g$ and optimizes a combination of a contrastive loss $\mathcal{L}_C$ and a density regression loss $\mathcal{L}_D$ to improve counting accuracy, while enforcing single-object exemplars via a binary classifier $\delta(\cdot)$. Empirical results on FSC-147 and CARPK show state-of-the-art or competitive performance in zero-shot settings, with ablations confirming the contributions of single-object filtering, exemplar filtering, and contrastive density learning. Overall, VA-Count demonstrates strong generalization and scalability for zero-shot counting across diverse classes, highlighting the potential of Vision-Language models to bridge textual targets and visual content in counting tasks.
Abstract
Zero-shot object counting (ZOC) aims to enumerate objects in images using only the names of object classes during testing, without the need for manual annotations. However, a critical challenge in current ZOC methods lies in their inability to identify high-quality exemplars effectively. This deficiency hampers scalability across diverse classes and undermines the development of strong visual associations between the identified classes and image content. To this end, we propose the Visual Association-based Zero-shot Object Counting (VA-Count) framework. VA-Count consists of an Exemplar Enhancement Module (EEM) and a Noise Suppression Module (NSM) that synergistically refine the process of class exemplar identification while minimizing the consequences of incorrect object identification. The EEM utilizes advanced vision-language pretaining models to discover potential exemplars, ensuring the framework's adaptability to various classes. Meanwhile, the NSM employs contrastive learning to differentiate between optimal and suboptimal exemplar pairs, reducing the negative effects of erroneous exemplars. VA-Count demonstrates its effectiveness and scalability in zero-shot contexts with superior performance on two object counting datasets.
