Counting with Adaptive Auxiliary Learning

Yanda Meng, Joshua Bridge, Meng Wei, Yitian Zhao, Yihong Qiao, Xiaoyun Yang, Xiaowei Huang, Yalin ZhengarXiv 2022 · DOI

Introduction

Object counting, particularly in dense crowd scenarios, presents significant challenges due to extreme scale variations, diverse density levels, and complex background clutter. Traditional methods often rely on Density Map Regression, where a model predicts a spatial distribution of objects. However, these approaches frequently suffer from feature under-fitting when using simple shared backbones for multi-task learning and produce over-smoothed density maps due to limitations in standard loss functions like L1 or L2.

In "Counting with Adaptive Auxiliary Learning," Yanda Meng et al. introduce a multi-task framework designed to "reason" about scenes by decomposing the counting problem into auxiliary tasks. By leveraging an adaptive backbone and graph-based reasoning, the proposed model achieves state-of-the-art performance on several challenging benchmarks.

Methodology

The proposed framework addresses the limitations of prior work through three key architectural innovations:

Adaptive Shared Backbone

Unlike rigid shared networks, this model employs an attention-enhanced backbone (based on VGG-16) that utilizes Feature Fuse Blocks (FFB). These blocks aggregate multi-level information while attention modules filter redundant features. This allows the network to learn task-tailored features for counting and segmentation simultaneously, preventing the under-fitting common in standard multi-task architectures.

GCN Reasoning Module

To move beyond the local receptive field of standard convolutions, the authors integrate a Graph Convolutional Network (GCN). This module projects pixels with similar density levels into graph vertices, allowing the model to reason about long-range spatial dependencies and relationships between different image regions.

Detailed architecture of the proposed multi-task framework, highlighting the Adaptive Shared Backbone, Feature Fuse Blocks, and GCN Reason Module.

Dilated Contrastive Density Loss ($L_{DCD}$)

To combat the "blurry map" problem, a novel loss function using eight dilated kernels was developed. This $L_{DCD}$ forces the model to consider the contrast between a pixel and its neighbors at multiple scales, providing regional supervision that preserves structural details in high-density areas.

Experimental Results

The model was evaluated on seven diverse datasets, including ShanghaiTech (Part A & B), UCF-QNRF, JHU-Crowd, and the large-scale NWPU-Crowd benchmark. It also demonstrated cross-domain versatility on the DCC (cell counting) and Trancos (vehicle counting) datasets.

The framework achieved state-of-the-art (SOTA) results among auxiliary-task-based methods. On the NWPU-Crowd dataset, it reached a Mean Absolute Error (MAE) of 76.4. Ablation studies confirmed the efficacy of the individual components: the GCN reasoning module reduced counting error by approximately 6.7%, while the adaptive backbone contributed a 6.8% reduction compared to standard shared backbones.

Comparison of the proposed method against state-of-the-art counting models across major crowd datasets.

Discussion and Conclusion

A key insight of this work is the effectiveness of auxiliary tasks—specifically Crowd Segmentation and Density Level Segmentation—in guiding the primary counting task. By identifying "where" the crowd is and "how dense" it is, the model effectively filters out background noise. Furthermore, the GCN-based reasoning allows the model to "connect the dots" across distant parts of an image sharing similar characteristics.

Interestingly, the model showed robustness to noisy ground truth, sometimes identifying objects missed by human annotators. While highly effective for complex scenes, the benefits of the adaptive backbone are less pronounced in simpler datasets with minimal background clutter, such as cell counting. Future research may extend this reasoning-based approach to video-based counting to address temporal consistency.

Implementation: The authors have made their code publicly available at smallmax00/Counting_With_Adaptive_Auxiliary.

Summary updated

BibTeX
@misc{meng2022counting,
  author = {Yanda Meng and Joshua Bridge and Meng Wei and Yitian Zhao and Yihong Qiao and Xiaoyun Yang and Xiaowei Huang and Yalin Zheng},
  title = {{Counting with Adaptive Auxiliary Learning}},
  year = {2022},
  eprint = {2203.04061},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.04061},
}
Figure