Unsupervised Domain Adaptive Detection with Network Stability Analysis

Wenzhang Zhou, Heng Fan, Tiejian Luo, Libo Zhang · DOI

Abstract

Deep learning models for object detection often suffer from performance degradation when deployed in environments different from their training data, a phenomenon known as domain shift. This paper presents Network Stability Analysis (NSA), a novel framework for Unsupervised Domain Adaptation (UDA) that treats domain discrepancies as external disturbances. By enforcing internal and external consistency across varying levels of image and instance-level perturbations, NSA achieves state-of-the-art results on challenging benchmarks, including transitions from clear to foggy and rainy weather conditions.

Introduction

Object detection systems are critical for autonomous driving and surveillance, yet they remain notoriously brittle. A detector trained on clear, sunny city streets (the source domain) frequently fails when encountering fog, rain, or different camera perspectives (the target domain). While retraining with labeled data from the target domain is a potential solution, the manual annotation of thousands of images is prohibitively expensive and time-consuming.

Unsupervised Domain Adaptation (UDA) offers a more scalable alternative by leveraging labeled source data alongside unlabeled target data. However, existing UDA methods often struggle with "local misalignment"—where the model understands the global scene but fails on specific objects—or they rely on noisy pseudo-labels that lead to training instability. This paper introduces the Network Stability Analysis (NSA) framework, which draws inspiration from control theory to ensure model robustness through multi-level consistency.

Methodology: Network Stability Analysis (NSA)

The NSA framework is built upon a Teacher-Student architecture. In this setup, the "Teacher" model provides stable targets, while the "Student" model learns to remain invariant to various "disturbances" that simulate domain shifts. The authors categorize these disturbances into three distinct types, applying specific consistency constraints to each:

1. Heavy Image-level Disturbance (HID)

HID involves large-scale transformations such as significant resizing, flipping, and color jittering. Because these changes drastically alter the feature maps, the authors argue that enforcing internal feature similarity is counterproductive. Instead, they apply External Consistency Analysis (ECA), ensuring that the Student’s final predictions on the heavily perturbed image match the Teacher’s predictions on the original image.

2. Light Image-level Disturbance (LID)

LID refers to subtle changes, such as minor scaling and pixel displacement. For these perturbations, the model employs both ECA and Internal Consistency Analysis (ICA). ICA ensures that the internal feature representations remain stable despite minor noise, while ECA maintains the consistency of the final output.

3. Instance-level Disturbance (InsD)

InsD addresses variations in the style or appearance of specific objects within the same class (e.g., different types of cars). To handle this, the authors utilize an Instance Graph and a contrastive loss function. This approach encourages the model to cluster features of the same category together in the feature space, regardless of whether they originate from the source or target domain. This global understanding of object categories helps the model recognize instances even under significant environmental shifts.

Experimental Results

The researchers evaluated NSA-UDA across a wide range of rigorous benchmarks, demonstrating its versatility and effectiveness.

Weather and Environment Adaptation

On the benchmark of Cityscapes (source) to FoggyCityscapes (target), NSA-UDA achieved a new record of 52.7% mAP (mean Average Precision), a substantial improvement over the previous state-of-the-art of 45.2%. Similar gains were observed in transitions to rainy environments (RainCityscapes).

Cross-Dataset and Synthetic-to-Real Adaptation

The framework proved robust in more complex scenarios, such as adapting from the small-scale KITTI dataset to Cityscapes, and from synthetic data (Sim10k) to real-world images. It also performed well on the large-scale BDD100k dataset, which features high diversity in weather and lighting.

Architectural Versatility

While primarily developed using Faster R-CNN, the authors demonstrated that NSA is a "plug-and-play" framework. It significantly boosted the performance of one-stage detectors like FCOS (improving mAP from 21.0% to 44.2%) and modern architectures like Deformable DETR.

Discussion and Insights

The core innovation of NSA lies in reframing domain shift as a physical disturbance rather than just a statistical gap. By categorizing disturbances into Heavy, Light, and Instance levels, the framework avoids over-constraining the model. For instance, recognizing that internal features should change under heavy resizing prevents the model from learning incorrect invariants.

Ablation studies confirmed that the combination of HID, LID, and InsD is essential; removing any single component led to a drop in performance, proving that multi-level stability is the key to robust unsupervised adaptation.

Conclusion and Future Work

Network Stability Analysis provides a robust and flexible framework for bridging the gap between data domains in object detection. By achieving state-of-the-art results and demonstrating compatibility with various detector backbones, NSA marks a significant step forward in making computer vision systems reliable for real-world deployment.

Future research may address the computational overhead inherent in the Teacher-Student framework, which currently requires significant memory during training. Additionally, exploring the application of NSA to other tasks, such as semantic segmentation or video object tracking, could further validate the universality of stability-based adaptation.

Summary updated

BibTeX
@misc{zhou2023unsupervised,
  author = {Wenzhang Zhou and Heng Fan and Tiejian Luo and Libo Zhang},
  title = {{Unsupervised Domain Adaptive Detection with Network Stability Analysis}},
  year = {2023},
  eprint = {2308.08182},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.08182},
}
Figure