Skip to main content
QUICK REVIEW

[Paper Review] When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Method

Biao Zhang, Zhongtao Liu|arXiv (Cornell University)|Feb 27, 2024
Natural Language Processing TechniquesComputer Science28 citations
TL;DR

The paper studies how finetuning large language models scales with model size, pretraining data size, finetuning data size, and PET parameter size across full-model tuning, prompts, and LoRA, proposing a multiplicative joint scaling law and revealing that model size often outweighs pretraining data, while PET scaling is limited and task-dependent.

ABSTRACT

While large language models (LLMs) often adopt finetuning to unlock their capabilities for downstream applications, our understanding on the inductive biases (especially the scaling properties) of different finetuning methods is still limited. To fill this gap, we conduct systematic experiments studying whether and how different scaling factors, including LLM model size, pretraining data size, new finetuning parameter size and finetuning data size, affect the finetuning performance. We consider two types of finetuning -- full-model tuning (FMT) and parameter efficient tuning (PET, including prompt tuning and LoRA), and explore their scaling behaviors in the data-limited regime where the LLM model size substantially outweighs the finetuning data size. Based on two sets of pretrained bilingual LLMs from 1B to 16B and experiments on bilingual machine translation and multilingual summarization benchmarks, we find that 1) LLM finetuning follows a powerbased multiplicative joint scaling law between finetuning data size and each other scaling factor; 2) LLM finetuning benefits more from LLM model scaling than pretraining data scaling, and PET parameter scaling is generally ineffective; and 3) the optimal finetuning method is highly task- and finetuning data-dependent. We hope our findings could shed light on understanding, selecting and developing LLM finetuning methods.

Motivation & Objective

  • Investigate how finetuning performance scales with multiple factors (model size, pretraining data, finetuning data, PET parameter size) under data-limited conditions.
  • Compare two finetuning paradigms (full-model tuning and parameter-efficient tuning) across tasks to understand inductive biases and scaling behavior.
  • Assess whether PET methods (Prompt, LoRA) scale effectively and how task, data, and method interact to influence performance.
  • Provide guidance on method selection and zero-shot generalization implications for LLM finetuning.

Proposed method

  • Study two bilingual LLM families (En-De and En-Zh) with model sizes from 1B to 16B pretrained on substantial monolingual data.
  • Evaluate on WMT translation (En-De, En-Zh) and MLSum multilingual summarization tasks, with up to 20M finetuning examples.
  • Test three finetuning settings: Full-Model Tuning (FMT), Prompt tuning (soft-prompt), and LoRA (low-rank adaptation).
  • Propose and fit a multiplicative joint scaling law for finetuning loss: L̂(X,Df)=A/X^α * 1/Df^β + E, where X is a scaling factor and Df is finetuning data size; compare against an additive form.
  • Perform fitting with Hubber loss and L-BFGS, using held-out data to assess extrapolation.
  • Analyze scaling exponents α and β across tasks to compare the impact of model size, pretraining data, and PET parameters.

Experimental results

Research questions

  • RQ1How does LLM finetuning performance scale with model size, pretraining data size, finetuning data size, and PET parameter size?
  • RQ2Do full-model tuning and PET approaches display different scaling trends across translation and summarization tasks?
  • RQ3Is a multiplicative joint scaling law a better description of finetuning scaling than an additive law?
  • RQ4Which finetuning method is preferred under varying amounts of finetuning data and model sizes, and how does zero-shot/generalization behave after finetuning?
  • RQ5What is the role of zero-shot generalization when LLMs are finetuned for specific tasks?

Key findings

  • Finetuning follows a power-based multiplicative joint scaling law between finetuning data size and other scaling factors.
  • LLM model scaling generally yields larger gains for finetuning performance than pretraining data scaling.
  • PET parameter scaling (Prompt length, LoRA rank) is largely ineffective for LoRA and Prompt, with LoRA offering more stability but limited gains.
  • The optimal finetuning method is highly task- and data-dependent; PET often outperforms FMT in low-data regimes and zero-shot settings, while FMT can catch up with large finetuning data and larger models.
  • Zero-shot generalization can be preserved or improved under certain finetuning regimes, with Prompt and LoRA showing favorable generalization in large-base LLMs.
  • A clear critical finetuning data point exists for comparisons between methods, but it is task-dependent and cannot be universally generalized.

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.