Instance Relation Graph Guided Source-Free Domain Adaptive Object Detection

Vibashan Vs, Poojan Oza, Vishal M. Patel · DOI

Introduction

Domain shift remains a significant challenge in computer vision, where models trained on a specific "source domain" (e.g., sunny weather) often underperform when deployed in a different "target domain" (e.g., foggy conditions). While Unsupervised Domain Adaptation (UDA) typically addresses this by using both labeled source and unlabeled target data, real-world constraints often restrict access to the original source data due to privacy or logistical concerns. This paper introduces a novel framework for Source-Free Domain Adaptation (SFDA), enabling models to adapt using only the pre-trained model and unlabeled target images.

Problem Statement

Standard UDA methods are often impractical when source data is inaccessible. The authors address the source-free setting, focusing on how to leverage the internal knowledge of a pre-trained detector to adapt to new environments. The core difficulty lies in learning robust features without ground-truth labels in the target domain, where noise and domain-specific artifacts can lead to poor performance.

Methodology

The proposed framework utilizes a student-teacher architecture enhanced by an Instance Relation Graph (IRG).

Overview of the Source-Free Domain Adaptation pipeline featuring the Instance Relation Graph (IRG).

The methodology consists of three primary components:

  1. Instance Relation Graph (IRG): A Graph Convolutional Network (GCN) models the relationships between region proposals generated by the detector. By treating proposals as nodes and learning feature-based edges, the IRG identifies semantic similarities between different object instances.
  2. Graph-Guided Contrastive Learning (GCL): This component uses the IRG to guide a contrastive learning process. It determines which proposals should be "pulled together" (positives) and which should be "pushed apart" (negatives) in the feature space, facilitating the learning of domain-invariant representations.
  3. Mean-Teacher Distillation: A teacher model generates pseudo-labels to guide the student. A Graph Distillation Loss (GDL) ensures that the student’s relational understanding aligns with the teacher's more stable predictions.

Key Insights

A central innovation is the use of "free" augmentations provided by the Region Proposal Network (RPN). Since the RPN naturally generates multiple overlapping boxes for a single object, these can be treated as different "views" for contrastive learning.

Illustration of RPN proposals and the RPN-view Contrastive Learning mechanism (Pull/Push).

By modeling relationships in the feature space rather than just physical overlap (IoU), the IRG allows the model to connect semantically similar objects even when they are spatially distant or partially obscured by domain-specific noise like fog.

Experimental Results

The IRG method was evaluated across several domain-shift scenarios, including adverse weather (Cityscapes to FoggyCityscapes), synthetic-to-real (Sim10k to Cityscapes), and cross-camera/artistic shifts.

  • Foggy Weather: The model achieved 37.1 mAP on FoggyCityscapes, significantly outperforming the previous state-of-the-art source-free method, SFOD (30.6 mAP).
  • Artistic Adaptation: In the shift to Watercolor images, the method reached 53.0 mAP, surpassing several traditional UDA methods that had full access to source data.
  • Ablation Studies: The inclusion of Graph Contrastive Loss (GCL) alone resulted in a nearly 2% mAP improvement, validating the importance of instance relations.

Conclusion

The Instance Relation Graph provides a powerful mechanism for source-free adaptation by exploiting the inherent relational structure of object proposals. While the method is currently dependent on the quality of initial RPN proposals, it sets a new benchmark for SFDA. Future research may focus on improving proposal robustness or extending this relational approach to online, continuous adaptation scenarios.

Summary updated

BibTeX
@inproceedings{vs2023instance,
  author = {Vibashan VS and Poojan Oza and Vishal M. Patel},
  title = {{Instance Relation Graph Guided Source-Free Domain Adaptive Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00343},
}
Figure