Non-exemplar Domain Incremental Object Detection via Learning Domain Bias

Xiang Song, Yuhang He, Songlin Dong, Yihong Gong

Abstract

Domain Incremental Object Detection (DIOD) is a critical task for deploying computer vision models in evolving real-world environments. Traditional methods often suffer from catastrophic forgetting or require storing sensitive exemplar data from previous domains. We propose Learning Domain Bias (LDB), a novel framework that leverages the inherent feature-clustering capabilities of frozen model weights while adapting to new domains through lightweight, learnable bias parameters. By integrating domain-specific biases into a Vision Transformer architecture and employing a Nearest Mean Classifier for domain selection, LDB achieves state-of-the-art performance on Pascal VOC and BDD100K benchmarks with negligible parameter growth and zero forgetting of prior knowledge.

Introduction

In practical applications like autonomous driving, models trained in one environment (e.g., sunny weather) must adapt to others (e.g., rain or different artistic styles) without losing their original capabilities. This phenomenon, known as catastrophic forgetting, typically occurs when a model's weights are updated to fit new data, overwriting previously learned features.

Existing DIOD solutions often rely on "exemplars"—subsets of old data used for rehearsal—which pose privacy risks and storage challenges. Non-exemplar methods often struggle with the dual task of classification and localization across large domain gaps. LDB addresses these issues by observing that while model weights are robust at clustering objects, domain-specific biases are necessary to resolve "cluster confusion" in new environments.

Visualization of cluster confusion in Domain B and its resolution using LDB.

Proposed Method: Learning Domain Bias (LDB)

The LDB framework is built upon the ViTDet architecture. The core philosophy is to keep the foundational knowledge (weights) static while fine-tuning the domain-specific interpretation (biases).

1. Weight Freezing and Domain Biases

After initial training on a base domain, the backbone weights are frozen. For each subsequent domain $t$, the model introduces a small set of learnable Domain Biases:

  • MHA Bias ($b_a^t$): Adjusts the Multi-Head Attention layers to refine spatial relationships in the new domain.
  • MLP Bias ($b_p^t$): Adjusts the Multi-Layer Perceptron layers to better separate class features.

These biases allow the model to "shift" its feature space to align with the new domain's characteristics without altering the underlying feature extractor.

Detailed architecture of a Transformer block with integrated learnable domain biases.

2. Domain Selection

To handle inference on images from unknown domains, LDB utilizes a Nearest Mean Classifier (NMC). A pre-trained feature extractor generates a "fingerprint" for the input image, which is compared against the stored mean fingerprints of all known domains. The system then dynamically activates the corresponding set of domain biases.

Experimental Evaluation

LDB was evaluated on two major benchmarks:

  • Pascal VOC Series: A transition through four styles: Real-world $\rightarrow$ Clipart $\rightarrow$ Watercolor $\rightarrow$ Comic.
  • BDD100K Series: Autonomous driving scenarios involving transitions from standard urban scenes to rainy conditions.

Key Results

  • Performance: On the Pascal VOC series, LDB achieved a mean Average Precision (mAP) of 56.8%, outperforming the previous state-of-the-art non-exemplar method, CIFRCN (53.5%).
  • Efficiency: The additional parameters required for each new domain are minimal, representing only 0.19% of the total model size for the Pascal VOC series.
  • Zero Forgetting: Since the parameters for previous domains remain untouched, the model maintains 100% of its original performance on those domains, provided the domain selector correctly identifies the input.

Conclusion

Learning Domain Bias (LDB) provides a highly efficient and privacy-preserving solution for incremental learning in object detection. By decoupling domain adaptation from core feature extraction, it eliminates catastrophic forgetting and handles significant domain shifts effectively. Future work will focus on improving the robustness of the domain selector and exploring parameter sharing between related domains to further enhance scalability.

Summary updated

BibTeX
@inproceedings{song2024non,
  author = {Xiang Song and Yuhang He and Songlin Dong and Yihong Gong},
  title = {{Non-exemplar Domain Incremental Object Detection via Learning Domain Bias}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i13.29427},
}
Figure