Strong-Weak Distribution Alignment for Adaptive Object Detection.

Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada, Kate Saenko

Abstract

We propose an approach for unsupervised adaptation of object detectors from label-rich to label-poor domains, significantly reducing the annotation costs associated with detection. While adversarial alignment of image distributions is effective for classification, fully matching global distributions in detection can fail due to differing scene layouts and object combinations. We introduce a novel method based on strong local alignment and weak global alignment. Our key contribution is the weak alignment model, which uses Focal Loss to focus the adversarial alignment on images that are globally similar while putting less emphasis on those that are dissimilar. We empirically verify the effectiveness of our method across four datasets comprising both large and small domain shifts.

Introduction

Object detection models are notoriously brittle; a model trained on clear, high-resolution photos often fails when deployed on artistic renderings (clipart) or in poor weather conditions (fog). Unsupervised Domain Adaptation (UDA) aims to bridge this gap by aligning the feature distributions of a labeled "source" domain and an unlabeled "target" domain. However, standard UDA methods often treat detection like classification, which can lead to "over-alignment" and degraded performance.

Overview of the proposed Strong-Weak alignment method, highlighting the dual-level feature matching strategy.

The Challenge of Domain Alignment in Detection

In classification, aligning the entire image distribution is standard. In detection, it can be a trap. Two domains might have completely different scene layouts or object frequencies—for example, a source image with a single bird versus a target image with a flock. Forcing a global match between these dissimilar scenes can confuse the detector and degrade performance.

Conversely, local features like texture and color are domain-specific but category-neutral. This motivates a strategy that aligns local features strongly while aligning global scene layouts only weakly, preserving the semantic integrity of the detector.

Proposed Method: Strong-Weak Alignment

The proposed framework integrates two alignment strategies into a Faster R-CNN detector, focusing on different levels of the feature hierarchy.

Strong Local Alignment

Early layers of the network capture low-level features. The model aligns these using a fully convolutional domain classifier. Since local features are category-neutral, a strict alignment using Least Squares loss is applied to ensure the "style" of the images matches across domains without altering the object's identity.

Weak Global Alignment

For high-level global features, the authors argue for partial alignment. They employ a domain classifier trained with Focal Loss. This acts as a filter: Focal Loss down-weights "easy" examples (images that are obviously from different domains) and forces the model to focus on "hard" examples (images that are globally similar). This prevents the model from trying to force a match between fundamentally different scene structures.

Context Vector Regularization

To stabilize adversarial training, "context vectors" are extracted from the domain classifiers and concatenated with the region-wise features used for final detection. This provides the detector with explicit information about the domain shift, helping it adapt more effectively to the target environment.

Detailed architecture showing the integration of local and global domain classifiers with the Faster R-CNN module and the use of context vectors.

Experimental Results

The "Strong-Weak" model consistently outperformed previous state-of-the-art methods across several challenging domain shifts:

  • Real-to-Clipart (PASCAL VOC → Clipart1k): Achieved 38.1% mAP, a massive jump over the source-only baseline (27.8%) and previous alignment methods that suffered from over-alignment.
  • Real-to-Watercolor (PASCAL VOC → Watercolor2k): Improved mAP to 53.3%, roughly an 8% absolute improvement over standard alignment techniques.
  • Weather Adaptation (Cityscapes → Foggy Cityscapes): Reached 34.3% mAP, proving the method works for small, natural shifts as well as large artistic ones.
  • Simulation-to-Real (Sim10k → Cityscapes): Demonstrated robust performance in adapting synthetic driving data (GTA V) to real-world driving scenarios.

Conclusion

The Strong-Weak alignment strategy recognizes that "less is more" when it comes to global feature matching in object detection. By focusing adversarial alignment on globally similar images and strongly matching local textures, the framework bridges the domain gap without sacrificing detection accuracy. Future work may explore more reliable instance-level alignment strategies that do not rely on noisy region proposals in the target domain.

Summary updated

BibTeX
@inproceedings{saito2019strong,
  author = {Kuniaki Saito and Yoshitaka Ushiku and Tatsuya Harada and Kate Saenko},
  title = {{Strong-Weak Distribution Alignment for Adaptive Object Detection.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=Hj-EF6feOpH},
}
Figure