FedML Parrot:一个基于顺序和层次训练的异构性调度的可扩展联邦学习系统
FedML Parrot: A Scalable Federated Learning System via Heterogeneity-aware Scheduling on Sequential and Hierarchical Training
摘要:
联邦学习(FL)支持客户端之间协作,以训练训练机器学习模型,同时保护客户端的数据隐私。现有的FL仿真平台是从传统的分布式训练的角度设计的,遭受在仿真和生产之间的费力的代码迁移、低效率、低GPU利用率、低可扩展性和高硬件要求以及难以模拟有状态客户端。在这项工作中,我们首先揭示了模拟FL的挑战和瓶颈,并设计了一个新的FL系统命名为FedML \texttt{Parrot}。该算法通过以下几个方面提高了训练效率,显著降低了对硬件的要求,支持有状态客户端的大规模FL实验:(1)在设备上顺序训练客户端;(2)将初始聚集分解为设备和服务器上的局部聚集和全局聚集;(3)调度任务以减少离散问题,提高计算效率;(4)分布式客户端状态管理器,支持多种FL算法。此外,基于我们的通用API和通信接口,用户可以无缝地将模拟转换为真实世界的部署,而无需修改代码。我们通过在各种FL数据集上训练不同模型的广泛实验来评估\texttt{Parrot},以证明\texttt{Parrot}可以实现模拟超过1000个客户端(有状态或无状态),具有灵活的GPU设备设置($4 \sim 32$)和高GPU实用性,比FedScale快1.2 $\sim$ 4倍,比FedML节省10 $\sim$ 100倍的内存。我们验证了\texttt{Parrot}可以很好地与三个不同集群中的同构和异构设备一起工作。通过对两个有状态客户端的FL算法和四个无状态客户端的FL算法的仿真,验证了\texttt{Parrot}对不同算法的广泛适应性。
英文摘要:
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 \texttt{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 \texttt{Parrot} through extensive experiments for training diverse models on various FL datasets to demonstrate that \texttt{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 \texttt{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 \texttt{Parrot} to different algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。