CFedAvg: Achieving Efficient Communication and Fast Convergence in Non-IID Federated Learning

Haibo Yang, Jia Liu, Elizabeth S. Bentley

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training global machine learning models on decentralized data residing on edge devices. However, practical deployment faces a "triple threat" of efficiency bottlenecks: significant communication overhead due to large model sizes, data heterogeneity (non-IID data) leading to model drift, and system heterogeneity where varying device capabilities create "stragglers."

While existing research has addressed these challenges in isolation, CFedAvg (Compressed Federated Averaging) is the first algorithmic framework to rigorously combine infrequent communication and lossy gradient compression. This paper provides the first theoretical guarantee of "linear speedup" for non-convex optimization on non-IID data, even under heterogeneous local workloads.

The CFedAvg Framework

CFedAvg optimizes the FL process through three primary mechanisms:

  • SNR-Constrained Compression: The framework supports a broad class of general compressors (biased or unbiased) satisfying a Signal-to-Noise Ratio (SNR) constraint. This includes common techniques like Top-$k$ sparsification and Random Dropping (RD).
  • Error Feedback (EF): To mitigate information loss from compression, CFedAvg employs error feedback. Residuals from compressed updates are stored locally and reintegrated into subsequent rounds, ensuring that gradient information is delayed rather than discarded.
  • Heterogeneous Local Steps: Recognizing hardware diversity, CFedAvg allows each worker $i$ to perform a different number of local updates ($K_i$). This prevents faster devices from idling while waiting for stragglers, without compromising theoretical convergence.

Experimental Evaluation

The authors evaluated CFedAvg on standard computer vision benchmarks—MNIST, Fashion-MNIST, and CIFAR-10—using CNN and ResNet-18 architectures. To simulate real-world conditions, data was distributed in a non-IID fashion by limiting the number of classes available to each worker.

Key Results and Insights

The Necessity of Error Feedback

A critical finding of this work is the indispensable role of error feedback in maintaining convergence, particularly with non-IID data. As illustrated below, there is a substantial performance gap between models trained with and without EF. Without this mechanism, high compression ratios often lead to divergence or significantly degraded accuracy.

Impact of Error Feedback (EF) on convergence. Models utilizing EF (solid lines) significantly outperform those without (dashed lines) under identical compression settings.

Efficiency and Bandwidth Savings

CFedAvg demonstrates remarkable resilience to aggressive compression. On the MNIST dataset, using Top-$k$ compression to transmit only 1% of gradient coordinates (comp=0.99) resulted in convergence speeds and final accuracies nearly identical to the uncompressed baseline. This validates the framework's ability to achieve up to 99% bandwidth savings without sacrificing performance.

Convergence of CFedAvg compared to the uncompressed baseline on MNIST. Even at 99% compression (comp=0.99), the algorithm matches the baseline performance.

Linear Speedup and Noise Filtering

Theoretically, the paper proves a convergence rate of $O(1/\sqrt{mKT})$, where $m$ is the number of workers. This "linear speedup" implies that increasing the worker count reduces training time proportionally, even with heavy compression. Interestingly, the authors hypothesize that compression may act as a noise filter in highly non-IID settings, smoothing learning curves by preventing the global model from over-adjusting to the extreme variance of individual local updates.

Conclusion

CFedAvg provides a robust solution for efficient Federated Learning by harmonizing compression and infrequent communication. While the framework is sensitive to the SNR bound of the chosen compressor and requires careful learning rate tuning, its ability to maintain high accuracy with 99% bandwidth savings marks a significant step forward. Future work will explore the integration of CFedAvg with privacy-preserving primitives like Differential Privacy and Secure Aggregation.

Summary updated

BibTeX
@inproceedings{yang2021cfedavg,
  author = {Haibo Yang and Jia Liu and Elizabeth S. Bentley},
  title = {{CFedAvg: Achieving Efficient Communication and Fast Convergence in Non-IID Federated Learning}},
  booktitle = {WiOpt},
  year = {2021},
  doi = {10.23919/wiopt52861.2021.9589061},
}
Figure