Skip to main content
QUICK REVIEW

[论文解读] Accelerating Training of Transformer-Based Language Models with Progressive Layer Dropping

Minjia Zhang, Yuxiong He|arXiv (Cornell University)|Oct 26, 2020
Topic ModelingComputer Science参考文献 25被引用 30
一句话总结

本论文提出 Progressive Layer Dropping (PLD) 与 Switchable-Transformer 块,以及一个渐进式训练 schedule,使 BERT 在无额外硬件的情况下更快训练,达到最高 2.5x 的预训练加速,并在下游表现具有竞争力。

ABSTRACT

Recently, Transformer-based language models have demonstrated remarkable performance across many NLP domains. However, the unsupervised pre-training step of these models suffers from unbearable overall computational expenses. Current methods for accelerating the pre-training either rely on massive parallelism with advanced hardware or are not applicable to language modeling. In this work, we propose a method based on progressive layer dropping that speeds the training of Transformer-based language models, not at the cost of excessive hardware resources but from model architecture change and training technique boosted efficiency. Extensive experiments on BERT show that the proposed method achieves a 24% time reduction on average per sample and allows the pre-training to be 2.5 times faster than the baseline to get a similar accuracy on downstream tasks. While being faster, our pre-trained models are equipped with strong knowledge transferability, achieving comparable and sometimes higher GLUE score than the baseline when pre-trained with the same number of samples.

研究动机与目标

  • 动机:在不依赖大规模硬件的前提下,减少 Transformer 基于语言模型的预训练时间
  • 研究随机深度为何会使 Transformer 预训练不稳定以及如何稳定它
  • 提出能够在预训练阶段实现层丢弃的架构和训练创新
  • 展示在 BERT 上通过 GLUE 任务的效率提升和迁移性能

提出的方法

  • 引入 Switchable-Transformer (ST) 块,带有身份映射的 PreLN,以及门控在训练期间开启/关闭子层
  • 采用渐进层 dropping 计划,在训练过程中逐步提高层丢弃概率,且具有深度相关的丢弃概率
  • 对每个子层使用伯努利门 G,在激活时输出按 1/p 缩放,以维持期望贡献
  • 将全局保留概率分布到深度上,使较低层在训练中被保留的频率更高
  • 从头开始训练一个 BERT-base 模型,并评估预训练效率和 GLUE 迁移性能
  • 与标准 BERT 预训练进行比较,并对 PreLN 与 PostLN 以及调度细节进行消融研究

实验结果

研究问题

  • RQ1层丢弃如何影响基于 Transformer 的预训练的稳定性和学习动态?
  • RQ2在某些层被丢弃时,架构性变更(PreLN、ST 块)能否稳定训练?
  • RQ3在将渐进层 dropping 应用于 BERT 时,训练速度与下游任务性能之间的权衡是什么?
  • RQ4与基线预训练相比,PLD 是否提升对下游任务的知识迁移?

主要发现

  • PLD 在每个样本的预训练速度提升约 24%,达到相同下游准确度时的预训练时间约为原来的 2.5x
  • 在层 dropping 的情况下,使用带 PreLN 的 Switchable-Transformer 相较于 PostLN 能提高训练稳定性
  • 具有深度感知丢弃概率的渐进保留率计划使训练在没有大量硬件资源的情况下也实现高效
  • GLUE 结果表明在相同样本数预训练下,迁移性能具有竞争力甚至略有提升
  • PLD 在多项 GLUE 任务中提供鲁棒的微调性能,在预训练阶段对更大学习率显示出更强的稳定性
  • 消融研究显示单独的 PreLN 相较于 PLD 组合更慢且效果较差,确认了所提出的计划和架构的优势

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。