arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.16264cs.CLcs.AIcs.LG
收藏

扩展数据受限的语言模型

Scaling Data-Constrained Language Models

Hugging Face;Harvard University(哈佛大学);University of Turku(图尔库大学)

Niklas Muennighoff, Alexander M. Rush, Boaz Barak, Teven Le Scao, Aleksandra Piktus, Nouamane Tazi, Sampo Pyysalo, Thomas Wolf, Colin Raffel

AI总结:

本文研究了在数据受限情况下的语言模型扩展,发现适度数据重复对固定计算预算下的loss影响微乎其微,并提出了考虑重复tokens和过剩参数的计算最优性扩展定律。

摘要:

当前扩展语言模型的趋势涉及增加参数数量和训练数据集大小。推断这一趋势表明,训练数据集大小可能很快会受到互联网上可用文本数据量的限制。受此限制的启发,我们研究了在数据受限情况下的语言模型扩展。具体而言,我们进行了大量实验,改变数据重复程度和计算预算,规模最高达9000亿训练tokens和90亿参数模型。我们发现,在固定计算预算下使用受限数据时,使用多达4个epochs的重复数据进行训练,与使用唯一数据相比,对loss的影响微乎其微。然而,随着重复次数增加,增加计算的价值最终衰减至零。我们提出并实证验证了一个计算最优性扩展定律,该定律考虑了重复tokens和过剩参数的递减价值。最后,我们实验了缓解数据稀缺的方法,包括使用代码数据增强训练数据集或移除常用过滤器。我们400次训练运行的模型和数据集可在https://github.com/huggingface/datablations免费获取。

英文摘要:

The current trend of scaling language models involves increasing both parameter count and training dataset size. Extrapolating this trend suggests that training dataset size may soon be limited by the amount of text data available on the internet. Motivated by this limit, we investigate scaling language models in data-constrained regimes. Specifically, we run a large set of experiments varying the extent of data repetition and compute budget, ranging up to 900 billion training tokens and 9 billion parameter models. We find that with constrained data for a fixed compute budget, training with up to 4 epochs of repeated data yields negligible changes to loss compared to having unique data. However, with more repetition, the value of adding compute eventually decays to zero. We propose and empirically validate a scaling law for compute optimality that accounts for the decreasing value of repeated tokens and excess parameters. Finally, we experiment with approaches mitigating data scarcity, including augmenting the training dataset with code data or removing commonly used filters. Models and datasets from our 400 training runs are freely available at https://github.com/huggingface/datablations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑