Online Client Scheduling and Resource Allocation for Efficient Federated Edge Learning

Zhidong Gao, Zhenxiao Zhang, Yu Zhang, Tongnian Wang, Yanmin Gong, Yuanxiong Guo

TL;DR

This paper introduces the Lyapunov-based Resource-efficient Online Algorithm (LROA), a novel framework that jointly optimizes client scheduling, CPU frequency, and transmit power for Federated Learning (FL) at the network edge. By adaptively selecting participating devices based on their current resource state and data importance, LROA reduces training latency by up to 50.1% while maintaining high model accuracy under strict energy constraints.

What Problem Does This Paper Address?

Federated Learning (FL) allows edge devices (like smartphones or drones) to train models locally without sharing raw data, preserving privacy. However, deploying FL in the real world is difficult due to two main types of heterogeneity:

  1. System Heterogeneity: Devices have different battery levels, CPU capabilities, and wireless channel qualities. In traditional synchronous FL, the entire round is bottlenecked by the slowest device—the "straggler."
  2. Data Heterogeneity: Data is often non-IID (not identically and independently distributed). Simply ignoring slow devices might mean losing critical data necessary for model convergence.

Existing works often treat resource allocation (hardware) and client scheduling (software) as separate problems or rely on simplified assumptions about future resource availability. This paper seeks a way to minimize training latency while ensuring energy budgets are respected over the long term, all without needing to know future network conditions.

Methods

The authors formulate a stochastic optimization problem that captures the trade-off between running time and model performance. Their solution, LROA, relies on three key pillars:

  • Convergence Analysis: They derive a new convergence bound for FL that accounts for arbitrary client sampling probabilities under non-convex loss functions and non-IID data. This bound guides the scheduling policy.
  • Lyapunov Optimization: To handle long-term energy constraints without knowing future channel states, they use a "drift-plus-penalty" framework. They maintain a virtual energy queue for each device; if a device uses too much energy, its queue grows, making the algorithm less likely to schedule it in future rounds until it "recharges" its budget.
  • LROA Algorithm: The per-round optimization problem is non-convex and complex. The authors solve it using an alternating minimization approach:
  • Outer Loop: Optimizes CPU frequency ($f_n^t$) and transmission power ($p_n^t$) for a fixed set of sampling probabilities.
  • Inner Loop: Uses Successive Upper-bound Minimization (SUM) to find the optimal sampling probabilities ($q_n^t$).
The core logic of the LROA solver involves two nested loops to handle hardware and scheduling parameters.

For a quick reference of the variables used in these optimizations, see the notation summary below:

Summary of main notations used in the system modeling and optimization.

Datasets

The proposed method was evaluated using two standard image classification benchmarks:

  • CIFAR-10: 50,000 training images divided among 120 devices using a Dirichlet distribution (concentration parameter 0.5) to simulate high data heterogeneity. A ResNet-18 model was used.
  • FEMNIST: A naturally non-IID dataset of handwritten characters. The authors used 120 writers to represent devices and trained a CNN model.

Key Insights and Ideas

  • Strategic Straggler Management: Instead of just dropping stragglers, LROA calculates the probability a device should be picked. If a device has vital data but a poor connection, the algorithm might wait for a better channel state in a later round rather than forcing it to participate immediately and slowing everyone down.
  • Online Decision Making: By using Lyapunov optimization, the server makes decisions based only on the current observed channel gains and the history of energy usage (stored in the virtual queues). This makes it highly practical for dynamic, unpredictable edge environments.
  • Hardware-Software Synergy: The results show that jointly tuning hardware parameters (like CPU frequency) alongside scheduling probabilities is significantly more effective than optimizing either in isolation.

Key Results

The authors compared LROA against several baselines, including standard FedAvg with uniform sampling and state-of-the-art diverse client selection (DivFL).

  • Latency Reduction: LROA saved 20.8% to 50.1% in total training time on CIFAR-10 and 15.3% to 49.9% on FEMNIST compared to uniform sampling methods.
  • Accuracy: LROA consistently achieved higher testing accuracy within the same time budget.
  • Energy Efficiency: The algorithm successfully kept all devices within their long-term energy budgets while maximizing the "utility" of each training round.
  • Impact of Sampling Frequency ($K$): Increasing the number of sampled clients per round ($K$) improved final accuracy (aligning with their theoretical proof) but increased the likelihood of encountering a communication bottleneck, highlighting the importance of LROA's adaptive scheduling.

Limitations and Future Work

  • Synchronous Bottleneck: While LROA manages stragglers effectively, it still operates within a synchronous FL framework. Exploring how these online scheduling policies translate to asynchronous FL could further reduce idle time.
  • Communication Protocol: The current model assumes FDMA (Frequency Division Multiple Access). Future work could adapt the resource allocation logic for other protocols like OFDMA or NOMA.
  • Scalability: The experiments were conducted with 120 devices. Testing the algorithm's overhead in massive-scale deployments (thousands of devices) remains an open area for exploration.

Summary updated

Abstract

Federated learning (FL) enables edge devices to collaboratively train a machine learning model without sharing their raw data. Due to its privacy-protecting benefits, FL has been deployed in many real-world applications. However, deploying FL over mobile edge networks with constrained resources such as power, bandwidth, and computation suffers from high training latency and low model accuracy, particularly under data and system heterogeneity. In this paper, we investigate the optimal client scheduling and resource allocation for FL over mobile edge networks under resource constraints and uncertainty to minimize the training latency while maintaining the model accuracy. Specifically, we first analyze the impact of client sampling on model convergence in FL and formulate a stochastic optimization problem that captures the trade-off between the running time and model performance under heterogeneous and uncertain system resources. To solve the formulated problem, we further develop an online control scheme based on Lyapunov-based optimization for client sampling and resource allocation without requiring the knowledge of future dynamics in the FL system. Extensive experimental results demonstrate that the proposed scheme can improve both the training latency and resource efficiency compared with the existing schemes.
BibTeX
@misc{gao2024online,
  author = {Zhidong Gao and Zhenxiao Zhang and Yu Zhang and Tongnian Wang and Yanmin Gong and Yuanxiong Guo},
  title = {{Online Client Scheduling and Resource Allocation for Efficient Federated Edge Learning}},
  year = {2024},
  eprint = {2410.10833},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.10833},
}
Figure