Abstract
Incremental Object Detection (IOD) aims to enable models to learn new object categories sequentially without forgetting previously acquired knowledge. While traditional CNN-based detectors have seen success in this area, modern transformer-based detectors like DEtection TRansformer (DETR) face unique challenges, including background imbalance and contradictory supervision signals. This paper introduces CL-DETR (ContinuaL DEtection TRansformer), a framework designed to mitigate catastrophic forgetting in transformer-based architectures. By employing Detector Knowledge Distillation (DKD) and a distribution-preserving calibration strategy, CL-DETR achieves state-of-the-art performance on the COCO 2017 benchmark, significantly outperforming existing incremental learning methods.
Introduction
Object detection models are typically trained on static datasets with a fixed number of categories. However, real-world applications often require models to adapt to new classes over time. The primary hurdle in this sequential learning process is catastrophic forgetting, where the model's performance on original tasks degrades sharply as it learns new ones.
While techniques such as Knowledge Distillation (KD) and Exemplar Replay (ER) have been effective for CNN-based detectors like Faster R-CNN, they do not translate directly to transformer-based detectors. The parallel query mechanism of transformers introduces specific obstacles that necessitate a specialized approach to incremental learning.
The Challenges of Transformer-based IOD
The authors identify two fundamental reasons why standard incremental learning techniques fail when applied to architectures like Deformable DETR:
- Background Imbalance: Transformer-based detectors utilize hundreds of parallel object queries. In any given image, only a few queries correspond to actual objects, while the vast majority predict the background. Standard KD methods attempt to distill all query outputs, causing the distillation signal to be overwhelmed by redundant background noise.
- Contradictory Supervision: In an incremental setting, an image may contain both "old" (previously learned) and "new" (currently being learned) objects. Standard KD encourages the model to remember old objects based on the teacher model's predictions. However, the ground-truth labels for the new task only annotate the new categories, effectively treating the old objects as background. This creates conflicting signals that confuse the optimization process.
The CL-DETR Framework
To address these issues, CL-DETR introduces two primary innovations designed to streamline the distillation process and maintain data integrity.
Detector Knowledge Distillation (DKD)
Instead of distilling all predictions (logits), DKD focuses exclusively on the most confident foreground predictions from the previous model. These high-confidence predictions are treated as pseudo-labels for the old categories. These pseudo-labels are then merged with the ground-truth labels of the new categories.
By using a joint bipartite matching process during training, the model receives a unified set of instructions. This ensures that the detector learns new classes while maintaining clear, non-contradictory information about the location and classification of old objects, effectively bypassing the background noise issue.
Distribution-Preserving Calibration
Traditional exemplar replay strategies often attempt to maintain a balanced number of images for every class in the memory buffer. However, real-world object distributions are naturally skewed. The authors argue that forcing a balanced distribution creates a mismatch between training and testing statistics.
CL-DETR utilizes a Distribution-Preserving Calibration strategy. It selects exemplars to match the natural label distribution of the original dataset by minimizing the Kullback-Leibler (KL) divergence between the exemplar set and the full dataset. This ensures the model remains robust to the natural frequency of objects encountered in the real world.
Experimental Results
The framework was evaluated using the COCO 2017 dataset under various incremental scenarios, including two-phase (70+10, 40+40) and multiple-phase (40+20×2, 40+10×4) settings. The authors also implemented a stricter evaluation protocol where images are not repeated across training phases to better simulate real-world sequential learning.
Key Findings
- Performance Gains: On the COCO 70+10 task using Deformable DETR, CL-DETR achieved 40.1% Average Precision (AP). This represents a 4.2 percentage point improvement over standard KD and ER implementations (35.9% AP).
- State-of-the-Art Comparison: CL-DETR consistently outperformed established incremental detection methods such as iCaRL and ERD across all tested architectures, including Deformable DETR and UP-DETR.
- Long-term Stability: In multi-phase experiments, the performance gap between CL-DETR and competing methods widened as more phases were added, proving its resilience against forgetting over extended learning sequences.
Conclusion and Future Work
CL-DETR demonstrates that for transformer-based detectors, distilling knowledge at the label level via pseudo-labels is significantly more effective than logit-level distillation. By focusing on foreground queries and preserving natural class distributions, the framework sets a new standard for Incremental Object Detection.
Future research directions include adapting the framework for online learning (where data arrives image-by-image rather than in phases) and simplifying the two-step training process. Additionally, testing the scalability of distribution-preserving calibration on datasets with thousands of classes remains an important next step for the field.
Summary updated