CLIP-EBC: CLIP Can Count Accurately through Enhanced Blockwise Classification
Not on the map. Why?
Abstract (arXiv)
We propose CLIP-EBC, the first fully CLIP-based model for accurate crowd density estimation. While the CLIP model has demonstrated remarkable success in addressing recognition tasks such as zero-shot image classification, its potential for counting has been largely unexplored due to the inherent challenges in transforming a regression problem, such as counting, into a recognition task. In this work, we investigate and enhance CLIP's ability to count, focusing specifically on the task of estimating crowd sizes from images. Existing classification-based crowd-counting frameworks have significant limitations, including the quantization of count values into bordering real-valued bins and the sole focus on classification errors. These practices result in label ambiguity near the shared borders and inaccurate prediction of count values. Hence, directly applying CLIP within these frameworks may yield suboptimal performance. To address these challenges, we first propose the Enhanced Blockwise Classification (EBC) framework. Unlike previous methods, EBC utilizes integer-valued bins, effectively reducing ambiguity near bin boundaries. Additionally, it incorporates a regression loss based on density maps to improve the prediction of count values. Within our backbone-agnostic EBC framework, we then introduce CLIP-EBC to fully leverage CLIP's recognition capabilities for this task. Extensive experiments demonstrate the effectiveness of EBC and the competitive performance of CLIP-EBC. Specifically, our EBC framework can improve existing classification-based methods by up to 44.5% on the UCF-QNRF dataset, and CLIP-EBC achieves state-of-the-art performance on the NWPU-Crowd test set, with an MAE of 58.2 and an RMSE of 268.5, representing improvements of 8.6% and 13.3% over the previous best method, STEERER. The code and weights are available at https://github.com/Yiming-M/CLIP-EBC.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 32 of its 41 references that are in the map. First posted on arXiv 14 Mar 2024.
Builds on
32 of 41 references.
References · 32
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2015You Only Look Once: Unified, Real-Time Object Detectioncited by 4,829
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2022Visual Prompt Tuningcited by 1,674
- 2021Open-vocabulary Object Detection via Vision and Language Knowledge Distillationcited by 903
- 2021Image Segmentation Using Text and Image Promptscited by 509
- 2018CSRNet: Dilated Convolutional Neural Networks for Understanding the Highly Congested Scenescited by 267
20 more
- 2018Composition Loss for Counting, Density Map Estimation and Localization in Dense Crowdscited by 186
- 2019Bayesian Loss for Crowd Count Estimation with Point Supervisioncited by 162
- 2021Rethinking Counting and Localization in Crowds:A Purely Point-Based Frameworkcited by 152
- 2020NWPU-Crowd: A Large-Scale Benchmark for Crowd Counting and Localizationcited by 151
- 2018Context-Aware Crowd Countingcited by 150
- 2020Distribution Matching for Crowd Countingcited by 143
- 2020JHU-CROWD++: Large-Scale Crowd Counting Dataset and A Benchmark Methodcited by 109
- 2023CLIP-Count: Towards Text-Guided Zero-Shot Object Countingcited by 82
- 2022An End-to-End Transformer Model for Crowd Localizationcited by 74
- 2019From Open Set to Closed Set: Counting Objects by Spatial Divide-and-Conquercited by 48
- 2023CrowdCLIP: Unsupervised Crowd Counting via Vision-Language Modelcited by 47
- 2017CNN-based Cascaded Multi-task Learning of High-level Prior and Density Estimation for Crowd Countingcited by 41
- 2023STEERER: Resolving Scale Variations for Counting and Localization via Selective Inheritance Learningcited by 41
- 2023Point-Query Quadtree for Crowd Counting, Localization, and Morecited by 40
- 2020Towards Using Count-level Weak Supervision for Crowd Countingcited by 33
- 2020Encoder-Decoder Based Convolutional Neural Networks with Multi-Scale-Aware Modules for Crowd Countingcited by 22
- 2021Uniformity in Heterogeneity:Diving Deep into Count Interval Partition for Crowd Countingcited by 20
- 2022Discrete-Constrained Regression for Local Counting Modelscited by 19
- 2023Boosting Detection in Crowd Analysis via Underutilized Output Featurescited by 14
- 2022FusionCount: Efficient Crowd Counting via Multiscale Feature Fusioncited by 13
Built on by
Citing papers per year: 2025: 8; 2026: 4.
12 papers.
- 2025On the Limitations of Vision-Language Models in Understanding Image Transformscited by 12
- 2025On the rankability of visual embeddingscited by 4
- 2025ZIP: Scalable Crowd Counting via Zero-Inflated Poisson Modelingcited by 2
- 2025Semi-Supervised Multi-View Crowd Counting by Ranking Multi-View Fusion Modelscited by 2
- 2025Car Object Counting and Position Estimation via Extension of the CLIP-EBC Frameworkcited by 0
- 2025Local Information Matters: A Rethink of Crowd Countingcited by 0
- 2025Rank-Aware Agglomeration of Foundation Models for Immunohistochemistry Image Cell Countingcited by 0
- 2025Learning Where to Focus: Density-Driven Guidance for Detecting Dense Tiny Objectscited by 0
- 2026Dense Point-to-Mask Optimization with Reinforced Point Selection for Crowd Instance Segmentationcited by 0
- 2026Thermal-Only Crowd Counting with Deployment-Time Privacy Protectioncited by 0
- 2026DCA-MoE: Spatially Adaptive Cross-Layer Fusion and Density-Routed Experts for Crowd Countingcited by 0
- 2026CrowdCue: Specialist-Cue Conditioning for Vision-Language Crowd Countingcited by 0
- 2026CrowdCue: Specialist-Cue Conditioning for Vision-Language Crowd Counting19 Sep 2026
- 2026DCA-MoE: Spatially Adaptive Cross-Layer Fusion and Density-Routed Experts for Crowd Counting15 Aug 2026
- 2026Thermal-Only Crowd Counting with Deployment-Time Privacy Protection16 May 2026
- 2026Dense Point-to-Mask Optimization with Reinforced Point Selection for Crowd Instance Segmentation2 Apr 2026
- 2025Learning Where to Focus: Density-Driven Guidance for Detecting Dense Tiny Objects28 Dec 2025
- 2025Semi-Supervised Multi-View Crowd Counting by Ranking Multi-View Fusion Models18 Dec 2025
- 2025Rank-Aware Agglomeration of Foundation Models for Immunohistochemistry Image Cell Counting16 Nov 2025
- 2025Local Information Matters: A Rethink of Crowd Counting23 Aug 2025
- 2025Car Object Counting and Position Estimation via Extension of the CLIP-EBC Framework11 Jul 2025
- 2025On the rankability of visual embeddings4 Jul 2025
- 2025ZIP: Scalable Crowd Counting via Zero-Inflated Poisson Modeling24 Jun 2025
- 2025On the Limitations of Vision-Language Models in Understanding Image Transforms12 Mar 2025