Abstract
Incremental few-shot object detection (iFSD) aims to expand a detector's vocabulary with novel classes using only a few examples, without access to the original training data. Standard approaches often suffer from catastrophic forgetting of base classes or overfitting to novel ones. We present Incremental-DETR, a framework built on the Deformable DETR architecture that leverages self-supervised pseudo-labeling and masked knowledge distillation. By isolating class-specific components and employing a teacher-student distillation strategy, Incremental-DETR achieves state-of-the-art performance on MS COCO and PASCAL VOC benchmarks, maintaining high accuracy on base classes while effectively learning novel categories.
Introduction
Deep learning models typically struggle with "catastrophic forgetting"—the tendency to lose performance on previously learned tasks when trained on new data. In the context of object detection, this is particularly challenging when new (novel) classes are introduced with very limited data (few-shot). Existing methods often require the original "base" dataset to be present during fine-tuning, which is often impractical due to privacy or storage constraints.
Incremental-DETR addresses this by treating the detection transformer as a combination of class-agnostic and class-specific modules. The goal is to adapt the model to novel classes while preserving the rich feature representations learned during base training.
Methodology
The Incremental-DETR framework operates in two distinct stages.
Stage 1: Base Training and Self-Supervised Adaptation
The model is first trained on an abundant base dataset. To enhance the model's ability to recognize generic "objectness," the authors introduce a self-supervised fine-tuning step. Using Selective Search, unsupervised object proposals are generated from the background of base images. These proposals serve as pseudo-labels to fine-tune the classification head and projection layer, preparing the model for unseen categories.
Stage 2: Incremental Few-Shot Fine-Tuning
When novel classes are introduced, the model enters an incremental learning phase. To prevent forgetting and overfitting, the backbone, transformer encoder/decoder, and regression head are frozen, as they are considered class-agnostic. Only the projection layer and classification head are updated.
A key innovation is Masked Feature Distillation. A teacher model (the original base model) guides the student model. To avoid conflicts between base and novel features, a binary mask is applied based on the novel objects' bounding boxes. This ensures that distillation only preserves base knowledge in areas not occupied by novel objects. Additionally, a KL-divergence loss is used for classification distillation to maintain base class probabilities.
Experimental Results
The framework was evaluated on MS COCO 2017 and PASCAL VOC 2007 benchmarks.
Performance on MS COCO
Incremental-DETR demonstrates significant improvements over baseline methods like ONCE and iMTFA. In the 10-shot scenario on MS COCO, the model achieved 24.1% AP, outperforming iMTFA by nearly 5 points.
Base Class Preservation and Cross-Dataset Transfer
A critical metric for incremental learning is the retention of base class performance. Incremental-DETR maintains base AP levels very close to the original model (e.g., 41.9% vs 44.8% in a 40+1 class split). In cross-dataset tasks (COCO to VOC), the model achieved 16.6% AP in a 5-shot setting, a substantial lead over the 2.4% AP achieved by previous methods.
Conclusion
Incremental-DETR effectively bridges the gap between few-shot learning and incremental object detection. By identifying class-specific bottlenecks and employing masked distillation, it mitigates catastrophic forgetting while enabling rapid adaptation to new classes. While 1-shot performance remains a challenge, the framework sets a new benchmark for robust, scalable object detection in dynamic environments.
Summary updated