Accelerating Training of Transformer-Based Language Models with Progressive Layer Dropping
Minjia Zhang, Yuxiong He
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
47 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- TinyBERT: Distilling BERT for Natural Language Understanding cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
- TinyBERT: Distilling BERT for Natural Language Understanding cites Reducing Transformer Depth on Demand with Structured Dropout
- No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Models cites Cramming: Training a Language Model on a single GPU in one day
- No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Models cites Reducing Transformer Depth on Demand with Structured Dropout
- No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Models cites Language Models are Few-Shot Learners
- Cramming: Training a Language Model on a single GPU in one day cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
- Cramming: Training a Language Model on a single GPU in one day cites Language Models are Few-Shot Learners
- Cramming: Training a Language Model on a single GPU in one day cites On Layer Normalization in the Transformer Architecture
- Unified Visual Transformer Compression cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
- Unified Visual Transformer Compression cites Reducing Transformer Depth on Demand with Structured Dropout
- Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning cites TinyBERT: Distilling BERT for Natural Language Understanding
- Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning cites No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Models
Cited by top-tier papers47
- Sheared LLaMA: Accelerating Language Model Pre-training via Structured PruningMengzhou Xia, Tianyu Gao, Zhiyuan Zeng, Danqi ChenICLR 2024 · 453 citations
- Unified Visual Transformer CompressionShixing Yu, Tianlong Chen, Jiayi Shen, Huan Yuan et al.ICLR 2022 · 118 citations
- Cramming: Training a Language Model on a single GPU in one dayJonas Geiping, Tom GoldsteinICML 2023 · 115 citations
- Layer-Wise Adaptive Model Aggregation for Scalable Federated LearningSunwoo Lee, Tuo Zhang, Amir Salman AvestimehrAAAI 2023 · 87 citations
- No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language ModelsJean Kaddour, Oscar Key, Piotr Nawrot, Pasquale Minervini et al.NeurIPS 2023 · 63 citations
Builds on7
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel et al.ICLR 2020 · 7,418 citations
- TinyBERT: Distilling BERT for Natural Language UnderstandingXiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang et al.EMNLP Findings 2020 · 1,787 citations
- On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
- Reducing Transformer Depth on Demand with Structured DropoutAngela Fan, Edouard Grave, Armand JoulinICLR 2020 · 695 citations
Related papers
- Token Dropping for Efficient BERT PretrainingLe Hou, Richard Yuanzhe Pang, Tianyi Zhou, Yuexin Wu et al.ACL 2022
- bert2BERT: Towards Reusable Pretrained Language ModelsCheng Chen, Yichun Yin, Lifeng Shang, Xin Jiang et al.ACL 2022
- Transkimmer: Transformer Learns to Layer-wise SkimYue Guan, Zhengyi Li, Jingwen Leng, Zhouhan Lin et al.ACL 2022
- Acceleration of Large Transformer Model Training by Sensitivity-Based Layer DroppingYujie Zeng, Wenlong He, Ihor V. Vasyltsov, Jiali Pang et al.AAAI 2023 · 2 citations
- LeeBERT: Learned Early Exit for BERT with cross-level optimizationWei ZhuACL 2021
