Fast Federated Learning in the Presence of Arbitrary Device Unavailability

Xinran Gu, Kaixuan Huang, Jingzhao Zhang, Longbo Huang

Federated learning (FL) enables the collaborative training of a shared global model across numerous heterogeneous edge devices while preserving user privacy. Despite its advantages, real-world FL faces a massive hurdle: device unavailability. Devices frequently drop out of the training process due to poor connectivity, low battery, or user activity. When this happens, the convergence of popular FL algorithms like FedAvg is severely impacted.

To tackle this challenge, researchers have proposed MIFA (Memory-augmented Impatient Federated Averaging). By combining an "impatient" server that refuses to wait for stragglers with a "memory" mechanism that reuses the latest updates from inactive devices, MIFA achieves minimax optimal convergence rates and avoids the gradient bias common in existing methods.

The Challenge: Waiting vs. Ignoring

Existing solutions to device unavailability generally fall into two flawed camps:

  1. Wait for everyone: The server waits for a specific subset of devices to respond. This leads to massive latency because the system is only as fast as its slowest "straggler."
  2. Ignore the missing: The server updates the model using only the active devices. In a "non-i.i.d." setting (where different devices have highly varied data distributions), this introduces bias. The global model starts favoring the data of the "always-on" devices and ignores the "often-offline" ones.
Comparison of federated learning communication setups: ideal, delayed (waiting for stragglers), and the proposed impatient setup handling unavailability.

The goal is an algorithm that is both fast (doesn't wait) and unbiased (doesn't ignore the data of inactive devices), even when the pattern of unavailability is unpredictable or adversarial.

The MIFA Solution

MIFA addresses these flaws through two core mechanisms:

  • Impatient Execution: At each round, the server broadcasts the model to all currently active devices. It does not wait for any specific device to finish. Instead, it simply collects whatever updates arrive within a predefined communication window.
  • Memory Augmentation: To prevent bias, the server maintains an "update-array" that stores the most recent update received from every device. When updating the global model, the server averages the fresh updates from active devices with the "stale" (memorized) updates from the inactive ones.

Key Technical Innovation: Unlike traditional asynchronous optimization that uses stale gradients only as they arrive, MIFA reuses the same stale update for an inactive device multiple times until that device reconnects. This "re-use" corrects the gradient bias without requiring prior knowledge of a device's online probability. To avoid massive server-side storage overhead, MIFA can be implemented using a distributed memory strategy where devices store their own previous updates and only transmit the difference upon reconnection.

Key Insights and Results

The researchers evaluated MIFA using modified versions of MNIST and CIFAR-10, simulating a high-heterogeneity (non-i.i.d.) federated setting with 100 devices. Device availability was modeled using independent Bernoulli trials to create a challenging "straggler" environment.

  • Staleness over Bias: In non-i.i.d. federated learning, using a stale gradient from a missing device is mathematically superior to ignoring that device entirely, which creates a permanent model drift.
  • Minimax Optimality: MIFA reaches the theoretical limit of how fast any algorithm can converge under these conditions, achieving a linear speedup relative to the number of devices ($N$) and local steps ($K$). For strongly convex functions, the convergence rate is $O(\frac{\bar{\tau}_T+1}{NKT})$, where $\bar{\tau}_T$ is the average number of inactive rounds.
  • Superior Performance: In experiments, MIFA converged significantly faster than "FedAvg with device sampling" (which waits for stragglers). Compared to "Biased FedAvg" (which ignores missing devices), MIFA achieved much lower final training loss and higher test accuracy.
  • Agnostic to Patterns: MIFA handles non-stationary and even adversarial unavailability patterns without needing to know why or how often a device is offline.

Limitations and Future Work

While MIFA presents a robust solution, it has a few limitations. The convergence proof for non-convex functions (like deep neural networks) relies on relatively strong assumptions, such as Hessian Lipschitz continuity, which future work may seek to relax. Additionally, the current theoretical analysis includes a dependency on the maximum number of rounds any device was inactive, which might be an artifact of the proof rather than a fundamental requirement. Finally, while a distributed memory fix is proposed, the basic algorithm requires tracking updates for every device, which could become a bottleneck as FL scales to millions of edge devices.

Summary updated

BibTeX
@inproceedings{gu2021fast,
  author = {Xinran Gu and Kaixuan Huang and Jingzhao Zhang and Longbo Huang},
  title = {{Fast Federated Learning in the Presence of Arbitrary Device Unavailability}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=1_gaHBaRYt},
}
Figure