Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking FedAvg and FedCurv for Image Classification Tasks

Bruno Casella, Roberto Esposito|arXiv (Cornell University)|Mar 31, 2023
Privacy-Preserving Technologies in DataComputer Science6 citations
TL;DR

This paper benchmarks FedAvg and FedCurv for image classification under non-IID data settings, demonstrating that increasing local epochs per round significantly improves performance while reducing communication cost. The key contribution is empirical evidence that local optimization depth, not just aggregation frequency, critically impacts convergence and accuracy in federated learning, especially in statistical heterogeneity scenarios.

ABSTRACT

Classic Machine Learning techniques require training on data available in a single data lake. However, aggregating data from different owners is not always convenient for different reasons, including security, privacy and secrecy. Data carry a value that might vanish when shared with others; the ability to avoid sharing the data enables industrial applications where security and privacy are of paramount importance, making it possible to train global models by implementing only local policies which can be run independently and even on air-gapped data centres. Federated Learning (FL) is a distributed machine learning approach which has emerged as an effective way to address privacy concerns by only sharing local AI models while keeping the data decentralized. Two critical challenges of Federated Learning are managing the heterogeneous systems in the same federated network and dealing with real data, which are often not independently and identically distributed (non-IID) among the clients. In this paper, we focus on the second problem, i.e., the problem of statistical heterogeneity of the data in the same federated network. In this setting, local models might be strayed far from the local optimum of the complete dataset, thus possibly hindering the convergence of the federated model. Several Federated Learning algorithms, such as FedAvg, FedProx and Federated Curvature (FedCurv), aiming at tackling the non-IID setting, have already been proposed. This work provides an empirical assessment of the behaviour of FedAvg and FedCurv in common non-IID scenarios. Results show that the number of epochs per round is an important hyper-parameter that, when tuned appropriately, can lead to significant performance gains while reducing the communication cost. As a side product of this work, we release the non-IID version of the datasets we used so to facilitate further comparisons from the FL community.

Motivation & Objective

  • To evaluate the performance of FedAvg and FedCurv under realistic non-IID data distributions common in federated learning.
  • To investigate how the number of local training epochs per round affects convergence and accuracy in non-IID settings.
  • To provide a reproducible benchmark with five distinct non-IID data partitioning strategies for the federated learning community.
  • To release non-IID versions of MNIST, CIFAR10, and MedMNIST datasets to support future comparative research.
  • To analyze the trade-offs between communication cost and model performance in federated image classification.

Proposed method

  • The authors implement FedAvg and FedCurv on three public image datasets: MNIST, CIFAR10, and MedMNIST.
  • They generate five non-IID data partitioning schemes: quantity skew, prior shift (three variants: pathological, Dirichlet, and uniform), and covariate shift.
  • Each client is assigned a non-uniform distribution of data samples, simulating real-world statistical heterogeneity.
  • The models are trained over multiple rounds, with each round involving E local epochs before aggregation.
  • Performance is measured via test accuracy after 10 and 100 rounds of federated training.
  • A weighted averaging strategy is used in both FedAvg and FedCurv to account for data imbalance across clients.

Experimental results

Research questions

  • RQ1How does the number of local epochs per round affect the performance of FedAvg and FedCurv in non-IID settings?
  • RQ2Which non-IID data partitioning strategy poses the greatest challenge to federated learning algorithms?
  • RQ3Does FedCurv consistently outperform FedAvg in non-IID scenarios, given its design for handling statistical heterogeneity?
  • RQ4Can reducing communication rounds by increasing local training epochs lead to better model accuracy?
  • RQ5How do FedAvg and FedCurv compare across different image datasets under identical non-IID conditions?

Key findings

  • Increasing the number of local epochs per round significantly improves test accuracy for both FedAvg and FedCurv, with gains observed even at 10 epochs per round.
  • FedCurv outperforms FedAvg in the uniform and covariate shift settings, achieving 89.45% accuracy on MedMNIST after 100 rounds with 30 epochs per round.
  • FedAvg achieves 73.14% accuracy on CIFAR10 with 30 epochs per round in the covariate shift setting, while FedCurv reaches 71.28%, indicating strong performance under moderate heterogeneity.
  • The labels quantity skew is the most challenging non-IID setting, where FedCurv achieves 77.70% on MedMNIST after 10 rounds, but FedAvg still performs competitively at 75.07%.
  • Surprisingly, 10 rounds of 10 epochs yield better accuracy than 100 rounds of 1 epoch, indicating that deeper local optimization reduces communication cost while improving performance.
  • The pathological labels skew is the second most difficult setting, with FedCurv achieving 82.32% on MedMNIST after 100 rounds, while FedAvg reaches 79.34%.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.