Skip to main content
QUICK REVIEW

[Paper Review] Scaling Laws for Downstream Task Performance of Large Language Models

Berivan Isik, Natalia Ponomareva|arXiv (Cornell University)|Feb 6, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper investigates scaling laws for downstream performance of large language models in transfer learning, focusing on machine translation. It proposes a log-law scaling model for BLEU scores that predicts performance accurately when pretraining and downstream data are well-aligned, while showing that downstream cross-entropy alone can be misleading due to non-monotonic BLEU behavior under misalignment.

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.

Motivation & Objective

  • To understand how pretraining data size and distribution alignment affect downstream performance in transfer learning settings.
  • To evaluate whether upstream scaling laws (e.g., for cross-entropy) can reliably predict downstream task performance.
  • To investigate the disconnect between downstream cross-entropy and task-specific metrics like BLEU score under data misalignment.
  • To develop predictive scaling laws for both downstream cross-entropy and BLEU score in machine translation.
  • To assess the value of pretraining when finetuning data is already large.

Proposed method

  • Systematically pretrain T5 models (770M and 3B parameters) on subsets of the Multilingual C4 dataset with varying language compositions.
  • Fine-tune the models on three machine translation tasks: WMT-17 en-de, WMT-15 en-fr, and WMT-16 en-ro.
  • Measure downstream performance using BLEU score and downstream cross-entropy loss across varying pretraining data sizes.
  • Propose a log-law scaling model: $ f(D_p) = ( ext{log}(A imes D_p^{eta}))^{eta} $, to predict BLEU scores as a function of pretraining data size $ D_p $.
  • Fit a power-law model $ L(D_p) = E + rac{A}{D_p^{eta}} $ for downstream cross-entropy to mirror upstream scaling laws.
  • Analyze discrepancies between BLEU and cross-entropy trends to assess the reliability of cross-entropy as a proxy metric.

Experimental results

Research questions

  • RQ1How does the size of the pretraining data affect downstream BLEU score and cross-entropy in machine translation tasks?
  • RQ2To what extent does distribution alignment between pretraining and downstream data influence scaling behavior?
  • RQ3Can downstream cross-entropy be reliably used as a proxy for task-specific metrics like BLEU score?
  • RQ4Under what conditions does increasing pretraining data lead to non-monotonic or unstable BLEU performance?
  • RQ5Does pretraining provide measurable gains when the finetuning dataset is already large?

Key findings

  • When pretraining and downstream data are well-aligned, both BLEU score and downstream cross-entropy improve monotonically with more pretraining data.
  • The proposed log-law scaling model accurately predicts downstream BLEU scores under distribution alignment, with high predictive accuracy.
  • Under moderate misalignment, BLEU scores can fluctuate or degrade with more pretraining, even as downstream cross-entropy continues to improve monotonically.
  • Downstream cross-entropy is not a reliable proxy for BLEU score, as shown by inconsistent correlations—especially in the en-fr translation task where the two metrics show arbitrary relationships.
  • Pretraining provides little to no benefit when the finetuning dataset is already large, suggesting diminishing returns in such settings.
  • The ability to fit the log-law scaling model to BLEU scores serves as an indicator of pretraining data alignment: poor fit correlates with low overall BLEU performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.