FedGAT: A Privacy-Preserving Federated Approximation Algorithm for Graph Attention Networks

Siddharth Ambekar, Yuhang Yao, Ryan Li, Carlee Joe-WongarXiv 2024 · DOI

FedGAT: A Privacy-Preserving Federated Approximation Algorithm for Graph Attention Networks

Graph Attention Networks (GATs) have emerged as powerful architectures for learning on graph-structured data, such as social networks or financial transaction graphs. However, training GATs in a Federated Learning (FL) environment presents significant challenges. In FL, data is distributed across multiple clients to preserve privacy, but GATs require an "attention mechanism" where nodes must access the features of their neighbors to compute weights. When a graph is partitioned, many edges connect nodes residing on different clients. Traditionally, computing attention for these "cross-client edges" would require clients to exchange raw feature data in every training iteration, leading to severe privacy risks and massive communication overhead.

FedGAT addresses these hurdles by introducing a novel approximation algorithm that eliminates the need for continuous feature sharing while maintaining high accuracy and privacy.

Methodology: Chebyshev Approximation

The core innovation of FedGAT is the use of Chebyshev polynomial approximations to handle the GAT's exponential attention function. By approximating the attention mechanism as a power series, the algorithm decouples the dependency on raw neighbor features during the iterative training process.

The FedGAT architecture illustrating the aggregation of local model weights and the handling of cross-client edges through a central server.

The training process involves a one-time setup phase where specific aggregated matrices ($M_{1i}, M_{2i}, K_{1i}, K_{2i}$) are computed and shared. Because initial node features are static, these terms can be exchanged in a single pre-training communication round. These matrices represent sums of products across neighborhoods, providing a layer of privacy; unless a node has only one neighbor, the individual features cannot be easily reconstructed from the sum.

The paper proposes two variants:

  1. Matrix FedGAT: The standard implementation.
  2. Vector FedGAT: An optimized version that reduces computational complexity from $O(B^3)$ to $O(B^2)$ (where $B$ is the maximum node degree), achieving up to a 10x speedup in dense graphs.

Experimental Evaluation

The researchers evaluated FedGAT on three standard citation benchmarks: Cora, Citeseer, and Pubmed. These were tested under both IID (Independent and Identically Distributed) and Non-IID settings to simulate real-world data heterogeneity.

FedGAT demonstrates remarkable performance across several metrics:

  • Accuracy: FedGAT achieves accuracy nearly identical to a centralized GAT model. It significantly outperforms existing federated approaches like FedGCN and DistGAT (which simply ignores cross-client edges).
  • Communication Efficiency: By reducing feature-related communication to a single initial round, FedGAT avoids the hundreds or thousands of rounds typically required for federated GNN training.
  • Robustness: The model's performance remains stable regardless of how the graph is partitioned or the degree of data heterogeneity (IID vs. Non-IID).
Test accuracy comparison of FedGAT, FedGCN, and DistGAT across different client counts and data distributions (IID vs. Non-IID).

As shown in the results, FedGAT maintains high test accuracy even as the number of clients increases, whereas the performance of DistGAT degrades significantly as more cross-client edges are lost.

Limitations and Future Directions

While FedGAT offers a significant leap forward, some limitations remain. The approximation error can propagate in very deep architectures (beyond 2-3 layers), though most GNN applications currently favor shallower models. Additionally, while the aggregation method provides a level of privacy, future iterations could incorporate formal Differential Privacy or Homomorphic Encryption for stronger cryptographic guarantees.

FedGAT provides a scalable, efficient, and privacy-preserving framework for training state-of-the-art Graph Attention Networks in distributed environments, bridging the gap between centralized performance and federated privacy requirements.

Summary updated

Abstract

Federated training methods have gained popularity for graph learning with applications including friendship graphs of social media sites and customer-merchant interaction graphs of huge online marketplaces. However, privacy regulations often require locally generated data to be stored on local clients. The graph is then naturally partitioned across clients, with no client permitted access to information stored on another. Cross-client edges arise naturally in such cases and present an interesting challenge to federated training methods, as training a graph model at one client requires feature information of nodes on the other end of cross-client edges. Attempting to retain such edges often incurs significant communication overhead, and dropping them altogether reduces model performance. In simpler models such as Graph Convolutional Networks, this can be fixed by communicating a limited amount of feature information across clients before training, but GATs (Graph Attention Networks) require additional information that cannot be pre-communicated, as it changes from training round to round. We introduce the Federated Graph Attention Network (FedGAT) algorithm for semi-supervised node classification, which approximates the behavior of GATs with provable bounds on the approximation error. FedGAT requires only one pre-training communication round, significantly reducing the communication overhead for federated GAT training. We then analyze the error in the approximation and examine the communication overhead and computational complexity of the algorithm. Experiments show that FedGAT achieves nearly the same accuracy as a GAT model in a centralised setting, and its performance is robust to the number of clients as well as data distribution.
BibTeX
@misc{ambekar2024fedgat,
  author = {Siddharth Ambekar and Yuhang Yao and Ryan Li and Carlee Joe-Wong},
  title = {{FedGAT: A Privacy-Preserving Federated Approximation Algorithm for Graph Attention Networks}},
  year = {2024},
  eprint = {2412.16144},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.16144},
}
Figure