Federated Learning with Regularized Client Participation

Grigory Malinovsky, Samuel Horváth, Konstantin Pavlovich Burlachenko, Peter Richtárik

TL;DR

In cross-device federated learning (FL), standard client sampling selects devices with replacement, injecting substantial variance that throttles convergence to $\mathcal{O}(1/T)$. This paper introduces RR-CLI, a framework that applies random reshuffling (sampling without replacement) at both the client and data levels, guaranteeing each client participates exactly once per "meta-epoch." This simple regularized participation scheme reduces client-sampling variance, shrinking the statistical error term quadratically with the step size and boosting convergence rates to $\mathcal{O}(1/T^2)$.

What Problem Does This Paper Address?

In cross-device federated learning, millions of edge devices (such as smartphones or IoT sensors) participate intermittently due to battery, connectivity, and compute constraints. Traditional algorithms like FedAvg manage this by randomly sampling a small subset of clients with replacement in each round.

However, independent sampling introduces persistent variance: some clients are sampled multiple times while others are skipped, causing the global model to drift. In centralized optimization, random reshuffling (RR)—iterating through data without replacement—is well-known to reduce variance compared to standard stochastic gradient descent (SGD). The authors ask: Can we bring the variance-reducing benefits of random reshuffling to the client selection level in federated learning?

Methods

The authors propose RR-CLI, a federated optimization algorithm combining client-level and data-level reshuffling alongside local updates, server step sizes, and global step sizes:

  • Regularized Client Participation (Outer Loop): Instead of sampling clients independently at each round, the pool of $M$ clients is partitioned into $R = M/C$ disjoint cohorts of size $C$. Over a "meta-epoch" of $R$ rounds, every cohort is visited once (either via random permutation or deterministic schedules dictated by device availability).
  • Local Data Reshuffling (Inner Loop): When a cohort is active, each client runs $N$ local steps by permuting its local data points rather than sampling them with replacement.
  • Double Shuffling: The method supports both Shuffle-Once (permutations fixed once at initialization) and Random Reshuffling (permutations redrawn every meta-epoch).
  • Multi-Tier Step Sizes: RR-CLI incorporates client step size $\gamma$, server step size $\eta$, and global step size $\theta$, allowing fine-grained control over local client drift and global server updates.

Datasets

The authors evaluate RR-CLI on $L_2$-regularized logistic regression using benchmark datasets from LIBSVM:

  • phishing
  • w3a
  • a3a

The datasets are split uniformly across $M = 12$ simulated clients with identical sample counts. No new benchmark datasets were introduced.

Key Insights and Ideas

  • Quadratic Variance Scaling: In standard client sampling with replacement, the statistical variance term scales linearly with step size ($\propto \gamma$). Under RR-CLI's double-shuffling, the variance scales quadratically ($\propto \gamma^2$ or $\propto \eta^2$), directly improving asymptotic convergence from $\mathcal{O}(1/T)$ to $\mathcal{O}(1/T^2)$.
  • Exponential Optimization Decay: When individual loss functions are $\mu$-strongly convex, the contraction factor of the optimization term is $(1 - \gamma \mu)^{NRT}$, scaling linearly with the total number of gradient steps across all clients, rounds, and meta-epochs.
  • Flexibility for Real-World Schedules: The theoretical guarantees hold for both random reshuffling and deterministic permutations. In practical edge computing, devices often connect only during specific charging windows; as long as each client checks in once per meta-epoch window, convergence is guaranteed (with variance bounds scaling up by at most a factor of $R$).

Key Results

  • Theoretical Rate Improvement: Under individual $\mu$-strong convexity and $L$-smoothness, RR-CLI achieves an error bound of: $$\mathbb{E}\left[\|x_T - x_\star\|^2\right] \le (1 - \gamma \mu)^{NRT} \|x_0 - x_\star\|^2 + \mathcal{O}\left(\frac{\gamma^2}{\mu}\right),$$ outperforming classic bounds for FedAvg and SCAFFOLD under partial participation.

  • Empirical Speedup:

  • Tested with 12 clients (3 clients active per round, 4 rounds per meta-epoch) on the phishing dataset ($\kappa \approx 10^4$), RR-CLI consistently reaches lower functional gaps ($f(x_k) - f^\star$) and parameter errors ($\|x_k - x_\star\|^2$) in fewer epochs than NASTYA (which uses with-replacement sampling) and FedAvg.
  • When using theoretical step sizes, FedAvg stalls due to conservative step-size restrictions, whereas RR-CLI rapidly converges down to the variance floor.
  • When tuning local step sizes or decaying step sizes ($\propto \frac{1}{1 + \text{epoch}}$), RR-CLI matches or exceeds NASTYA while substantially outperforming FedAvg across phishing, a3a, and w3a.

Limitations and Future Work

  • Balanced Client Assumption: The core analysis assumes each client holds an equal number of local samples ($N$), although the authors note this can be relaxed using existing weighted techniques.
  • Cohort Synchronization: The scheme requires every client to participate exactly once per meta-epoch. If client availability is heavily skewed or certain stragglers fail to participate within the window, the partitioning scheme must adapt.
  • Future Work: The authors propose extending RR-CLI by incorporating client-side/server-side momentum and adaptive gradient optimizers (such as Adam-style updates) to enhance performance in practical deep learning settings.

Summary updated

BibTeX
@inproceedings{malinovsky2023federated,
  author = {Grigory Malinovsky and Samuel Horváth and Konstantin Pavlovich Burlachenko and Peter Richtárik},
  title = {{Federated Learning with Regularized Client Participation}},
  booktitle = {FL @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=6CDBpf7kNG},
}
Figure