On the Convergence of Communication-Efficient Local SGD for Federated Learning

Hongchang Gao, An Xu, Heng HuangAAAI 2021

Introduction

Federated Learning (FL) enables multiple edge devices to collaboratively train a global model under the coordination of a central server. While this paradigm preserves data privacy, it is frequently hampered by high communication costs, particularly when synchronizing large-scale deep neural networks. To mitigate this, researchers often employ local SGD, where workers perform multiple local updates before synchronizing, and gradient compression, which reduces the size of transmitted data.

However, existing compressed local SGD methods often suffer from two major drawbacks: they typically only compress the uplink (worker-to-server), leaving the downlink as a bottleneck, and their theoretical convergence proofs often rely on the unrealistic assumption that gradient norms are strictly bounded.

Proposed Algorithms: Double Compression and Error Compensation

This paper introduces a novel "double compression" framework that reduces communication overhead in both directions. The authors propose two primary algorithms:

  1. Local SGD with Compressed Gradients (Algorithm 1): This method applies compression to both the uplink and the downlink. To maintain model accuracy despite heavy compression, it incorporates error compensation. This technique involves locally storing the "residual error" (the difference between the true and compressed gradients) and adding it back into subsequent steps.
  2. Momentum Local SGD with Compressed Gradients (Algorithm 2): This extends the framework to momentum-based optimization, which is essential for modern deep learning but often ignored in compression literature. It compresses the accumulated momentum terms rather than raw gradients.

Key Insights and Theoretical Breakthroughs

A major contribution of this work is the rigorous mathematical proof of convergence that avoids the "pathological" bounded-gradient assumption. By meticulously bounding the compression error in both directions, the authors demonstrate that double-compressed local SGD achieves a communication complexity of $O(K^{3/2}T^{1/2})$. This matches the asymptotic efficiency of full-precision local SGD, proving that compression does not degrade the fundamental convergence rate.

Training loss vs. epochs for various synchronization periods (p), showing that the proposed compressed method (Alg1) tracks the full-precision baseline (Local) closely.

Experimental Results

The proposed methods were evaluated on standard benchmarks: CIFAR-10 using ResNet-56 and ImageNet using ResNet-50.

  • Accuracy Preservation: On CIFAR-10, the compressed method achieved ~92.4% to 92.7% accuracy, virtually identical to the full-precision baseline. On ImageNet, the momentum-based algorithm reached ~76.0% accuracy, matching its uncompressed counterpart.
  • Communication Efficiency: The most striking result is the reduction in communication bits. When plotting accuracy against the total bits transferred, the proposed methods shift the performance curves drastically to the left, achieving target accuracy using orders of magnitude fewer bits than both uncompressed baselines and single-compression methods like QL-SGD.
Testing accuracy vs. communication cost (bits). The proposed Alg1 achieves target accuracy with significantly fewer bits compared to the full-precision Local SGD baseline.

Conclusion and Future Work

This research proves that bidirectional compression with error compensation is a viable and theoretically sound approach for Federated Learning. While the current analysis assumes i.i.d. data distributions to tighten complexity bounds, the authors suggest that their robust proof techniques can be adapted for non-i.i.d. (heterogeneous) data in future work, potentially by incorporating assumptions regarding bounded gradient heterogeneity.

Summary updated

BibTeX
@inproceedings{gao2021convergence,
  author = {Hongchang Gao and An Xu and Heng Huang},
  title = {{On the Convergence of Communication-Efficient Local SGD for Federated Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i9.16920},
}
Figure