FedGNN: Federated Graph Neural Network for Privacy-Preserving Recommendation

Chuhan Wu, Fangzhao Wu, Yang Cao, Yongfeng Huang, Xing Xie

Introduction

Graph Neural Networks (GNNs) have become the gold standard for recommendation systems because they capture the complex web of high-order interactions—for instance, identifying that User A might like an item because it was favored by User B, who shares similar tastes. However, traditional GNNs require a centralized graph where every user's history is stored in one place, creating a massive privacy risk and potential violations of regulations like GDPR.

Existing Federated Learning (FL) approaches keep data on-device but struggle with GNNs due to data isolation (local devices only see their own interactions) and gradient leakage (where model updates can be reverse-engineered to reveal user history). FedGNN is a novel framework designed to solve these challenges, providing high-quality recommendations without ever seeing a user's raw interaction data.

The FedGNN Architecture

FedGNN enables decentralized GNN training by maintaining local subgraphs on each user's device. To protect privacy while maintaining the utility of the global model, the framework introduces a three-pronged technical approach.

Figure 1: The FedGNN architecture illustrating local training, pseudo-item sampling, and gradient protection via Local Differential Privacy (LDP).

As shown in the architecture above, FedGNN protects user gradients through two primary methods:

  1. Pseudo-Interacted Items: To prevent the server from identifying exactly which items a user interacted with, the client samples "fake" items and generates random gradients for them. This hides real interactions within a crowd of pseudo-items.
  2. Local Differential Privacy (LDP): Gradients are clipped and injected with Laplacian noise before being uploaded to the server, providing a mathematical guarantee of privacy against gradient-based attacks.

Privacy-Preserving Graph Expansion

The "secret sauce" of FedGNN is its ability to capture high-order interactions that are usually lost in decentralized settings. To do this, FedGNN finds "neighbor" users who have interacted with the same items using a secure expansion protocol.

Figure 2: The graph expansion protocol using Homomorphic Encryption and a third-party server to match anonymous neighbors.

This protocol uses Homomorphic Encryption to match item IDs across users via a third-party server without the server ever seeing the actual IDs. Users then exchange anonymous embeddings to expand their local graphs. By incorporating these "anonymous neighbors," FedGNN recovers the performance typically lost when moving from a centralized to a decentralized architecture.

Key Results and Insights

The authors evaluated FedGNN on six widely-used recommendation benchmarks, including MovieLens, Flixster, and YahooMusic. The results highlight several key strengths of the framework:

  • Competitive Accuracy: FedGNN achieved results very close to centralized GNN models. For example, on the MovieLens-100K dataset, FedGNN achieved an RMSE of 0.920, compared to the centralized GC-MC's 0.905.
  • Superiority over Non-Graph FL: FedGNN significantly outperformed existing federated recommendation methods like FCF and FedMF, which fail to account for high-order graph interactions.
  • Privacy-Utility Trade-off: While adding noise (LDP) and pseudo-items slightly increases the error (RMSE), the model remains robust enough for real-world use while providing 1-differential privacy.

Limitations and Future Work

Despite its success, FedGNN faces challenges regarding communication overhead, as uploading gradients for pseudo-items increases data usage. Additionally, the system relies on the assumption that the recommendation server and the third-party matching server do not collude. Future work will explore more efficient encryption methods and optimize communication costs for mobile devices to better support brand-new users in "cold start" scenarios.

Summary updated

BibTeX
@inproceedings{wu2022fedgnn,
  author = {Chuhan Wu and Fangzhao Wu and Yang Cao and Yongfeng Huang and Xing Xie},
  title = {{FedGNN: Federated Graph Neural Network for Privacy-Preserving Recommendation}},
  booktitle = {Nature Communications},
  year = {2022},
  doi = {10.1038/s41467-022-30714-9},
}
Figure