Abstract
The computational cost of training large-scale language models (LLMs) from scratch has become a significant barrier to research and the advancement of "Green AI." We propose bert2BERT, a framework for efficiently scaling pretrained models by reusing parameters from existing, smaller source models. By combining Function-Preserving Initialization (FPI) with Advanced Knowledge Initialization (AKI), bert2BERT achieves up to a 47% reduction in training FLOPs without sacrificing downstream performance. Our experiments across BERT, GPT, and T5 architectures demonstrate that "recycling" intelligence is a viable and superior alternative to training from scratch.
Introduction
In the current NLP landscape, the "bigger is better" paradigm has led to models with hundreds of billions of parameters. However, the astronomical costs—exemplified by the estimated $4.6 million required to train GPT-3—pose a major hurdle. A glaring inefficiency in this trend is the practice of training every new, larger model from scratch, effectively discarding the "knowledge" already captured by highly capable smaller models like BERT-Base. bert2BERT addresses this by providing a mathematically sound and empirically validated method to transfer learned weights into larger architectures.
Methodology
The bert2BERT framework expands models in both width (hidden size) and depth (number of layers) using three core innovations:
- Function-Preserving Initialization (FPI): Inspired by the "Net2Net" concept, FPI expands model width by duplicating neurons and re-scaling weights. This ensures that the initialized larger model produces the exact same output as the source model for any given input, providing a stable starting point.
- Advanced Knowledge Initialization (AKI): While FPI preserves function, it can create redundant "symmetries" that slow down learning. AKI breaks this symmetry by seeding new parameters with weights from the upper layers of the source model, providing high-level guidance from the onset.
- Two-Stage Learning: To further accelerate convergence, the authors employ a sub-structure training phase, randomly sampling and training smaller sections of the model before proceeding to full-model training.
Empirical Motivation: Shared Knowledge Across Scales
A key insight driving this research is the observation that models of different sizes often develop remarkably similar internal representations. Specifically, the attention patterns—the "maps" of how words relate to each other—show significant overlap between small and large models. This suggests that a larger model does not need to reinvent the wheel; it simply requires a larger "canvas" to refine existing logic.
Experimental Results
The efficiency gains provided by bert2BERT are substantial across all tested architectures. For BERT-Base, the method saved 45.2% of computational cost (FLOPs) compared to training from scratch. Similar gains were seen in GPT-Base (47% savings) and even in T5 models with a 10x scale gap (25% savings).
Crucially, these savings do not come at the expense of quality. On the GLUE benchmark and SQuAD v1.1, the "recycled" models achieved performance comparable to or better than their scratch-trained counterparts. For instance, the bert2BERT-initialized model achieved a GLUE average of 85.7, slightly exceeding the 85.5 average of the standard BERT-Base model while using nearly half the compute.
Conclusion
bert2BERT proves that reusing pretrained parameters is not only environmentally and economically responsible but also technically advantageous. By breaking the "symmetry trap" of pure function preservation through AKI, the framework allows larger models to converge faster and reach higher performance peaks. This work paves the way for more sustainable scaling of the next generation of massive language models.
Summary updated