Skip to main content
QUICK REVIEW

[Paper Review] On the Unreasonable Effectiveness of Federated Averaging with Heterogeneous Data

Jianyu Wang, Rudrajit Das|arXiv (Cornell University)|Jun 9, 2022
Privacy-Preserving Technologies in DataComputer Science19 citations
TL;DR

This paper resolves the paradox of Federated Averaging (FedAvg)’s strong empirical performance despite theoretical predictions of poor convergence under data heterogeneity. By introducing the novel measure 'average drift at optimum'—which quantifies how much local models drift from the global optimum after local updates—the authors show that FedAvg converges at the same rate in both homogeneous and heterogeneous settings when this drift is near zero, explaining its real-world success.

ABSTRACT

Existing theory predicts that data heterogeneity will degrade the performance of the Federated Averaging (FedAvg) algorithm in federated learning. However, in practice, the simple FedAvg algorithm converges very well. This paper explains the seemingly unreasonable effectiveness of FedAvg that contradicts the previous theoretical predictions. We find that the key assumption of bounded gradient dissimilarity in previous theoretical analyses is too pessimistic to characterize data heterogeneity in practical applications. For a simple quadratic problem, we demonstrate there exist regimes where large gradient dissimilarity does not have any negative impact on the convergence of FedAvg. Motivated by this observation, we propose a new quantity, average drift at optimum, to measure the effects of data heterogeneity, and explicitly use it to present a new theoretical analysis of FedAvg. We show that the average drift at optimum is nearly zero across many real-world federated training tasks, whereas the gradient dissimilarity can be large. And our new analysis suggests FedAvg can have identical convergence rates in homogeneous and heterogeneous data settings, and hence, leads to better understanding of its empirical success.

Motivation & Objective

  • To resolve the discrepancy between FedAvg’s strong empirical performance and theoretical predictions of degraded convergence under data heterogeneity.
  • To identify why existing theoretical analyses based on gradient dissimilarity fail to capture the true impact of data heterogeneity in practical federated learning.
  • To propose a new theoretical measure—average drift at optimum—that more accurately reflects the effect of data heterogeneity on FedAvg convergence.
  • To develop a new convergence analysis for FedAvg that uses average drift at optimum, showing identical convergence rates in homogeneous and heterogeneous settings when drift is near zero.
  • To demonstrate empirically and theoretically that FedAvg can outperform mini-batch SGD in practical settings despite high data heterogeneity.

Proposed method

  • Propose 'average drift at optimum' as a new measure of data heterogeneity, defined as the average change in local models after multiple local descent steps from the global optimum.
  • Analyze a simple quadratic model to show that large gradient dissimilarity does not necessarily harm FedAvg convergence, even when gradient dissimilarity is unbounded.
  • Introduce a new theoretical convergence analysis for FedAvg under strongly convex objectives, explicitly incorporating average drift at optimum as a key parameter.
  • Derive convergence bounds that show linear convergence to the global optimum when average drift at optimum is zero, even with high condition number or multiple local steps.
  • Extend the analysis to stochastic settings and consider additional assumptions such as client sampling, Hessian dissimilarity, and third-order smoothness.
  • Provide a corollary showing improved convergence rates for quadratic local objectives, where iterate bias vanishes and FedAvg strictly outperforms mini-batch SGD.

Experimental results

Research questions

  • RQ1Why does FedAvg perform well in practice despite theoretical predictions of poor convergence under data heterogeneity?
  • RQ2To what extent does gradient dissimilarity accurately capture the impact of data heterogeneity on FedAvg convergence?
  • RQ3Can a new measure of data heterogeneity be defined that better explains FedAvg’s empirical success?
  • RQ4Does FedAvg achieve the same convergence rate in homogeneous and heterogeneous data settings when the new measure is small?
  • RQ5Can the new theoretical framework explain why advanced methods like Scaffold do not outperform FedAvg in real-world federated tasks?

Key findings

  • In a quadratic model with shared labeling but different input distributions, FedAvg converges well despite arbitrarily large gradient dissimilarity, showing that gradient dissimilarity is not a reliable proxy for convergence impact.
  • The average drift at optimum is nearly zero across multiple real-world federated datasets, even when gradient dissimilarity is large, indicating that data heterogeneity has minimal negative effect in practice.
  • When average drift at optimum is zero, FedAvg achieves identical convergence rates in both homogeneous and heterogeneous data settings, implying it is provably better than mini-batch SGD in such regimes.
  • The new theoretical analysis shows FedAvg enjoys linear convergence with a rate of $\widetilde{\mathcal{O}}(\exp(-T/16\kappa \min\{\kappa, H\})) + \sigma^2/(MHT) + \rho^2 $, where $\rho$ is the average drift at optimum.
  • For quadratic local objectives, the iterate bias vanishes ($Q=0$), leading to a convergence rate of $\widetilde{\mathcal{O}}(\exp(-T/16\kappa \min\{\kappa, H\})) + \sigma^2/(MHT) + \rho^2 $, which is strictly better than mini-batch SGD when $\rho=0$.
  • The analysis framework is extensible to client sampling, Hessian dissimilarity, and third-order smoothness, enabling refined convergence bounds under various assumptions.

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.