Proceedings

VQCounter: Designing Visual Prompt Queue for Accurate Open-World Counting

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 2260-2268.

https://doi.org/10.24963/ijcai.2025/252

Abstract

Class-agnostic counting enables enumerating arbitrary object classes beyond those seen during training. Recent studies attempted to exploit the potential of visual foundation models such as GroundingDINO. Despite the considerable progress, we observe certain shortcomings, including the limited diversity of visual prompts and suboptimal training regimen.

To address these issues, we introduce VQCounter, which incorporates a visual prompt queue mechanism designed to enrich the diversity of visual prompts.

A random modality switching strategy is proposed during training to strengthen both textual and visual modalities.

Besides, in light of weak point supervision, a Voronoi diagram-based cost (VoronoiCost) is designed to improve Hungarian matching, leading to more stable and faster convergence.

Building upon the Voronoi diagram, we also propose a novel set of more stringent evaluation metrics, which take point localization into account.

Extensive experiments on the FSC-147 and CARPK datasets demonstrate that VQCounter achieves state-of-the-art performance in both zero-shot and few-shot settings, significantly outperforming existing methods across nearly all evaluations.

  1. [Abousamra et al., 2021] Shahira Abousamra, Minh Hoai, Dimitris Samaras, and Chao Chen. Localization in the crowd with topological constraints. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 872-881, 2021.
  2. [Amato et al., 2019] Giuseppe Amato, Luca Ciampi, Fab- rizio Falchi, and Claudio Gennaro. Counting vehicles with deep learning in onboard uav imagery. In 2019 IEEE Sym- posium on Computers and Communications (ISCC), pages 1-6. IEEE, 2019.
  3. [Amini-Naieni et al., 2023] Niki Amini-Naieni, Kiana Amini-Naieni, Tengda Han, and Andrew Zisserman. Open-world text-specified object counting. arXiv preprint arXiv:2306.01851, 2023.
  4. [Amini-Naieni et al., 2024] N. Amini-Naieni, T. Han, and A. Zisserman. Countgd: Multi-modal open-world count- ing. In Advances in Neural Information Processing Sys- tems (NeurIPS), 2024.
  5. [Arteta et al., 2016] Carlos Arteta, Victor Lempitsky, and Andrew Zisserman. Counting in the wild. In Computer Vision-ECCV 2016: 14th European Conference, Amster- dam, The Netherlands, October 11-14, 2016, Proceed- ings, Part VII 14, pages 483-498. Springer, 2016.
  6. [Aurenhammer and Klein, 2000] Franz Aurenhammer and Rolf Klein. Voronoi diagrams. Handbook of computa- tional geometry, 5(10):201-290, 2000.
  7. [Babu Sam et al., 2022] Deepak Babu Sam, Abhinav Agar- walla, Jimmy Joseph, Vishwanath A Sindagi, R Venkatesh Babu, and Vishal M Patel. Completely self-supervised crowd counting via distribution matching. In ECCV, pages 186-204. Springer, 2022.
  8. [Ciampi et al., 2024] Luca Ciampi, Nicola Messina, Matteo Pierucci, Giuseppe Amato, Marco Avvenuti, and Fab- rizio Falchi. Mind the prompt: A novel benchmark for prompt-based class-agnostic counting. arXiv preprint arXiv:2409.15953, 2024.
  9. [Dai et al., 2024] Siyang Dai, Jun Liu, and Ngai-Man Che- ung. Referring expression counting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pat- tern Recognition, pages 16985-16995, 2024.
  10. [Guo et al., 2019] Yue Guo, Jason Stein, Guorong Wu, and Ashok Krishnamurthy. Sau-net: A universal deep network for cell counting. In Proceedings of the 10th ACM inter- national conference on bioinformatics, computational bi- ology and health informatics, pages 299-306, 2019.
  11. [Hsieh et al., 2017] Meng-Ru Hsieh, Yen-Liang Lin, and Winston H Hsu. Drone-based object counting by spatially regularized regional proposal network. In Proceedings of the IEEE international conference on computer vision, pages 4145-4153, 2017.
  12. [Huang et al., 2024] Zhizhong Huang, Mingliang Dai, Yi Zhang, Junping Zhang, and Hongming Shan. Point segment and count: A generalized framework for object counting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 17067-17076, 2024.
  13. [Idrees et al., 2018] Haroon Idrees, Muhmmad Tayyab, Kis- han Athrey, Dong Zhang, Somaya Al-Maadeed, Nasir Ra- jpoot, and Mubarak Shah. Composition loss for counting, density map estimation and localization in dense crowds. In Proceedings of the European conference on computer vision (ECCV), pages 532-546, 2018.
  14. [Jia et al., 2023] Jieru Jia, Shuorui Zhang, and Qiuqi Ruan. Pcr: A large-scale benchmark for pig counting in real world. In Chinese Conference on Pattern Recognition and Computer Vision (PRCV), pages 227-240. Springer, 2023.
  15. [Jiang et al., 2023] Ruixiang Jiang, Lingbo Liu, and Chang- wen Chen. Clip-count: Towards text-guided zero-shot ob- ject counting. In Proceedings of the 31st ACM Interna- tional Conference on Multimedia, pages 4535-4545, 2023.
  16. [Jiang et al., 2025] Qing Jiang, Feng Li, Zhaoyang Zeng, Tianhe Ren, Shilong Liu, and Lei Zhang. T-rex2: Towards generic object detection via text-visual prompt synergy. In European Conference on Computer Vision, pages 38-57. Springer, 2025.
  17. [Kang et al., 2024] Seunggu Kang, WonJun Moon, Euiyeon Kim, and Jae-Pil Heo. Vlcounter: Text-aware visual repre- sentation for zero-shot object counting. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 2714-2722, 2024.
  18. [Kirillov et al., 2023] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In Pro- ceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015-4026, 2023.
  19. [Kuhn, 1955] Harold W Kuhn. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83-97, 1955.
  20. [Lee et al., 2001] Donghee Lee, Jongmoo Choi, Jong-Hun Kim, Sam H Noh, Sang Lyul Min, Yookun Cho, and Chong Sang Kim. Lrfu: A spectrum of policies that sub- sumes the least recently used and least frequently used policies. IEEE transactions on Computers, 50(12):1352- 1361, 2001.
  21. [Li et al., 2018] Yuhong Li, Xiaofan Zhang, and Deming Chen. Csrnet: Dilated convolutional neural networks for understanding the highly congested scenes. In Proceed- ings of the IEEE conference on computer vision and pat- tern recognition, pages 1091-1100, 2018.
  22. [Lian et al., 2019] Dongze Lian, Jing Li, Jia Zheng, Weixin Luo, and Shenghua Gao. Density map regression guided detection network for rgb-d crowd counting and localiza- tion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1821- 1830, 2019.
  23. [Liang et al., 2022] Dingkang Liang, Wei Xu, and Xiang Bai. An end-to-end transformer model for crowd localiza- tion. In European Conference on Computer Vision, pages 38-54. Springer, 2022.
  24. [Liu et al., 2022] Chang Liu, Yujie Zhong, Andrew Zisser- man, and Weidi Xie. Countr: Transformer-based gener- alised visual counting. arXiv preprint arXiv:2208.13721, 2022.
  25. [Liu et al., 2025] Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie Yang, Qing Jiang, Chunyuan Li, Jianwei Yang, Hang Su, et al. Grounding dino: Marrying dino with grounded pre-training for open-set object detec- tion. In European Conference on Computer Vision, pages 38-55. Springer, 2025.
  26. [Lu et al., 2019] Erika Lu, Weidi Xie, and Andrew Zisser- man. Class-agnostic counting. In Computer Vision-ACCV 2018: 14th Asian Conference on Computer Vision, Perth, Australia, December 2-6, 2018, Revised Selected Papers, Part III 14, pages 669-684. Springer, 2019.
  27. [Mondal et al., 2024] Anindya Mondal, Sauradip Nag, Xia- tian Zhu, and Anjan Dutta. Omnicount: Multi-label object counting with semantic-geometric priors. arXiv preprint arXiv:2403.05435, 2024.
  28. [Mundhenk et al., 2016] T Nathan Mundhenk, Goran Kon- jevod, Wesam A Sakla, and Kofi Boakye. A large con- textual dataset for classification, detection and counting of cars with deep learning. In Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part III 14, pages 785- 800. Springer, 2016.
  29. [Pelhan et al., 2024a] Jer Pelhan, Alan Lukežič, Vitjan Zavr- tanik, and Matej Kristan. A novel unified architecture for low-shot counting by detection and segmentation. arXiv preprint arXiv:2409.18686, 2024.
  30. [Pelhan et al., 2024b] Jer Pelhan, Vitjan Zavrtanik, Matej Kristan, et al. Dave-a detect-and-verify paradigm for low- shot counting. In Proceedings of the IEEE/CVF Confer- ence on Computer Vision and Pattern Recognition, pages 23293-23302, 2024.
  31. [Radford et al., 2021] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agar- wal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from nat- ural language supervision. In International conference on machine learning, pages 8748-8763. PMLR, 2021.
  32. [Ranjan and Nguyen, 2022] Viresh Ranjan and Minh Hoai Nguyen. Exemplar free class agnostic counting. In Pro- ceedings of the Asian Conference on Computer Vision, pages 3121-3137, 2022.
  33. [Ranjan et al., 2021] Viresh Ranjan, Udbhav Sharma, Thu Nguyen, and Minh Hoai. Learning to count everything. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3394-3403, 2021.
  34. [Ren, 2015] Shaoqing Ren. Faster r-cnn: Towards real-time object detection with region proposal networks. arXiv preprint arXiv:1506.01497, 2015.
  35. [Shi et al., 2022] Min Shi, Hao Lu, Chen Feng, Chengxin Liu, and Zhiguo Cao. Represent, compare, and learn: A similarity-aware framework for class-agnostic counting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9529-9538, 2022.
  36. [Song et al., 2021] Qingyu Song, Changan Wang, Zhengkai Jiang, Yabiao Wang, Ying Tai, Chengjie Wang, Jilin Li, Feiyue Huang, and Yang Wu. Rethinking counting and localization in crowds: A purely point-based framework. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3365-3374, 2021.
  37. [Sun et al., 2023] Guolei Sun, Zhaochong An, Yun Liu, Ce Liu, Christos Sakaridis, Deng-Ping Fan, and Luc Van Gool. Indiscernible object counting in underwater scenes. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13791- 13801, 2023.
  38. [Xie et al., 2018] Weidi Xie, J Alison Noble, and Andrew Zisserman. Microscopy cell counting and detection with fully convolutional regression networks. Computer meth- ods in biomechanics and biomedical engineering: Imag- ing & Visualization, 6(3):283-292, 2018.
  39. [Xu et al., 2023] Jingyi Xu, Hieu Le, Vu Nguyen, Viresh Ranjan, and Dimitris Samaras. Zero-shot object count- ing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15548- 15557, 2023.
  40. [Xu et al., 2024] Yifan Xu, Mengdan Zhang, Chaoyou Fu, Peixian Chen, Xiaoshan Yang, Ke Li, and Changsheng Xu. Multi-modal queried object detection in the wild. Advances in Neural Information Processing Systems, 36, 2024.
  41. [You et al., 2023] Zhiyuan You, Kai Yang, Wenhan Luo, Xin Lu, Lei Cui, and Xinyi Le. Few-shot object counting with similarity-aware feature enhancement. In Proceedings of the IEEE/CVF Winter Conference on Applications of Com- puter Vision, pages 6315-6324, 2023.
  42. [Zavrtanik et al., 2020] Vitjan Zavrtanik, Martin Vodopivec, and Matej Kristan. A segmentation-based approach for polyp counting in the wild. Engineering Applications of Artificial Intelligence, 88:103399, 2020.
  43. [Zheng et al., 2024] Zixuan Zheng, Yilei Shi, Chunlei Li, Jingliang Hu, Xiao Xiang Zhu, and Lichao Mou. Rethink- ing cell counting methods: Decoupling counting and lo- calization. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 418-426. Springer, 2024.
  44. [Zhu et al., 2021] Pengfei Zhu, Tao Peng, Dawei Du, Hong- tao Yu, Libo Zhang, and Qinghua Hu. Graph regular- ized flow attention network for video animal counting from drones. IEEE Transactions on Image Processing, 30:5339-5351, 2021.
  45. [Zhu et al., 2025] Huilin Zhu, Jingling Yuan, Zhengwei Yang, Yu Guo, Zheng Wang, Xian Zhong, and Shengfeng He. Zero-shot object counting with good exemplars. In European Conference on Computer Vision, pages 368- 385. Springer, 2025.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards