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

TL;DR

This paper reveals that catastrophic forgetting in continual object detection is primarily driven by the classification head, where teacher models provide confident but incorrect labels for new classes. By introducing Selective Distillation and an adaptive Huber loss, the authors significantly improve model plasticity, achieving state-of-the-art results without the need for a replay memory.

What Problem Does This Paper Address?

Continual Learning (CL) aims to help models learn from a stream of data where new classes or domains appear over time. The fundamental challenge is catastrophic forgetting: when a neural network learns a new task, it often abruptly loses the ability to perform previous ones.

In Continual Object Detection (COD), this is particularly difficult. Unlike simple classification, detection involves identifying multiple objects in a scene. Often, objects from "old" tasks appear in "new" task images but aren't labeled. Standard models then mistakenly learn to treat these old objects as "background." Knowledge distillation—where an old "teacher" model guides a new "student" model—is the standard fix, but existing methods often over-regularize the model, making it too "static" and preventing it from effectively learning new classes.

Methods

The authors analyze two-stage detectors (like Faster R-CNN) and propose two key improvements to the distillation process in the ROI-head (the final classification stage):

  1. Selective Distillation: The authors discovered that teacher models often confidently misclassify new objects (which they've never seen) as background or an old class. Distilling these errors confuses the student. They propose using current ground-truth labels to filter out region proposals that overlap significantly (IoU > 0.5) with new objects, ensuring the teacher only "teaches" about regions it truly understands.
  2. Huber Loss for Distillation: Standard methods use Mean Squared Error (MSE) for distillation. Because MSE is quadratic, it penalizes large differences very heavily. If a student tries to learn a new class that the teacher thinks is background, the massive gradient from the MSE distillation can "drown out" the learning signal for the new task. Replacing MSE with a Huber loss (which is linear for large differences) allows for a better trade-off between stability (retaining old knowledge) and plasticity (learning new things).
Teacher models often misclassify new objects, leading to conflicting signals during distillation.

Datasets

The approach was evaluated on several major benchmarks:

  • PASCAL VOC 2007: Tested in three class-incremental scenarios: 10+10 (10 classes then 10 more), 15+5, and 19+1.
  • MS COCO: A more complex 40+40 class-incremental scenario.
  • SODA10M (CLAD-D): A domain-incremental benchmark for autonomous driving, covering different weather and lighting conditions (clear, highway, night, rain).

Key Insights and Ideas

  • Forgetting is Localized: Through careful breakdown, the authors showed that the backbone and Region Proposal Network (RPN) are remarkably stable. The "catastrophic" forgetting happens almost entirely in the classification head.
  • The Teacher is Biased: In COD, the teacher model is inherently biased because it was never trained on the new classes. Forcing the student to match the teacher's incorrect "background" predictions for new objects is a major source of failure.
  • Restoring Plasticity: Baseline distillation methods often make models too "static." As shown in Figure 2, standard distillation (Faster-ILOD) leads to many "Wrong class" errors for new objects. The proposed method restores the model's ability to adapt.
Figure 2: Partitioning of the classification of all region proposals, by a model trained on only the classes of T1, one that is subsequently also finetuned on T2, a Faster-ILOD model and our improvement, see sections 3.3 and 4.

Key Results

The proposed modifications consistently outperformed the baselines:

  • On VOC 10+10, the method improved mean Average Precision (mAP) by 3.4 points over the Faster-ILOD baseline.
  • In the VOC 19+1 setting, it achieved 72.3 mAP, outperforming state-of-the-art methods like ORE and Meta, notably without requiring any replay memory.
  • On MS COCO 40+40, it reached 26.4 AP, a significant jump over Faster-ILOD (20.6) and Meta (23.8).
  • The method also proved effective in domain-incremental settings, showing it can handle distribution shifts (like rain or night) as well as new classes.
Normalized mAP results show that the proposed method (Ours) achieves a better balance across all classes compared to baselines.

Limitations and Future Work

The authors note a few areas for further study:

  • Visual Overlap: The datasets used often have images containing objects from both tasks. It remains to be seen how the method performs if tasks are visually completely disjoint.
  • Longer Sequences: The study focused on two-task sequences. Testing on longer sequences of many tasks is necessary to evaluate long-term stability.
  • Causal Factors: While they addressed major issues, the complexity of object detectors means other subtle factors contributing to forgetting might still exist.

Future research could explore how these improved distillation techniques interact with rehearsal-based methods (using a small memory of old images) to achieve even greater performance.

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