Skip to main content
QUICK REVIEW

[Paper Review] FedML Parrot: A Scalable Federated Learning System via Heterogeneity-aware Scheduling on Sequential and Hierarchical Training

Zhenheng Tang, Xiaowen Chu|arXiv (Cornell University)|Mar 3, 2023
Privacy-Preserving Technologies in DataComputer Science3 citations
TL;DR

FedML Parrot is a scalable federated learning system that enables efficient large-scale simulation of FL with heterogeneous devices by employing heterogeneity-aware scheduling, sequential client training, and distributed state management. It achieves 1.2–4× faster training than FedScale and 10–100× memory reduction compared to FedML, while supporting zero-code migration from simulation to production for both stateful and stateless clients.

ABSTRACT

Federated Learning (FL) enables collaborations among clients for train machine learning models while protecting their data privacy. Existing FL simulation platforms that are designed from the perspectives of traditional distributed training, suffer from laborious code migration between simulation and production, low efficiency, low GPU utility, low scalability with high hardware requirements and difficulty of simulating stateful clients. In this work, we firstly demystify the challenges and bottlenecks of simulating FL, and design a new FL system named as FedML exttt{Parrot}. It improves the training efficiency, remarkably relaxes the requirements on the hardware, and supports efficient large-scale FL experiments with stateful clients by: (1) sequential training clients on devices; (2) decomposing original aggregation into local and global aggregation on devices and server respectively; (3) scheduling tasks to mitigate straggler problems and enhance computing utility; (4) distributed client state manager to support various FL algorithms. Besides, built upon our generic APIs and communication interfaces, users can seamlessly transform the simulation into the real-world deployment without modifying codes. We evaluate exttt{Parrot} through extensive experiments for training diverse models on various FL datasets to demonstrate that exttt{Parrot} can achieve simulating over 1000 clients (stateful or stateless) with flexible GPU devices setting ($4 \sim 32$) and high GPU utility, 1.2 $\sim$ 4 times faster than FedScale, and 10 $\sim$ 100 times memory saving than FedML. And we verify that exttt{Parrot} works well with homogeneous and heterogeneous devices in three different clusters. Two FL algorithms with stateful clients and four algorithms with stateless clients are simulated to verify the wide adaptability of exttt{Parrot} to different algorithms.

Motivation & Objective

  • To address the lack of scalable, efficient, and production-ready FL simulation platforms that support large-scale client simulation with minimal hardware and zero code migration.
  • To overcome bottlenecks in existing FL simulators, including high memory usage, low GPU utilization, straggler effects, and poor support for stateful clients.
  • To enable seamless transition from simulation to real-world deployment via generic APIs and communication interfaces without code changes.
  • To support diverse FL algorithms—especially those requiring stateful clients—under both homogeneous and heterogeneous device environments.

Proposed method

  • Sequentially schedules training clients on available devices to improve GPU utilization and reduce idle time.
  • Decomposes global model aggregation into local (device-level) and global (server-level) aggregation to reduce communication overhead.
  • Implements a dynamic, heterogeneity-aware scheduling system that estimates task runtimes and balances workloads across devices, mitigating straggler effects.
  • Introduces a distributed client state manager to persist and manage client states (e.g., control variates, gradients, masks) for stateful FL algorithms.
  • Designs a generic API stack that abstracts communication and computation, enabling direct deployment of simulation code to production with no modifications.
  • Employs a time-window-based workload estimation model to adapt to dynamic device performance in real-time, improving scheduling accuracy.

Experimental results

Research questions

  • RQ1How can federated learning simulation be made scalable and efficient under limited GPU resources, especially for large client counts?
  • RQ2What mechanisms can effectively reduce communication overhead and GPU underutilization in FL simulation?
  • RQ3How can straggler effects caused by data heterogeneity be mitigated in large-scale FL simulations?
  • RQ4How can stateful FL algorithms—requiring persistent client-side state—be efficiently simulated and deployed?
  • RQ5Can a unified simulation framework support zero-code migration from simulation to real-world deployment across diverse FL algorithms and hardware setups?

Key findings

  • Parrot achieves 1.2–4× faster training than FedScale across all evaluated clusters and datasets, demonstrating significant performance acceleration.
  • Parrot reduces GPU memory usage by 10–100× compared to FedML, especially critical for large-scale simulations (e.g., 1000 clients on ImageNet).
  • The system successfully simulates 1000 clients with flexible GPU configurations (4–32 GPUs), outperforming FedScale and FedML in scalability and efficiency.
  • Scheduling with time-window workload estimation reduces training time by up to 50% in dynamic environments, outperforming static historical data models.
  • Parrot supports both stateful and stateless FL algorithms, including SCAFFOLD, FedDyn, FedNova, and Mime, with convergence performance matching or exceeding baseline simulations.
  • The framework enables zero-code migration from simulation to production, verified through seamless deployment of implemented algorithms without code changes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.