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

DiffusionPipe:利用高效流水线训练大型扩散模型

DiffusionPipe: Training Large Diffusion Models with Efficient Pipelines

Ye Tian, Zhen Jia, Ziyue Luo, Yida Wang, Chuan Wu

AI总结:

本文提出DiffusionPipe同步流水线训练系统,通过动态规划优化阶段划分与调度,并利用贪心算法将冻结模块计算填充到流水线空闲时段,在扩散模型训练上实现最高1.41倍加速。

摘要:

扩散模型已成为图像生成领域的主导方法。为支持大型扩散模型的训练,本文研究了扩散模型的流水线并行训练,并提出了DiffusionPipe,一种同步流水线训练系统,该系统倡导创新的流水线气泡填充技术,以契合扩散模型的结构特性。当前最先进的扩散模型通常包含可训练部分(骨干网络)和不可训练部分(例如冻结的输入编码器)。我们首先采用动态规划方法,统一了代表性扩散模型中单个和多个骨干网络的最优阶段划分与流水线调度。随后,我们提出通过一种高效的贪心算法,将不可训练模型部分的计算填充到骨干网络流水线训练的空闲时段中,从而实现高训练吞吐量。大量实验表明,在流行的扩散模型上,DiffusionPipe相较于流水线并行方法可实现最高1.41倍的加速,相较于数据并行训练可实现最高1.28倍的加速。

英文摘要:

Diffusion models have emerged as dominant performers for image generation. To support training large diffusion models, this paper studies pipeline parallel training of diffusion models and proposes DiffusionPipe, a synchronous pipeline training system that advocates innovative pipeline bubble filling technique, catering to structural characteristics of diffusion models. State-of-the-art diffusion models typically include trainable (the backbone) and non-trainable (e.g., frozen input encoders) parts. We first unify optimal stage partitioning and pipeline scheduling of single and multiple backbones in representative diffusion models with a dynamic programming approach. We then propose to fill the computation of non-trainable model parts into idle periods of the pipeline training of the backbones by an efficient greedy algorithm, thus achieving high training throughput. Extensive experiments show that DiffusionPipe can achieve up to 1.41x speedup over pipeline parallel methods and 1.28x speedup over data parallel training on popular diffusion models.

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

↑