Personalized Federated Learning With Graph

Fenwen Chen, Guodong Long, Zonghan Wu, Tianyi Zhou, Jing Jiang · OpenReview

TL;DR

This paper introduces Structured Federated Learning (SFL), a novel framework that enhances personalized federated learning (PFL) by explicitly leveraging the relational structure between clients. By incorporating graph-based information, SFL aims to improve both knowledge sharing and model personalization, especially in scenarios with highly non-IID data.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple clients to collaboratively train a shared model without uploading their private data. However, a key challenge in FL is the "non-IID" (non-independent and identically distributed) nature of client data, meaning each client's data distribution can be significantly different. This non-IID issue makes it difficult to train a single, high-performing global model.

Personalized Federated Learning (PFL) emerged to address this by aiming to train client-specific models. While existing PFL methods focus on improving the personalization aspect, they often overlook the inherent relationships that might exist between clients. These relationships, whether explicit (like traffic sensors on a map) or implicit (like users with similar online behavior), can provide valuable information for more effective knowledge sharing. Simply aggregating models from all clients, regardless of their connections, can lead to a suboptimal global model and hinder personalization, especially when non-IID is severe. This paper aims to bridge this gap by incorporating client relationships into the FL process.

Methods

The core contribution of this paper is the Structured Federated Learning (SFL) framework. SFL introduces a novel bi-level optimization problem that simultaneously learns both global and personalized models while leveraging client-wise relation graphs.

Key aspects of the SFL method include:

  • Graph-based Client Relations: SFL explicitly models the relationships between clients using an adjacency matrix. This matrix can be pre-defined or, importantly, learned by the model itself.
  • Graph Convolutional Network (GCN) for Aggregation: The paper proposes using GCNs for the server-side model aggregation. This allows the server to aggregate local models not just based on their individual performance but also considering their structural relationships. The GCN effectively learns personalized models by aggregating neighbors' local models.
  • Unified Optimization Framework: SFL formulates the problem into a unified optimization framework that can handle both personalized FL and graph-based model aggregation. This framework can also be extended to learn hidden relations among clients, going beyond pre-defined graphs.
  • Optional Structure Learning: For scenarios where the client relationship graph is not known beforehand, SFL includes an optional structure learning step. This allows the model to discover and learn these hidden relationships, making the framework more versatile.

The optimization process involves updating local models based on local loss and regularization terms, followed by graph-based aggregation at the server to update personalized and global models.

Datasets

The paper evaluates SFL on two types of datasets:

  • Traffic Forecasting Datasets: METR-LA, PEMS-BAY, PEMS-D4, and PEMS-D8. These datasets are naturally suited for graph-based analysis due to the inherent topological structure of traffic sensors.
  • Image Classification Dataset: CIFAR-10. This dataset is used to evaluate SFL's performance in handling non-IID data by artificially partitioning it into different "shards" to control the level of data distribution skew.

Key Insights and Ideas

  • Client relationships are a valuable, underutilized resource in FL: The paper strongly advocates that ignoring client relationships leads to suboptimal performance, especially in highly non-IID settings.
  • GCNs are a natural fit for structured aggregation in FL: The use of GCNs provides an elegant and effective way to incorporate graph structures into the server-side aggregation process, leading to better personalized models.
  • SFL can learn hidden relationships: The ability of SFL to learn the client graph from data makes it applicable even when explicit relational information is unavailable, significantly broadening its utility.
  • SFL is robust to varying levels of non-IID data: The experiments demonstrate that SFL consistently outperforms traditional FL and PFL methods, particularly in severe non-IID scenarios, while remaining competitive in milder cases.

Key Results

  • Traffic Forecasting: SFL achieved significant performance improvements (e.g., 18-25% MAE improvement on METR-LA and PEMS-BAY) when leveraging pre-defined road network structures. Even without pre-defined graphs, SFL's structure learning module provided a greater than 10% performance gain on the PEMS-D4 dataset.
  • Image Classification (CIFAR-10): In severe non-IID scenarios (shards=2 and 5), traditional FL algorithms struggled or failed to converge. SFL demonstrated superior performance, achieving significantly better accuracy. As data distribution approached IID (shards=10 and 20), SFL maintained competitive performance.
  • Compatibility: SFL can be effectively combined with existing PFL methods (e.g., LG-FedAvg, FedPer) to further enhance performance, as shown in compatibility analysis.

Limitations and Future Work

  • Scalability: While not explicitly detailed as a limitation, the computational complexity of GCNs and graph learning could become a factor in extremely large-scale FL systems.
  • Graph Learning Complexity: Learning the graph structure itself can be a complex optimization problem, and the paper suggests further research into more efficient and robust graph learning mechanisms.
  • Generalization to Diverse Graph Types: The current work focuses on specific types of graph relationships. Future work could explore SFL's applicability to a wider range of graph structures and dynamic graph scenarios.
  • Theoretical Guarantees: While experiments show strong empirical results, further theoretical analysis of SFL's convergence and personalization guarantees, especially with learned graphs, would be beneficial.

Summary updated

BibTeX
@misc{chen2022personalized,
  author = {Fenwen Chen and Guodong Long and Zonghan Wu and Tianyi Zhou and Jing Jiang},
  title = {{Personalized Federated Learning With Graph}},
  year = {2022},
  eprint = {2203.00829},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.00829},
}
Figure