Abstract
Pedestrian detection in crowded environments is a significant challenge for computer vision. While the Detection Transformer (DETR) architecture eliminates the need for manual post-processing like Non-Maximum Suppression (NMS), it often struggles with dense clusters and occlusion. This paper introduces the Pedestrian End-to-end Detector (PED), which utilizes a dense query strategy, rectified attention fields, and visible-region supervision to bridge the performance gap between end-to-end transformers and traditional detectors in dense pedestrian environments.
Introduction
Traditional pedestrian detectors rely on pre-defined anchors and NMS to filter redundant predictions. In dense crowds, NMS often fails because it cannot distinguish between a duplicate detection of the same person and detections of two different people standing very close together. While DETR was designed to solve this via bipartite matching, it suffers from a "uniformity trap" where sparse queries struggle to adapt to locally dense pedestrian clusters. Furthermore, the Hungarian matching algorithm becomes a computational bottleneck as the number of objects increases.
Methodology
The authors propose three primary architectural improvements and an algorithmic optimization to adapt DETR for crowded scenes:
1. Dense Query (DQ) and Rectified Attention (DQRF)
Standard DETR uses a small number of queries spread uniformly. PED implements a Dense Query (DQ) module that allows for a much higher density of queries using a local self-attention mechanism. This ensures there are enough "hooks" to capture every person in a dense cluster without the quadratic memory costs of standard attention.
To prevent "attention drift"—where the model's focus shifts to a neighboring person—the Rectified Attention Field (DQRF) uses the bounding box predicted in the previous decoder layer to constrain the current layer's attention. This forces the model to focus on features within the actual body area of the target instance.
2. V-Match: Visible Region Supervision
In crowds, full bodies are often occluded, but heads or torsos remain visible. V-Match supervises early transformer layers to predict only the visible part of the pedestrian, while final layers predict the full body. This acts as a powerful regularizer, helping the model learn more discriminative features in occluded scenarios.
3. Fast-KM Matching
To address training speed, the authors introduced Fast-KM, a heuristic version of the Kuhn-Munkres algorithm. By matching ground-truth objects only to their nearest predicted proposals, they achieved a 10x speedup in the matching phase, making training practical for large-scale crowd datasets.
Experimental Results and Insights
The PED detector was evaluated on two major benchmarks:
- CrowdHuman: PED achieved 89.54% AP, a significant improvement over the 86.74% of Deformable DETR. It also reduced the Miss Rate ($MR^{-2}$) from 53.98% to 45.57%.
- CityPersons: On the "Heavy Occlusion" subset, PED reached an $MR^{-2}$ of 47.70%, outperforming specialized state-of-the-art models like ALFNet and CSP.
Key insights from these results confirm that anchoring attention fields to previous predictions prevents drift, and using visible regions as intermediate hints significantly improves robustness against occlusion.
Limitations and Conclusion
While PED successfully adapts DETR for crowds, challenges remain. Transformers still require longer training times (50-100+ epochs) compared to CNN-based detectors. Additionally, the Fast-KM heuristic, while effective for pedestrians, may need further validation on datasets with more varied object scales.
In conclusion, PED demonstrates that by implementing dense queries and rectifying attention fields, end-to-end transformers can match and exceed the performance of traditional detectors in the most challenging crowded environments.
Summary updated