Self-Supervised Graph Neural Network for Multi-Source Domain Adaptation

Jin Yuan, Feng Hou, Yangzhou Du, Zhongchao Shi, Xin Geng, Jianping Fan, Yong Rui · DOI

Introduction

Deep learning models frequently encounter performance degradation when deployed in real-world scenarios where the data distribution (the target domain) differs significantly from the training data (the source domains). Multi-Source Domain Adaptation (MSDA) addresses this by leveraging labeled data from multiple source domains to improve generalization on an unlabeled target domain. While Self-Supervised Learning (SSL) has emerged as a powerful tool for learning robust representations in these contexts, existing methods often suffer from two primary limitations: task disconnect and inefficient parameter sharing.

In many MSDA frameworks, the pretext task (e.g., rotation prediction) is functionally isolated from the downstream classification task. Furthermore, most architectures rely on a shared backbone with independent linear "heads," which prevents nuanced information exchange between tasks. This paper introduces the Self-Supervised Graph Neural Network (SSG), a novel framework that replaces traditional linear heads with a Graph Neural Network (GNN) to explicitly bridge the gap between self-supervised domain classification and category classification.

The SSG Framework

The GNN as a Knowledge Bridge

The core innovation of SSG is the conceptualization of the classification layer as a graph. Rather than treating domain and category labels as independent outputs, the authors model every category and every domain as a node within a GNN. These nodes are represented by trainable embeddings, and the relationships (edges) between them are calculated using a Gaussian kernel.

By processing these nodes through a GNN, the model allows information to flow between domain-specific features and category-specific features. This structure enables the network to learn how specific object categories manifest across different environments, effectively using the GNN as an interface for multi-task learning.

Mask Token Strategy

To further strengthen the relationship between the pretext and downstream tasks, SSG employs a "Mask Token Strategy" inspired by masked language modeling in NLP. During training, the model randomly masks or perturbs approximately 95% of the domain information using a predefined vector $S$. The model is then tasked with predicting the correct domain despite this missing information. This high mask ratio forces the feature extractor to capture deeper, more invariant features to identify the domain, which simultaneously enriches the features available for category classification.

Optimization

The framework is optimized using a multi-task loss function that integrates supervised category classification for labeled source data and self-supervised domain classification for both source and target data. This ensures that the learned representations are both discriminative for the main task and aware of the domain shifts present in the data.

Experimental Evaluation

The SSG framework was evaluated on four prominent MSDA benchmarks, representing a range of scales and complexities:

  1. Office-Caltech10: 10 categories across 4 domains (Amazon, DSLR, Webcam, Caltech).
  2. Office-31: 31 categories across 3 domains (Amazon, DSLR, Webcam).
  3. Office-Home: 65 categories across 4 domains (Art, Clipart, Product, Real-world).
  4. DomainNet: A large-scale dataset featuring 345 categories across 6 diverse domains.

Performance Results

SSG achieved state-of-the-art (SOTA) results across all tested benchmarks, consistently outperforming previous leading methods:

  • Office-31: Achieved 90.3% average accuracy, a 3.9% improvement over the previous best (MOST).
  • Office-Home: Reached 79.8% average accuracy, surpassing the previous SOTA (DARN) by 3.5%.
  • DomainNet: On this challenging large-scale benchmark, SSG set a new high bar with an average accuracy of 48.8%.

Discussion and Insights

The Efficacy of Graph-Based Heads

Ablation studies confirmed that the GNN architecture is central to the model's success. Qualitative analysis indicated that the graph-based head converges faster and reaches a lower loss compared to traditional linear heads. This suggests that the GNN provides a more efficient optimization landscape for multi-task learning in domain adaptation.

Domain Classification as a Pretext Task

Unlike arbitrary pretext tasks like image rotation, using domain classification directly addresses the "domain gap." When combined with the Mask Token Strategy, this task forces the model to extract more sophisticated features. The authors found that the 95% mask ratio was the "sweet spot" for performance; lower ratios made the pretext task too easy, providing less benefit to the downstream category classifier.

Conclusion and Future Work

The Self-Supervised Graph Neural Network (SSG) demonstrates that modeling the relationship between domains and categories through a GNN significantly improves Multi-Source Domain Adaptation. By treating domain classification as a robust pretext task and using a masking strategy to deepen feature extraction, SSG sets new performance standards across major benchmarks.

Future research may address the computational overhead associated with graph processing as the number of categories scales, as well as exploring more sophisticated node initialization techniques beyond trainable parameters. Nonetheless, SSG represents a significant step forward in making deep learning models more resilient to domain shift.

Summary updated

BibTeX
@inproceedings{yuan2022self,
  author = {Jin Yuan and Feng Hou and Yangzhou Du and Zhongchao Shi and Xin Geng and Jianping Fan and Yong Rui},
  title = {{Self-Supervised Graph Neural Network for Multi-Source Domain Adaptation}},
  booktitle = {ACM Multimedia},
  year = {2022},
  url = {https://openreview.net/forum?id=DY43RRkHRs},
}
Figure