[Paper Review] Pedestrian Detection: Domain Generalization, CNNs, Transformers and Beyond
This paper identifies poor cross-dataset generalization in state-of-the-art pedestrian detectors as a critical limitation, attributing it to dataset-specific architectural bias and monotonous autonomous driving benchmarks. It proposes a progressive fine-tuning pipeline using diverse, web-crawled datasets (CrowdHuman, WiderPedestrian) for pre-training, demonstrating that CNN-based detectors outperform Transformers in generalization despite similar performance on single-dataset benchmarks, with ensemble models achieving SOTA on CityPersons and EuroCityPersons.
Pedestrian detection is the cornerstone of many vision based applications, starting from object tracking to video surveillance and more recently, autonomous driving. With the rapid development of deep learning in object detection, pedestrian detection has achieved very good performance in traditional single-dataset training and evaluation setting. However, in this study on generalizable pedestrian detectors, we show that, current pedestrian detectors poorly handle even small domain shifts in cross-dataset evaluation. We attribute the limited generalization to two main factors, the method and the current sources of data. Regarding the method, we illustrate that biasness present in the design choices (e.g anchor settings) of current pedestrian detectors are the main contributing factor to the limited generalization. Most modern pedestrian detectors are tailored towards target dataset, where they do achieve high performance in traditional single training and testing pipeline, but suffer a degrade in performance when evaluated through cross-dataset evaluation. Consequently, a general object detector performs better in cross-dataset evaluation compared with state of the art pedestrian detectors, due to its generic design. As for the data, we show that the autonomous driving benchmarks are monotonous in nature, that is, they are not diverse in scenarios and dense in pedestrians. Therefore, benchmarks curated by crawling the web (which contain diverse and dense scenarios), are an efficient source of pre-training for providing a more robust representation. Accordingly, we propose a progressive fine-tuning strategy which improves generalization. Code and models can accessed at https://github.com/hasanirtiza/Pedestron.
Motivation & Objective
- Investigate the poor generalization of state-of-the-art pedestrian detectors across different datasets, especially under small domain shifts.
- Identify architectural bias in current detectors as a root cause of limited generalization, particularly in anchor-based designs tailored to target domains.
- Evaluate the role of backbone networks (CNNs vs. Transformers) in generalization performance under cross-dataset evaluation.
- Demonstrate that large-scale, diverse datasets from web-crawled sources (e.g., CrowdHuman, WiderPedestrian) are more effective for pre-training than monotonous autonomous driving benchmarks.
- Propose and validate a progressive fine-tuning strategy to improve generalization, advocating for cross-dataset evaluation as the new standard for future detector development.
Proposed method
- Propose a progressive fine-tuning pipeline: pre-train on diverse, dense pedestrian datasets (CrowdHuman, WiderPedestrian), then fine-tune on target datasets (CityPersons, EuroCityPersons).
- Use Cascade R-CNN as the detection head to ensure consistent evaluation across all experiments, enabling fair comparison between backbones.
- Compare CNN and Transformer backbones (e.g., ResNeXt, Swin-T) under identical detection head and training protocol to isolate the effect of backbone architecture on generalization.
- Implement ensemble inference using soft-NMS to combine detections from models pre-trained on different datasets (CrowdHuman + WiderPedestrian), improving robustness.
- Adopt cross-dataset evaluation as the primary evaluation protocol, training on one dataset and testing on others (e.g., CrowdHuman → CityPersons), to measure true generalization ability.
- Use withheld test sets from official benchmarks (CityPersons, EuroCityPersons) for final evaluation, ensuring reproducibility and fairness against published baselines.
Experimental results
Research questions
- RQ1To what extent do current state-of-the-art pedestrian detectors generalize across datasets, particularly under small domain shifts?
- RQ2How do architectural design choices (e.g., anchor settings) in pedestrian detectors contribute to poor generalization?
- RQ3Do Transformer-based backbones generalize better than CNN-based backbones in pedestrian detection under cross-dataset evaluation?
- RQ4Can large-scale, diverse datasets from web-crawled sources (e.g., CrowdHuman, WiderPedestrian) improve generalization compared to monotonous autonomous driving benchmarks?
- RQ5Does a progressive pre-training and fine-tuning pipeline using diverse datasets lead to better generalization than standard training on target-domain data alone?
Key findings
- Current pedestrian detectors, despite high performance on single-dataset benchmarks, suffer significant performance drops in cross-dataset evaluation, indicating poor generalization.
- General object detectors (e.g., Cascade R-CNN) outperform specialized pedestrian detectors in cross-dataset evaluation due to their generic design, suggesting that specialization harms generalization.
- CNN-based backbones outperform Transformer-based backbones in generalization ability, even though Transformers achieve better performance on individual benchmarks, indicating that CNNs are more robust to domain shifts.
- Pre-training on diverse, web-crawled datasets like CrowdHuman and WiderPedestrian significantly improves generalization, reducing AP on CityPersons' reasonable set from 8.35 to 7.69 (ensemble) and on ECP from 5.5 to 5.1.
- The proposed progressive fine-tuning pipeline with ensemble inference achieves 1st and 2nd place on CityPersons and EuroCityPersons leaderboards, respectively, outperforming all published methods using only official training data.
- The study reveals that current autonomous driving benchmarks are monotonous in scene diversity and pedestrian density, limiting the robustness of detectors trained on them, and advocates for more diverse pre-training data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.