Rank and Align: Towards Effective Source-free Graph Domain Adaptation

Junyu Luo, Zhiping Xiao, Yifan Wang, Xiao Luo

Abstract

Source-free Graph Domain Adaptation (SFGDA) addresses the challenge of adapting pre-trained models to new domains without accessing original source data, a critical requirement for privacy and efficiency. This paper introduces RNA (Rank and Align), a novel framework designed to overcome label scarcity and structural discrepancies in graph data. RNA utilizes spectral seriation to establish robust semantic rankings and employs adversarial subgraph extraction to align target data with a "harmonic" proxy of the source domain. Our evaluation on multiple graph benchmarks shows that RNA significantly improves adaptation performance, often surpassing methods that require source data access.

Introduction

Graph Neural Networks (GNNs) are powerful tools for tasks involving complex relational data, such as molecular property prediction and social network analysis. However, their performance often degrades when applied to a target domain that differs structurally or statistically from the training (source) domain—a phenomenon known as domain shift. While standard Domain Adaptation (DA) techniques mitigate this by co-training on source and target data, real-world constraints such as data privacy, proprietary restrictions, and storage limits often make source data unavailable. This necessitates Source-free Graph Domain Adaptation (SFGDA).

The Challenges of Source-free Adaptation

Adapting a model without source data introduces several primary hurdles:

  1. Label Scarcity and Noise: In the absence of ground-truth labels, models often rely on pseudo-labeling. However, domain shift causes these "guesses" to be inaccurate, leading to poor training signals.
  2. Structural Discrepancy: Target graphs may possess structural properties vastly different from the source, rendering the original model's feature extraction unreliable.
  3. Training Instability: These factors combined often lead to unstable performance during the adaptation process as the model drifts from its original parameters.
The three main challenges in SFGDA: (a) Label Scarcity and Noise, (b) Training Instability during adaptation, and (c) Domain Discrepancy between source and target features.

The RNA Framework: Rank and Align

To address these issues, we propose the RNA (Rank and Align) framework, which consists of two main components:

1. Robust Semantics Learning (Rank)

Instead of relying on error-prone class predictions, RNA focuses on the relative relationships between graphs. We employ Spectral Seriation, a technique using the Fiedler vector of the graph Laplacian to find an optimal linear ordering of data points. This ranking is mathematically proven to be more robust to noise than direct classification. By enforcing that graphs with similar spectral rankings remain close in the feature space, the model learns stable semantic representations without needing labels.

2. Domain Alignment (Align)

Without source data, RNA creates a proxy for the source domain:

  • Harmonic Graph Detection: Using spectral clustering and silhouette coefficients, we identify "harmonic" graphs—target samples that the model handles with high confidence and which likely resemble the source domain.
  • Adversarial Subgraph Extraction: For "inharmonic" graphs (those significantly different from the source), we use an adversarial framework. A subgraph extractor identifies domain-invariant core structures, while a discriminator attempts to distinguish them from harmonic samples. This forces the GNN to focus on universal structural features rather than domain-specific noise.

Experimental Evaluation

RNA was evaluated on several biochemical and chemical benchmarks, including Mutagenicity, PROTEINS, and FRANKENSTEIN. We compared it against standard GNNs (GCN, GIN), semi-supervised methods (InfoGraph, TGNN), and state-of-the-art source-free methods like PLUE.

Accuracy vs. Adaptation steps on the Mutagenicity dataset, comparing RNA to standard pseudo-label learning. RNA demonstrates superior stability and final accuracy.

Key results include:

  • Superior Accuracy: On the Mutagenicity dataset, RNA achieved 69.3% accuracy, outperforming the best source-free baseline (PLUE) by 4% and even exceeding some source-available methods.
  • Cross-Dataset Success: On the PROTEINS dataset, RNA reached 66.2% accuracy, a nearly 7% improvement over standard GNNs.
  • Ablation Success: Removing either the "Rank" or "Align" component resulted in significant performance drops, confirming the necessity of both spectral ranking and adversarial alignment.

Conclusion

RNA provides a robust solution for graph domain adaptation in privacy-sensitive and resource-constrained environments. By leveraging the mathematical stability of spectral methods and adversarial alignment, it bridges the gap between source and target domains without compromising data privacy. Future work will explore scaling these spectral methods to larger datasets and extending the framework to open-set adaptation scenarios.

Summary updated

BibTeX
@inproceedings{luo2024rank,
  author = {Junyu Luo and Zhiping Xiao and Yifan Wang and Xiao Luo},
  title = {{Rank and Align: Towards Effective Source-free Graph Domain Adaptation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=deeeiqxTQ0},
}
Figure