Personalized Federated Learning with Communication Compression

El houcine Bergou, Konstantin Pavlovich Burlachenko, Aritra Dutta, Peter Richtárik

Abstract

In contrast to training traditional machine learning (ML) models in data centers, federated learning (FL) trains ML models over local datasets contained on resource-constrained heterogeneous edge devices. Existing FL algorithms aim to learn a single global model for all participating devices, which may not be helpful to all devices participating in the training due to the heterogeneity of the data across the devices. Recently, Hanzely and Richtárik (2020) proposed a new formulation for training personalized FL models aimed at balancing the trade-off between the traditional global model and the local models that could be trained by individual devices using their private data only. They derived a new algorithm, called loopless gradient descent (L2GD), to solve it and showed that this algorithm leads to improved communication complexity guarantees in regimes when more personalization is required. In this paper, we equip their L2GD algorithm with a bidirectional compression mechanism to further reduce the communication bottleneck between the local devices and the server. Unlike other compression-based algorithms used in the FL-setting, our compressed L2GD algorithm operates on a probabilistic communication protocol, where communication does not happen on a fixed schedule. Moreover, our compressed L2GD algorithm maintains a similar convergence rate as vanilla SGD without compression. To empirically validate the efficiency of our algorithm, we perform diverse numerical experiments on both convex and non-convex problems and using various compression techniques.

Introduction

The "one-size-fits-all" approach in Federated Learning (FL) often fails when data is spread across millions of heterogeneous edge devices. Training a single global model can result in a "jack of all trades, master of none" that fails to capture local patterns. Personalized Federated Learning (PFL) addresses this by balancing global knowledge with local expertise, allowing each device to maintain a model tailored to its specific data. However, PFL introduces a significant communication bottleneck, as updates for many personalized models must be exchanged between devices and a central server.

Methods: Compressed Loopless Gradient Descent

The proposed approach builds upon the Loopless Gradient Descent (L2GD) framework. Traditional FL algorithms typically use "loop-based" communication, where devices perform a fixed number of local steps before aggregating. In contrast, L2GD utilizes a probabilistic communication protocol.

Overview of the Federated Learning architecture (a) and the comparison between traditional fixed-step communication and the proposed probabilistic L2GD protocol (b).

As shown in Figure 3, in every iteration, each device effectively "tosses a coin":

  1. Local Step (Heads): The device performs a gradient update on its local data.
  2. Aggregation Step (Tails): The device communicates with the server to move its local model closer to the global average.

The core innovation is the integration of bidirectional compression. By applying unbiased compression operators (such as QSGD or Natural Compression) to both the uplink (device to server) and downlink (server to device), the authors significantly reduce the data volume per communication round. The personalization trade-off is controlled by a parameter $\lambda$; as the need for personalization increases, the optimal communication probability $p$ also changes, a relationship the authors formalize mathematically.

Experimental Evaluation

The researchers validated Compressed L2GD across several benchmarks:

  • Convex Problems: Logistic regression on the a1a and a2a datasets.
  • Non-Convex Deep Learning: Training architectures like ResNet-18, ResNet-56, DenseNet-121, and MobileNet on CIFAR-10.
  • Data Heterogeneity: CIFAR-10 data was partitioned heterogeneously across 10 clients using a Dirichlet distribution ($\alpha = 0.5$) to simulate real-world conditions.

Key Results

  • Massive Data Savings: On CIFAR-10, Compressed L2GD achieved a 10,000x improvement in communication efficiency, reducing the data volume required to reach 0.7 Top-1 accuracy from $10^{15}$ bits/n (for FedAvg) to $10^{11}$ bits/n.
  • Convergence Speed: L2GD with natural compression converged approximately 5 times faster than FedOpt, a popular non-compressed baseline.
  • Compression Performance: The Natural Compressor (rounding to the nearest power of two) was found to be particularly effective due to its low variance, leading to stable and fast convergence.

Conclusion

This work demonstrates that bidirectional compression can be successfully integrated into personalized federated learning without sacrificing performance. By leveraging a probabilistic communication protocol, Compressed L2GD overcomes the rigid schedules of traditional algorithms and achieves massive reductions in network bandwidth requirements. Future research will explore extending this framework to handle client unavailability and the use of biased compressors, which are common in industrial applications.

Summary updated

BibTeX
@article{bergou2023personalized,
  author = {El houcine Bergou and Konstantin Pavlovich Burlachenko and Aritra Dutta and Peter Richtárik},
  title = {{Personalized Federated Learning with Communication Compression}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=dZugyhbNFY},
}
Figure