CFedAvg: Achieving Efficient Communication and Fast Convergence in Non-IID Federated Learning
arXiv:2106.07155
Abstract
Federated learning (FL) is a prevailing distributed learning paradigm, where a large number of workers jointly learn a model without sharing their training data. However, high communication costs could arise in FL due to large-scale (deep) learning models and bandwidth-constrained connections. In this paper, we introduce a communication-efficient algorithmic framework called CFedAvg for FL with non-i.i.d. datasets, which works with general (biased or unbiased) SNR-constrained compressors. We analyze the convergence rate of CFedAvg for non-convex functions with constant and decaying learning rates. The CFedAvg algorithm can achieve an convergence rate with a constant learning rate, implying a linear speedup for convergence as the number of workers increases, where is the number of local steps, is the number of total communication rounds, and is the total worker number. This matches the convergence rate of distributed/federated learning without compression, thus achieving high communication efficiency while not sacrificing learning accuracy in FL. Furthermore, we extend CFedAvg to cases with heterogeneous local steps, which allows different workers to perform a different number of local steps to better adapt to their own circumstances. The interesting observation in general is that the noise/variance introduced by compressors does not affect the overall convergence rate order for non-i.i.d. FL. We verify the effectiveness of our CFedAvg algorithm on three datasets with two gradient compression schemes of different compression ratios.
References in corpus (19)
- Very Deep Convolutional Networks for Large-Scale Image Recognition
- Communication-Efficient Learning of Deep Networks from Decentralized Data
- Federated Learning with Non-IID Data
- On the Convergence of FedAvg on Non-IID Data
- QSGD: Communication-Efficient SGD via Gradient Quantization and Encoding
- SCAFFOLD: Stochastic Controlled Averaging for Federated Learning
- TernGrad: Ternary Gradients to Reduce Communication in Distributed Deep Learning
- Federated Optimization in Heterogeneous Networks
- Don't Use Large Mini-Batches, Use Local SGD
- Local SGD Converges Fast and Communicates Little
- Cooperative SGD: A unified Framework for the Design and Analysis of Communication-Efficient SGD Algorithms
- On the Linear Speedup Analysis of Communication Efficient Momentum SGD for Distributed Non-Convex Optimization
- Adaptive Federated Optimization
- The Error-Feedback Framework: Better Rates for SGD with Delayed Gradients and Compressed Communication
- SlowMo: Improving Communication-Efficient Distributed SGD with Slow Momentum
- Tighter Theory for Local SGD on Identical and Heterogeneous Data
- Decentralized Deep Learning with Arbitrary Communication Compression
- : Decentralization Meets Error-Compensated Compression
- Private and Communication-Efficient Edge Learning: A Sparse Differential Gaussian-Masking Distributed SGD Approach