arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.17145cs.DCcs.AIcs.LG
收藏

GraphPipe:通过图流水线并行提升深度神经网络训练的性能与可扩展性

GraphPipe: Improving Performance and Scalability of DNN Training with Graph Pipeline Parallelism

NVIDIA(英伟达);UC Berkeley(加州大学伯克利分校);MIT(麻省理工学院);Stanford University(斯坦福大学)
Byungsoo Jeon, Mengdi Wu, Shiyi Cao, Sunghyun Kim, Sunghyun Park, Neeraj Aggarwal, Colin Unger, Daiyaan Arfeen, Peiyuan Liao, Xupeng Miao, Mohammad Alizadeh, Gr… 展开作者

Byungsoo Jeon, Mengdi Wu, Shiyi Cao, Sunghyun Kim, Sunghyun Park, Neeraj Aggarwal, Colin Unger, Daiyaan Arfeen, Peiyuan Liao, Xupeng Miao, Mohammad Alizadeh, Gregory R. Ganger, Tianqi Chen, Zhihao Jia

AI总结:

针对现有流水线并行忽略DNN拓扑错失模型并行机会的问题,本文提出图流水线并行方案并开发GraphPipe系统,通过保留DNN拓扑实现算子并发,较现有系统性能最高提升1.6倍、搜索时间缩短9-21倍。

摘要:

深度神经网络(DNN)的规模持续快速增长,使其无法在单个设备上完成训练。现有DNN系统普遍采用流水线并行技术支持大规模DNN训练,该技术将DNN划分为多个阶段,以流水线方式对不同微批次并行执行DNN训练。然而,现有流水线并行方法仅考虑顺序流水线阶段,忽略了DNN的拓扑结构,错失了模型并行的优化机会。本文提出图流水线并行(GPP),这是一种新型流水线并行方案,将DNN划分为多个流水线阶段,各阶段间的依赖关系通过有向无环图标识。GPP推广了现有顺序流水线并行技术,保留了DNN的固有拓扑结构,可实现计算独立算子的并发执行,从而降低内存需求并提升GPU性能。此外,我们开发了分布式系统GraphPipe,该系统利用GPP策略实现高性能、可扩展的DNN训练。GraphPipe将DNN划分为阶段构成的图,为这些阶段优化微批次调度,并利用发现的GPP策略并行化DNN训练。在多种DNN上的评估结果显示,GraphPipe的性能优于PipeDream和Piper等现有流水线并行系统,最高可达1.6倍。与PipeDream和Piper相比,GraphPipe还将搜索时间缩短了9-21倍。

英文摘要:

Deep neural networks (DNNs) continue to grow rapidly in size, making them infeasible to train on a single device. Pipeline parallelism is commonly used in existing DNN systems to support large-scale DNN training by partitioning a DNN into multiple stages, which concurrently perform DNN training for different micro-batches in a pipeline fashion. However, existing pipeline-parallel approaches only consider sequential pipeline stages and thus ignore the topology of a DNN, resulting in missed model-parallel opportunities. This paper presents graph pipeline parallelism (GPP), a new pipeline-parallel scheme that partitions a DNN into pipeline stages whose dependencies are identified by a directed acyclic graph. GPP generalizes existing sequential pipeline parallelism and preserves the inherent topology of a DNN to enable concurrent execution of computationally-independent operators, resulting in reduced memory requirement and improved GPU performance. In addition, we develop GraphPipe, a distributed system that exploits GPP strategies to enable performant and scalable DNN training. GraphPipe partitions a DNN into a graph of stages, optimizes micro-batch schedules for these stages, and parallelizes DNN training using the discovered GPP strategies. Evaluation on a variety of DNNs shows that GraphPipe outperforms existing pipeline-parallel systems such as PipeDream and Piper by up to 1.6X. GraphPipe also reduces the search time by 9-21X compared to PipeDream and Piper.

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

↑