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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Samragh, Mohammad, Mirzadeh, Iman, Vahid, Keivan Alizadeh, Faghri, Fartash, Cho, Minsik, Nabi, Moin, Naik, Devang, Farajtabar, Mehrdad
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914953782362112
author Samragh, Mohammad
Mirzadeh, Iman
Vahid, Keivan Alizadeh
Faghri, Fartash
Cho, Minsik
Nabi, Moin
Naik, Devang
Farajtabar, Mehrdad
author_facet Samragh, Mohammad
Mirzadeh, Iman
Vahid, Keivan Alizadeh
Faghri, Fartash
Cho, Minsik
Nabi, Moin
Naik, Devang
Farajtabar, Mehrdad
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2409_12903
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Scaling Smart: Accelerating Large Language Model Pre-training with Small Model Initialization
Samragh, Mohammad
Mirzadeh, Iman
Vahid, Keivan Alizadeh
Faghri, Fartash
Cho, Minsik
Nabi, Moin
Naik, Devang
Farajtabar, Mehrdad
Computation and Language
Artificial Intelligence
Machine Learning
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.
title Scaling Smart: Accelerating Large Language Model Pre-training with Small Model Initialization
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2409.12903