TL;DR
CrowdMLP is a novel framework that achieves state-of-the-art crowd counting performance using only "weak" count-level labels (the total number of people) rather than expensive "strong" point-level annotations. By combining a multi-granularity MLP architecture with a clever "Split-Counting" self-supervised task, it bridges the accuracy gap between easy-to-acquire labels and high-performance computer vision.
What Problem Does This Paper Address?
Crowd counting—estimating the number of people in a scene—is critical for urban management and safety. However, the current state-of-the-art relies on "location-level" supervision, where human annotators must place a dot on every single head in an image. For datasets like JHU-CROWD++, this means manually labeling over 1.5 million dots, a process that is both tedious and prone to error.
While "weakly-supervised" methods (using only the total count per image) are much easier to scale, they traditionally perform poorly. Without explicit spatial constraints, models struggle to distinguish people from background textures and fail to handle the massive scale variations found in crowded scenes (where people in the foreground are much larger than those in the distance).
Methods
The authors introduce CrowdMLP, which moves away from standard Convolutional Neural Networks (CNNs) and Transformers in favor of a multi-granularity Multi-Layer Perceptron (MLP) approach.
- Hybrid Frontend: The model starts with the first ten layers of a pre-trained VGG-16 network. This acts as a "locally-focused" frontend to extract crude feature maps that retain essential spatial cues and translation invariance.
- Multi-Granularity Tokenization: To handle scale variation, the model tokenizes these features at three different levels ($16\times16, 8\times8, \text{ and } 4\times4$ patches). This creates a "pyramid" of token streams, allowing the model to capture both fine-grained details and global context simultaneously.
- MLP-based Regressor: Instead of using heavy self-attention mechanisms (like Transformers), CrowdMLP uses token-mixing and channel-mixing MLPs. This allows the model to capture global dependencies across the image with less computational complexity and lower inductive bias.
- Split-Counting Proxy Task: To compensate for the lack of spatial labels, the authors propose a self-supervised task. The model is fed a full image ($I$) and two randomly generated complementary sub-regions ($I_P$ and $I_N$). It is then trained to ensure that the sum of the counts for the sub-regions equals the count for the whole image ($P_P + P_N \approx P_I$). This forces the model to learn that people are discrete objects occupying specific spatial regions.
Datasets
The model was evaluated on four major crowd-counting benchmarks:
- ShanghaiTech (Part A & B): A standard benchmark featuring both highly congested and sparse street scenes.
- UCF-QNRF: A large-scale dataset with high-resolution images and extreme crowd densities.
- JHU-CROWD++: A massive, diverse dataset containing 4,372 images with counts ranging from zero to over 25,000 people per scene.
Key Insights and Ideas
- Global Receptive Fields are Key: The authors argue that CNNs struggle with weak supervision because their local receptive fields can't easily "see" the whole scene to regress a single number. The MLP architecture provides the global view necessary for accurate total-count regression.
- Implicit Spatial Awareness: The "Split-Counting" task is a highlight. It proves that you don't need to tell a model where people are if you mathematically enforce that the "sum of the parts must equal the whole." This simple constraint acts as a powerful spatial regularizer.
- Granularity Handles Scale: By processing multiple patch sizes, the model naturally accounts for perspective distortion without needing complex multi-column CNN architectures.
Key Results
CrowdMLP significantly outperformed previous weakly-supervised methods and even rivaled fully-supervised models:
- Weakly-Supervised SOTA: On ShanghaiTech Part A, it achieved a Mean Absolute Error (MAE) of 57.8, a massive improvement over the previous weakly-supervised best (TransCrowd-G) at 66.1.
- Parity with Strong Supervision: On JHU-CROWD++, CrowdMLP achieved an MAE of 67.6, outperforming several well-known fully-supervised methods like CAN (100.1) and MBTTBF (81.8).
- Efficiency: Compared to Transformer-based counters, CrowdMLP is more parameter-efficient (26.63M vs 36.43M parameters) while delivering better accuracy.
Limitations and Future Work
While CrowdMLP reduces the need for point-level labels, it still relies on a pre-trained CNN (VGG-16) as a frontend. The authors suggest that future work could explore a "pure" MLP architecture. Additionally, they aim to investigate how this framework can be applied to cross-domain counting, where a model trained on one type of environment (e.g., a stadium) is adapted to another (e.g., a protest or a shopping mall) with minimal new data.
Summary updated