Re-examining Distillation for Continual Object Detection

Eli Verwimp, Kuo Yang, Sarah Parisot, Lanqing Hong, Steven McDonagh, Eduardo Pérez-Pellitero, Matthias De Lange, Tinne Tuytelaars · DOI · OpenReview

Abstract

Continual Object Detection (COD) aims to enable models to learn new object classes sequentially without forgetting previously acquired knowledge. This paper investigates the mechanisms of "catastrophic forgetting" in two-stage detectors, identifying the classification head as the primary source of performance degradation. We propose two lightweight modifications to the standard distillation framework: Selective Distillation and the use of Adaptive Huber Loss. By filtering unreliable teacher predictions and adopting a loss function less sensitive to outliers, our approach achieves state-of-the-art results on PASCAL VOC and MS COCO benchmarks without the need for memory-intensive replay buffers.

Introduction

In the field of computer vision, the stability-plasticity dilemma remains a fundamental challenge. Models must be plastic enough to integrate new information while remaining stable enough to retain old knowledge. While this has been extensively explored in image classification, Continual Object Detection (COD) presents unique complexities. In COD, images containing new classes often contain unlabeled instances of old classes, and vice versa.

Most existing COD frameworks utilize knowledge distillation, where a "teacher" model (trained on previous tasks) supervises a "student" model (learning the current task). However, standard distillation often fails to prevent catastrophic forgetting. This research re-examines the distillation process to identify why the teacher-student dynamic often breaks down in detection tasks.

The Source of Catastrophic Forgetting

A key contribution of this work is the localization of forgetting within the architecture of a two-stage detector, such as Faster R-CNN. Through empirical analysis, it was discovered that the feature-extracting backbone and the Region Proposal Network (RPN) are remarkably resilient to forgetting. Instead, the "catastrophic" drop in performance occurs almost exclusively within the ROI-head (the final classification and bounding box refinement stage).

In standard distillation, the teacher model provides predictions for all regions. When the student encounters a new class that the teacher never learned, the teacher often confidently labels that region as "background" or an incorrect old class. Because standard distillation typically employs Mean Squared Error (MSE), these high-confidence errors result in massive loss penalties, effectively "bullying" the student into ignoring the new ground-truth labels in favor of the teacher's incorrect guidance.

Proposed Methodology

To address these issues, the researchers propose two primary modifications to the distillation pipeline:

1. Selective Distillation

To prevent the teacher from poisoning the student's learning of new classes, the authors introduced a spatial filter. If a region proposal has an Intersection over Union (IoU) greater than 0.5 with a ground-truth object of a current task, that proposal is excluded from the distillation loss. This ensures that the teacher only provides guidance on regions where it is likely to be competent (i.e., areas not containing new objects), allowing the student to learn new classes from the current ground-truth labels without interference.

2. Adaptive Huber Loss

Standard distillation relies on MSE, which penalizes differences quadratically. This makes the student highly sensitive to any deviation from the teacher. The authors replaced MSE with a Huber loss, which is quadratic for small differences but linear for large ones. This change grants the student more "permission" to disagree with the teacher when the signal from the new task's ground truth is strong, preventing the model from becoming overly static and unresponsive to new information.

Experimental Evaluation

The proposed method was evaluated across several standard benchmarks using class-incremental and domain-incremental settings:

  • PASCAL VOC 2007: Evaluated on 10+10, 15+5, and 19+1 class splits. In the 10+10 split, the method improved mAP by 3.4 points over the Faster-ILOD baseline, outperforming more complex methods like ORE that utilize replay buffers.
  • MS COCO: On the challenging 40+40 split, the approach achieved an AP of 26.4, a significant jump from the baseline's 20.6.
  • SODA10M (CLAD-D): Experiments in domain-incremental learning (e.g., transitioning between different weather conditions) confirmed the robustness of the approach across varying visual domains.

Conclusion

This research demonstrates that state-of-the-art performance in Continual Object Detection does not necessarily require complex meta-learning or memory-heavy rehearsal buffers. By identifying the ROI-head as the primary site of forgetting and correcting the "bullying" nature of the teacher model through Selective Distillation and Huber loss, the authors provide a simpler, more efficient path forward for stable and plastic object detection models. Future work will focus on testing these improvements over longer sequences of tasks and exploring the underlying causal factors of detector complexity.

Summary updated

BibTeX
@misc{verwimp2022re,
  author = {Eli Verwimp and Kuo Yang and Sarah Parisot and Lanqing Hong and Steven McDonagh and Eduardo Pérez-Pellitero and Matthias De Lange and Tinne Tuytelaars},
  title = {{Re-examining Distillation for Continual Object Detection}},
  year = {2022},
  eprint = {2204.01407},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.01407},
}
Figure