Relation Matters: Foreground-aware Graph-based Relational Reasoning for Domain Adaptive Object Detection

Chaoqi Chen, Jiongcheng Li, Hong-Yu Zhou, Xiaoguang Han, Yue Huang, Xinghao Ding, Yizhou YuIEEE TPAMI 2022 · DOI

Abstract

Domain adaptive object detection aims to transfer knowledge from a labeled source domain to an unlabeled target domain. Traditional methods often rely on global or local feature alignment, which can be hindered by background noise and a lack of topological understanding. This paper presents Foreground-aware Graph-based Relational Reasoning (FGRR), a novel framework that models domain adaptation as an open-set problem. By leveraging hierarchical graph structures at both pixel and semantic levels, FGRR captures complex intra- and inter-domain relationships while isolating non-transferable background features. Experimental results across various benchmarks, including real-to-artistic and synthetic-to-real scenarios, demonstrate that FGRR significantly outperforms existing state-of-the-art methods.

Introduction: The Challenge of Domain Shift

Object detection models typically suffer from a significant drop in performance when deployed in environments different from their training data. This "domain shift"—caused by variations in lighting, weather, or artistic style—is a major hurdle for real-world applications. While Unsupervised Domain Adaptation (UDA) seeks to bridge this gap by aligning feature distributions, current approaches face two critical limitations. First, they often ignore the topological relationships between objects (e.g., the spatial context of a car on a road). Second, they struggle with background noise; forcing the alignment of non-transferable background elements can lead to "catastrophic overfitting" on irrelevant data.

Conceptual overview of foreground-aware reasoning and graph construction.

To address these issues, the authors propose treating domain adaptation as an Open-Set Domain Adaptation (OSDA) problem. In this view, foreground objects are treated as "known classes," while backgrounds are categorized as a single "unknown class" to be excluded from the alignment process.

The FGRR Framework

The proposed Foreground-aware Graph-based Relational Reasoning (FGRR) framework employs a hierarchical strategy to model relationships across domains at three distinct levels:

  1. Pixel-Level Relational Reasoning: The model identifies reliable foreground pixels using a mutual nearest neighbor constraint. It constructs a bipartite graph to model inter-domain similarities and utilizes graph attention to capture intra-domain spatial context.
  2. Semantic-Level Relational Reasoning: At the object proposal level, FGRR uses pseudo-labels to identify likely foreground regions. It introduces Cross-Domain Similarity Regularization (CDSR) to filter background noise and a Category-aware Domain Alignment (CDA) loss to ensure class-specific consistency across domains.
  3. Image-level Object-aware Reweighting: Recognizing that not all image pairs are equally informative, FGRR weights samples based on the overlap of shared object categories, focusing the adaptation on the most relevant data.
Detailed architecture of the FGRR framework showing hierarchical graph reasoning.

Experimental Results

The FGRR framework was evaluated on four diverse benchmarks, demonstrating robust performance across various types of domain shift:

  • Normal-to-Foggy (Cityscapes → Foggy-Cityscapes): FGRR achieved a +20.5% mAP gain over the source-only baseline, significantly outperforming previous methods like HTCN and MeGA-CDA.
  • Real-to-Artistic (Pascal VOC → Clipart1k): On the challenging Clipart1k dataset, FGRR reached 43.3% mAP, surpassing the authors' previous conference-level work.
  • Synthetic-to-Real (Sim10k → Cityscapes): The model showed strong generalization from synthetic game engine data to real-world urban scenes.
  • Cross-site Medical Detection: In a mammogram mass detection task, FGRR improved accuracy from 12.0% to 43.9%, highlighting its utility in high-stakes domains.

Conclusion and Future Work

FGRR demonstrates that "relation matters" in domain adaptation. By explicitly modeling object relationships through hierarchical graphs and treating backgrounds as unknown classes, the framework avoids negative transfer and captures richer contextual information. While the current implementation adds some complexity to the training pipeline and is primarily validated on Faster R-CNN and SSD architectures, future work could explore its integration with Transformer-based detectors like DETR.

Summary updated

BibTeX
@article{chen2022relation,
  author = {Chaoqi Chen and Jiongcheng Li and Hong-Yu Zhou and Xiaoguang Han and Yue Huang and Xinghao Ding and Yizhou Yu},
  title = {{Relation Matters: Foreground-aware Graph-based Relational Reasoning for Domain Adaptive Object Detection}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2022},
  doi = {10.1109/tpami.2022.3179445},
}
Figure