TCFormer: A 5M-Parameter Transformer with Density-Guided Aggregation for Weakly-Supervised Crowd Counting
Not on the map. Why?
Abstract (arXiv)
Crowd counting typically relies on labor-intensive point-level annotations and computationally intensive backbones, restricting its scalability and deployment in resource-constrained environments. To address these challenges, this paper proposes the TCFormer, a tiny, ultra-lightweight, weakly-supervised transformer-based crowd counting framework with only 5 million parameters that achieves competitive performance. Firstly, a powerful yet efficient vision transformer is adopted as the feature extractor, the global context-aware capabilities of which provides semantic meaningful crowd features with a minimal memory footprint. Secondly, to compensate for the lack of spatial supervision, we design a feature aggregation mechanism termed the Learnable Density-Weighted Averaging module. This module dynamically re-weights local tokens according to predicted density scores, enabling the network to adaptively modulate regional features based on their specific density characteristics without the need for additional annotations. Furthermore, this paper introduces a density-level classification loss, which discretizes crowd density into distinct grades, thereby regularizing the training process and enhancing the model's classification power across varying levels of crowd density. Therefore, although TCformer is trained under a weakly-supervised paradigm utilizing only image-level global counts, the joint optimization of count and density-level losses enables the framework to achieve high estimation accuracy. Extensive experiments on four benchmarks including ShanghaiTech A/B, UCF-QNRF, and NWPU datasets demonstrate that our approach strikes a superior trade-off between parameter efficiency and counting accuracy and can be a good solution for crowd counting tasks in edge devices.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 15 of its 44 references that are in the map. First posted on arXiv 21 Dec 2025.
Builds on
15 of 44 references.
References · 15
- 2018CSRNet: Dilated Convolutional Neural Networks for Understanding the Highly Congested Scenescited by 267
- 2022TinyViT: Fast Pretraining Distillation for Small Vision Transformerscited by 232
- 2018Composition Loss for Counting, Density Map Estimation and Localization in Dense Crowdscited by 186
- 2020NWPU-Crowd: A Large-Scale Benchmark for Crowd Counting and Localizationcited by 151
- 2017Switching Convolutional Neural Network for Crowd Countingcited by 93
- 2022Boosting Crowd Counting via Multifaceted Attentioncited by 73
- 2021TransCrowd: weakly-supervised crowd counting with transformerscited by 61
- 2020Towards Using Count-level Weak Supervision for Crowd Countingcited by 33
- 2020Pixel-wise Crowd Understanding via Synthetic Datacited by 23
- 2024Improving Point-based Crowd Counting and Localization Based on Auxiliary Point Guidancecited by 22
- 2022Semi-supervised Crowd Counting via Density Agencycited by 18
- 2020Towards Unsupervised Crowd Counting via Regression-Detection Bi-knowledge Transfercited by 13
Built on by
Citing papers per year: 2026: 1.
1 paper.