TL;DR
DyQ-DETR introduces a dynamic architecture for Incremental Object Detection (IOD) by expanding the set of learnable object queries as new classes arrive. By disentangling self-attention and isolating bipartite matching between different learning phases, the model achieves a superior balance between learning new concepts (plasticity) and retaining old ones (stability) with minimal computational overhead.
What Problem Does This Paper Address?
In the real world, data doesn't arrive all at once; it flows in stages. Incremental Object Detection (IOD) aims to teach a model new classes over time without access to the full original dataset. The primary hurdle is catastrophic forgetting: when a model is fine-tuned on new data, it often "overwrites" the weights used to recognize old classes.
Most existing solutions rely on Knowledge Distillation (mimicking the old model's outputs) or Exemplar Replay (keeping a tiny "memory bank" of old images). However, these methods often struggle with a fixed model capacity—trying to cram more and more knowledge into the same number of parameters eventually leads to a "stability-elasticity dilemma." Furthermore, in Transformer-based detectors like DETR, the fixed set of object queries becomes a bottleneck, as they are forced to represent an ever-growing variety of classes.
Methods
The authors propose Dynamic object Query-based DEtection TRansformer (DyQ-DETR). The core innovation is treating object queries as "class-specific representative essence" that can be expanded dynamically.
- Dynamic Object Query Assembly: Instead of a static set of 300 queries, the model adds a new group of learnable queries ($Q_t$) for every new set of classes. These are aggregated with queries from previous steps ($Q_{1:t-1}$).
- Disentangled Self-Attention: To prevent the computational cost from exploding (standard self-attention is $O(N^2)$), the authors eliminate interaction between query groups from different phases. This keeps the computational growth linear and, crucially, reduces inter-class confusion by preventing old and new queries from interfering with one another.
- Isolated Bipartite Matching: During training, the model performs bipartite matching (assigning predictions to ground truth) separately for each phase. This ensures that new class annotations don't "confuse" the queries responsible for old classes.
- Risk-Balanced Partial Calibration: For exemplar replay, the authors argue that picking the "easiest" or "hardest" samples isn't optimal. They select "middle-risk" samples—those that are informative but still reliably annotated. They then perform "partial calibration," supervising only the queries corresponding to the classes actually present in the exemplar.
Datasets
The researchers evaluated their method on the COCO 2017 dataset, the standard benchmark for object detection. They tested several incremental scenarios:
- Two-phase settings: 40+40 (learning 40 classes, then another 40) and 70+10.
- Multi-phase settings: 40+20×2 and 40+10×4 (learning classes in smaller, more frequent batches).
- They utilized both the traditional protocol (where images might repeat across phases) and a revised protocol (which ensures no image overlap between phases to better simulate real-world incremental learning).
Key Insights and Ideas
- Queries as Memory: The most profound insight is that in a DETR-like architecture, the object queries themselves can act as the "memory" of the model. By freezing old queries and adding new ones, you effectively create a modular brain that grows as it learns.
- The Power of Decoupling: By "disentangling" the self-attention, the authors found they could maintain high performance while significantly reducing the interference between old and new knowledge. It turns out that queries for "dogs" (learned in step 1) don't necessarily need to talk to queries for "airplanes" (learned in step 2) to be effective.
- Efficiency via Sparsity: Despite adding more queries, the model remains efficient. Because of the removed inter-group interactions, adding 100 queries per stage over 20 stages only increases GFLOPs by 39% compared to a standard static model, while maintaining much higher accuracy.
Key Results
DyQ-DETR sets a new state-of-the-art for IOD:
- Non-Exemplar Scenarios: In the 40+40 setting without saving any old images, DyQ-DETR improved the Average Precision (AP) by 2.9% over the previous best method (CL-DETR). In the 70+10 setting, the jump was even larger: 3.7% AP.
- Exemplar Replay: When allowed to save 10% of the data, DyQ-DETR achieved an average improvement of 2.9% AP across benchmarks.
- Stability: In the 40+40 setting, the model achieved 41.3% AP for old classes and 38.6% for new classes, showing a remarkably healthy balance between remembering and learning.
Limitations and Future Work
The authors acknowledge that while the model scales well to a moderate number of steps (e.g., 20), it may face challenges in extremely long-term incremental learning where the number of queries might eventually become unwieldy.
Future work could explore more sophisticated ways to prune or merge queries that have become redundant over time. Additionally, while this paper focuses on the Transformer decoder, exploring dynamic expansions in the backbone or encoder could further push the boundaries of incremental learning.
Summary updated