Incremental Object Detection with CLIP

Yupeng He, Ziyue Huang, Qingjie Liu, Yunhong WangarXiv 2023 · DOI

Introduction

Incremental Object Detection (IOD) aims to teach models to recognize new categories over time without access to the original training data for old categories. This task faces two primary hurdles: Catastrophic Forgetting, where the model overwrites knowledge of old classes, and Data Ambiguity. Data ambiguity is particularly problematic in detection; during early training, images may contain objects from future classes. Since these classes are unknown, they are labeled as background, effectively teaching the model to ignore valid objects.

This paper introduces IODC (Incremental Object Detection with CLIP), a framework that leverages the zero-shot capabilities of vision-language models to address these issues. While most research focuses on backward compatibility (retaining past knowledge), IODC emphasizes forward compatibility—preparing the model's feature space to incorporate future categories seamlessly.

Methods

The IODC framework integrates three main components to create a "CLIP-powered" incremental detector:

  • Text Feature Alignment: Instead of a fixed-length classification head, IODC uses CLIP’s text encoder to generate embeddings for class names. The detector maps visual features into this language-aligned space, making the model "growable" by simply adding new text embeddings for novel classes.
  • Broad Classes and Category Mapping: To anticipate unknown future classes, the authors utilize "broad classes" (e.g., "animal," "furniture") during initial training. CLIP naturally associates sub-classes (like "cat") with their parent categories. A mapping strategy then transfers knowledge from these broad categories to specific new ones as they are introduced.
  • Identifying Unknown Classes (Pseudo-labeling): To mitigate data ambiguity, the CLIP image encoder scans "background" proposals. If CLIP identifies a region as a potential "broad class" with high confidence, it is treated as a pseudo-labeled object rather than background, preventing the model from learning to ignore future classes.
The IODC framework architecture, showing training on base classes (T1) and novel classes (T2) with CLIP-based distillation and pseudo-labeling.

Experimental Results

The researchers evaluated IODC on the PASCAL VOC 2007 dataset across three standard incremental settings: 10+10, 15+5, and 19+1. IODC consistently outperformed existing benchmarks like ILOD, IODML, and open-world detectors like ORE and OW-DETR.

Performance comparison of IODC against state-of-the-art methods across various incremental settings on PASCAL VOC.

Key findings include:

  • Overall Accuracy: In the 19+1 setting, IODC achieved 72.3 mAP, a significant improvement over the previous baseline (IODML at 70.2 mAP).
  • Novel Class Performance: The gains were most pronounced in learning new classes. In the 10+10 setting, IODC reached 69.15 mAP on novel classes, compared to IODML's 64.26 mAP.
  • Ablation Success: Results indicated that while text alignment is beneficial, the combination of broad classes and CLIP-based pseudo-labeling provides the most substantial boost to novel class learning.

Discussion and Future Work

A key insight of this work is the "Parent Class Advantage." CLIP's zero-shot classification often ranks correct parent categories highly even when identifying specific sub-categories. Exploiting this "inadvertent connection" allows the model to reserve feature space for future sub-classes. Furthermore, aligning visual features with a pre-trained language space provides a "semantic prior" that eases transitions during incremental steps.

However, some limitations remain. Using the CLIP image encoder during training is computationally expensive, and currently, parent categories are manually selected. Future work could automate this process or utilize more advanced models like RegionCLIP. By actively "cleaning" background labels using a powerful frozen model like CLIP, IODC demonstrates a highly effective path toward maintaining forward compatibility in incremental learning.

Summary updated

BibTeX
@misc{he2023incremental,
  author = {Yupeng He and Ziyue Huang and Qingjie Liu and Yunhong Wang},
  title = {{Incremental Object Detection with CLIP}},
  year = {2023},
  eprint = {2310.08815},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.08815},
}
Figure