Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Laws

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Sardana, Nikhil, Portes, Jacob, Doubov, Sasha, Frankle, Jonathan
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908315628339200
author Sardana, Nikhil
Portes, Jacob
Doubov, Sasha
Frankle, Jonathan
author_facet Sardana, Nikhil
Portes, Jacob
Doubov, Sasha
Frankle, Jonathan
contents Large language model (LLM) scaling laws are empirical formulas that estimate changes in model quality as a result of increasing parameter count and training data. However, these formulas, including the popular Deepmind Chinchilla scaling laws, neglect to include the cost of inference. We modify the Chinchilla scaling laws to calculate the optimal LLM parameter count and pre-training data size to train and deploy a model of a given quality and inference demand. We conduct our analysis both in terms of a compute budget and real-world costs and find that LLM researchers expecting reasonably large inference demand (~1B requests) should train models smaller and longer than Chinchilla-optimal. Furthermore, we train 47 models of varying sizes and parameter counts to validate our formula and find that model quality continues to improve as we scale tokens per parameter to extreme ranges (up to 10,000). Finally, we ablate the procedure used to fit the Chinchilla scaling law coefficients and find that developing scaling laws only from data collected at typical token/parameter ratios overestimates the impact of additional tokens at these extreme ranges.
format Preprint
id arxiv_https___arxiv_org_abs_2401_00448
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Laws
Sardana, Nikhil
Portes, Jacob
Doubov, Sasha
Frankle, Jonathan
Machine Learning
Computation and Language
Large language model (LLM) scaling laws are empirical formulas that estimate changes in model quality as a result of increasing parameter count and training data. However, these formulas, including the popular Deepmind Chinchilla scaling laws, neglect to include the cost of inference. We modify the Chinchilla scaling laws to calculate the optimal LLM parameter count and pre-training data size to train and deploy a model of a given quality and inference demand. We conduct our analysis both in terms of a compute budget and real-world costs and find that LLM researchers expecting reasonably large inference demand (~1B requests) should train models smaller and longer than Chinchilla-optimal. Furthermore, we train 47 models of varying sizes and parameter counts to validate our formula and find that model quality continues to improve as we scale tokens per parameter to extreme ranges (up to 10,000). Finally, we ablate the procedure used to fit the Chinchilla scaling law coefficients and find that developing scaling laws only from data collected at typical token/parameter ratios overestimates the impact of additional tokens at these extreme ranges.
title Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Laws
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2401.00448