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

通过渐进式子网络进行高效的分阶段预训练

Efficient Stagewise Pretraining via Progressive Subnetworks

Princeton University(普林斯顿大学);Google Research(谷歌研究院)

Abhishek Panigrahi, Nikunj Saunshi, Kaifeng Lyu, Sobhan Miryoosefi, Sashank Reddi, Satyen Kale, Sanjiv Kumar

AI总结:

本文提出渐进式子网络训练框架及其实例RAPTR,通过逐步增加随机子网络规模进行分阶段预训练,在理论上修复了层丢弃问题,并在BERT和UL2上实现最高33%的训练加速及1.5%的下游性能提升。

摘要:

大型语言模型的最新发展引发了对高效预训练方法的兴趣。旨在提高效率的分阶段训练方法,如渐进式堆叠和层丢弃(Reddi et al, 2023; Zhang & He, 2020),最近引起了关注。普遍观点认为,分阶段丢弃策略(如层丢弃)是无效的,尤其是与基于堆叠的方法相比。本文挑战了这一观念,证明通过适当的设计,丢弃策略即使不优于堆叠方法,也能与之相媲美。具体而言,我们开发了一种有原则的分阶段训练框架,即渐进式子网络训练,该框架仅训练模型内的子网络,并在训练过程中逐步增加子网络的规模,直到训练整个网络。我们提出了该框架的一个实例——随机部分训练(RAPTR),它在每一步仅选择并训练网络的一个随机子网络(例如深度方向、宽度方向),并在各阶段逐步增加规模。我们表明,这种方法不仅推广了先前的工作(如层丢弃),还修复了它们的关键问题。此外,我们为这类方法建立了理论基础,并为以下两点提供了依据:(a) 分阶段增加子网络的复杂性,这在概念上不同于先前关于层丢弃的工作;(b) 在存在残差连接和层归一化等现代关键架构组件的情况下,阶段过渡期间损失的稳定性。通过全面的实验,我们证明 RAPTR 可以显著加快标准基准(如 BERT 和 UL2)的训练速度,与标准训练相比最高达 33%,并且令人惊讶的是,在 UL2 上也表现出更好的下游性能,将 QA 任务和 SuperGLUE 提高了 1.5%;从而提供了更好归纳偏置的证据。

英文摘要:

Recent developments in large language models have sparked interest in efficient pretraining methods. Stagewise training approaches to improve efficiency, like gradual stacking and layer dropping (Reddi et al, 2023; Zhang & He, 2020), have recently garnered attention. The prevailing view suggests that stagewise dropping strategies, such as layer dropping, are ineffective, especially when compared to stacking-based approaches. This paper challenges this notion by demonstrating that, with proper design, dropping strategies can be competitive, if not better, than stacking methods. Specifically, we develop a principled stagewise training framework, progressive subnetwork training, which only trains subnetworks within the model and progressively increases the size of subnetworks during training, until it trains the full network. We propose an instantiation of this framework - Random Part Training (RAPTR) - that selects and trains only a random subnetwork (e.g. depth-wise, width-wise) of the network at each step, progressively increasing the size in stages. We show that this approach not only generalizes prior works like layer dropping but also fixes their key issues. Furthermore, we establish a theoretical basis for such approaches and provide justification for (a) increasing complexity of subnetworks in stages, conceptually diverging from prior works on layer dropping, and (b) stability in loss across stage transitions in presence of key modern architecture components like residual connections and layer norms. Through comprehensive experiments, we demonstrate that RAPTR can significantly speed up training of standard benchmarks like BERT and UL2, up to 33% compared to standard training and, surprisingly, also shows better downstream performance on UL2, improving QA tasks and SuperGLUE by 1.5%; thereby, providing evidence of better inductive bias.

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

↑