Adversarial Alignment for Source Free Object Detection

Qiaosong Chu, Shuyan Li, Guangyi Chen, Kai Li, Xiu Li

Introduction

Deep learning models for object detection often suffer from significant performance degradation when deployed in environments that differ from their training data—a phenomenon known as "domain shift." While Unsupervised Domain Adaptation (UDA) typically addresses this by training on both source and target data simultaneously, real-world constraints such as data privacy, massive dataset sizes, and proprietary restrictions often make the original source data unavailable.

This creates the challenge of Source-Free Object Detection (SFOD), where a model must adapt to a new environment using only its pre-trained weights and unlabeled target images. The primary obstacle in SFOD is the inherent noise in "pseudo-labels"; because the source model is unfamiliar with the target domain, its initial predictions are often unreliable. $A^2$SFOD addresses this by using prediction variance to intelligently partition target data and bridge the domain gap through adversarial learning.

The $A^2$SFOD Framework

The $A^2$SFOD framework operates through a three-stage process designed to simulate the presence of source data and align features across domains.

1. Target Self-Division (TSD)

In the absence of source data, $A^2$SFOD creates a proxy for it. The authors identified a positive correlation between a model's prediction variance and its similarity to the source domain. By employing Monte-Carlo Dropout—running the same image through the model multiple times with different neurons deactivated—the system calculates a "detection variance." Images with low variance are classified as source-similar, while those with high variance are deemed source-dissimilar. This division allows the model to treat the source-similar subset as a stand-in for the missing original data.

2. Adversarial Alignment

Using a Mean Teacher architecture, the framework engages in an adversarial game. A discriminator attempts to distinguish whether feature sets originate from the source-similar or source-dissimilar subsets. Meanwhile, the student detector (the generator) learns to produce features that make these two subsets indistinguishable. This forces the model to ignore domain-specific noise and instead extract domain-invariant features. This alignment is performed both globally (across the whole image) and locally (focusing on foreground objects) to ensure comprehensive adaptation.

3. Fine-tuning with Mosaic Augmentation

To further refine the detector, the model utilizes Mosaic data augmentation, which stitches four training images into one. This simulates complex scenes and varying object scales, helping the model better identify small-scale or obscured objects that the original source-trained model might have struggled to recognize in the new environment.

Experimental Results

The authors evaluated $A^2$SFOD across five major benchmarks, covering various types of domain shifts:

  • Weather Shift: Cityscapes → Foggy-Cityscapes
  • Cross-Sensor/Scene Shift: KITTI → Cityscapes
  • Synthetic-to-Real Shift: Sim10k → Cityscapes
  • Large-Scale Adaptation: Cityscapes → BDD100k

$A^2$SFOD consistently outperformed previous state-of-the-art SFOD methods. In the Foggy-Cityscapes benchmark, it achieved 35.4% mAP, a 1.9% improvement over the previous best method. On the large-scale BDD100k task, it reached 31.6% mAP, outperforming the baseline by 2.6%. Ablation studies highlighted the importance of the TSD strategy, showing that it provided a significant performance boost (from 32.6% to 35.4% mAP) compared to using a standard Mean Teacher framework alone.

Insights and Limitations

The core innovation of $A^2$SFOD is the realization that high prediction variance is not merely noise, but a signal of domain distance. By splitting the target data, the researchers effectively transform a source-free problem back into a more manageable domain adaptation task.

However, the method does have limitations. The use of Monte-Carlo Dropout requires multiple forward passes per image, increasing computational overhead during the initial self-division stage. Additionally, the framework's success is contingent on the initial source model being robust enough to produce meaningful variance; if the domain shift is too extreme, the initial signals may be too weak for effective partitioning. Future research may focus on integrating $A^2$SFOD with different detection backbones and exploring more sophisticated handling of source-dissimilar samples.

Summary updated

BibTeX
@inproceedings{chu2023adversarial,
  author = {Qiaosong Chu and Shuyan Li and Guangyi Chen and Kai Li and Xiu Li},
  title = {{Adversarial Alignment for Source Free Object Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25119},
}
Figure