[Paper Review] Learning to Grow Pretrained Models for Efficient Transformer Training
LiGO learns a structured linear growth operator to initialize larger transformer models from smaller pretrained ones, reducing training FLOPs up to ~50% while preserving performance across language and vision domains.
Scaling transformers has led to significant breakthroughs in many domains, leading to a paradigm in which larger versions of existing models are trained and released on a periodic basis. New instances of such models are typically trained completely from scratch, despite the fact that they are often just scaled-up versions of their smaller counterparts. How can we use the implicit knowledge in the parameters of smaller, extant models to enable faster training of newer, larger models? This paper describes an approach for accelerating transformer training by learning to grow pretrained transformers, where we learn to linearly map the parameters of the smaller model to initialize the larger model. For tractable learning, we factorize the linear transformation as a composition of (linear) width- and depth-growth operators, and further employ a Kronecker factorization of these growth operators to encode architectural knowledge. Extensive experiments across both language and vision transformers demonstrate that our learned Linear Growth Operator (LiGO) can save up to 50% computational cost of training from scratch, while also consistently outperforming strong baselines that also reuse smaller pretrained models to initialize larger models.
Motivation & Objective
- Motivate reducing compute waste when scaling transformers by leveraging implicit knowledge in smaller pretrained models.
- Propose a learnable, structured growth mechanism to initialize larger models from smaller ones.
- Demonstrate cross-domain effectiveness on language and vision transformers and validate transfer performance.
Proposed method
- Formulate weight transfer from a small model to a large model as a linear mapping: Theta_large = M(Theta_small).
- Decompose M into depth-growth and width-growth operators: M = L_depth R_width to separately handle layer-depth and dimensional expansion.
- Factorize R_width and L_depth with Kronecker products to encode architectural structure and dramatically reduce parameter count.
- Tie growth matrices across transformer components (embedding, Q/K/V/O, FFN) to maintain alignment and residual connections.
- Optimize a small number of steps (e.g., 100 SGD steps) to learn M, then initialize the large model with M(vec(Theta_small)) and train normally.
- Show that existing growth methods (StackBERT, Interpolation, Net2Net) are special cases of LiGO.
Experimental results
Research questions
- RQ1How much training efficiency (FLOPs and wall time) can LiGO achieve compared to training from scratch and existing growth methods?
- RQ2Does LiGO consistently improve efficiency across language and vision transformers and across different model sizes?
- RQ3Do models initialized with LiGO retain comparable downstream performance after transfer to tasks?
- RQ4How does LiGO relate to and leverage structured matrices (Kronecker factorization) and Monarch matrices in expressiveness?
Key findings
- LiGO achieves substantial training efficiency gains across language and vision transformers, with up to 50% FLOPs savings reported.
- On BERT-Base vs BERT-Small, LiGO saves about 44.7% FLOPs and 40%+ wall time versus training from scratch.
- LiGO also saves 22.5% FLOPs for GPT2-Medium by reusing GPT2-Base, and 55% FLOPs for DeiT-S to DeiT-B in vision transformers.
- LiGO can reuse either a smaller or a mid-size pretrained model to initialize the larger one, with larger savings when using more knowledge-rich smaller models.
- Transfer performance on downstream tasks (GLUE, SQuAD, image classification) is on par with or very close to training-from-scratch baselines.
- LiGO encompasses StackBERT, Interpolation, and Net2Net as special cases, and its Kronecker-factorized width/depth operators align with Monarch matrices, enabling efficient learning with few learned parameters.
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.