大语言模型下游任务性能的扩展定律
Scaling Laws for Downstream Task Performance of Large Language Models
AI总结:
本研究探讨了预训练数据规模和分布对齐对大语言模型下游任务性能的影响,揭示了扩展定律在迁移学习中的应用及翻译质量的预测方法。
摘要:
扩展定律为设计大型语言模型(LLMs)提供了重要的见解。现有研究主要集中在研究预训练(上游)损失的扩展定律上。然而,在迁移学习设置中,即LLMs在无监督数据集上预训练后,再在下游任务上进行微调时,我们往往也关心下游性能。在本工作中,我们研究了迁移学习设置中的扩展行为,其中LLMs被用于机器翻译任务进行微调。具体来说,我们研究了预训练数据及其规模的选择如何影响下游性能(翻译质量),并通过下游交叉熵和翻译质量指标(如BLEU和COMET分数)来判断。我们的实验表明,微调数据集的规模以及预训练数据与下游数据之间的分布对齐程度显著影响扩展行为。在足够对齐的情况下,随着预训练数据量的增加,下游交叉熵和翻译质量分数单调提高。在这种情况下,我们展示了可以使用对数定律以高精度预测下游翻译质量指标。然而,在某些情况下,适度的不对齐会导致下游翻译分数在增加预训练数据时波动或变差,而下游交叉熵则单调提高。通过分析这些现象,我们提供了新的实用见解,以选择合适预训练数据。
英文摘要:
Scaling laws provide important insights that can guide the design of large language models (LLMs). Existing work has primarily focused on studying scaling laws for pretraining (upstream) loss. However, in transfer learning settings, in which LLMs are pretrained on an unsupervised dataset and then finetuned on a downstream task, we often also care about the downstream performance. In this work, we study the scaling behavior in a transfer learning setting, where LLMs are finetuned for machine translation tasks. Specifically, we investigate how the choice of the pretraining data and its size affect downstream performance (translation quality) as judged by: downstream cross-entropy and translation quality metrics such as BLEU and COMET scores. Our experiments indicate that the size of the finetuning dataset and the distribution alignment between the pretraining and downstream data significantly influence the scaling behavior. With sufficient alignment, both downstream cross-entropy and translation quality scores improve monotonically with more pretraining data. In such cases, we show that it is possible to predict the downstream translation quality metrics with good accuracy using a log-law. However, there are cases where moderate misalignment causes the downstream translation scores to fluctuate or get worse with more pretraining, whereas downstream cross-entropy monotonically improves. By analyzing these, we provide new practical insights for choosing appropriate pretraining data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。