Communication-Efficient Federated Learning With Compensated Overlap-FedAvg

Yuhao Zhou, Qing Ye, Jiancheng LvIEEE TPDS 2020

TL;DR

This paper introduces Overlap-FedAvg, a novel federated learning framework that significantly boosts communication efficiency by overlapping local model training with model communication. By decoupling these phases and employing a gradient compensation mechanism, it achieves faster training without sacrificing accuracy, even on large models and complex datasets.

What Problem Does This Paper Address?

Deep learning models thrive on vast amounts of data, but privacy concerns and data fragmentation prevent this data from being easily collected and centralized. Federated Learning (FL) offers a solution by enabling distributed model training across multiple devices without sharing raw data. However, traditional FL methods like FedAvg suffer from massive communication overhead, as model updates are sent frequently, leading to slow training, especially with large models and limited bandwidth. This paper tackles the challenge of improving FL's communication efficiency to make it more practical and scalable.

Methods

The core innovation of Overlap-FedAvg is the parallelization of model training and communication. Instead of waiting for communication to finish before starting the next training iteration, Overlap-FedAvg uses two processes on each client: one for local training (Ppro) and one for communication (Pcom). Pcom can pre-download the global model and upload local models while Ppro is busy training.

This parallelization introduces a gradient staleness problem, as the model used for compensation might be from previous iterations. To address this, the authors introduce a gradient compensation mechanism. This mechanism uses Taylor series expansion and Fisher information matrix to estimate the true gradients from the stale ones.

Additionally, the framework incorporates a hierarchical computing strategy that allows the communication interval (E) to be adaptive to the environment, rather than a fixed hyperparameter. To further accelerate convergence, the Nesterov Accelerated Gradients (NAG) algorithm is integrated. Overlap-FedAvg is designed to be orthogonal to existing data compression methods, allowing for their combined use.

Datasets

The paper evaluates Overlap-FedAvg on a variety of datasets across image classification and natural language processing tasks:

  • Image Classification: MNIST, Fashion-MNIST, EMNIST, CIFAR-10, CIFAR-100.
  • Natural Language Processing: Wikitext-2.

These datasets were partitioned into ten Non-IID subsets to simulate real-world federated learning scenarios where data is unevenly distributed across clients.

Key Insights and Ideas

  • Communication-Computation Overlap is Key: The fundamental insight is that by decoupling training and communication, significant time savings can be achieved, directly addressing the bottleneck in traditional FL.
  • Staleness is Manageable: The gradient staleness introduced by overlapping is not an insurmountable obstacle. A well-designed compensation mechanism can effectively mitigate its negative impact on model accuracy.
  • Adaptability is Crucial: Making the communication interval adaptive to network conditions (hierarchical computing strategy) is more practical than relying on fixed hyperparameters, which are difficult to tune.
  • NAG Integration is Seamless: The framework's design allows for the intuitive integration of acceleration algorithms like NAG, further enhancing training speed and efficiency.
  • Compatibility with Compression: Overlap-FedAvg's design allows it to be used alongside existing data compression techniques, offering a synergistic approach to communication efficiency.

Key Results

  • Significant Speedup: Overlap-FedAvg consistently reduced the wall-clock time for each training iteration. For lightweight models, it saved around 10% of training time, while for heavier models like Transformer, it achieved up to a 40% speedup.
  • Comparable Accuracy: In most cases, Overlap-FedAvg achieved accuracy comparable to or even better than vanilla FedAvg, especially when the compensation mechanism was properly tuned (indicated by the parameter λ).
  • Improved Hardware Utilization: The paper showed that Overlap-FedAvg achieved much higher hardware utilization rates compared to FedAvg due to continuous local training.
  • NAG Boosts Performance: Enabling the NAG algorithm significantly accelerated convergence speed and improved final accuracy, demonstrating its effectiveness within the Overlap-FedAvg framework.

Limitations and Future Work

  • Hyperparameter Tuning (λ): The data compensation mechanism introduces a hyperparameter (λ) that needs to be tuned to estimate the model weights' Hessian matrix. This tuning can be costly in terms of time and computational resources.
  • Future Work: The authors suggest investigating methods for adaptively selecting λ using evolutionary algorithms or reinforcement learning to improve the practicability of Overlap-FedAvg. They also highlight that their framework is compatible with other acceleration algorithms beyond NAG.

Summary updated

BibTeX
@article{zhou2020communication,
  author = {Yuhao Zhou and Qing Ye and Jiancheng Lv},
  title = {{Communication-Efficient Federated Learning With Compensated Overlap-FedAvg}},
  journal = {IEEE TPDS},
  year = {2020},
  url = {https://openreview.net/forum?id=UNefGFshkb},
}
Figure