arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2302.12803cs.DCcs.LG
收藏

PiPar:面向协作机器学习的流水线并行

PiPar: Pipeline Parallelism for Collaborative Machine Learning

University of St Andrews(圣安德鲁斯大学);Rakuten Mobile, Inc.(乐天移动公司)

Zihan Zhang, Philip Rodgers, Peter Kilpatrick, Ivor Spence, Blesson Varghese

AI总结:

针对协作机器学习中资源利用率低的问题,提出PiPar框架,通过流水线并行化计算与通信,显著减少服务器空闲时间并加速训练,实验显示最高提速34.6倍。

摘要:

协作机器学习(CML)技术,如联邦学习,已被提出用于在多个移动设备和一个服务器上训练深度学习模型。CML技术具有隐私保护性,因为共享给服务器的是在每个设备上训练的本地模型,而非设备的原始数据。然而,由于资源利用率低,CML训练效率低下。我们识别出服务器和设备上因顺序计算和通信而产生的空闲资源是资源利用率低的主要原因。我们开发了一个新颖的框架PiPar,利用流水线并行来提升CML技术的资源利用率,从而显著改善资源利用。设计了一种新的训练流水线,将不同硬件资源上的计算和不同带宽资源上的通信并行化,从而加速CML中的训练过程。提出了一种低开销的自动参数选择方法,以优化流水线,最大化可用资源的利用。实验结果证实了PiPar基本方法的有效性,并强调与联邦学习相比:(i)服务器空闲时间最多可减少64.1倍,(ii)在六种流行的小型和大型深度神经网络以及四个数据集的不同网络条件下,整体训练时间最多可加速34.6倍,且不牺牲准确性。实验还证明,在结合差分隐私方法以及在异构设备和变化带宽的环境中运行时,PiPar能获得性能优势。

英文摘要:

Collaborative machine learning (CML) techniques, such as federated learning, have been proposed to train deep learning models across multiple mobile devices and a server. CML techniques are privacy-preserving as a local model that is trained on each device instead of the raw data from the device is shared with the server. However, CML training is inefficient due to low resource utilization. We identify idling resources on the server and devices due to sequential computation and communication as the principal cause of low resource utilization. A novel framework PiPar that leverages pipeline parallelism for CML techniques is developed to substantially improve resource utilization. A new training pipeline is designed to parallelize the computations on different hardware resources and communication on different bandwidth resources, thereby accelerating the training process in CML. A low overhead automated parameter selection method is proposed to optimize the pipeline, maximizing the utilization of available resources. The experimental results confirm the validity of the underlying approach of PiPar and highlight that when compared to federated learning: (i) the idle time of the server can be reduced by up to 64.1x, and (ii) the overall training time can be accelerated by up to 34.6x under varying network conditions for a collection of six small and large popular deep neural networks and four datasets without sacrificing accuracy. It is also experimentally demonstrated that PiPar achieves performance benefits when incorporating differential privacy methods and operating in environments with heterogeneous devices and changing bandwidths.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑