Scaling Smart: Accelerating Large Language Model Pre-training with Small Model Initialization

Mohammad Samragh, Iman Mirzadeh, Keivan Alizadeh Vahid, Fartash Faghri, Minsik Cho +3 more
9/19/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: apple/ml-hypercloning (55 stars, last commit 2024-11-03).

Abstract

The pre-training phase of language models often begins with randomly initialized parameters. With the current trends in scaling models, training their large number of parameters can be extremely slow and costly. In contrast, small language models are less expensive to train, but they often cannot achieve the accuracy of large models. In this paper, we explore an intriguing idea to connect these two different regimes: Can we develop a method to initialize large language models using smaller pre-trained models? Will such initialization bring any benefits in terms of training time and final accuracy? In this paper, we introduce HyperCloning, a method that can expand the parameters of a pre-trained language model to those of a larger model with increased hidden dimensions. Our method ensures that the larger model retains the functionality of the smaller model. As a result, the larger model already inherits the predictive power and accuracy of the smaller model before the training starts. We demonstrate that training such an initialized model results in significant savings in terms of GPU hours required for pre-training large language models.

View on arXivView PDF

Code Implementations(1)

5512PythonOct 22, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{samragh2024scaling,
  title  = {Scaling Smart: Accelerating Large Language Model Pre-training with Small Model Initialization},
  author = {Mohammad Samragh and Iman Mirzadeh and Keivan Alizadeh Vahid and Fartash Faghri and Minsik Cho and Moin Nabi and Devang Naik and Mehrdad Farajtabar},
  year   = {2024},
  eprint = {2409.12903},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.12903v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.12903.svg)](https://codeofpaper.com/paper/2409.12903)

Discussion