Benchmarking Data Heterogeneity Evaluation Approaches for Personalized Federated Learning

Zhilong Li, Xiaohu Wu, Xiaoli Tang, Tiantian He, Yew-Soon Ong, Mengmeng Chen, Qiqi Liu, Qicheng Lao, Han YuarXiv 2024 · DOI

TL;DR

This paper introduces a unified benchmarking framework to evaluate different methods for measuring data heterogeneity in personalized federated learning (PFL). By comparing six prominent approaches across various non-IID settings, the authors provide crucial insights into their effectiveness, guiding researchers in selecting the best methods for specific PFL scenarios and improving collaborative model training.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple clients to collaboratively train a model without sharing their raw data, preserving privacy. A key challenge in FL is data heterogeneity, where each client's dataset has a different distribution (non-IID). This heterogeneity significantly impacts model performance and has led to the development of Personalized Federated Learning (PFL), which aims to build models tailored to each client.

To effectively implement PFL, it's crucial to understand and quantify the degree of data heterogeneity among clients. This understanding helps in designing better collaboration strategies and personalized models. However, the field currently lacks a standardized way to compare these data heterogeneity evaluation methods. Existing research is fragmented, with different approaches being developed in isolation. This paper addresses this gap by creating a unified benchmark to systematically compare and evaluate these methods.

Methods

The authors propose a benchmarking framework that unifies six representative approaches for evaluating data heterogeneity in PFL. These approaches fall into two main categories:

  • Distribution Statistical Divergence-based Approaches: These methods quantify the difference between data distributions. The paper includes:
  • Jensen-Shannon (JS) Divergence: Measures the similarity between two probability distributions.
  • C-Divergence: Quantifies the maximum difference between local expected risks of two data distributions.
  • Distribution Sketch-based Euclidean Distance: Uses lightweight "sketches" to represent data distributions, allowing for efficient distance calculation in high-dimensional spaces.
  • Model-based Approaches: These methods leverage the learned models to infer data similarity. The paper includes:
  • Shapley Value: A game-theoretic approach to quantify the contribution of each client to the overall model performance.
  • Cosine Similarity: Measures the similarity between the weight vectors of personalized models from different clients.
  • Hypernetworks: A technique where a separate neural network (hypernetwork) learns to generate personalized models based on client preferences.

The framework allows for a fair comparison of these methods under various non-IID settings, evaluating their performance in terms of accuracy, computational cost, and communication overhead.

Datasets

The paper uses a variety of publicly available datasets for their experiments:

  • Image Datasets: MNIST, FMNIST, CIFAR-10, SVHN, FEMNIST
  • Tabular Datasets: adult, rcv1, covtype

These datasets are used to simulate different non-IID scenarios, including label distribution skew, feature distribution skew, and quantity skew, as well as mixed types of skew.

Key Insights and Ideas

  • No One-Size-Fits-All: The most significant insight is that there is no single "best" method for evaluating data heterogeneity. The optimal approach depends heavily on the specific non-IID setting and the type of data (image vs. tabular).
  • Label Distribution Skew is Challenging: This type of heterogeneity poses the most significant challenge to FL performance, with accuracy dropping considerably as the number of classes decreases.
  • Feature and Quantity Skew are More Manageable: Existing methods tend to perform better and achieve accuracies closer to the IID setting when dealing with feature or quantity skew.
  • Task Complexity Matters: CIFAR-10, being a more complex dataset, shows larger accuracy variations across schemes and settings, highlighting its utility for benchmarking. Tabular data also presents significant challenges.
  • Lightweight Methods Show Promise: Techniques like distribution sketching (RACE) offer a good balance of efficiency and performance, especially for resource-constrained environments like IoT.

Key Results

The paper presents extensive experimental results in Table 1 and various figures. Here are some highlights:

  • Performance Varies by Setting:
    • In label distribution skew, pFedGraph excels on image data, while CE performs best on average for tabular data.
  • For feature distribution skew, RACE generally achieves the highest accuracy.
  • In quantity skew, pFedGraph continues to perform well on image data, while pFedJS leads on tabular data.
  • Scalability: Accuracy generally decreases as the number of clients increases, indicating that scalability is a crucial factor to consider.
  • Computational Overhead: pFedSV has the highest computational overhead, followed by CE and FedCollab, largely due to their reliance on neural networks. RACE and pFedJS are significantly faster.
  • Communication Overhead: pFedGraph, pFedJS, FedCollab, and RACE have similar communication overheads. pFedSV has a higher overhead due to its need to compute Shapley Values using other clients' models.
  • Mixed Skew Challenges: When multiple types of data skew coexist, all schemes encounter significant performance degradation, with accuracies dropping substantially compared to single-skew scenarios.

Limitations and Future Work

  • Mixed Skew Scenarios: The paper highlights that current methods struggle with mixed types of data skew (e.g., label and feature skew combined). Future research should focus on developing effective solutions for these complex, real-world scenarios.
  • Divergence Bounds: The paper notes that while bounds exist for JS and C-divergence, exploring similar bounds for other divergence measures like Earth Mover's Distance and Fréchet Distance is a promising research direction.
  • Lightweight Techniques for Collaboration: The authors suggest that exploring how lightweight distribution sketch techniques can be used to generate collaboration matrices (α or αᵗ) could be a practical foundation for establishing FL collaborations in IoT settings.
  • Task Complexity: The paper suggests that more challenging tasks like CIFAR-10 and tabular datasets should be included in future benchmarks to better study client complementarity.
  • Broader Impacts: The paper does not discuss potential societal impacts, both positive and negative. This is noted as a limitation.

Summary updated

BibTeX
@misc{li2024benchmarking,
  author = {Zhilong Li and Xiaohu Wu and Xiaoli Tang and Tiantian He and Yew-Soon Ong and Mengmeng Chen and Qiqi Liu and Qicheng Lao and Han Yu},
  title = {{Benchmarking Data Heterogeneity Evaluation Approaches for Personalized Federated Learning}},
  year = {2024},
  eprint = {2410.07286},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.07286},
}
Figure