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

Optimal Client Sampling for Federated Learning

Wenlin Chen, Samuel Horváth, Peter Richtárik

Abstract

It is well understood that client-master communication can be a primary bottleneck in federated learning (FL). In this work, we address this issue with a novel client subsampling scheme, where we restrict the number of clients allowed to communicate their updates back to the master node. In each communication round, all participating clients compute their updates, but only the ones with "important" updates communicate back to the master. We show that importance can be measured using only the norm of the update and give a formula for optimal client participation. This formula minimizes the distance between the full update, where all clients participate, and our limited update, where the number of participating clients is restricted. In addition, we provide a simple algorithm that approximates the optimal formula for client participation, which allows for secure aggregation and stateless clients, and thus does not compromise client privacy. We show both theoretically and empirically that for Distributed SGD (DSGD) and Federated Averaging (FedAvg), the performance of our approach can be close to full participation and superior to the baseline where participating clients are sampled uniformly. Moreover, our approach is orthogonal to and compatible with existing methods for reducing communication overhead, such as local methods and communication compression methods.

Introduction

Federated Learning (FL) enables training machine learning models across distributed edge devices—such as smartphones and IoT sensors—without centralizing raw data. However, the practical deployment of FL is frequently hindered by massive communication overhead. Synchronizing thousands of devices with a central server is often slow, expensive, and unreliable over wireless links.

While existing research has focused on local computation (FedAvg) or gradient compression (quantization), most frameworks still rely on uniform sampling, where a random subset of clients is picked in each round. This is inefficient because, in any given round, some clients possess highly informative updates while others have "boring" updates that contribute little to model convergence. The challenge lies in identifying these informative clients without violating their privacy or inspecting their updates beforehand.

Methodology: Optimal Client Sampling (OCS)

We propose Optimal Client Sampling (OCS), a principled approach to client selection based on importance sampling. The core discovery is that the "importance" of a client's update can be effectively measured using only the Euclidean norm of the update vector.

Overview of the OCS framework.

The OCS Algorithm

The OCS scheme minimizes the variance between the "full" update (where all clients participate) and the sampled update. In each round, clients compute their updates and send only the norm (a single scalar) to the server. The server then calculates optimal participation probabilities and selects the subset of clients to transmit their full updates.

Privacy-Preserving Implementation (AOCS)

To satisfy strict privacy requirements, we developed Approximate OCS (AOCS). This version is compatible with secure aggregation, ensuring the server never sees individual client norms. Instead, the server observes only aggregated sums, and clients locally recalibrate their participation probabilities through an iterative process. This "stateless" design ensures that client privacy is not compromised by the sampling mechanism.

Experimental Evaluation

We evaluated OCS and AOCS across standard federated benchmarks from the LEAF library, including FEMNIST (image classification with unbalanced data), Shakespeare (next-character prediction), and Federated CIFAR-100.

Key Results and Insights

Our empirical results demonstrate that OCS significantly outperforms traditional uniform sampling:

  • Bandwidth Efficiency: On the FEMNIST dataset, OCS reached 85% validation accuracy using 8x fewer bits than full participation.
  • Superiority over Randomness: With a budget of only three participating clients per round, OCS significantly outperformed uniform sampling, which struggled to reach even 40% accuracy within the same communication budget.
  • Performance Parity: Sampling just a small fraction of clients (e.g., 6 out of 32) using OCS yielded performance nearly identical to full participation.
  • Norm as a Proxy for Value: The simple Euclidean norm proved to be a remarkably effective proxy for update value, even on balanced datasets like CIFAR-100 where update magnitudes naturally fluctuate during training.

Conclusion and Future Work

Optimal Client Sampling provides a mathematically grounded and privacy-preserving method to reduce communication overhead in Federated Learning. By prioritizing informative updates, OCS achieves faster convergence with significantly less data transfer. OCS is orthogonal to existing compression methods, allowing it to be integrated into broader communication-efficient FL pipelines. Future work will explore incorporating system-level constraints, such as device battery life and network latency, into the sampling optimization.

Summary updated

BibTeX
@article{chen2022optimal,
  author = {Wenlin Chen and Samuel Horváth and Peter Richtárik},
  title = {{Optimal Client Sampling for Federated Learning}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=8GvRCWKHIL},
}
Figure