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

基于万亿令牌数据存储库的检索式语言模型缩放

Scaling Retrieval-Based Language Models with a Trillion-Token Datastore

University of Washington(华盛顿大学);Allen Institute for AI(艾伦人工智能研究所)

Rulin Shao, Jacqueline He, Akari Asai, Weijia Shi, Tim Dettmers, Sewon Min, Luke Zettlemoyer, Pang Wei Koh

AI总结:

本文研究检索式语言模型的数据存储库规模缩放,发现增大数据存储库可单调提升性能,构建了1.4万亿令牌的MassiveDS,证明数据规模是模型效率与性能权衡的关键。

摘要:

关于训练数据量和参数数量的缩放定律使我们能够预测以不同配置预训练语言模型(LMs)的成本效益权衡。在本文中,我们考虑了另一个缩放维度:推理时可用的数据量。具体来说,我们发现增加检索式语言模型使用的数据存储库的大小可以单调地改善语言建模和多个下游任务,且没有明显的饱和现象,使得一个较小的模型加上大型数据存储库在知识密集型任务上优于较大的仅语言模型。通过绘制具有不同数据存储库、模型和预训练数据规模的计算最优缩放曲线,我们表明在相同的训练计算预算下,使用更大的数据存储库可以显著提高模型性能。我们通过构建一个名为MassiveDS的1.4万亿令牌数据存储库来进行研究,该数据存储库是迄今为止最大且最多样化的开源检索式语言模型数据存储库,并设计了一个高效的计算上可行的管道来研究数据存储库缩放。最后,我们分析了改进检索器、数据存储库质量过滤和其他设计选择对我们观察到的缩放趋势的影响。总体而言,我们的结果表明,数据存储库大小应被视为语言模型效率和性能权衡的组成部分。为了促进未来的研究,我们在https://github.com/RulinShao/retrieval-scaling开源了我们的数据存储库和代码。

英文摘要:

Scaling laws with respect to the amount of training data and the number of parameters allow us to predict the cost-benefit trade-offs of pretraining language models (LMs) in different configurations. In this paper, we consider another dimension of scaling: the amount of data available at inference time. Specifically, we find that increasing the size of the datastore used by a retrieval-based LM monotonically improves language modeling and several downstream tasks without obvious saturation, such that a smaller model augmented with a large datastore outperforms a larger LM-only model on knowledge-intensive tasks. By plotting compute-optimal scaling curves with varied datastore, model, and pretraining data sizes, we show that using larger datastores can significantly improve model performance for the same training compute budget. We carry out our study by constructing a 1.4 trillion-token datastore named MassiveDS, which is the largest and the most diverse open-sourced datastore for retrieval-based LMs to date, and designing an efficient pipeline for studying datastore scaling in a computationally accessible manner. Finally, we analyze the effect of improving the retriever, datastore quality filtering, and other design choices on our observed scaling trends. Overall, our results show that datastore size should be considered as an integral part of LM efficiency and performance trade-offs. To facilitate future research, we open-source our datastore and code at https://github.com/RulinShao/retrieval-scaling.

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

↑