Skip to main content
QUICK REVIEW

[论文解读] Scaling Laws for Downstream Task Performance of Large Language Models

Berivan Isik, Natalia Ponomareva|arXiv (Cornell University)|Feb 6, 2024
Topic ModelingComputer Science被引用 3
一句话总结

本文研究了在迁移学习设置下大规模语言模型在下游机器翻译任务中的性能缩放规律。提出了一种用于BLEU分数的对数缩放模型,当预训练数据与下游数据分布对齐时,该模型能准确预测性能;同时表明,当数据分布不匹配时,仅依赖下游交叉熵损失可能产生误导,因为BLEU分数表现出非单调行为。

ABSTRACT

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.

研究动机与目标

  • 理解预训练数据规模和分布对齐程度如何影响迁移学习设置下的下游性能。
  • 评估上游缩放规律(如针对交叉熵的规律)是否能可靠预测下游任务性能。
  • 研究在数据分布不匹配条件下,下游交叉熵与任务特定指标(如BLEU分数)之间的脱节现象。
  • 为机器翻译任务中的下游交叉熵和BLEU分数建立可预测的缩放规律。
  • 评估当微调数据集已足够大时,预训练所能带来的实际价值。

提出的方法

  • 在多语言C4数据集的不同子集上系统性地预训练T5模型(参数量分别为770M和3B),并调整语言组成。
  • 在三个机器翻译任务上微调模型:WMT-17 en-de、WMT-15 en-fr 和 WMT-16 en-ro。
  • 通过测量不同预训练数据规模下的BLEU分数和下游交叉熵损失,评估下游性能。
  • 提出一种对数缩放模型:$ f(D_p) = ( ext{log}(A imes D_p^{eta}))^{eta} $,用于根据预训练数据规模 $ D_p $ 预测BLEU分数。
  • 拟合一个幂律模型 $ L(D_p) = E + rac{A}{D_p^{eta}} $ 来描述下游交叉熵,以模仿上游的缩放规律。
  • 分析BLEU与交叉熵趋势之间的差异,以评估交叉熵作为代理指标的可靠性。

实验结果

研究问题

  • RQ1预训练数据规模如何影响机器翻译任务中的下游BLEU分数和交叉熵?
  • RQ2预训练数据与下游数据之间的分布对齐程度在多大程度上影响缩放行为?
  • RQ3下游交叉熵能否可靠地用作任务特定指标(如BLEU分数)的代理?
  • RQ4在何种条件下,增加预训练数据会导致BLEU性能出现非单调或不稳定的变化?
  • RQ5当微调数据集已足够大时,预训练是否仍能带来可测量的性能增益?

主要发现

  • 当预训练数据与下游数据分布良好对齐时,BLEU分数和下游交叉熵均随预训练数据量增加而单调提升。
  • 所提出的对数缩放模型在分布对齐条件下能准确预测下游BLEU分数,具有很高的预测精度。
  • 在中等程度的分布不匹配下,BLEU分数可能随预训练数据增加而波动甚至下降,而下游交叉熵仍持续单调改善。
  • 下游交叉熵并非BLEU分数的可靠代理指标,因为两者相关性不一致——尤其在en-fr翻译任务中,两个指标表现出任意关系。
  • 当微调数据集已足够大时,预训练带来的收益微乎其微,表明在此类设置下收益递减。
  • 能否将对数缩放模型成功拟合到BLEU分数上,可作为预训练数据分布对齐程度的指标:拟合效果差与整体BLEU性能低下密切相关。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。