NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Federated Optimization Under Intermittent Client Availability

Yikai Yan, Chaoyue Niu, Yucheng Ding, Zhenzhe Zheng, Shaojie Tang, Qinya Li, Fan Wu, Chengfei Lyu, Yanghe Feng, Guihai Chen · DOI

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data. However, a significant gap exists between theoretical assumptions and real-world deployment: client availability. Standard algorithms like FedAvg assume that any selected client is ready to participate. In reality, mobile devices are "intermittent," participating only when specific conditions (e.g., charging, idle, or connected to Wi-Fi) are met.

When availability is correlated with data distribution—for instance, users in different time zones having different usage patterns—ignoring offline clients introduces a dataset shift. This paper demonstrates that such intermittent availability can cause FedAvg to oscillate or even diverge. To address this, we propose FedLaAvg (Federated Latest Averaging), which maintains a memory of client updates to stabilize the global model.

The FedLaAvg Framework

The core innovation of FedLaAvg is the use of a server-side cache to store the "latest" gradient received from every client in the system. Instead of averaging only the gradients from currently active clients, the server performs a global update using the average of the most recent gradients from all $N$ clients.

Overview of the FedLaAvg architecture showing gradient caching for intermittent clients.

Key components of the algorithm include:

  1. Gradient Caching: The server acts as if all clients are participating by substituting missing updates with their last known gradients.
  2. Update Rule: The global model is updated using the average of these cached gradients, effectively "imitating" full-batch participation.
  3. Priority Selection: To minimize the "staleness" of the cache, the server prioritizes available clients that have not participated for the longest duration.
  4. Communication Efficiency: Bandwidth is preserved by having clients upload only the "gradient difference"—the delta between their current local gradient and the version stored in the server's cache.

Experimental Evaluation

The researchers evaluated FedLaAvg against several baselines, including FedAvg, FedProx, and FedSGD, across two distinct tasks:

  • MNIST (Convex): A multinomial logistic regression task where non-IID data was simulated by assigning specific digits to specific clients. Availability followed "diurnal patterns" based on simulated local time.
  • Sentiment140 (Non-Convex): A sentiment analysis task using a two-layer LSTM on 1.6 million tweets. Availability was modeled after real-world Twitter sleep patterns, assuming devices are available primarily when users are inactive.

Key Results and Performance

The experiments highlighted a critical trade-off: staleness is often preferable to bias. While using an old gradient introduces some error, it is far less damaging to convergence than completely ignoring a segment of the data distribution.

Comparison of training loss across different availability patterns (E, D) for FedLaAvg and baselines.

As shown in the results, FedAvg and FedProx suffer from severe periodic oscillations in training loss as different groups of clients cycle through availability. In contrast, FedLaAvg maintains a remarkably smooth and stable convergence path. In the Sentiment140 task, FedLaAvg's performance closely approached that of "Sequential SGD," the theoretical upper bound where all data is centrally available. Furthermore, the algorithm demonstrated a "sublinear speedup," confirming that adding more clients improves convergence speed even under high intermittency.

Conclusion

FedLaAvg provides a robust solution for federated optimization in the face of unpredictable client availability. By leveraging server-side memory to mitigate distribution bias, it achieves superior stability and accuracy compared to existing methods. Future work may explore reducing the memory overhead for systems with millions of clients and investigating the impact of high local computation on gradient staleness.

Summary updated

BibTeX
@article{yan2024federated,
  author = {Yikai Yan and Chaoyue Niu and Yucheng Ding and Zhenzhe Zheng and Shaojie Tang and Qinya Li and Fan Wu and Chengfei Lyu and Yanghe Feng and Guihai Chen},
  title = {{Federated Optimization Under Intermittent Client Availability}},
  journal = {INFORMS J. Comput.},
  year = {2024},
  doi = {10.1287/ijoc.2022.0057},
}
Figure