Continual Learning for Out-of-Distribution Pedestrian Detection

Mahdiyar Molahasani, Ali Etemad, Michael A. Greenspan

Introduction

Pedestrian detection is a fundamental component of modern autonomous driving and surveillance systems. While deep learning models have achieved high accuracy on standard benchmarks, they often struggle with Out-of-Distribution (OOD) scenarios. A model trained on urban street scenes, for instance, may perform poorly when deployed in a high-density park or a different city with distinct environmental characteristics.

The conventional approach to addressing this performance gap is fine-tuning the model on new data. However, this typically triggers catastrophic forgetting, where the model's performance on the original training distribution degrades significantly as it adapts to the new one. This paper proposes a continual learning framework designed to allow pedestrian detectors to learn incrementally across shifting distributions without sacrificing prior knowledge.

Methodology

The authors utilize the Faster R-CNN architecture with a ResNet-50 backbone as their baseline. Their core contribution is a novel adaptation of Elastic Weight Consolidation (EWC) specifically tailored for the complexities of object detection.

Modified Elastic Weight Consolidation (EWC)

Standard EWC was originally developed for classification tasks. It preserves knowledge by calculating the "importance" of each model weight to the original task using a Fisher Information Matrix and penalizing changes to critical weights during subsequent training. However, pedestrian detection involves a dual objective: classification (identifying a person) and bounding-box regression (localizing them). These tasks operate on different numerical scales, which can lead to imbalances in weight importance calculation.

To bridge this gap, the researchers introduced two key modifications:

  1. Loss-based Importance: Instead of deriving weight importance from the model's raw output, they calculate it based on the derivative of the total network loss.
  2. Unified Integration: This approach allows the importance of a parameter to be determined relative to the combined detection loss, naturally balancing the classification and regression components regardless of their absolute value ranges.
Proposed architecture integrating modified EWC with Faster R-CNN.

Experimental Setup and Datasets

The study evaluates the proposed method using two major benchmarks that represent a significant distribution shift:

  • CityPersons: Focused on urban street scenes across various European cities.
  • CrowdHuman: Characterized by extreme crowd density and high levels of occlusion.

Using UMAP (Uniform Manifold Approximation and Projection), the authors confirmed that these datasets are statistically distinct, providing a rigorous test for OOD adaptation. The experiments focused on two scenarios: training on CrowdHuman then fine-tuning on CityPersons, and vice versa.

Key Results and Analysis

The proposed method demonstrated a superior ability to mitigate catastrophic forgetting compared to standard fine-tuning and other popular architectures like Cascade R-CNN.

  • Performance Gains: The modified EWC approach achieved a 9% reduction in miss rate for CrowdHuman and an 18% reduction for CityPersons compared to baseline fine-tuning.
  • Stability and Generalization: In Scenario 1, while standard fine-tuning caused the miss rate on the original dataset to spike by up to 30%, the proposed method limited this increase to just 5%. Interestingly, the authors observed that the model sometimes performed better on the original dataset after fine-tuning with EWC, suggesting that the model learned more robust, universal features by seeing the second distribution.
  • Occlusion Robustness: The model showed consistent improvements across all levels of pedestrian occlusion (Bare, Partial, and Heavy), indicating that the protected weights were critical for spatial localization.
Miss rate performance across training and fine-tuning phases for CrowdHuman and CityPersons.

Conclusion and Future Work

This research proves that protecting weights responsible for spatial regression is as vital as protecting classification weights in continual learning for detection. By balancing these tasks through a loss-based EWC modification, the authors achieved significant gains in OOD robustness.

Future work will focus on extending this approach to longer sequences of distributions beyond the current two-step evaluation. The authors also plan to explore the integration of "replay buffers"—storing a small subset of old data to revisit during training—and applying these principles to emerging architectures like Vision Transformers (ViTs).

Summary updated

BibTeX
@inproceedings{molahasani2023continual,
  author = {Mahdiyar Molahasani and Ali Etemad and Michael A. Greenspan},
  title = {{Continual Learning for Out-of-Distribution Pedestrian Detection}},
  booktitle = {ICIP},
  year = {2023},
  doi = {10.1109/icip49359.2023.10222758},
}
Figure