Bi-Dimensional Feature Alignment for Cross-Domain Object Detection

Zhen Zhao, Yuhong Guo, Jieping Ye · OpenReview

TL;DR

This paper introduces SSA-DA, a novel method for cross-domain object detection that aligns features in both the "depth" (channel) and "spatial" dimensions. By tackling both style and content domain shifts simultaneously, SSA-DA significantly improves object detection performance on target domains with different data distributions than the source domain.

What Problem Does This Paper Address?

Deep learning models for object detection typically perform best when trained on data that closely matches the distribution of the data they will encounter in deployment. However, in real-world scenarios, this is often not the case. Factors like varying weather conditions (e.g., fog), different camera perspectives, or synthetic-to-real domain shifts can cause a significant drop in detection accuracy. While unsupervised domain adaptation (UDA) techniques have shown success in tasks like image classification and segmentation, adapting object detectors is more challenging because it requires not only recognizing objects but also precisely localizing them. Existing UDA methods for object detection often focus on aligning features at a single level or dimension, failing to fully address the complex cross-domain discrepancies.

Methods

The proposed SSA-DA (Style and Spatial Attention enhanced feature alignment for Domain Adaptive detection) method tackles cross-domain object detection by aligning features in two key dimensions:

  • Depthwise Style Domain Adaptive Module: This module addresses domain shifts related to image style and texture. It leverages the idea that image style can be captured by inter-channel correlations within feature maps. A Gram matrix is computed to represent these correlations, and a domain discriminator is used to adversarially align these style features between the source and target domains. This alignment is applied across multiple convolutional blocks (specifically blocks 3, 4, and 5) to capture style information at different levels of abstraction.
  • Spatial Attention Domain Alignment Module: This module focuses on aligning semantic content features. It uses a spatial attention mechanism to highlight regions in an image that are semantically relevant (e.g., where objects are likely to be) and suppress irrelevant background regions. This attention map is generated using a convolutional network and then applied to the feature map. Similar to the style module, a domain discriminator is employed to adversarially align these attention-enhanced features across domains. This module is applied to higher-level convolution blocks (4 and 5), as semantic content is more prominent in deeper layers.

The overall objective function combines the standard object detection loss (on the source domain) with the adversarial losses from both the style and spatial attention modules, using trade-off parameters $\lambda$ and $\mu$ to balance their contributions. The model is built upon the Faster R-CNN architecture.

Datasets

The paper evaluates SSA-DA on several benchmark cross-domain object detection tasks:

  • Cityscapes to Foggy Cityscapes: This dataset simulates the effect of fog on object detection, representing a normal-to-foggy weather variation.
  • SIM-10K to Cityscapes: This task addresses the virtual-to-real scene variation, using synthetic data (SIM-10K) for training and real-world data (Cityscapes) for testing.
  • KITTI to Cityscapes: This scenario investigates cross-camera adaptation, using data from two different camera setups.

Key Insights and Ideas

  • Bi-dimensional Alignment is Crucial: The paper strongly advocates for aligning features in both the depth (style) and spatial (content) dimensions. This dual approach is shown to be more effective than focusing on a single dimension or level.
  • Style Matters for Weather Shifts: The style domain adaptive module proves particularly effective for tasks involving significant visual variations like fog, where texture and appearance changes are prominent.
  • Spatial Attention for Object Localization: The spatial attention module is vital for focusing on relevant object regions, which is critical for accurate localization in object detection. Its effectiveness is more pronounced in higher-level features.
  • Multi-level Application: Applying both style and spatial attention alignment across multiple convolutional blocks (rather than just one) leads to more robust domain invariance.
  • Component Synergy: While individual components (SD and SA) offer improvements, their combination in SSA-DA yields the best performance, highlighting their complementary nature.

Key Results

  • State-of-the-Art Performance: SSA-DA consistently outperforms existing state-of-the-art cross-domain object detection methods across all tested scenarios.
  • Significant Improvement on Foggy Cityscapes: In the normal-to-foggy weather adaptation, SSA-DA achieves a substantial improvement of 19.1% in average mAP compared to the source-only baseline. Even the style-only component (SD-DA) outperforms the best comparison method by 2.9%.
  • Strong Performance on Virtual-to-Real: For the SIM-10K to Cityscapes adaptation, SSA-DA improves the source-only baseline by 9.5% and surpasses other methods.
  • Effective Cross-Camera Adaptation: In the KITTI to Cityscapes cross-camera scenario, SSA-DA achieves the best result, outperforming the baseline by 13.1%.
  • Qualitative Improvements: Visualizations show SSA-DA successfully detecting objects in dense fog where the source-only baseline and other methods fail, demonstrating its robustness to challenging conditions.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper notes that the performance can be sensitive to hyperparameters like $\lambda$ and $\mu$, which control the trade-off between the style and spatial alignment losses. While they provide optimal ranges, careful tuning is still required.
  • Component-wise Performance: While the full SSA-DA model is superior, the paper also analyzes the performance of variants with only SD or SA. It's observed that applying spatial attention to lower-level blocks can sometimes degrade performance, suggesting that the level of application for each module is important.
  • Future Work: The authors suggest that further exploration of multi-level and multi-dimensional alignments could lead to even more robust domain adaptation for object detection. The current work provides a strong foundation for future research in this area.

Summary updated

BibTeX
@misc{zhao2020bi,
  author = {Zhen Zhao and Yuhong Guo and Jieping Ye},
  title = {{Bi-Dimensional Feature Alignment for Cross-Domain Object Detection}},
  year = {2020},
  eprint = {2011.07205},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.07205},
}
Figure