Adaptive Heterogeneous Client Sampling for Federated Learning over Wireless Networks

Bing Luo, Wenli Xiao, Shiqiang Wang, Jianwei Huang, Leandros Tassiulas · DOI

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across distributed edge devices while preserving data privacy. In a typical FL setting, a central server coordinates multiple clients to iteratively update a global model. However, the practical deployment of FL over wireless networks is hindered by significant resource constraints, particularly limited communication bandwidth. To manage this, servers often sample only a subset of clients in each training round.

While existing literature primarily focuses on reducing the total number of communication rounds required for convergence, this paper argues that the true metric of interest is "wall-clock" time. In real-world wireless environments, total time is influenced by two distinct forms of heterogeneity: system heterogeneity (varying hardware and network speeds) and statistical heterogeneity (non-i.i.d. data distributions). This research proposes an adaptive client sampling strategy designed to minimize the total wall-clock convergence time by jointly optimizing sampling probabilities and bandwidth allocation.

The Challenges of Heterogeneity

In synchronous FL, the duration of a single training round is dictated by the slowest participating device, commonly referred to as the "straggler." This creates a fundamental tension:

  1. System Heterogeneity: Devices with weaker computational capabilities or poorer wireless channel conditions take longer to complete updates.
  2. Statistical Heterogeneity: Data is rarely distributed identically across devices. Some clients may possess high-quality data that is crucial for model convergence, but these same clients might be the slowest in the network.

Designing an optimal sampling scheme is a "chicken-and-egg" problem: the server must determine which clients to sample without prior knowledge of their data quality or real-time system performance.

Proposed Methodology

The authors introduce a framework that moves beyond traditional uniform or data-size-proportional sampling. The approach is built on four pillars:

1. Convergence Bound for Arbitrary Sampling

The researchers derived a new, tractable mathematical bound for FL convergence. Unlike previous bounds that assume uniform sampling, this derivation accounts for arbitrary sampling probabilities. This theoretical foundation allows the server to predict how specific sampling choices will impact the final model error.

2. Adaptive Bandwidth Allocation

To mitigate the straggler effect, the framework includes a communication scheme that dynamically allocates wireless bandwidth. By providing more bandwidth to devices with slower transmission capabilities or higher computational loads, the system aims to synchronize the completion times of all sampled clients within a round.

3. Optimization Framework

The goal of minimizing total wall-clock time is formulated as a non-convex optimization problem. This problem seeks the optimal number of clients to sample ($K$) and the specific sampling probabilities for each client. Because the problem involves unknown parameters—such as gradient norms and local variance—the authors developed Algorithm 2 to solve it iteratively.

4. Parameter Estimation

To address the lack of prior knowledge regarding client data and hardware, the algorithm utilizes a "substitute sampling" phase at the beginning of the training process. This initial phase gathers the necessary system and data statistics to inform the optimization process for the remainder of the training.

Experimental Evaluation

The proposed method was validated using a hardware prototype consisting of 40 Raspberry Pis and extensive large-scale simulations. The researchers tested the framework on several datasets, including MNIST, EMNIST (unbalanced and non-i.i.d.), and a synthetic dataset designed to control for varying levels of statistical heterogeneity. They evaluated both convex (Multinomial Logistic Regression) and non-convex (CNN with LeNet-5) models.

Key Results

  • Hardware Performance: On the EMNIST dataset using the Raspberry Pi prototype, the adaptive sampling strategy reached the target loss 71% faster than standard uniform sampling.
  • Simulation Speedups: In synthetic environments, the method achieved speedups ranging from 1.8x to 2.6x compared to baseline sampling methods.
  • Robustness in Non-Convex Scenarios: While the theoretical bounds were derived under convexity assumptions, the CNN experiments demonstrated significant practical gains. In many cases, the proposed scheme reached target accuracy while uniform sampling failed to converge within the allocated time budget.

Discussion and Insights

The research highlights a critical interplay between device speed and data quality. The optimal sampling probability for a client is determined by the product of their "data importance" and their "system efficiency."

Furthermore, the paper identifies a "U-shaped" curve regarding the number of sampled clients ($K$). Increasing $K$ generally reduces the number of rounds needed for convergence but increases the time per round due to shared bandwidth. The proposed framework successfully identifies the optimal $K$ to balance this trade-off for a given network state.

Conclusion and Future Work

This work demonstrates that adaptive client sampling can significantly accelerate FL convergence in heterogeneous wireless networks. By accounting for both the quality of a client's data and the speed of their hardware, the proposed framework offers a robust solution for real-world deployments.

Future research directions include moving toward a fully "online" adaptation model where sampling probabilities adjust dynamically to fluctuating wireless channel conditions. Additionally, the authors suggest exploring the joint optimization of other parameters, such as the number of local SGD iterations, and extending these principles to asynchronous FL frameworks where the server does not wait for the slowest stragglers.

Summary updated

BibTeX
@article{luo2024adaptive,
  author = {Bing Luo and Wenli Xiao and Shiqiang Wang and Jianwei Huang and Leandros Tassiulas},
  title = {{Adaptive Heterogeneous Client Sampling for Federated Learning over Wireless Networks}},
  journal = {IEEE Trans. Mobile Computing},
  year = {2024},
  url = {https://openreview.net/forum?id=7PxP6nmAt9},
}
Figure