Learning Error-Driven Curriculum for Crowd Counting

Wenxi Li, Zhuoqun Cao, Qian Wang, Songjian Chen, Rui Feng

Abstract

Crowd counting via density regression often struggles with extreme data imbalance and numerical stagnation due to the sparsity and low magnitude of ground-truth density maps. This paper presents a novel two-pronged approach: a simple yet effective density map scaling technique to improve numerical stability, and TutorNet, an auxiliary network that implements an error-driven curriculum. By dynamically weighting training samples based on the primary model's current errors, TutorNet focuses the learning process on difficult regions. Experimental results on the ShanghaiTech and FDST benchmarks demonstrate that this backbone-agnostic strategy consistently improves performance, achieving state-of-the-art results across various architectures.

The Challenge: Numerical Imbalance in Density Maps

Crowd counting models are typically trained to predict a "density map," a heatmap where each pixel's value represents the local concentration of people. However, these maps suffer from a significant data imbalance problem. In a standard crowd image, the vast majority of pixels represent background (zero density). Even in areas where people are present, the ground-truth values are numerically tiny—often peaking around 0.003.

Figure 1: (a) Input image, (b) corresponding density map, and (c) histogram of density values showing the extreme concentration of values near zero.

As shown in Figure 1, this distribution leads to two major optimization hurdles:

  1. Optimization Stagnation: The minuscule values result in very small loss signals, making it difficult for deep networks to converge.
  2. Local Minima: The numerical distance between a person and the background is so small that networks struggle to distinguish between them effectively, often getting stuck in suboptimal states.

Proposed Methodology

The authors propose a dual strategy to overcome these optimization bottlenecks: Density Map Scaling and the TutorNet curriculum.

1. Density Map Scaling

To address the issue of tiny numerical values, the researchers apply a simple scaling factor (e.g., 1000) to the ground-truth density maps. By amplifying these values, they increase the "distance" between foreground and background in the feature space. This amplification makes it numerically easier for the network to differentiate between a person and the background, significantly accelerating convergence.

2. TutorNet: Error-Driven Curriculum

Traditional curriculum learning involves moving from "easy" to "hard" examples based on human-defined rules. The authors instead propose TutorNet, an auxiliary ResNet-based network that runs alongside the primary counting model to automate this process.

Figure 5: Visualization of the error-driven weighting function used by TutorNet to prioritize high-error regions during training.

TutorNet predicts a pixel-level weight map based on the primary network's current errors. If the main model makes a large error in a specific region, TutorNet assigns that area a higher weight in the loss function. As illustrated in Figure 5, this creates a dynamic, self-correcting curriculum that forces the model to focus its attention on its own mistakes as they evolve during training.

Experimental Results

The proposed method was evaluated on two major benchmarks: ShanghaiTech (Part B) and the Fudan-ShanghaiTech (FDST) video dataset.

Key findings include:

  • State-of-the-Art Performance: On ShanghaiTech Part B, the method achieved a Mean Absolute Error (MAE) of 7.0, surpassing previous leaders like ADCrowdNet (7.6). On the FDST dataset, it reached an MAE of 3.05, a significant improvement over the previous best of 3.35.
  • Ablation Insights: Adding the scaling factor alone to a standard DenseNet backbone improved the MAE from 13.0 to 7.5. Integrating TutorNet further reduced the error to 7.0.
  • Backbone Agnostic: The strategy improved performance across every architecture tested (MCNN, CSRNet, DenseNet), suggesting that the primary bottleneck in crowd counting is data handling rather than model depth.

Conclusion

By addressing the numerical imbalance of density maps and implementing an automated, error-driven curriculum, TutorNet provides a robust framework for improving crowd counting accuracy. While the current model does not yet explicitly exploit spatial-temporal consistency in video data, its ability to enhance a wide variety of existing architectures makes it a powerful tool for dense object counting tasks. Future work will focus on integrating temporal information to further stabilize counting in video sequences.

Summary updated

BibTeX
@inproceedings{li2020learning,
  author = {Wenxi Li and Zhuoqun Cao and Qian Wang and Songjian Chen and Rui Feng},
  title = {{Learning Error-Driven Curriculum for Crowd Counting}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9413068},
}
Figure