Adaptive Client Sampling in Federated Learning via Online Learning with Bandit Feedback

Boxin Zhao, Lingxiao Wang, Ziqi Liu, Zhiqiang Zhang, Jun Zhou +2 more
12/28/2021
cs.LG
federated

Official code: boxinz17/FL-Client-Sampling (8 stars, Python, last commit 2022-03-05).

Abstract

Due to the high cost of communication, federated learning (FL) systems need to sample a subset of clients that are involved in each round of training. As a result, client sampling plays an important role in FL systems as it affects the convergence rate of optimization algorithms used to train machine learning models.

Show full abstract

Despite its importance, there is limited work on how to sample clients effectively. In this paper, we cast client sampling as an online learning task with bandit feedback, which we solve with an online stochastic mirror descent (OSMD) algorithm designed to minimize the sampling variance. We then theoretically show how our sampling method can improve the convergence speed of federated optimization algorithms over the widely used uniform sampling. Through both simulated and real data experiments, we empirically illustrate the advantages of the proposed client sampling algorithm over uniform sampling and existing online learning-based sampling strategies. The proposed adaptive sampling procedure is applicable beyond the FL problem studied here and can be used to improve the performance of stochastic optimization procedures such as stochastic gradient descent and stochastic coordinate descent.

View on arXivView PDF

Code Implementations(1)

The code of the paper Adaptive Client Sampling in Federated Learning via Online Learning with Bandit Feedback.

82PythonMar 5, 20224 years ago

Similar Papers

Cite this paper

@article{zhao2021adaptive,
  title  = {Adaptive Client Sampling in Federated Learning via Online Learning with Bandit Feedback},
  author = {Boxin Zhao and Lingxiao Wang and Ziqi Liu and Zhiqiang Zhang and Jun Zhou and Chaochao Chen and Mladen Kolar},
  year   = {2021},
  eprint = {2112.14332},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.14332}
}

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/2112.14332.svg)](https://codeofpaper.com/paper/2112.14332)

Discussion