Abstract
Federated Learning (FL) enables collaborative model training across decentralized devices while preserving data privacy. However, the high communication overhead of transmitting model updates remains a significant bottleneck. We present FedSparQ, a lightweight compression framework that reduces communication costs by up to 90% without compromising accuracy. By integrating adaptive layer-wise sparsification, half-precision quantization, and an error-feedback mechanism, FedSparQ ensures robust performance even in highly heterogeneous (non-IID) data environments.
The Communication Bottleneck in Federated Learning
In standard FL, a central server aggregates updates from thousands of edge devices. Sending high-dimensional gradients over constrained bandwidth drains device batteries and congests networks. While existing methods like quantization and sparsification offer relief, they often require manual tuning of sparsity rates and suffer from "client drift" in non-IID settings, where local models diverge significantly.
The FedSparQ Framework
FedSparQ addresses these challenges through a "hyperparameter-light" approach that automates compression. The framework operates through a coordinated sequence of steps on both the client and server sides.
- FedProx Regularization: During local training, a proximal term is added to the loss function to prevent client updates from deviating too far from the global model, enhancing stability under data heterogeneity.
- Adaptive Threshold Sparsification: Instead of a fixed top-k selection, FedSparQ uses an Exponential Moving Average (EMA) to calculate a dynamic threshold for each layer. This allows the model to automatically identify the most critical updates at different stages of training.
- Float16 Quantization: Selected updates are converted from 32-bit to 16-bit precision, immediately halving the data volume per value.
- Error-Feedback (EF): Pruned or rounded-off information is stored in a local residual buffer and reintegrated into the next round's update, ensuring no information is permanently lost.
Experimental Evaluation
The framework was benchmarked using MNIST, Fashion-MNIST (FMNIST), and CIFAR-10 (ResNet-18) datasets. Experiments covered both IID and non-IID settings, the latter using a Dirichlet distribution to simulate real-world data skew.
Key Insights
- Synergistic Compression: The combination of sparsification and quantization yields multiplicative savings. FedSparQ transmits approximately 6 bytes per selected coordinate (4 for the index + 2 for the value), a drastic reduction from the standard 32 bits for every coordinate.
- Dynamic Adaptation: The EMA-based thresholding removes the need for manual sparsity tuning, allowing the system to filter noise and prioritize signal on the fly.
- Robustness to Heterogeneity: FedSparQ often outperforms full-precision models in non-IID scenarios. The adaptive thresholding effectively acts as a filter, preventing outlier updates from destabilizing global convergence.
Results and Efficiency
FedSparQ demonstrates superior communication efficiency across all tested benchmarks. On MNIST, it achieved over a 16x reduction in bytes sent compared to standard FedAvg.
- Communication Savings: Across all datasets, FedSparQ consistently achieved a 90% reduction in overhead.
- Accuracy and Stability: In non-IID CIFAR-10 tests, FedSparQ reached 66.3% accuracy, outperforming FedAvg's 54.46%. Furthermore, it improved convergence robustness by 50% compared to other compression baselines.
Future Directions
While highly effective, future work will explore adaptive precision scheduling (e.g., dropping to 4-bit or 8-bit quantization near convergence) and the integration of privacy-preserving techniques like Secure Aggregation. Additionally, the team aims to investigate variational inference to further mitigate extreme data drift.
Summary updated