FedSTaS: Client Stratification and Client Level Sampling for Efficient Federated Learning

Jordan Slessor, Dezheng Kong, Xiaofen Tang, Zheng En Than, Linglong KongarXiv 2024 · DOI

Introduction

Federated Learning (FL) enables a central server to train a global model by aggregating updates from decentralized clients, such as mobile devices or IoT sensors, without accessing their raw data. Despite its promise, FL faces two critical challenges: inefficient client sampling and extreme data heterogeneity (non-IID data). Most existing methods rely on random client selection, which can lead to redundant updates or biased models if the selected subset is not representative of the global data distribution. Furthermore, real-world data is rarely distributed uniformly; a single user might possess a disproportionately large or skewed dataset, complicating the training process and potentially compromising privacy if data volumes are revealed.

Visualization of IID vs. Non-IID data partitions across clients.

The FedSTaS Framework

To address these hurdles, we propose FedSTaS (Federated Stratification and Sampling), a dual-layered sampling strategy designed to bridge the performance gap between decentralized FL and centralized learning. The framework operates through three primary mechanisms:

  1. Client Stratification: The server clusters clients into distinct "strata" based on their Information Squeezed (IS) gradients. By utilizing compressed versions of model updates, the server identifies clients with similar data characteristics without ever inspecting raw local data.
  2. Optimal Allocation: Using Neyman allocation, the system calculates the optimal number of clients to sample from each stratum. This minimizes the variance of the global update by prioritizing clients with the most representative or high-impact gradients.
  3. Privacy-Preserving Data Sampling: Once selected, clients do not utilize their entire local dataset. Instead, they sample a specific ratio of their data to mimic a uniform global distribution. To protect the privacy of a client's total dataset size, FedSTaS employs a Local Differential Privacy (LDP) mechanism, mixing actual data counts with noise drawn from a multinomial distribution.

Experimental Evaluation

We evaluated FedSTaS using standard computer vision benchmarks, MNIST and CIFAR-100. To simulate challenging real-world conditions, we applied a Dirichlet distribution ($\alpha$) to create highly imbalanced partitions. At $\alpha = 0.01$, the data distribution is extremely skewed, serving as a rigorous stress test for the algorithm's robustness.

Key Results

FedSTaS demonstrates superior performance and faster convergence compared to baseline methods, particularly in non-IID scenarios.

  • MNIST Performance: Under extreme imbalance ($\alpha=0.001$), FedSTaS achieved 61.90% accuracy, representing a 17.6% absolute improvement over the baseline FedSTS (44.3%) within 99 communication rounds.
  • CIFAR-100 Performance: On the more complex CIFAR-100 task, FedSTaS reached 23.21% accuracy, a 28.9% relative improvement over the baseline.
  • Privacy-Utility Trade-off: Notably, the integration of Differential Privacy (DP) for sampling ratio estimation resulted in only a marginal impact on final accuracy. As shown in the performance curves, the private variant (DP + Compressed) remains highly competitive with the non-private version and significantly outperforms standard stratified sampling.
Training loss and test accuracy for MNIST under non-IID conditions (alpha=0.01).

Discussion and Future Work

The core innovation of FedSTaS lies in its "centralized mimicry"—ensuring that the global model is not over-influenced by data-heavy clients through precise data-level sampling. Furthermore, it demonstrates that gradient compression can serve as a powerful feature for client clustering rather than just a bandwidth-saving tool.

Future research will focus on providing a rigorous theoretical proof of the convergence rate and exploring "optimal allocation" logic at the data level to further reduce variance. Additionally, we aim to conduct head-to-head comparisons against other advanced aggregation techniques like Clustered Sampling to further validate the efficiency of the FedSTaS approach.

Summary updated

BibTeX
@misc{slessor2024fedstas,
  author = {Jordan Slessor and Dezheng Kong and Xiaofen Tang and Zheng En Than and Linglong Kong},
  title = {{FedSTaS: Client Stratification and Client Level Sampling for Efficient Federated Learning}},
  year = {2024},
  eprint = {2412.14226},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.14226},
}
Figure