arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.05124cs.DCcs.LGstat.ML
收藏

PipeMare:异步流水线并行DNN培训

PipeMare: Asynchronous Pipeline Parallel DNN Training

SambaNova Systems(桑巴诺瓦系统公司);Stanford University(斯坦福大学);Cornell University(康奈尔大学)

Bowen Yang, Jian Zhang, Jonathan Li, Christopher Ré, Christopher R. Aberger, Christopher De Sa

摘要:

训练神经网络时的流水线并行(PP)使更大的模型能够在空间上进行分区,从而降低网络通信和整体硬件利用率。不幸的是,为了保持顺序训练的统计效率,现有的PP技术通过降低流水线利用率或招致额外的存储器成本来牺牲硬件效率。在本文中,我们调查在何种程度上这些牺牲是必要的。我们设计的PipeMare,一个简单而强大的训练方法,容忍在PP执行过程中的异步更新,而不牺牲利用率或内存,这允许有效地使用细粒度的流水线并行。具体来说,当在ResNet和Transformer网络上进行测试时,与最先进的同步PP训练技术相比,Apploy使PipeMare能够使用最多$2.7\times$更少的内存或获得$4.3\times$更高的管道利用率,同时具有类似的模型质量。

英文摘要:

Pipeline parallelism (PP) when training neural networks enables larger models to be partitioned spatially, leading to both lower network communication and overall higher hardware utilization. Unfortunately, to preserve the statistical efficiency of sequential training, existing PP techniques sacrifice hardware efficiency by decreasing pipeline utilization or incurring extra memory costs. In this paper, we investigate to what extent these sacrifices are necessary. We devise PipeMare, a simple yet robust training method that tolerates asynchronous updates during PP execution without sacrificing utilization or memory, which allows efficient use of fine-grained pipeline parallelism. Concretely, when tested on ResNet and Transformer networks, asynchrony enables PipeMare to use up to $2.7\times$ less memory or get $4.3\times$ higher pipeline utilization, with similar model quality, when compared to state-of-the-art synchronous PP training techniques.

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

↑