Network Adaptive Federated Learning: Congestion and Lossy Compression

Parikshit Hegde, Gustavo de Veciana, Aryan Mokhtari

Abstract

In order to achieve the dual goals of privacy and learning across distributed data, Federated Learning (FL) systems rely on frequent exchanges of large files (model updates) between a set of clients and the server. As such, FL systems are exposed to, or indeed the cause of, congestion across a wide set of network resources. Lossy compression can be used to reduce the size of exchanged files and associated delays, at the cost of adding noise to model updates. By judiciously adapting clients' compression to varying network congestion, an FL application can reduce wall clock training time. To that end, we propose a Network Adaptive Compression (NAC-FL) policy, which dynamically varies the client's lossy compression choices to network congestion variations. We prove, under appropriate assumptions, that NAC-FL is asymptotically optimal in terms of directly minimizing the expected wall clock training time. Further, we show via simulation that NAC-FL achieves robust performance improvements with higher gains in settings with positively correlated delays across time.

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving user privacy. However, the practical deployment of FL is often hindered by significant communication bottlenecks. The process requires repeated exchanges of high-dimensional model updates between a central server and numerous edge devices, which can lead to severe network congestion and prolonged training times.

To mitigate these delays, researchers frequently employ lossy compression techniques, such as quantization, to reduce the volume of data transmitted. While effective at reducing per-round communication time, compression introduces noise into the model updates, which can negatively impact the convergence rate. This creates a fundamental trade-off that most current FL implementations fail to optimize dynamically.

The Compression Trade-off and the "Sweet Spot"

The core challenge in optimizing FL communication lies in balancing two competing factors: the number of communication rounds required for convergence and the duration of each individual round.

  1. High Compression: Shrinking updates significantly reduces the time spent in each communication round. However, the resulting "noisy" updates slow down the model's progress toward the global optimum, necessitating a higher total number of rounds.
  2. Low Compression: Maintaining high-fidelity updates ensures faster convergence in terms of the number of rounds, but each round takes considerably longer due to the large file sizes, especially in congested network environments.
The trade-off between model compression, round duration, and total training rounds leads to an optimal 'sweet spot' for wall clock time.

As illustrated above, there exists a "sweet spot"—an optimal compression level that minimizes the total wall-clock training time. Traditional approaches often use a static compression level or adapt based solely on static client characteristics, ignoring the reality that network congestion is highly dynamic and varies over time.

NAC-FL: Network Adaptive Compression

We introduce Network Adaptive Compression for Federated Learning (NAC-FL), a policy designed to find this sweet spot in real-time. NAC-FL treats the selection of a compression level as a dynamic optimization problem.

Using a stochastic approximation framework inspired by the Frank-Wolfe algorithm, NAC-FL maintains running estimates of how different compression levels affect both round duration and convergence progress. Crucially, the algorithm does not require prior knowledge of the network's congestion patterns. Instead, it observes the actual delays experienced in each round and updates its internal model to select the optimal compression level for the subsequent round. We have mathematically demonstrated that NAC-FL is asymptotically optimal, meaning its performance converges to the theoretical best as the target model accuracy increases.

Experimental Evaluation

We evaluated NAC-FL using the MNIST dataset distributed heterogeneously (non-IID) across 10 clients. To simulate real-world conditions, we tested the policy against various synthetic network models, including scenarios with independent random delays and those with temporal and spatial correlations (e.g., "rush hour" effects where all clients experience simultaneous congestion).

Key Results

Our simulations reveal that NAC-FL consistently outperforms both static and existing adaptive baselines.

Performance comparison of NAC-FL against fixed-bit and adaptive baselines across different network volatility levels.

As shown in the results table, NAC-FL achieved massive speedups compared to "Fixed Bit" policies, reducing training time by 145% to 881% depending on network volatility. Furthermore, in settings where network delays were correlated over time, NAC-FL outperformed "Fixed Error" adaptive baselines by 10% to 27%. This advantage stems from NAC-FL's ability to exploit temporal windows of low congestion by reducing compression, while aggressively compressing updates when the network is slow.

Conclusion and Future Work

NAC-FL provides a robust, "plug-and-play" solution for optimizing Federated Learning in unpredictable network environments. By learning the congestion patterns on-the-fly, it effectively minimizes wall-clock training time without requiring manual tuning or prior network modeling.

Future research will focus on extending this framework to non-stationary network environments where congestion patterns shift abruptly. Additionally, we aim to integrate NAC-FL with adaptive client sampling techniques to further enhance communication efficiency in large-scale, cross-device FL deployments.

Summary updated

Abstract

In order to achieve the dual goals of privacy and learning across distributed data, Federated Learning (FL) systems rely on frequent exchanges of large files (model updates) between a set of clients and the server. As such FL systems are exposed to, or indeed the cause of, congestion across a wide set of network resources. Lossy compression can be used to reduce the size of exchanged files and associated delays, at the cost of adding noise to model updates. By judiciously adapting clients' compression to varying network congestion, an FL application can reduce wall clock training time. To that end, we propose a Network Adaptive Compression (NAC-FL) policy, which dynamically varies the client's lossy compression choices to network congestion variations. We prove, under appropriate assumptions, that NAC-FL is asymptotically optimal in terms of directly minimizing the expected wall clock training time. Further, we show via simulation that NAC-FL achieves robust performance improvements with higher gains in settings with positively correlated delays across time.
BibTeX
@inproceedings{hegde2023network,
  author = {Parikshit Hegde and Gustavo de Veciana and Aryan Mokhtari},
  title = {{Network Adaptive Federated Learning: Congestion and Lossy Compression}},
  booktitle = {INFOCOM},
  year = {2023},
  doi = {10.1109/infocom53939.2023.10228885},
}
Figure