FedHC: A Scalable Federated Learning Framework for Heterogeneous and Resource-Constrained Clients

Min Zhang, Fuxun Yu, Yongbo Yu, Ang Li, Xiang ChenarXiv 2023 · DOI

Abstract

Federated Learning (FL) research often suffers from a "simulation-to-reality" gap, where high-powered GPU simulations fail to account for the hardware constraints of real-world edge devices. We introduce FedHC, a scalable simulation framework designed to model system and workload heterogeneity with high fidelity. By implementing fine-grained GPU resource budgeting via NVIDIA Multi-Process Service (MPS) and a dynamic process manager, FedHC accurately simulates device "stragglers" and their impact on model convergence. Our evaluation shows that FedHC achieves a 2.75x speedup over existing frameworks while maintaining realistic performance modeling across diverse datasets.

Introduction

The promise of Federated Learning lies in its ability to train models on decentralized data residing on edge devices like smartphones and IoT sensors. However, these devices exhibit significant system heterogeneity (varying compute/memory) and workload heterogeneity (varying data volumes and model complexities).

Current simulation frameworks often rely on simplistic mathematical formulas to estimate client training times, ignoring the complex interplay between hardware limits and software workloads. This leads to inaccurate modeling of "stragglers"—slow devices that delay global model updates and affect convergence. FedHC addresses these challenges by providing a high-fidelity simulation environment that enforces physical resource constraints on virtual clients.

Overview of FedHC framework addressing workload and system heterogeneity through resource partitioning and multi-level optimization.

Methodology: Realistic Heterogeneity Simulation

GPU Resource Budgeting

FedHC moves away from theoretical time estimation. Instead, it implements System Heterogeneity by partitioning GPU resources. Using NVIDIA’s Multi-Process Service (MPS), FedHC allocates a specific percentage of Streaming Multiprocessors (SMs) to each virtual client. This forces the model to train within a restricted compute budget, mimicking the performance of lower-tier edge hardware.

Mechanism of resource partitioning to simulate resource-constrained clients on a subset of GPU resources.

Real-Time Workload Measurement

By running models under these constraints, FedHC measures actual wall-clock time. This captures the impact of varying batch sizes, model architectures, and data volumes naturally, without needing complex heuristic formulas. This "measure-while-constrained" approach ensures that simulation results translate more accurately to real-world deployments.

Dynamic Process Management and Scheduling

To maintain high throughput while simulating thousands of clients, FedHC employs several optimization strategies:

  • Dynamic Process Manager: It launches and terminates processes on the fly to adjust parallelism and resource budgets, overcoming the static nature of standard CUDA contexts.
  • Double-Pointer Scheduler: This algorithm sorts clients by resource needs and pairs "heavy" clients with "light" clients to maximize GPU utilization and minimize idle cycles.
  • Soft-Margin Resource Sharing: This allows clients to utilize idle resources from a shared pool, further enhancing hardware efficiency without violating primary budget constraints.

Experimental Evaluation

FedHC was benchmarked against standard datasets including SST-2 (NLP), CIFAR-10 (CV), and FEMNIST (Large-scale CV).

Key Results

  • Efficiency Gain: FedHC achieved a 2.75x speedup in total training round duration compared to existing frameworks under identical resource constraints.
  • Scalability: The framework maintains high efficiency even when simulating massive numbers of resource-constrained clients, matching or exceeding the performance of frameworks that ignore hardware limits entirely.
  • Convergence Realism: By accurately simulating stragglers, FedHC reveals the true impact of hardware limitations on global model convergence—a factor often underestimated in "ideal" simulations.

Conclusion

FedHC provides a scalable and realistic platform for FL research, particularly for studying the effects of device heterogeneity. By enforcing hardware constraints through GPU budgeting rather than estimation, it offers a more reliable path from simulation to real-world deployment. Future work includes expanding support to non-NVIDIA hardware and refining communication latency models for global-scale deployments.

Summary updated

BibTeX
@misc{zhang2023fedhc,
  author = {Min Zhang and Fuxun Yu and Yongbo Yu and Minjia Zhang and Ang Li and Xiang Chen},
  title = {{FedHC: A Scalable Federated Learning Framework for Heterogeneous and Resource-Constrained Clients}},
  year = {2023},
  eprint = {2305.15668},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.15668},
}
Figure