Can Modifying Data Address Graph Domain Adaptation?

Renhong Huang, Jiarong Xu, Xin Jiang, Ruichuan An, Yang Yang · DOI

Abstract

Graph neural networks (GNNs) have demonstrated remarkable success in numerous graph analytical tasks. Yet, their effectiveness is often compromised in real-world scenarios due to distribution shifts, limiting their capacity for knowledge transfer across changing environments or domains. Recently, Unsupervised Graph Domain Adaptation (UGDA) has been introduced to resolve this issue by facilitating knowledge transfer from a labeled source graph to an unlabeled target graph. Current UGDA efforts primarily focus on model-centric methods, such as employing domain-invariant learning strategies. However, our critical examination reveals inherent limitations in these model-centric methods. In contrast, we demonstrate that a data-centric method—allowing for the modification of the source graph—holds considerable potential. Guided by theoretical generalization bounds, we identify two data-centric principles: the alignment principle and the rescaling principle. We propose GraphAlign, a novel UGDA method that generates a small yet highly transferable synthetic graph. By training a standard GNN on this distilled graph using classic Empirical Risk Minimization (ERM), GraphAlign outperforms state-of-the-art baselines by an average of 2.16%, even when the training graph is reduced to 0.25–1% of its original size.

Introduction

Graph Neural Networks (GNNs) are powerful tools for modeling relational data, but they are notoriously "brittle" when faced with distribution shifts. For instance, a GNN trained to classify users on a social network in one geographic region may fail when applied to a network in another due to differing connection patterns or user attributes. This challenge is the focus of Unsupervised Graph Domain Adaptation (UGDA), which seeks to adapt a model from a labeled source domain to an unlabeled target domain.

Traditionally, UGDA research has been "model-centric," focusing on forcing GNNs to learn domain-invariant features—representations that remain consistent across different data distributions. However, theoretical analysis suggests that even a "perfect" model-centric approach can fail if the underlying data distributions are fundamentally misaligned. This paper shifts the focus toward a data-centric perspective, asking: Can we modify the data itself to bridge the domain gap?

The Data-Centric Principles of UGDA

By revisiting the theoretical generalization bounds for UGDA, the authors identify two core principles for effective data-centric adaptation:

  1. The Alignment Principle: The source graph should be modified so that its distribution (specifically the distribution of its local "ego-graphs") matches the target graph. This reduces the discrepancy that the model must overcome.
  2. The Rescaling Principle: A smaller, well-constructed synthetic graph can lead to better generalization than a massive, noisy original graph. This suggests that data distillation is not just an efficiency gain, but a performance booster.

The GraphAlign Framework

To operationalize these principles, the authors developed GraphAlign. Unlike traditional methods that train on the full source dataset, GraphAlign generates a tiny synthetic graph designed specifically for transferability. The framework employs several key mechanisms:

  • Gradient Matching: The synthetic graph is optimized so that the gradients of a GNN trained on it "mimic" the gradients of a GNN trained on the full source graph. This ensures the synthetic data captures the essential task-specific knowledge.
  • Distribution Alignment: Using Maximum Mean Discrepancy (MMD), the framework ensures the synthetic graph's feature distribution aligns with the unlabeled target graph, satisfying the Alignment Principle.
  • Spectral Initialization: Rather than starting with random noise, GraphAlign selects a subset of nodes from the source graph that already exhibit a small "spectral distance" to the target graph. This provides a theoretically grounded starting point for optimization.
  • Standard Training (ERM): Once the synthetic graph is generated, a standard GNN is trained using classic Empirical Risk Minimization. This removes the need for complex adversarial training or specialized domain-adaptation architectures during the final model phase.

Experimental Evaluation

GraphAlign was evaluated across 12 diverse transfer scenarios, including citation networks (ACM, DBLP, Arxiv), airport traffic networks (USA, Brazil, Europe), and social networks (BlogCatalog).

Key Results

  • Superior Performance: GraphAlign outperformed the best existing baselines by an average of 2.16% across all scenarios.
  • Extreme Efficiency: On the large-scale Arxiv dataset, GraphAlign achieved top-tier results while training on a graph reduced by 99.75%. This demonstrates that a tiny fraction of "distilled" data can be more effective than the full, noisy dataset.
  • Model Agnosticism: Because the output of GraphAlign is a standard graph, it is model-agnostic. The synthetic graphs were shown to improve performance across various architectures, including GCN, GraphSAGE, and GIN.
  • Robustness to Shift: The method proved effective against both structural shifts (changes in connectivity) and feature shifts (changes in node attributes).

Conclusion and Future Work

GraphAlign represents a significant shift in UGDA research, proving that modifying data is a viable—and often superior—alternative to complex model-centric adaptation. By distilling the source graph into a small, aligned, and highly transferable representation, researchers can achieve better accuracy with significantly lower computational overhead during the training phase.

Future research directions include expanding this data-centric approach to other graph tasks, such as link prediction or graph-level classification, and exploring the impact of different surrogate models during the synthetic graph generation phase. Currently, the generation process itself requires an optimization step that, while efficient, remains a primary area for further refinement.

Summary updated

BibTeX
@inproceedings{huang2024can,
  author = {Renhong Huang and Jiarong Xu and Xin Jiang and Ruichuan An and Yang Yang},
  title = {{Can Modifying Data Address Graph Domain Adaptation?}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3672058},
}
Figure