Cross-Domain Detection via Graph-Induced Prototype Alignment

Minghao Xu, Hang Wang, Bingbing Ni, Qi Tian, Wenjun Zhang

Abstract

The Graph-induced Prototype Alignment (GPA) framework addresses the critical "domain shift" problem in object detection—where models trained on clear weather or synthetic data fail in adverse real-world conditions. By leveraging graph-based communication between region proposals and category-level "prototypes," GPA achieves state-of-the-art results while specifically mitigating class imbalance in unsupervised domain adaptation (UDA).

Introduction

Training an effective object detector typically requires massive amounts of labeled data. However, a model trained on one "domain" (e.g., sunny streets) often performs poorly in another (e.g., foggy or snowy environments) due to domain shift. Unsupervised Domain Adaptation (UDA) seeks to bridge this gap by using labeled source data and unlabeled target data.

In the context of object detection, this is particularly challenging for three reasons:

  1. Inaccurate Proposals: On the target domain, the model lacks labels, leading to initial "guesses" (region proposals) that are often noisy, redundant, or incomplete.
  2. Multi-modality: Objects like "cars" appear differently based on orientation or scale; aligning a single global feature is insufficient.
  3. Class Imbalance: Real-world datasets often feature thousands of cars but very few rare classes like "trains." Standard adaptation methods frequently ignore these sample-scarce categories.
Noisy and redundant region proposals on target domain objects illustrate the difficulty of instance-level alignment.

The GPA Framework

The authors propose the GPA framework, integrated into the Faster R-CNN architecture, to resolve these issues through three core components:

1. Graph-based Region Aggregation

Instead of treating region proposals in isolation, GPA constructs a "relation graph" where proposals are nodes and edges are defined by their spatial overlap (Intersection over Union). Using a parameter-free Graph Convolutional Network (GCN), the model allows these proposals to "talk" to each other. This process aggregates information from nearby boxes to refine and "complete" an object's feature representation before alignment.

2. Confidence-guided Prototype Merging

To represent a category (e.g., "bus") stably across domains, the model calculates a prototype—a weighted average feature vector. These weights are determined by the model's confidence in each proposal, ensuring that high-quality detections drive the alignment process.

3. Class-reweighted Contrastive Loss

Inspired by Focal Loss, this loss function prioritizes "sample-scarce" categories. If the model struggles to align rare classes like "motorcycles," this loss forces the network to pay more attention to them, preventing the model from collapsing toward dominant classes.

The GPA framework pipeline: from graph-based region aggregation to category-level prototype alignment across domains.

Experimental Evaluation

GPA was evaluated across three challenging cross-domain benchmarks:

  • Normal to Foggy (Cityscapes → Foggy Cityscapes): GPA achieved 39.5% mAP, a 3.6% improvement over previous state-of-the-art methods. Notably, it showed massive gains in rare classes, such as "trains," which improved from ~26% to 41%.
  • Synthetic to Real (SIM 10k → Cityscapes): The model reached 47.6% car AP, demonstrating its ability to bridge the gap between synthetic video game data and real-world imagery.
  • Cross-Camera Adaptation (KITTI → Cityscapes): GPA successfully adapted across different camera setups and environments.

Key Insights

  • The Power of Graphs: While a single proposal might only capture a wheel, the collection of proposals around an object contains the full picture. Graph propagation allows the model to synthesize this information effectively.
  • Simplicity in Parameters: The authors found that adding learnable weights to the graph convolution actually decreased performance. In unsupervised settings, fixed, geometry-based aggregation provides a more stable signal.
  • Prototypes as Anchors: Aligning category prototypes rather than individual instances makes the model robust to the noise inherent in unsupervised target domain detections.

Conclusion

GPA represents a significant step forward in making object detectors robust to environmental changes. While currently optimized for two-stage detectors like Faster R-CNN, its graph-based prototype approach offers a blueprint for handling class imbalance and noisy proposals in broader UDA tasks. Future work may explore its application to one-stage detectors (e.g., YOLO) and "open-set" scenarios where the target domain contains entirely new object classes.

Summary updated

BibTeX
@inproceedings{xu2020cross,
  author = {Minghao Xu and Hang Wang and Bingbing Ni and Qi Tian and Wenjun Zhang},
  title = {{Cross-Domain Detection via Graph-Induced Prototype Alignment}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01237},
}
Figure