TimelyFL: Heterogeneity-aware Asynchronous Federated Learning with Adaptive Partial Training

Tuo Zhang, Lei Gao, Sunwoo Lee, Mi Zhang, Salman Avestimehr · DOI

Abstract

Federated Learning (FL) often faces significant performance bottlenecks due to system heterogeneity, where slower "straggler" devices delay global model updates. While Asynchronous FL (AsyncFL) mitigates this by allowing updates at any time, it frequently suffers from a "rich get richer" bias, favoring fast devices and marginalizing slower ones. This paper introduces TimelyFL, a framework that enhances inclusiveness and speed by adaptively assigning partial training tasks to slower devices. By maximizing participation within a fixed time window, TimelyFL achieves up to a 2.89× speedup in convergence and a 6.25% improvement in test accuracy over state-of-the-art methods like FedBuff.

Introduction

In Synchronous Federated Learning (SyncFL), the central server waits for a designated set of devices to complete their local training before aggregating updates. This approach is inherently limited by the slowest participant, leading to significant idle time for faster devices. Asynchronous FL (AsyncFL) addresses this by updating the global model as soon as individual updates arrive. However, existing AsyncFL strategies like FedBuff tend to ignore slow devices or accept stale updates, leading to a biased global model that performs poorly on the non-IID data typically held by stragglers.

The TimelyFL Framework

TimelyFL shifts the paradigm from waiting for a fixed number of updates to maximizing device participation within a specific time limit. The framework consists of three primary mechanisms:

  1. Adaptive Workload Scheduling: Instead of requiring a fixed number of epochs, the server establishes a "wall-clock" time deadline for each round, typically based on the performance of the $k$-th fastest device.
  2. Adaptive Partial Training: To ensure slower devices can contribute within the deadline, TimelyFL assigns them partial models. These devices perform a full forward pass but only compute gradients and updates for a subset of layers (typically the output-side layers), significantly reducing computational and communication overhead.
  3. Dynamic Adjustment: A real-time optimization utility determines the optimal number of epochs ($E$) and the model fraction ($\alpha$) for each client, ensuring they meet the deadline without contributing excessively stale updates.
Figure 6: Comparison of training timelines between FedBuff and TimelyFL. In FedBuff, slow devices (Device D) often fail to participate, whereas TimelyFL enables their contribution through adaptive scheduling and partial training.

Experimental Evaluation

The authors evaluated TimelyFL across diverse tasks including image classification (CIFAR-10), speech recognition (Google Speech Commands), and natural language processing (Reddit comment data). These datasets were partitioned non-IID to simulate realistic data variance across heterogeneous devices.

Results and Discussion

TimelyFL demonstrates superior performance across all metrics compared to the FedBuff baseline. By enabling partial training, the framework increased the overall device participation rate by 21.13%. This increased inclusiveness is critical for handling non-IID data, as it prevents the global model from drifting away from the data distributions of slower devices.

Figure 5: Performance metrics comparing TimelyFL, FedBuff, and SyncFL: (a) distribution of participation rates, (b) number of participating clients per round, and (c) test accuracy over wall-clock time.

Key findings include:

  • Faster Convergence: TimelyFL reached target accuracy 1.28× to 2.89× faster than FedBuff in terms of wall-clock time.
  • Higher Accuracy: The inclusion of stragglers led to a final test accuracy boost of up to 6.25%.
  • Predictable Scaling: The time savings from partial training were found to be nearly linear with respect to the number of layers removed, making the scheduling algorithm highly reliable.

Conclusion

TimelyFL effectively addresses the straggler problem in asynchronous federated learning by prioritizing inclusiveness through adaptive partial training. By ensuring that more devices can contribute fresh updates within a given time window, it achieves significant gains in both speed and accuracy. Future work may explore more sophisticated layer selection strategies and the integration of partial updates with secure aggregation protocols.

Summary updated

BibTeX
@misc{zhang2023timelyfl,
  author = {Tuo Zhang and Lei Gao and Sunwoo Lee and Mi Zhang and Salman Avestimehr},
  title = {{TimelyFL: Heterogeneity-aware Asynchronous Federated Learning with Adaptive Partial Training}},
  year = {2023},
  eprint = {2304.06947},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.06947},
}
Figure