arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.16380cs.CL
收藏

重构网络表述:一种计算与数据高效的语言建模方案

Rephrasing the Web: A Recipe for Compute and Data-Efficient Language Modeling

Apple(苹果公司)

Pratyush Maini, Skyler Seto, He Bai, David Grangier, Yizhe Zhang, Navdeep Jaitly

AI总结:

针对大语言模型预训练数据质量差、计算与数据需求高的问题,提出WRAP方法,用指令微调模型改写网络数据联合预训练,可加速训练、提升困惑度与零样本问答性能,并探究了复述风格的影响。

摘要:

大语言模型基于大规模网络抓取数据训练,这类数据通常结构混乱、噪声多且表述质量差。现有缩放定律表明,从这类数据中学习需要消耗大量计算资源与数据,且资源需求随训练模型规模增长而上升。这一模式既因预训练的高昂计算成本与漫长周期难以实现,也面临网络高质量数据即将枯竭的问题。\n本研究提出Web Rephrase Augmented Pre-training(WRAP,网络复述增强预训练)方法,借助现成的指令微调模型,通过提示将网络文档改写为“类似维基百科”或“问答格式”等特定风格,让大语言模型在真实数据与合成复述数据上联合预训练。\n首先,我们在天然含噪的C4数据集上应用WRAP,将预训练速度提升约3倍。在相同预训练计算预算下,该方法使Pile数据集不同子集的困惑度平均降低10%以上,13项任务的零样本问答准确率提升超过2%。其次,我们探究了复述风格对模型性能的影响,揭示了训练数据构成如何影响大语言模型在分布外(OOD)场景下的性能。我们的性能提升源于复述合成数据比纯真实数据效用更高:一是它具备与下游评估风格高度匹配的风格多样性,二是其质量高于网络抓取数据。

英文摘要:

Large language models are trained on massive scrapes of the web, which are often unstructured, noisy, and poorly phrased. Current scaling laws show that learning from such data requires an abundance of both compute and data, which grows with the size of the model being trained. This is infeasible both because of the large compute costs and duration associated with pre-training, and the impending scarcity of high-quality data on the web. In this work, we propose Web Rephrase Augmented Pre-training ($\textbf{WRAP}$) that uses an off-the-shelf instruction-tuned model prompted to paraphrase documents on the web in specific styles such as "like Wikipedia" or in "question-answer format" to jointly pre-train LLMs on real and synthetic rephrases. First, we show that using WRAP on the C4 dataset, which is naturally noisy, speeds up pre-training by $\sim3x$. At the same pre-training compute budget, it improves perplexity by more than 10% on average across different subsets of the Pile, and improves zero-shot question answer accuracy across 13 tasks by more than 2%. Second, we investigate the impact of the re-phrasing style on the performance of the model, offering insights into how the composition of the training data can impact the performance of LLMs in OOD settings. Our gains are attributed to the fact that re-phrased synthetic data has higher utility than just real data because it (i) incorporates style diversity that closely reflects downstream evaluation style, and (ii) has higher 'quality' than web-scraped data.

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

↑