Continual Universal Object Detection

Xialei Liu, Hao Yang, Avinash Ravichandran, Rahul Bhotika, Stefano SoattoarXiv 2020

Abstract

Multi-task learning shares knowledge and computation among multiple tasks. However, it suffers from catastrophic forgetting when learned incrementally without access to old data. Most existing object detectors are domain-specific and static. Training an object detector incrementally across various domains has rarely been explored. We propose three incremental learning scenarios across various domains and categories. To mitigate catastrophic forgetting, attentive feature distillation (AFD) is proposed, leveraging both bottom-up and top-down attention to extract important information for distillation. We find that domain gaps have a smaller negative impact than category differences. For difficult cases with large gaps, we explore three exemplar sampling methods, showing that adaptive sampling effectively selects diverse and informative samples to prevent forgetting. Experimental results show significant improvement across seven object detection benchmark datasets.

Introduction

Most modern object detectors are static, trained on fixed datasets. Updating these models with new data (e.g., adding "kitchen appliances" to a model trained on "traffic signs") typically leads to catastrophic forgetting, where new knowledge overwrites the old. In object detection, this is particularly challenging due to background noise, domain gaps (e.g., real photos vs. watercolors), and data constraints in real-world deployments.

Methods: Attentive Feature Distillation

To address these challenges, we introduce Attentive Feature Distillation (AFD). Unlike standard distillation that treats all features equally, AFD applies two types of attention masks to focus the learning process:

  • Bottom-up Attention: Uses self-attention to identify generally important regions in the image.
  • Top-down Attention: Leverages ground-truth bounding boxes and Region Proposal Network (RPN) outputs to focus distillation on foreground objects.
The proposed Attentive Feature Distillation (AFD) framework, utilizing previous and current feature extractors with attention-based loss functions.

Additionally, we employ Adaptive Exemplar Sampling to maintain a small set of previous data. This strategy balances "hard" informative samples (those with many objects) and diverse random samples using a parameter $\eta$.

Key Insights

Our analysis revealed several critical findings:

  • Category Gaps > Domain Gaps: Domain shifts (e.g., photo to comic) have a smaller impact on forgetting than category differences. Backbone features remain relatively stable if categories are shared.
  • The "More-to-Less" Penalty: Forgetting is more severe when moving from a complex task with many classes (like COCO) to a simpler one (like VOC).
  • Context Preservation: Detection distillation must preserve background context around objects to help the RPN distinguish foreground from background.

Experimental Results

The AFD method consistently outperformed baselines like Learning without Forgetting (LwF) and Elastic Weight Consolidation (EWC). In the challenging KITTI $\rightarrow$ Kitchen scenario, adding just 100 exemplars (less than 3% of the data) alongside AFD improved performance by approximately 50% over simple fine-tuning.

Forgetting matrices showing the performance degradation of fine-tuning compared to the stability of the proposed method across a sequence of six tasks.

As shown in the forgetting matrices, our method maintains significantly higher mean Average Precision (mAP) for early tasks as the training sequence progresses, effectively mitigating catastrophic forgetting.

Conclusion

While AFD significantly reduces forgetting, a performance gap remains compared to joint training on all data simultaneously. Future work will focus on bridging this gap and investigating the saturation points of forgetting in even longer task sequences.

Summary updated

BibTeX
@misc{liu2020continual,
  author = {Xialei Liu and Hao Yang and Avinash Ravichandran and Rahul Bhotika and Stefano Soatto},
  title = {{Continual Universal Object Detection}},
  year = {2020},
  eprint = {2002.05347},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.05347},
}
Figure