Abstract
Federated Learning (FL) has garnered increasing attention due to its unique characteristic of allowing heterogeneous clients to process their private data locally and interact with a central server, while being respectful of privacy. A critical bottleneck in FL is the communication cost. A pivotal strategy to mitigate this burden is Local Training, which involves running multiple local stochastic gradient descent iterations between communication phases. Our work is inspired by the innovative Scaffnew algorithm, which has considerably advanced the reduction of communication complexity in FL. We introduce FedComLoc (Federated Compressed and Local Training), integrating practical and effective compression into Scaffnew to further enhance communication efficiency. Extensive experiments, using the popular Top-K compressor and quantization, demonstrate its prowess in substantially reducing communication overheads in heterogeneous settings.
Introduction
In Federated Learning (FL), a central server coordinates training across thousands of edge devices without ever accessing their private data. While this paradigm preserves privacy, it faces a massive communication bottleneck: moving large model updates across unstable, low-bandwidth wireless networks is slow and expensive.
To address this, researchers typically employ two strategies: Local Training (LT), where clients perform multiple local updates before communicating with the server, and Compression, which reduces the size of transmitted data via techniques like Top-K sparsity or quantization. However, combining these methods often leads to "client drift," where local models diverge so significantly that the global model fails to converge. FedComLoc is designed to bridge this gap by integrating robust compression into an accelerated local training framework.
Methods
FedComLoc (Federated Compressed and Local Training) is built upon Scaffnew, a state-of-the-art algorithm that utilizes control variates to prevent client drift. The framework introduces three primary compression variants:
- FedComLoc-Com (Uplink): Compresses updates from client to server.
- FedComLoc-Global (Downlink): Compresses the global model broadcast to clients.
- FedComLoc-Local: Applies compression during local training iterations to save on-device resources.
The framework supports both Top-K Sparsity (retaining only the most significant $K\%$ of weights) and Quantization (mapping 32-bit floats to as low as 4 bits).
Experimental Setup
We evaluated FedComLoc using diverse datasets including FedMNIST, FedCIFAR10, FEMNIST (a heterogeneous dataset with over 3,400 writers), and Shakespeare (language modeling). We simulated varying levels of data heterogeneity using a Dirichlet distribution ($\alpha$) to ensure robustness in non-IID (Independent and Identically Distributed) settings.
Key Results and Discussion
Communication Efficiency and Convergence
FedComLoc consistently outperformed standard baselines like FedAvg and Scaffold. On the FEMNIST dataset, FedComLoc reached 60% accuracy using 84.7% fewer communication rounds than SparseFedAvg. Notably, increasing the number of local iterations synergized with compression, allowing models to converge faster even with high sparsity.
As shown in the figure above, while the number of communication rounds required for convergence remains relatively stable across different sparsity levels, the total communication bits are drastically reduced as $K$ decreases. For instance, on FedMNIST, using only 30% of model weights resulted in a negligible accuracy drop of 1.07%.
Impact of Data Heterogeneity
Our analysis revealed that the framework is sensitive to the degree of data heterogeneity among clients. As the Dirichlet parameter $\alpha$ decreases (indicating higher heterogeneity), the model requires more rounds to converge and exhibits higher variance in testing accuracy.
Despite this sensitivity, FedComLoc's error-correction mechanisms handle the bias of compressors like Top-K remarkably well, even in non-convex settings such as training CNNs and LSTMs. Furthermore, the computational overhead of compression was found to be negligible, adding less than 2% to per-iteration compute time.
Conclusion
FedComLoc demonstrates that the synergy between local training and biased compression can lead to massive communication savings in Federated Learning without significant accuracy loss. While the empirical results are strong, future work will focus on providing formal theoretical proofs for biased compressors in accelerated frameworks and addressing potential fairness issues arising from aggressive compression on minority client data.
Summary updated