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

PipeFisher:使用流水线并行和Fisher信息矩阵高效训练大型语言模型

PipeFisher: Efficient Training of Large Language Models Using Pipelining and Fisher Information Matrices

ETH Zurich(苏黎世联邦理工学院);Beijing University of Posts and Telecommunications(北京邮电大学)

Kazuki Osawa, Shigang Li, Torsten Hoefler

AI总结:

PipeFisher通过将K-FAC二阶优化计算分配到流水线气泡中,提高加速器利用率并加速收敛,在BERT预训练中将模拟训练时间减少至一阶优化器的50%-75%。

摘要:

流水线并行能够在大规模分布式加速器集群上高效训练大型语言模型(LLM)。然而,在启动和拆除阶段的流水线气泡降低了加速器的利用率。尽管已经提出了采用微批处理和双向流水线的高效流水线方案以最大化利用率,但仍有大量气泡无法通过同步的前向和反向传播来填充。为了解决这个问题,我们建议将额外的工作分配给这些气泡,从而在LLM训练中获得辅助收益。作为该方向的一个示例,我们提出了PipeFisher,它将基于Fisher信息矩阵的二阶优化方法K-FAC的工作分配给气泡,以加速收敛。在BERT-Base和BERT-Large模型的Phase 1预训练中,PipeFisher通过大幅提高加速器利用率并受益于K-FAC带来的改进收敛,将(模拟的)训练时间减少到使用一阶优化器训练时间的50%至75%。

英文摘要:

Pipeline parallelism enables efficient training of Large Language Models (LLMs) on large-scale distributed accelerator clusters. Yet, pipeline bubbles during startup and tear-down reduce the utilization of accelerators. Although efficient pipeline schemes with micro-batching and bidirectional pipelines have been proposed to maximize utilization, a significant number of bubbles cannot be filled using synchronous forward and backward passes. To address this problem, we suggest that extra work be assigned to the bubbles to gain auxiliary benefits in LLM training. As an example in this direction, we propose PipeFisher, which assigns the work of K-FAC, a second-order optimization method based on the Fisher information matrix, to the bubbles to accelerate convergence. In Phase 1 pretraining of BERT-Base and -Large models, PipeFisher reduces the (simulated) training time to 50-75% compared to training with a first-order optimizer by greatly improving the accelerator utilization and benefiting from the improved convergence by K-FAC.

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

↑