论文标题
培训计算最佳的大语言模型
Training Compute-Optimal Large Language Models
论文作者
论文摘要
我们研究了在给定的计算预算下训练变压器语言模型的最佳模型大小和代币数量。我们发现,当前的大型语言模型的训练不足,这是最近关注扩展语言模型的结果,同时保持训练数据的量不断。通过培训超过400个语言模型,从5到5000亿个令牌上的7000万到160亿多个参数不等,我们发现,对于计算最佳训练,模型大小和训练令牌的数量应均等:每次增加型号的训练大小的训练代币数量,也应加倍。我们通过训练一个预测的计算机模型Chinchilla来检验该假设,该模型使用与Gopher相同的计算预算,但具有70B参数和4 $ \ times $更多数据。在多种下游评估任务上,龙猫均匀且显着优于Gopher(280b),GPT-3(175b),侏罗纪-1(178b)和Megatron-Turing NLG(530b)。这也意味着龙猫在微调和推理中使用的计算大大降低,从而极大地促进了下游使用。作为一个亮点,龙猫在MMLU基准测试中达到了最先进的平均准确性67.5%,比Gopher提高了7%。
We investigate the optimal model size and number of tokens for training a transformer language model under a given compute budget. We find that current large language models are significantly undertrained, a consequence of the recent focus on scaling language models whilst keeping the amount of training data constant. By training over 400 language models ranging from 70 million to over 16 billion parameters on 5 to 500 billion tokens, we find that for compute-optimal training, the model size and the number of training tokens should be scaled equally: for every doubling of model size the number of training tokens should also be doubled. We test this hypothesis by training a predicted compute-optimal model, Chinchilla, that uses the same compute budget as Gopher but with 70B parameters and 4$\times$ more more data. Chinchilla uniformly and significantly outperforms Gopher (280B), GPT-3 (175B), Jurassic-1 (178B), and Megatron-Turing NLG (530B) on a large range of downstream evaluation tasks. This also means that Chinchilla uses substantially less compute for fine-tuning and inference, greatly facilitating downstream usage. As a highlight, Chinchilla reaches a state-of-the-art average accuracy of 67.5% on the MMLU benchmark, greater than a 7% improvement over Gopher.