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

Transformer的分层并行训练

Layer-Parallel Training for Transformers

Sandia National Laboratories(桑迪亚国家实验室);Università della Svizzera Italiana(瑞士意大利语区大学);Toulouse-INP/ENSEEIHT(图卢兹国立综合理工学院/法国国立高等电力技术、电子学、计算机、水力学与电信学院);King Abdullah University of Science and Technology (KAUST)(阿卜杜拉国王科技大学);University of New Mexico(新墨西哥大学)

Shuai Jiang, Marc Salvadó-Benasco, Eric C. Cyr, Alena Kopaničáková, Rolf Krause, Jacob B. Schroder

AI总结:

Transformer分层并行训练方法通过多级并行-in-time算法提升训练效率,同时解决梯度偏差问题,实现与串行训练相当的准确性。

摘要:

我们提出了一种新的训练方法,用于transformers,采用多级、层并行的方法。通过将transformers用神经ODE公式化,我们应用多级并行-in-time算法到训练的前向和反向传播阶段,实现了在层维度上的并行加速。这大大增强了网络深度增加时的并行扩展能力,这对于日益庞大的基础模型尤为重要。然而,实现这一目标引入了误差,导致梯度中的系统偏差,这会降低接近极值时的收敛性。我们开发了检测这一关键转变的算法,并可以切换到串行训练或系统性地提高层并行训练的准确性。结果包括BERT、GPT2、ViT和机器翻译架构,展示了并行加速以及与串行预训练相当的准确性,同时微调不受影响。

英文摘要:

We present a new training methodology for transformers using a multilevel, layer-parallel approach. Through a neural ODE formulation of transformers, our application of a multilevel parallel-in-time algorithm for the forward and backpropagation phases of training achieves parallel acceleration over the layer dimension. This dramatically enhances parallel scalability as the network depth increases, which is particularly useful for increasingly large foundational models. However, achieving this introduces errors that cause systematic bias in the gradients, which in turn reduces convergence when closer to the minima. We develop an algorithm to detect this critical transition and either switch to serial training or systematically increase the accuracy of layer-parallel training. Results, including BERT, GPT2, ViT, and machine translation architectures, demonstrate parallel-acceleration as well as accuracy commensurate with serial pre-training while fine-tuning is unaffected.

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

↑