Pedestrian Detection: Domain Generalization, CNNs, Transformers and Beyond

Irtiza Hasan, Shengcai Liao, Jinpeng Li, Saad Ullah Akram, Ling ShaoarXiv 2022

Abstract

While pedestrian detection has seen significant progress on specific benchmarks, models often fail to generalize across different domains. This paper, published in IEEE Transactions on Pattern Analysis and Machine Intelligence, investigates the "specialization trap"—where models are over-fitted to specific datasets through specialized design choices. The authors propose a shift towards generic architectures and a progressive fine-tuning strategy. By leveraging diverse web-crawled data and robust generic detectors like Cascade R-CNN, the study demonstrates superior cross-dataset performance, nearing human-level accuracy on the Caltech benchmark.

Introduction

The research community has traditionally focused on "beating the leaderboard" for specific datasets. However, this often leads to over-fitting through specialized design choices, such as hard-coded anchor box ratios or scales. This paper addresses the challenge of domain shift—a phenomenon where models crumble when tested on data from different cities, camera setups, or environments. The authors argue that pedestrian-specific architectures act as "blinkers," preventing models from generalizing to real-world scenarios.

Methodology

The authors move away from pedestrian-specific tweaks, focusing instead on two core pillars: architecture and data strategy.

  1. Generic Baseline: They adopt Cascade R-CNN, a general-purpose object detector, as their baseline. They argue that its lack of specialized "bells and whistles" makes it inherently more robust for generalization.
  2. Progressive Fine-Tuning: Instead of single-dataset training, they propose a multi-stage pipeline:
  3. Stage 1: Pre-train on diverse, "dense" web-crawled datasets (e.g., CrowdHuman).
  4. Stage 2: Fine-tune on a large-scale autonomous driving dataset (e.g., EuroCity Persons).
  5. Stage 3: Final fine-tuning on the specific target domain (e.g., Caltech).
  6. CNNs vs. Transformers: The study conducts a head-to-head comparison between traditional CNN backbones (like HRNet) and newer Swin-Transformers to evaluate their respective capacities for handling domain shifts.

Dataset Diversity and the Specialization Trap

A key insight of the paper is the distinction between "monotonous" autonomous driving datasets and "diverse" web-crawled data. Driving datasets like Caltech and CityPersons often feature similar viewpoints and environments. In contrast, web-crawled datasets like CrowdHuman and WiderPerson contain higher pedestrian density, diverse poses, and varied backgrounds, providing a richer "vocabulary" for the model to learn robust representations.

Visual comparison of pedestrian detection datasets, highlighting the difference between diverse web-crawled data and monotonous driving scenes.

Key Results and Discussion

The authors demonstrate that pedestrian-specific adaptations are often detrimental. A vanilla Cascade R-CNN frequently generalizes better than models specifically tuned for pedestrians. Using their progressive training pipeline, the authors achieved a Log-Average Miss Rate ($MR^{-2}$) of 2.5% on the Caltech "Reasonable" subset, remarkably close to the human baseline of 0.88%.

Performance trends (Miss Rate) across major benchmarks over time, showing the consistent improvement and the competitive performance of the proposed generic baseline relative to the human baseline.

In cross-dataset evaluations, the generic Cascade R-CNN showed significant superiority. When trained on CityPersons and tested on Caltech, it achieved an $MR^{-2}$ of 8.8%, whereas specialized detectors like CSP or ALFNet saw their error rates double. Furthermore, the study found that CNNs (specifically HRNet) currently outperform Transformers in generalization for this task, likely due to their ability to better "absorb" large-scale datasets with current optimization techniques.

Conclusion

This research highlights that web-crawled data is a goldmine for building robust pedestrian detectors. While CNNs currently hold the crown, the potential for Transformers remains a significant area for future work, particularly in optimizing hyperparameters for dense detection. The authors have released their unified framework, Pedestron, to facilitate further research into generalizable detection and closing the gap in challenging scenarios like extreme occlusion.

Summary updated

BibTeX
@misc{hasan2022pedestrian,
  author = {Irtiza Hasan and Shengcai Liao and Jinpeng Li and Saad Ullah Akram and Ling Shao},
  title = {{Pedestrian Detection: Domain Generalization, CNNs, Transformers and Beyond}},
  year = {2022},
  eprint = {2201.03176},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.03176},
}
Figure