Large Stepsizes Federated Learning on Logistic Regression with Linearly Separable Data: The Case of Heterogeneous Devices
Authors: Hok Fong Wong, Hoi-To Wai, Chung-Yiu Yau
Organizations: Department of CSE, The Chinese University of Hong Kong, Hong Kong SAR · Department of SEEM, The Chinese University of Hong Kong, Hong Kong SAR · Department of ECE, University of Minnesota, Minnesota, USA
This paper revisits the distributed learning problem for training a multinomial logistic regression model with the Federated Averaging (FedAvg) algorithm. We concentrate on a scenario with arbitrarily large stepsizes and heterogeneous update rules where the devices may perform a different number of local updates in each round. We show that, with linearly separable data, FedAvg is stable with any stepsizes and the objective values converge to zero at the rate of O(1/R), where R is the number of communication rounds. Our result also demonstrates that the effects of device heterogeneity vanish asymptotically. For sufficiently large R, the objective values decrease monotonically and is bounded by O(1/(RTavg)), where Tavg is the average number of local update steps per communication round across devices. Numerical experiments support our findings.
Figures & tables
Fig. 1: Convergence of FedAvg with homogeneous (“homo. device”: Ti=27 for all devices) and heterogeneous (“hete. device”: Ti=4 for device 1 - 4 , Ti=50 for device 5 - 8 ) devices. Both configurations share the same average Tavg=27 with global/local stepsizes: (Left) ηg=64,ηl=1 , (Right) ηg=128,ηl=1 .
Fig. 2: Effects of the number of local steps T . All devices perform the same number of local epochs T∈{1,4,16,64} , with global stepsizes ηg∈{1,64,128} and local stepsize ηl=1 .
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
Fig. 3: Effect of hard-sample placement under heterogeneous local step counts. All configurations share the same set of data and the same average local work Tavg=57 . The hardest samples are assigned to either straggler clients with Ti=13 ( hardLowT ), fast clients with Ti=101 ( hardHighT ) under the heterogeneous setup, or arbitrarily for the homogeneous setup where all Ti=57 ( homo ). We use the global stepsizes ηg∈{32,64} , local stepsize ηl=1 .
Fig. 4: Effect of heterogeneous local update steps under minibatch SGD. All devices perform local updates using minibatches of size b∈{5,25,125} , with global stepsizes ηg∈{32,64} and local stepsize ηl=1 . Two configurations are compared at a matched average Tavg=57 : homogeneous ( Ti=57 for all devices) and heterogeneous ( Ti=13 for devices 1-4, Ti=101 for devices 5-8).
Federated learning (FL) is an emerging distributed machine learning paradigm that enables local devices to jointly train a global model while keeping data decentralized and private. We propose a variance-reduction based algorithm, VRA-FedSGD, for FL in the presence of heavy-tailed gradient noise and communication noise, where these noises are prevalent in large-scale machine learning over wireless networks and Internet of Things deployments. VRA-FedSGD employs a momentum variance reduction technique together with a nonlinear mapping to mitigate heavy-tailed gradient noise, and uses a variance-reduced aggregation mechanism to suppress heavy-tailed communication noise. In the mean sense, VRA-FedSGD achieves a convergence rate of {\smallO(K−(p−1)/(2p−1))} for nonconvex objective functions, where p is the tail index of heavy-tailed noise. In the almost sure sense, VRA-FedSGD achieves a convergence rate of O~(K−(1−1/(p−ε))) for strongly convex objective functions, where ε is an arbitrarily small constant. Simulated experiments on a logistic regression problem with real-world data verify the effectiveness of VRA-FedSGD.
Shengchao Zhao, Yongchao Liu
School of Mathematics, China University of Mining and Technology, Xuzhou, China · School of Mathematical Sciences, Dalian University of Technology, Dalian, China
There are two categories of methods in Federated Learning (FL) for joint training across multiple clients: (i) parallel FL (PFL), where clients train models in a parallel manner; and (ii) sequential FL (SFL), where clients train models in a sequential manner. In contrast to that of PFL, the convergence theory of SFL on heterogeneous data is still lacking. In this paper, we establish the convergence guarantees of SFL for strongly/general/non-convex objectives on heterogeneous data. The convergence guarantees of SFL are better than that of PFL on heterogeneous data with both full and partial client participation. Experimental results validate the counterintuitive analysis result that SFL outperforms PFL on extremely heterogeneous data in cross-device settings.
Yipeng Li, Xinchen Lyu
National Engineering Research Center for Mobile Network Technologies Beijing University of Posts and Telecommunications Beijing, 100876, China
Federated Learning is a leading framework for training ML and AI models collaboratively across numerous user devices or databases. We study the trade-offs among estimation accuracy, privacy constraints, and communication cost for differentially private (DP) federated M estimation. The two standard methods in the literature are FedAvg, which may suffer from high federation bias, and FedSGD, which can incur high communication cost. Aimed at improving accuracy at a reduced communication cost, we propose FedHybrid, which uses FedSGD starting with an improved initialization by the FedAvg estimator. We propose FedNewton, which averages local Newton iterations to reduce bias in FedAvg, achieving an estimation accuracy comparable to FedSGD with much fewer communication rounds when the number of clients grows sufficiently slowly. We establish finite sample upper bounds on the mean-squared error rates of the DP versions of these estimators as functions of the number of clients, local sample sizes, privacy budget, and number of iterations. We further derive a minimax lower bound on the MSE of any iterative private federated procedure that provides a benchmark to assess the optimality gap of these methods. We numerically evaluate our methods for training a logistic regression and a neural network on the computer vision datasets MNIST and CIFAR-10.
Arnab Auddy, Xiangni Peng, Subhadeep Paul
Department of Statistics · The Ohio State University