Abstract
Graph Neural Network (GNN) research is rapidly growing thanks to the capacity of GNNs in learning distributed representations from graph-structured data. However, centralizing a massive amount of real-world graph data for GNN training is prohibitive due to privacy concerns, regulation restrictions, and commercial competitions. Federated learning (FL), a trending distributed learning paradigm, provides possibilities to solve this challenge while preserving data privacy. Despite recent advances in vision and language domains, there is no suitable platform for the FL of GNNs. To this end, we introduce FedGraphNN, an open FL benchmark system that can facilitate research on federated GNNs. FedGraphNN is built on a unified formulation of graph FL and contains a wide range of datasets from different domains, popular GNN models, and FL algorithms, with secure and efficient system support.
Introduction
Graph Neural Networks have revolutionized how we handle structured data, from predicting drug toxicity to powering recommendation engines. However, GNNs typically require massive, centralized datasets. In the real world, this data is often "siloed"—trapped in different institutions due to privacy regulations (like GDPR), commercial competition, or sheer data volume.
While Federated Learning (FL)—a technique where models are trained locally on client devices and only model updates (gradients or weights) are shared—has matured in computer vision and natural language processing, it has lagged behind in the graph domain. Graphs are uniquely difficult to federate because their structure (topology) is often split across clients, and the data distribution is rarely uniform (non-IID). Before FedGraphNN, there was no standardized platform to benchmark how different GNNs actually perform in a federated environment.
The FedGraphNN Framework
FedGraphNN is built on three core pillars to address these challenges:
- Unified Formulation: The system maps various graph tasks into a standardized two-phase framework: a message-passing phase (where nodes exchange information with neighbors) and a readout phase (where node features are aggregated for a final prediction). This modularity allows researchers to easily swap models and algorithms.
- System Architecture: Built on the FedML library, the system is designed for "cross-silo" settings (e.g., several hospitals or companies collaborating). It utilizes tensor-oriented Remote Procedure Calls (RPC) and MPI to ensure high-performance communication between servers.
- Lightweight Security: FedGraphNN integrates LightSecAgg, a novel secure aggregation protocol. It protects individual client privacy by masking model weights with significantly less computational overhead than traditional cryptographic methods.
Benchmarking Datasets
FedGraphNN provides a massive scope for evaluation, collecting and preprocessing 36 datasets across seven distinct domains:
- Molecules & Proteins: Including BACE, HIV, and a newly introduced large-scale hERG dataset for cardiac toxicity prediction.
- Social & Citation Networks: CORA, PubMed, and Reddit datasets partitioned into "ego-networks."
- Recommendation Systems: Ciao and Epinions.
- Knowledge Graphs: FB15k-237 and WN18RR.
- Proprietary Data: A large-scale bipartite graph from Tencent representing user-group relationships.
To mimic the messy, unbalanced nature of real-world decentralized data, the authors use Latent Dirichlet Allocation (LDA) to partition these datasets into "non-IID" (non-identically and independently distributed) splits.
Empirical Insights and Results
The empirical analysis conducted using FedGraphNN exposes significant challenges in graph FL:
- The "Non-IID" Hurdle: Federated GNNs perform substantially worse than centralized ones when data is not identically distributed. The structural complexity of graphs makes the data heterogeneity problem in FL much harder than it is for images or text.
- Model Ranking Flips: A GNN model that is the top performer in a centralized setting may not maintain its advantage in an FL setting. This suggests that we cannot simply "federate" existing state-of-the-art models; we need to design GNNs specifically for decentralized environments.
- The Mystery of GAT: Graph Attention Networks (GAT), usually a top performer, showed surprising performance compromises in the federated setting, sometimes failing to achieve reasonable accuracy where simpler models succeeded.
- System Efficiency and Security: Despite the complexity, the system is highly optimized. Training on medium-sized graphs finishes in minutes. Furthermore, the LightSecAgg protocol achieved up to a 12.7x speedup in total running time compared to state-of-the-art secure aggregation protocols like SecAgg+ while maintaining the same level of privacy.
Conclusion and Future Directions
FedGraphNN provides a much-needed foundation for the research community to tackle the unique hurdles of decentralized graph mining. However, several open challenges remain:
- Information Loss: Partitioning a single large graph into subgraphs for different clients inevitably breaks links, leading to "missing neighbor" problems that degrade accuracy.
- Algorithmic Innovation: There is a dire need for new federated optimization algorithms that can handle the structural heterogeneity of graphs.
- Communication Efficiency: While the current system is fast, further compression and optimization are needed for truly massive, billion-node graphs.
The source code for FedGraphNN is maintained at https://github.com/FedML-AI/FedGraphNN.
Summary updated