Robust Pedestrian Detection via Constructing Versatile Pedestrian Knowledge Bank

Sungjune Park, Hyunjun Kim, Yong Man Ro

TL;DR

Current pedestrian detectors often struggle when moved from one environment (like a sunny street) to another (like a crowded gym) because they overfit to their training data. This paper introduces a Versatile Pedestrian Knowledge Bank that extracts generalized human features from a large-scale model (CLIP) and curates them into a plug-and-play library that boosts the performance and robustness of any standard detection framework.

What Problem Does This Paper Address?

Pedestrian detection is a cornerstone of autonomous driving and surveillance. However, most models suffer from a "domain gap": a detector trained on dashcam footage might fail to recognize people in a security camera feed or a park setting. The features these models learn are often too specific to the background and lighting of their training set.

While large-scale pretrained models like CLIP contain vast, generalized knowledge about what a "pedestrian" looks like, this knowledge is often "suboptimal" for the specific task of detection. There is a semantic gap between general image-text matching (what CLIP does) and the fine-grained localization required for detection. The authors aim to bridge this gap by creating a centralized, task-specific "knowledge bank" that can be shared across different detection architectures.

Methods

The authors propose a two-step approach: Constructing the bank and Leveraging it.

Figure 1: The overall concept of our approach. We extract generalized pedestrian knowledge from a large-scale pretrained model and curate them to be exemplary and task-compatible. The knowledge bank stores such knowledge, and it can be leveraged into various frameworks for robust pedestrian detection in diverse scene data.
  1. Construction (The "Bank"):
    • Extraction: They feed thousands of pedestrian crops into a frozen CLIP image encoder to get generalized embeddings.
  2. Quantization: To avoid storing thousands of redundant features, they use Vector Quantization (k-means clustering) to distill these into $N$ representative "prototypes."
    • Task-Compatibility: CLIP features aren't perfect for detection. The authors add a Learnable Representation Hint ($f_h$) to these prototypes. This hint is trained to help the model distinguish pedestrians from background noise, making the features "task-compatible."
  3. Leveraging (The "Integration"):
    • When a standard detector (like Cascade R-CNN or D-DETR) processes an image, it generates its own "pedestrian features."
    • The system then uses a Multi-Head Cross-Attention mechanism (shown in Figure 3) where the detector's features act as a "query" to look up relevant, robust information from the Knowledge Bank.
  4. This "complemented" feature is then used for the final classification and bounding box localization.
Figure 3: The overview of leveraging task-compatible pedestrian knowledge f k. When pedestrian features f p come in as query features, f k functions as key and value features. So, f p can refer to f k, distin- guishable features from the bank, then the complemented pedestrian features f c can be obtained.

Datasets

The authors built their knowledge bank using only the CrowdHuman dataset, which contains diverse web-crawled images. They then evaluated the system's versatility across four major benchmarks:

  • CrowdHuman: High-density, complex scenes.
  • WiderPedestrian: Surveillance and urban driving environments.
  • CityPersons: Driving scenes across 18 different cities.
  • Caltech: Traditional driving scene dataset.

Key Insights and Ideas

  • Generalization via Distillation: By using CLIP as a starting point, the model inherits "world knowledge" that a standard detector trained from scratch would lack.
  • The Power of the "Hint": Raw CLIP features are great for classification but can be noisy for detection. The learnable hint $f_h$ acts as a bridge, shifting general features toward the specific needs of a detector (e.g., ignoring grass or road textures that might look like clothing).
  • Framework Agnostic: The knowledge bank isn't tied to one specific model. The authors proved it works equally well with region-proposal methods (Cascade R-CNN) and transformer-based methods (D-DETR).
  • Efficiency: By quantizing the bank to just 50 representative features, the authors achieved significant gains without a massive computational overhead during inference.

Key Results

The method achieved state-of-the-art (SOTA) results across the board.

  • CrowdHuman: On this challenging dataset, their D-DETR implementation reached 94.2% Average Precision (AP), outperforming existing specialized models like E2EDET.
  • Cross-Domain Robustness: Even though the bank was built using CrowdHuman data, it significantly improved performance on driving-specific datasets. On CityPersons, they achieved a 7.6% Miss Rate ($MR^{-2}$), a notable improvement over the baseline Sparse R-CNN's 10.0%.
  • Ablation Success: The authors found that adding the "Learnable Hint" provided a clear performance boost over using raw quantized CLIP features, confirming that task-specific tuning is essential.
Table 1: The comparison with existing pedestrian detection methods on CrowdHuman. ‘# Queries’ denotes the number of queries. For evaluation metrics, we adopt AP and MR−2. The higher AP means the better performance, and vice versa for MR−2.

Limitations and Future Work

The primary limitation acknowledged by the authors is that the knowledge bank must be prepared in advance (a two-step process). This means the system is not currently "end-to-end" in the strictest sense.

For future work, the authors suggest exploring ways to obtain and update these versatile representations simultaneously during the main training phase. They also see potential for this "knowledge bank" approach to be applied to other multi-domain computer vision tasks beyond just pedestrian detection.

Summary updated

BibTeX
@article{park2024robust,
  author = {Sungjune Park and Hyunjun Kim and Yong Man Ro},
  title = {{Robust Pedestrian Detection via Constructing Versatile Pedestrian Knowledge Bank}},
  journal = {Pattern Recognition},
  year = {2024},
  doi = {10.1016/j.patcog.2024.110539},
}
Figure