Exploiting sample correlation for crowd counting with multi-expert network

Xinyan Liu, Guorong Li, Zhenjun Han, Weigang Zhang, Yifan Yang, Qingming Huang, Nicu Sebe

Abstract

Crowd counting remains a challenging task due to extreme variations in scene density, perspective, and lighting. While multi-expert architectures offer a potential solution by specializing sub-networks for specific scene types, they often suffer from training instability and poor routing. This paper proposes a novel framework that exploits sample correlation through a "co-fine-tune similarity" metric. By identifying unstable samples and grouping them based on functional similarity rather than visual features, the authors develop a stable multi-expert system. The resulting Multi-expert FPN with Deconvolution Counting (MFDC) network achieves state-of-the-art performance across major benchmarks, demonstrating significant improvements in both accuracy and generalization.

Introduction

Estimating the number of individuals in crowded images is critical for urban planning and public safety. However, the diversity of environments—ranging from sparse parks to dense protests—presents a significant hurdle for single-model approaches. Multi-expert models attempt to address this by partitioning the data space, but traditional "differential training" methods often lead to unstable "pseudo-labels." In these systems, the model frequently reassigns images to different experts during training, preventing effective specialization. This work addresses this routing instability by introducing a more robust clustering mechanism based on how the model learns from data.

Methodology: The MFDC Framework

The proposed approach follows a three-stage pipeline designed to stabilize expert training and optimize performance.

1. Identifying Unstable Samples

To manage computational complexity, the framework focuses on "unstable" samples—images where the training loss fluctuates significantly. These represent the most challenging cases that benefit most from expert specialization.

2. Co-fine-tune Similarity

The core innovation is the use of functional similarity over visual similarity. Two images are considered similar if fine-tuning the model on one improves performance on the other. This "mutual enhancement" ensures that experts are trained on clusters where the learned features are broadly applicable to all members.

3. Architecture and Routing

The base architecture, FDC, utilizes a Feature Pyramid Network (FPN) with deconvolution layers to handle multi-scale features efficiently. A ResNet-18 classifier serves as a "router," selecting the appropriate expert weights from a "Weights Memory" unit at inference time.

The MFDC architecture featuring the FPN base, Weights Retrieval router, and Weights Memory for expert selection.

Experimental Results

The MFDC-18 model was evaluated on four major benchmarks: ShanghaiTech (Parts A & B), UCF-QNRF, NWPU-Crowd, and JHU-Crowd++.

  • NWPU-Crowd: The model achieved a Mean Absolute Error (MAE) of 74.7, a substantial improvement over the previous state-of-the-art (88.4).
  • ShanghaiTech: The multi-expert framework reduced the MAE of the base FDC model by 15.3% on Part A and 39.4% on Part B.
  • UCF-QNRF: MFDC achieved an MAE of 76.2, representing a 7% improvement over existing methods.

Discussion and Insights

A key finding of this research is that learning-based similarity is superior to visual similarity for partitioning crowd data. By grouping images based on how the model learns from them, the framework achieves much higher training stability.

Comparison of label stability across training epochs, showing the proposed method's superior convergence compared to previous SOTA.

Furthermore, the framework is "plug-and-play," showing performance gains when applied to older architectures like MCNN and CSRNet. Interestingly, specialization on one dataset (NWPU) led to better generalization on unseen datasets, suggesting that the experts capture universal crowd scene characteristics.

Limitations

Despite its success, the approach has limitations. Calculating the co-fine-tune similarity matrix is computationally intensive ($O(N^2)$), though restricted to unstable samples. Additionally, storing multiple expert weights increases the memory footprint, and the overall performance remains dependent on the router's classification accuracy.

Summary updated

BibTeX
@inproceedings{liu2021exploiting,
  author = {Xinyan Liu and Guorong Li and Zhenjun Han and Weigang Zhang and Yifan Yang and Qingming Huang and Nicu Sebe},
  title = {{Exploiting sample correlation for crowd counting with multi-expert network}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00320},
}
Figure