Personalized and privacy-preserving federated graph neural network

Yan‐Jun Liu, Hongwei Li, Meng HaoFrontiers in Physics 2024

This paper, published in Frontiers in Physics (April 2024), introduces PFGNN (Personalized Federated Graph Neural Network), a framework designed to train Graph Neural Networks (GNNs) across multiple decentralized clients while solving the twin challenges of data heterogeneity and privacy leakage.

TL;DR

PFGNN is a novel federated learning framework that clusters similar clients using a "random graph" probing strategy and aggregates their models using an attention mechanism. To ensure total privacy, it employs an optimized function-hiding encryption scheme that protects both the model parameters and the aggregation weights from malicious actors.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple parties (like hospitals or banks) to train a shared model without ever exchanging their raw, sensitive data. However, applying FL to Graph Neural Networks (GNNs) is notoriously difficult for two reasons:

  1. Data Heterogeneity (Non-IID Data): Graph structures vary wildly between clients. A "one-size-fits-all" global model often performs poorly because it fails to account for the unique local characteristics of each client's graph.
  2. Privacy Vulnerabilities: Even if raw data isn't shared, the model updates (gradients/parameters) sent to a central server can be intercepted. Sophisticated "inversion attacks" can use these updates to reconstruct the original graph structure or sensitive node attributes.

Methods

The authors propose a three-pronged approach to make federated GNNs both personalized and secure:

  • Graph Similarity Strategy: To handle heterogeneity, the server sends a "random graph" (generated via a stochastic block model) to all clients. Clients run this graph through their local models and return the resulting node embeddings. By comparing these outputs, the server can cluster clients with similar model behaviors into groups without ever seeing their private data.
  • Attentive Aggregation: Within each cluster, the server doesn't just average the models (the standard "FedAvg" approach). Instead, it uses an attention mechanism. It calculates the similarity between the server’s global model and each client’s local model using the Frobenius norm. Clients that are "closer" to the global objective are given higher weights during aggregation.
  • Optimized FH-MIFE: To secure the process, the authors implement Function-Hiding Multi-Input Function Encryption. Unlike standard encryption, this allows the server to perform mathematical operations (like weighted averaging) on encrypted data. Crucially, "function-hiding" means the server doesn't even know the specific weights ($q$) assigned to each client, preventing it from inferring which client is most influential.

Datasets

The framework was evaluated on three gold-standard graph datasets:

  • Cora: A citation network with 2,708 nodes and 5,429 edges.
  • Pubmed: A large-scale medical publication database with 19,717 nodes.
  • Citeseer: A research paper network with 3,327 nodes.

The researchers simulated non-IID environments by partitioning these datasets based on label categories and edge densities to mimic real-world data silos.

Key Insights and Ideas

  • Probing with Randomness: The use of a random graph as a "common denominator" to measure model similarity is a clever way to bypass the privacy risks of sharing local graph statistics.
  • Personalization through Clustering: By grouping clients, PFGNN achieves a "best of both worlds" scenario: it benefits from collaborative training while maintaining a model that is specialized for specific types of graph structures.
  • Linear Scalability: A major bottleneck in encrypted federated learning is communication overhead. PFGNN manages to keep its communication cost linearly related ($O(N)$) to the number of clients, making it significantly more efficient than previous quadratic ($O(N^2)$) approaches.

Key Results

  • Superior Accuracy: PFGNN achieved an average accuracy of 88.91% across the tested datasets, significantly outperforming the classic FedAvg (84.86%) and even traditional Centralized Machine Learning (79.05%).
  • Generality: The framework proved versatile; it worked effectively when swapped with different GNN architectures, including GCN (Graph Convolutional Network) and GIN (Graph Isomorphism Network).
  • Efficiency: In computational tests, the encryption/decryption time remained stable even as the number of clients increased, confirming its suitability for larger networks.

Limitations and Future Work

While PFGNN is a significant step forward, the authors and the paper's context suggest a few areas for further exploration:

  • Semi-Honest vs. Malicious: The current evaluation primarily assumes a "semi-honest" environment (where participants follow the protocol but try to learn extra info). Future iterations may need to harden the system against "poisoning attacks" where a client actively tries to corrupt the global model.
  • Computational Overhead: Although communication is linear, the local processing required for FH-MIFE is still higher than unencrypted training. Optimizing the cryptographic primitives for mobile or edge devices remains a challenge.
  • Dynamic Graphs: The study focuses on static graphs. Real-world social or financial networks are dynamic, and adapting PFGNN to handle evolving graph structures in real-time is a promising next step.

Summary updated

BibTeX
@inproceedings{liu2024personalized,
  author = {Yan‐Jun Liu and Hongwei Li and Meng Hao},
  title = {{Personalized and privacy-preserving federated graph neural network}},
  booktitle = {Frontiers in Physics},
  year = {2024},
  doi = {10.3389/fphy.2024.1383276},
}
Figure