Incremental-DETR: Incremental Few-Shot Object Detection via Self-Supervised Learning

Na Dong, Yongqiang Zhang, Mingli Ding, Gim Hee Lee

TL;DR

Incremental-DETR introduces a robust framework for learning to detect new object classes from just a few examples (few-shot) without forgetting previously learned "base" classes. By strategically decoupling the class-specific and class-agnostic components of the DEtection TRansformer (DETR) and employing self-supervised pseudo-labeling alongside knowledge distillation, the authors achieve state-of-the-art performance in incremental few-shot object detection.

What Problem Does This Paper Address?

Standard deep learning object detectors are typically "static": they are trained on a fixed set of classes and require massive amounts of data. Extending these models to new classes presents two major hurdles:

  1. Catastrophic Forgetting: When fine-tuned on new data, models quickly lose their ability to recognize the original "base" classes.
  2. Overfitting: In real-world scenarios, data for new classes is often scarce. Training on only a few samples (few-shot learning) usually leads to poor generalization.

While previous research has tackled these issues using the Faster R-CNN framework, the more recent and powerful DETR (DEtection TRansformer) architecture is harder to adapt. DETR lacks a separate region proposal network, making it difficult to decouple class-independent object localization from class-specific identification. Incremental-DETR aims to bridge this gap.

Methods

The authors propose a two-stage training strategy based on a key architectural insight: in DETR, the projection layer and classification head are class-specific, while the CNN backbone, transformer, and regression head are class-agnostic.

Stage I: Base Model Pre-training & Self-Supervision

First, the model is trained on abundant base class data. To ensure the projection layer generalizes well to unseen objects, the authors introduce a self-supervised fine-tuning step. They use the Selective Search algorithm to generate object proposals in the background of base images. These proposals act as "pseudo-labels," forcing the model to learn to project features for any potential object, not just the base classes.

Stage II: Incremental Few-Shot Fine-Tuning

When novel classes are introduced with only a few samples (e.g., 1, 5, or 10 shots), the class-agnostic components are frozen. Only the class-specific projection layer and classification head are updated. To prevent forgetting the base classes, the authors employ two distillation techniques:

  • Masked Feature Distillation: The model is encouraged to keep its feature representations similar to the base model, but only in areas not occupied by the new novel objects.
  • Classification Distillation: The model uses the base model’s predictions as pseudo-ground truths for base classes during the new training phase.
Figure 2: Overview of our proposed incremental few-shot fine-tuning stage. Parameters of the modules shaded in green are frozen during training. Refer to the text for more details.

Datasets

The model was evaluated on two standard benchmarks:

  • MS COCO 2017: Used for both same-dataset evaluation (60 base classes, 20 novel classes) and general incremental detection (40+40 and 40+1 settings).
  • PASCAL VOC 2007: Used for cross-dataset evaluation, where the model is pre-trained on COCO and then adapted to VOC novel classes.

Key Insights and Ideas

  • Architectural Decoupling: The discovery that the transformer and regression head in DETR are inherently class-agnostic allows for a "freeze-and-fine-tune" strategy that significantly mitigates catastrophic forgetting.
  • The Power of Background: By treating background proposals from Selective Search as pseudo-objects during base training, the model learns a more "transferable" feature space, making it much easier to pick up new classes later.
  • Masked Distillation is Crucial: Simply distilling all features can hinder the learning of new classes. Masking out the novel objects during distillation ensures the model doesn't get "conflicting signals" between old and new knowledge.

Key Results

Incremental-DETR significantly outperforms prior state-of-the-art methods like ONCE and iMTFA across various settings:

  • MS COCO (10-shot): Achieved 24.1% AP for all classes, compared to 19.3% for iMTFA.
  • Cross-Dataset (COCO to VOC, 10-shot): Achieved a massive jump to 24.6% AP on novel classes, whereas the previous best (ONCE) only reached 2.6% AP.
  • Base Class Preservation: In the "40+40" incremental setting on COCO, the model maintained 44.0% AP on base classes, nearly matching the performance of a model trained only on those base classes (44.8% AP).
Table showing the performance comparison on the COCO dataset. Incremental-DETR consistently outperforms competitors in Base, Novel, and All class categories.

Limitations and Future Work

While the results are impressive, the authors note that the performance on novel classes still lags behind models trained with full supervision. The reliance on Selective Search—a traditional, non-learnable algorithm—for pseudo-labeling might also be a bottleneck. Future work could explore integrating learnable proposal generators or more advanced self-supervised pretext tasks to further improve the generalizability of the feature projection.

Summary updated

BibTeX
@inproceedings{dong2023incremental,
  author = {Na Dong and Yongqiang Zhang and Mingli Ding and Gim Hee Lee},
  title = {{Incremental-DETR: Incremental Few-Shot Object Detection via Self-Supervised Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25129},
}
Figure