FedGOG: Federated Graph Out-of-Distribution Generalization with Diffusion Data Exploration and Latent Embedding Decorrelation

Pengyang Zhou, Chaochao Chen, Weiming Liu, Xinting Liao, Wenkai Shen, Jiahe Xu, Zhihui Fu, Jun Wang, Wu Wen, Xiaolin Zheng

Abstract

Federated Graph Learning (FGL) allows multiple clients to collaboratively train graph neural networks (GNNs) while preserving data privacy. However, real-world graph data often suffers from Out-of-Distribution (OOD) shifts, where testing data follows a different distribution than training data due to environmental biases and spurious correlations. We present FedGOG, a novel framework that addresses these challenges through two synergistic modules: Diffusion Data Exploration (DDE) and Latent Embedding Decorrelation (LED). By leveraging collaborative diffusion models to "hallucinate" diverse OOD scenarios and a decorrelation technique to isolate invariant features from local noise, FedGOG significantly improves the robustness and generalization of federated GNNs.

Introduction

In Federated Graph Learning, clients often possess small, biased datasets that reflect specific local environments. For instance, in molecular property prediction, one lab's dataset might be dominated by a specific chemical scaffold that is irrelevant to the target property. Standard GNNs tend to latch onto these "spurious correlations" to achieve high local accuracy, but they fail miserably when deployed on data from different environments where those correlations no longer hold. This phenomenon is known as an Out-of-Distribution (OOD) shift.

The authors identify two fundamental obstacles to OOD generalization in federated settings:

  1. Limited Exploration: Individual clients lack the data diversity to anticipate potential OOD scenarios.
  2. Inconsistent Invariance: Extracting stable, label-related features is difficult when environmental noise varies significantly across the federation.

Methodology: The FedGOG Framework

FedGOG introduces a dual-pronged approach to overcome these hurdles, as illustrated in the framework overview below.

Overview of the FedGOG framework, featuring the Diffusion Data Exploration (DDE) and Latent Embedding Decorrelation (LED) modules.

1. Diffusion Data Exploration (DDE)

To address limited local data, FedGOG utilizes Score-based Diffusion Models. Clients collaboratively train global score models that capture the overall distribution of node features and graph structures across the entire federation.

Instead of simply replicating existing data, clients use these global models to generate synthetic graph samples. By applying a "controllable condition," the DDE module intentionally pushes the generation process toward low-density regions of the data distribution. This allows clients to "explore" and train on potential OOD scenarios that were not present in their original local datasets, effectively broadening the model's horizon.

2. Latent Embedding Decorrelation (LED)

To ensure the model prioritizes essential features over environmental noise, FedGOG employs a "divide and conquer" strategy for graph embeddings. Each client maintains two distinct models:

  • Global Invariant GNN: Designed to capture the "ground truth" features that are consistent across distributions.
  • Personalized Spurious GNN: Designed to capture local, environment-specific noise.

Using the Donsker-Varadhan dual representation, the framework calculates and minimizes the mutual information between the embeddings of these two GNNs. By decorrelating these representations, the model forces the Invariant GNN to ignore any information that the Spurious GNN can explain, resulting in a more robust and generalizable global model.

Experimental Evaluation

The researchers evaluated FedGOG against six diverse benchmarks, including synthetic datasets like Motif and CMNIST, and real-world datasets such as HIV and Twitter. These benchmarks represent a wide array of structural and feature-based OOD shifts.

Key Results

FedGOG consistently outperformed state-of-the-art baselines (e.g., FedAvg, GCFL, FedStar) across all datasets. On the challenging CMNIST dataset, FedGOG achieved a 5.63% increase in accuracy over the best-performing baseline.

t-SNE visualization of FedGOG latent space, showing successful alignment between training and testing data distributions.

Visual analysis using t-SNE (shown above) confirms that FedGOG successfully aligns the representations of training and testing data. While baseline methods often show a distinct gap between distributions, FedGOG’s latent space demonstrates that the model has learned features that remain invariant even under OOD shifts.

Conclusion and Future Work

FedGOG represents a significant step forward in privacy-preserving graph generalization. By combining global distribution knowledge with local decorrelation, it prepares models for the "weird" data they might encounter in the real world.

While highly effective, the framework does introduce additional computational costs due to the training of diffusion models and dual GNNs. Future research may focus on optimizing these architectures for low-power edge devices or extending these OOD techniques to node-level and subgraph-level prediction tasks.

Summary updated

BibTeX
@inproceedings{zhou2025fedgog,
  author = {Pengyang Zhou and Chaochao Chen and Weiming Liu and Xinting Liao and Wenkai Shen and Jiahe Xu and Zhihui Fu and Jun Wang and Wu Wen and Xiaolin Zheng},
  title = {{FedGOG: Federated Graph Out-of-Distribution Generalization with Diffusion Data Exploration and Latent Embedding Decorrelation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i21.34459},
}
Figure