P4GCN: Vertical Federated Social Recommendation with Privacy-Preserving Two-Party Graph Convolution Networks

Zheng Wang, Wanwan Wang, Yimin Huang, Zhaopeng Peng, Ziqi Yang, Cheng Wang, Xiaoliang Fan · DOI

Abstract

P4GCN is a novel vertical federated learning framework designed for social recommendation systems. It enables organizations to leverage external social network data without compromising user privacy or exposing raw data. By integrating Homomorphic Encryption (HE) and Differential Privacy (DP) into a specialized "Sandwich-Encryption" module, P4GCN facilitates high-accuracy Graph Convolutional Network (GCN) training across data silos.

Introduction

Social recommendation systems rely on the principle that social connections are strong predictors of individual preferences. However, the necessary data—user-item interactions and user-user social graphs—often reside in separate, siloed organizations. Privacy regulations like GDPR and competitive interests prevent these entities from merging their databases. While federated learning has addressed simpler models, applying it to Graph Neural Networks (GNNs) remains challenging due to the complexity of aggregating features across distributed graph nodes securely and efficiently.

Methodology: The P4GCN Framework

The authors propose P4GCN (Privacy-Preserving Two-Party Graph Convolution Network) to bridge this gap. The architecture centers on the P4Layer, which incorporates a privacy-preserving GCN layer and an adaptive fusion mechanism.

Sandwich-Encryption Module

The core innovation is the Sandwich-Encryption module. GCN operations are mathematically represented as a triple-matrix multiplication ($J = LMN$), where $L$ and $N$ (the "bread") are user features held by one party, and $M$ (the "meat") is the social graph held by another.

The Sandwich-Encryption module combines Homomorphic Encryption and Differential Privacy for secure matrix multiplication.

This module employs a hybrid privacy strategy:

  • Homomorphic Encryption (HE): Utilizing the Paillier algorithm, it allows computations on encrypted data.
  • Differential Privacy (DP): An analytic Matrix Gaussian Mechanism (aMGM) injects controlled noise to prevent structural data leakage from the final results.

Adaptive Fusion and Optimization

To mitigate accuracy loss from DP noise, an Adaptive Fusion Layer (a two-layer MLP) weights the importance of noisy federated social data against clean local data. Furthermore, Batch-wise Optimization reduces communication overhead, making the system viable for large-scale applications.

Detailed architecture of P4GCN, highlighting the P4Layer and the flow from social and local data to predicted ratings.

Experimental Evaluation

P4GCN was evaluated on four real-world datasets: FilmTrust, CiaoDVD, Douban, and Epinions. The experimental setup simulated a vertical data split between two enterprises.

Key Results

  • Performance: P4GCN consistently outperformed state-of-the-art privacy-preserving baselines (SeSoRec and S3Rec).
  • Utility-Privacy Trade-off: The model achieved results near the "ideal" non-private scenario, demonstrating high utility even with privacy protections.
  • Efficiency: On the Epinions dataset, P4GCN reduced communication costs by approximately two-thirds compared to S3Rec.
  • Versatility: The P4Layer can be integrated into various local models to enhance performance via external social data.

Discussion and Future Work

The "Sandwich" approach provides a robust template for multi-party graph computing. A significant finding is the Fusion Layer's role as a "safety valve," allowing the model to ignore social data if the privacy noise becomes too disruptive.

Current limitations include optimization specifically for the Graph Convolution operator. Future research will explore extending the framework to Graph Attention (GAT) mechanisms and automating hyperparameter tuning for social aggregation.

Summary updated

BibTeX
@inproceedings{wang2025p,
  author = {Zheng Wang and Wanwan Wang and Yimin Huang and Zhaopeng Peng and Ziqi Yang and Cheng Wang and Xiaoliang Fan},
  title = {{P4GCN: Vertical Federated Social Recommendation with Privacy-Preserving Two-Party Graph Convolution Networks}},
  booktitle = {The Web Conference},
  year = {2025},
  doi = {10.1145/3696410.3714721},
}
Figure