A General Theory for Federated Optimization with Asynchronous and Heterogeneous Clients Updates

Yann Fraboni, R. Vidal, Laetitia Kameni, Marco Lorenzi

Abstract

This paper introduces a comprehensive theoretical framework for asynchronous Federated Learning (FL) that accounts for both delayed updates and hardware heterogeneity. The authors prove convergence for non-IID data and introduce FEDFIX, a novel algorithm that balances the speed of asynchronous updates with the stability of synchronous aggregation by using fixed-time windows. Code is available at GitHub.

Introduction

Standard Federated Learning, specifically the widely used FEDAVG algorithm, is synchronous. This requires the central server to wait for every participating client to finish its local computation before updating the global model. In real-world deployments, this creates a "straggler problem," where the entire training process is bottlenecked by the slowest device due to hardware limitations or network latency.

While asynchronous FL—where the server updates the model as soon as any client finishes—solves the idle time problem, it introduces three significant challenges:

  1. Staleness: Slow clients may send updates based on outdated global models, potentially pushing the model in the wrong direction.
  2. Objective Inconsistency: Models become biased toward data from faster devices that update more frequently.
  3. Instability: Purely asynchronous methods can diverge, especially when data is non-IID (not identically and independently distributed).

Theoretical Framework and Methods

The authors develop a general theory that treats asynchronicity as a stochastic process. A key contribution is the introduction of Stochastic Aggregation Weights, which adjust for the frequency and latency of client contributions. This allows for a mathematical "re-balancing" of influence between fast and slow clients.

Summary of notation for weights and importance factors used in the theoretical framework.

The FEDFIX Algorithm

To address the stability-speed trade-off, the authors propose FEDFIX. Instead of waiting for all clients (synchronous) or updating for every single client (asynchronous), the server waits for a fixed time window ($\Delta t$). It aggregates all contributions received within that window. This "partial asynchronicity" provides a tunable mechanism to balance training speed and convergence stability.

Timeline of the asynchronous model flow between the server (S) and heterogeneous clients (C1, C2).

The framework also utilizes Time-Based Weighting, deriving closed-form aggregation weights based on a client's computation capabilities. This ensures that slow clients' data remains fairly represented in the final model.

Experimental Evaluation

The researchers evaluated the FEDFIX algorithm using four standard FL benchmarks configured for non-IID scenarios:

  • MNIST & MNIST-shard: Handwritten digit recognition with Dirichlet-based non-IID distribution.
  • CIFAR-10: Image classification using a CNN architecture.
  • Shakespeare: Next-character prediction using an LSTM model.

Key Results

  • Convergence Guarantees: The authors provide rigorous proofs that the framework converges to the global optimum under standard assumptions (smoothness and convexity), even with delays and non-IID data.
  • FEDFIX Performance: In experiments on CIFAR-10 and Shakespeare, FEDFIX consistently outperformed both synchronous and standard asynchronous FEDAVG. It reached lower loss levels faster than the synchronous version and maintained higher stability than the asynchronous version.
  • Robustness: FEDFIX proved more robust to changes in the number of local SGD steps ($K$) compared to pure asynchronous methods, which often suffer from increased variance as $K$ increases.

Discussion and Insights

A primary insight of this work is that hardware heterogeneity is an optimization issue, not just a speed bottleneck. Without proper weighting, models "listen" more to fast devices, leading to biased results. FEDFIX acts as a buffer that preserves the benefits of asynchrony while mimicking the stabilizing effects of synchronous averaging.

Limitations

While the theory is robust, it relies on convexity assumptions common in optimization theory, which may differ from the non-convex reality of large-scale neural networks. Additionally, the derivation of specific weights assumes relatively constant or known distributions for client computation times. Future work may explore dynamic weight estimation for highly volatile network environments and the communication-efficiency trade-offs of the FEDFIX window size.

Summary updated

BibTeX
@inproceedings{fraboni2023general,
  author = {Yann Fraboni and R. Vidal and Laetitia Kameni and Marco Lorenzi},
  title = {{A General Theory for Federated Optimization with Asynchronous and Heterogeneous Clients Updates}},
  booktitle = {HAL},
  year = {2023},
}
Figure