GALA: Graph Diffusion-based Alignment with Jigsaw for Source-free Domain Adaptation

Junyu Luo, Yiyang Gu, Xiao Luo, Wei Ju, Zhiping Xiao, Yusheng Zhao, Jingyang Yuan, Ming Zhang · DOI

TL;DR

This paper introduces GALA, a novel framework for source-free domain adaptation on graph data. GALA tackles the challenges of domain shift and label scarcity by using a graph diffusion model to transform target graphs into a "source-like" style, and then employing a curriculum-based pseudo-labeling strategy combined with a graph jigsaw technique for robust generalization.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) excel at tasks involving graph-structured data, like predicting molecular properties or analyzing social networks. However, their performance often degrades significantly when the training and testing data come from different distributions – a common issue in real-world applications. This is known as domain shift. Furthermore, obtaining labeled data for graphs can be expensive, leading to label scarcity in target domains.

The authors focus on a particularly challenging scenario: source-free domain adaptation. This means adapting a pre-trained GNN model to a new, unlabeled target domain without having access to the original source data. This constraint is crucial for privacy-sensitive applications where sharing source data is not feasible. Existing methods for graph domain adaptation typically require access to both source and target graphs, making them unsuitable for this scenario. Moreover, adapting to graph data presents unique challenges due to its complex structure and rich semantics, which are harder to align than Euclidean data like images.

Methods

GALA tackles these challenges with a multi-pronged approach:

  • Graph Diffusion for Domain Alignment: The core idea is to make target graphs resemble source graphs. GALA uses a score-based graph diffusion model, trained on source graphs, to learn "source styles." Then, instead of generating new graphs from scratch, it perturbs target graphs with a forward diffusion process (using stochastic differential equations - SDEs) and reconstructs them using the learned source styles via a reverse SDE process. This effectively transforms target graphs into source-style graphs, bridging the domain gap while preserving data privacy.
  • Unbiased Pseudo-Labeling with Curriculum Learning (UPCL): To address label scarcity, GALA generates pseudo-labels for target graphs. However, standard pseudo-labeling can be biased towards dominant classes. GALA introduces adaptive, class-specific thresholds that progressively increase over training epochs (curriculum learning). This ensures that only highly confident predictions are used as pseudo-labels, leading to more accurate and unbiased labels.
  • Consistency Learning with Graph Jigsaw (CLGJ): To further improve generalization and robustness, especially with unconfident graphs that don't meet the UPCL threshold, GALA employs a "graph jigsaw" technique. This involves:
  • Clustering confident and unconfident graphs.
  • Randomly selecting a subgraph from a confident graph and another from an unconfident graph.
  • Exchanging these subgraphs between the pairs.
  • Using consistency learning to ensure that the original and augmented (jigsawed) graphs yield similar predictions. This encourages the model to learn more robust representations.

The overall training objective combines the supervised loss from confident pseudo-labeled graphs and a consistency loss from the graph jigsaw process.

Datasets

The paper evaluates GALA on several benchmark graph datasets:

  • ENZYMES: A dataset of protein structures.
  • Mutagenicity: A dataset of molecular structures with Ames test data.
  • PROTEINS: A dataset of protein structures.
  • FRANKENSTEIN: A composite dataset combining BURSI and MNIST.
  • COX2 and COX2_MD: Datasets of inhibitors targeting cyclooxygenase-2.
  • BZR and BZR_MD: Datasets of ligands interacting with the benzodiazepine receptor.

The authors split these datasets based on graph density to create domain discrepancies, simulating real-world domain shift scenarios for source-free adaptation.

Key Insights and Ideas

  • Diffusion for Graph Domain Transfer: The paper demonstrates that diffusion models, typically used for data generation, can be effectively repurposed for domain adaptation by transforming target data into a source-like style. This is a novel application of diffusion models in this context.
  • Privacy-Preserving Domain Alignment: By training the diffusion model on source data and then using it to transform target data without accessing the source data during adaptation, GALA offers a privacy-preserving solution for graph domain adaptation.
  • Curriculum Learning for Unbiased Pseudo-Labels: The adaptive, class-specific thresholds with curriculum learning are crucial for mitigating bias in pseudo-labels, a common pitfall in semi-supervised and domain adaptation settings.
  • Graph Jigsaw for Robustness: The graph jigsaw technique, by exchanging subgraphs and enforcing consistency, acts as a powerful data augmentation strategy that enhances generalization, especially for graphs that are initially difficult to label confidently.
  • Synergy of Modules: The paper highlights that the combination of graph diffusion, unbiased pseudo-labeling, and graph jigsaw is essential for achieving state-of-the-art performance, indicating a strong synergistic effect between the proposed modules.

Key Results

  • GALA achieves significant improvements over existing methods in source-free graph domain adaptation.
  • On average, GALA demonstrates a 5.3% improvement in cross-dataset experiments compared to the best-performing baselines.
  • The method shows notable gains in challenging adaptation sub-tasks where other methods struggle.
  • Ablation studies confirm the effectiveness of each proposed module: graph diffusion (GDM), unbiased pseudo-labeling with curriculum learning (UPCL), and graph jigsaw (CLGJ). GDM is identified as a particularly effective component for handling distribution shifts.
  • Visualizations show that the diffusion process successfully transforms target graphs to be more compatible with the source model's learned representations, making them sparser or denser as needed.
  • The graph jigsaw visualization demonstrates its ability to effectively exchange subgraphs between confident and unconfident graphs.
  • Scalability analysis shows GALA is efficient and performs well even with large graph sizes.

Limitations and Future Work

  • Heterogeneous Graphs: The authors acknowledge that applying their methods to heterogeneous graphs (graphs with different types of nodes and edges) remains a challenge. Capturing intricate structural and semantic information in such complex graphs, and managing potential information loss during reconstruction, are areas for future investigation.
  • Over-Reconstruction Risk: While GALA aims to minimize information loss, the paper notes that excessive diffusion during the reconstruction phase could still lead to some information loss, potentially impacting performance. Future work could focus on further refining this balance.
  • Generalization to Other Domains: While GALA shows promise for graph data, its applicability and effectiveness on other complex, non-Euclidean data types could be explored.

Summary updated

BibTeX
@article{luo2024gala,
  author = {Junyu Luo and Yiyang Gu and Xiao Luo and Wei Ju and Zhiping Xiao and Yusheng Zhao and Jingyang Yuan and Ming Zhang},
  title = {{GALA: Graph Diffusion-based Alignment with Jigsaw for Source-free Domain Adaptation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  doi = {10.1109/tpami.2024.3416372},
}
Figure