Lessons from Generalization Error Analysis of Federated Learning: You May Communicate Less Often!

Milad Sefidgaran, Romain Chor, Abdellatif Zaidi, Yijun Wan
6/9/2023
stat.MLcs.ITcs.LG

No official code found. Best implementation: RomainChor/Generalization_FL_ICML2024 (1 star, MIT, last commit 2024-07-22).

Abstract

We investigate the generalization error of statistical learning models in a Federated Learning (FL) setting. Specifically, we study the evolution of the generalization error with the number of communication rounds $R$ between $K$ clients and a parameter server (PS), i.e., the effect on the generalization error of how often the clients' local models are aggregated at PS. In our setup, the more the clients communicate with PS the less data they use for local training in each round, such that the amount of training data per client is identical for distinct values of $R$. We establish PAC-Bayes and rate-distortion theoretic bounds on the generalization error that account explicitly for the effect of the number of rounds $R$, in addition to the number of participating devices $K$ and individual datasets size $n$. The bounds, which apply to a large class of loss functions and learning algorithms, appear to be the first of their kind for the FL setting. Furthermore, we apply our bounds to FL-type Support Vector Machines (FSVM); and derive (more) explicit bounds in this case. In particular, we show that the generalization bound of FSVM increases with $R$, suggesting that more frequent communication with PS diminishes the generalization power. This implies that the population risk decreases less fast with $R$ than does the empirical risk. Moreover, our bound suggests that the generalization error of FSVM decreases faster than that of centralized learning by a factor of $\mathcal{O}(\sqrt{\log(K)/K})$. Finally, we provide experimental results obtained using neural networks (ResNet-56) which show evidence that not only may our observations for FSVM hold more generally but also that the population risk may even start to increase beyond some value of $R$.

View on arXivView PDF

Code Implementations(1)

MIT

Contains code for reproducing experimental results for the ICML2024 paper "Lessons from Generalization Error Analysis of Federated Learning: You May Communicate Less Often!"

10Shell, PythonMay 29, 20242 years agoMIT

Similar Papers

Cite this paper

@article{sefidgaran2023lessons,
  title  = {Lessons from Generalization Error Analysis of Federated Learning: You May Communicate Less Often!},
  author = {Milad Sefidgaran and Romain Chor and Abdellatif Zaidi and Yijun Wan},
  year   = {2023},
  eprint = {2306.05862},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.05862v2},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.05862.svg)](https://codeofpaper.com/paper/2306.05862)

Discussion