[Paper Review] Progressively Stacking 2.0: A Multi-stage Layerwise Training Method for BERT Training Speedup
This paper proposes Multi-stage Layerwise Training (MSLT), a method that accelerates BERT pre-training by progressively stacking shallow models and fine-tuning only the topmost layers at each stage while freezing previously trained layers. The approach reduces backward pass computation and communication overhead, achieving over 110% training speedup with minimal performance degradation compared to standard BERT training.
Pre-trained language models, such as BERT, have achieved significant accuracy gain in many natural language processing tasks. Despite its effectiveness, the huge number of parameters makes training a BERT model computationally very challenging. In this paper, we propose an efficient multi-stage layerwise training (MSLT) approach to reduce the training time of BERT. We decompose the whole training process into several stages. The training is started from a small model with only a few encoder layers and we gradually increase the depth of the model by adding new encoder layers. At each stage, we only train the top (near the output layer) few encoder layers which are newly added. The parameters of the other layers which have been trained in the previous stages will not be updated in the current stage. In BERT training, the backward computation is much more time-consuming than the forward computation, especially in the distributed training setting in which the backward computation time further includes the communication time for gradient synchronization. In the proposed training strategy, only top few layers participate in backward computation, while most layers only participate in forward computation. Hence both the computation and communication efficiencies are greatly improved. Experimental results show that the proposed method can achieve more than 110% training speedup without significant performance degradation.
Motivation & Objective
- To address the high computational cost and long training time of large BERT models.
- To improve training efficiency by reducing backward pass and communication overhead in distributed settings.
- To overcome the inefficiency of existing progressive stacking methods, which slow down in later stages due to full-model updates.
- To exploit the observation that bottom layers stabilize early, making continued retraining redundant.
- To develop a training strategy that maintains model performance while drastically reducing training time.
Proposed method
- The method decomposes BERT training into multiple stages, starting with a shallow model containing only a few encoder layers.
- At each stage, only the topmost newly added encoder layers are updated, while all previously trained layers are frozen and participate only in forward passes.
- The model depth is incrementally increased by adding new layers at each stage, maintaining the same pre-training objective.
- After all layers are added, a final retraining phase updates all parameters jointly for a few steps to refine the model.
- The approach leverages alternating optimization principles, updating only a small subset of parameters at a time to improve convergence efficiency.
- It avoids learning rate conflicts by training untrained top layers first, then jointly retraining all layers with a small learning rate.
Experimental results
Research questions
- RQ1Can training efficiency be significantly improved by updating only the topmost layers in deep BERT models?
- RQ2Does freezing previously trained layers in later stages reduce training time without harming model performance?
- RQ3How does the progressive stacking strategy compare to standard training in terms of speed and accuracy?
- RQ4Can the observation that bottom-layer attention distributions stabilize early be exploited to accelerate training?
- RQ5What is the optimal trade-off between speedup and performance degradation in multi-stage layerwise training?
Key findings
- The proposed MSLT method achieves over 110% training speedup compared to standard BERT training with the same number of training steps.
- With the same training time, MSLT achieves better performance than standard training, demonstrating superior sample efficiency.
- The method maintains model performance comparable to standard BERT, with only minor degradation on GLUE benchmarks (e.g., BERT-Base: 79.5 vs. 79.8 average score).
- The final retraining phase, which updates all layers, accounts for only about 20% of total training steps, indicating that the model is already well-optimized before this stage.
- The method reduces backward computation and gradient synchronization overhead significantly, especially in distributed training, due to limited parameter updates per stage.
- Experimental results show that bottom-layer attention distributions remain largely unchanged in later stages, validating the core assumption behind freezing these layers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.