NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Continual Object Detection via Prototypical Task Correlation Guided Gating Mechanism

Binbin Yang, Xinchi Deng, Han Shi, Changlin Li, Gengwei Zhang, Hang Xu, Shen Zhao, Liang Lin, Xiaodan Liang

Introduction

Continual Object Detection (COD) is a critical capability for autonomous systems that must operate in dynamic environments. Unlike standard object detection, where a model is trained on a static dataset, COD requires a model to learn new tasks sequentially without forgetting previously acquired knowledge—a phenomenon known as "catastrophic forgetting." In detection tasks, this problem is exacerbated by the dual requirement of localization and identification, as well as the significant domain shifts that occur when moving between disparate environments (e.g., from outdoor driving to indoor kitchen settings).

Existing approaches often rely on exemplar replay, which involves storing a subset of previous data. However, this is frequently impractical due to privacy concerns and storage limitations. To address these challenges, this paper introduces ROSETTA (pRotOtypical taSk corrElaTion guided gaTing mechAnism), a framework that utilizes task-specific gating to manage neural resources efficiently and intelligently.

Methodology

ROSETTA is built upon three primary components designed to balance knowledge retention with new task plasticity: a Task-Aware Gated Detector, a Soften-and-Discretize training strategy, and a Gating Diversity Controller (GDC).

Task-Aware Gated Detector

Rather than updating the entire network for every new task, ROSETTA employs channel-level gates within the convolutional layers of the detector. For any given task, the model learns a specific binary mask that activates only a subset of neurons. This architecture allows the model to preserve the weights of neurons critical for old tasks while specializing others for new data.

Soften-and-Discretize Strategy

A significant hurdle in training gated networks is that discrete (binary) gates are non-differentiable, making standard backpropagation impossible. ROSETTA overcomes this using a "Soften-and-Discretize" strategy. During the training phase, the gates are treated as continuous "soft" values, allowing for gradient-based optimization. Once training is complete, these values are discretized into binary gates for inference, ensuring a stable and efficient architecture.

Gating Diversity Controller (GDC)

The GDC serves as the decision-making core of the system. It manages a memory bank of prototypes—compact, average feature representations of each object class. When a new task is introduced, the GDC calculates the correlation between the new classes and the existing prototypes.

This correlation guides the gating logic:

  • High Similarity: If the new task is similar to a previous one (e.g., transitioning from COCO to Pascal VOC), the GDC encourages the sharing of existing channels to leverage prior knowledge.
  • Low Similarity: If there is a large domain gap (e.g., transitioning from outdoor KITTI data to indoor Kitchen data), the GDC activates exclusive, new channels to prevent interference and preserve the integrity of the original task's features.

Furthermore, the GDC incorporates class embeddings (semantic word vectors of labels) to provide the model with global context regarding the objects it is expected to detect before processing image pixels.

Experimental Evaluation

The ROSETTA framework was evaluated across several rigorous benchmarks to test its versatility:

  • Task and Class Incremental Learning: Evaluated using COCO and Pascal VOC datasets to measure performance as new classes are added.
  • Domain Shift: Tested using the KITTI (outdoor) and Kitchen (indoor) datasets to observe how the model handles massive changes in background and object types.
  • Sequential Learning: A long-form evaluation involving a four-dataset sequence: COCO → VOC → KITTI → Kitchen.

Results and Discussion

ROSETTA achieved state-of-the-art (SOTA) results across all tested scenarios, demonstrating superior robustness compared to existing methods like AFD and ORE.

  • Handling Domain Shift: In the KITTI → Kitchen transfer, ROSETTA outperformed the previous best method (AFD) by 5.8 mAP on the initial task and 5.7 mAP on the subsequent task, proving that intelligent channel allocation effectively mitigates interference between unrelated domains.
  • Class-Incremental Performance: On the Pascal VOC "10+10" setting, the model surpassed the ORE method by 2.2 mAP.
  • Long-term Stability: In the four-task sequential learning test, ROSETTA maintained an average mAP of 70.4%. In contrast, standard fine-tuning approaches saw performance plummet to 38.4% due to catastrophic forgetting.

Conclusion and Future Work

ROSETTA demonstrates that "sharing isn't always caring" in continual learning; by selectively sharing or isolating features based on prototypical task correlation, the model achieves high performance without the need for extensive data replay. This makes it a privacy-friendly and memory-efficient solution for real-world applications.

Future work may involve extending this gating logic to multi-modal systems that combine visual and textual data. Additionally, while ROSETTA is compatible with various backbones like Faster R-CNN and Sparse R-CNN, the current implementation is tied to the specific convolutional architecture of the backbone, suggesting a potential area for more architecture-agnostic gating mechanisms.

Summary updated

BibTeX
@inproceedings{yang2022continual,
  author = {Binbin Yang and Xinchi Deng and Han Shi and Changlin Li and Gengwei Zhang and Hang Xu and Shen Zhao and Liang Lin and Xiaodan Liang},
  title = {{Continual Object Detection via Prototypical Task Correlation Guided Gating Mechanism}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure