arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.17193cs.CLcs.LG
收藏

当扩展遇上LLM微调:数据、模型与微调方法的影响

When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Method

Google DeepMind(谷歌DeepMind);Google Research(谷歌研究院)

Biao Zhang, Zhongtao Liu, Colin Cherry, Orhan Firat

AI总结:

本文系统研究了LLM规模、预训练数据、微调参数与数据等因素对不同微调方法性能的影响,发现微调遵循乘法联合扩展定律,且最优方法高度依赖任务与数据。

摘要:

虽然大语言模型(LLM)通常采用微调来释放其在下游应用中的能力,但我们对不同微调方法的归纳偏置(尤其是扩展特性)的理解仍然有限。为填补这一空白,我们进行了系统性实验,研究不同的扩展因素——包括LLM模型规模、预训练数据规模、新增微调参数规模和微调数据规模——是否以及如何影响微调性能。我们考虑两类微调——全模型微调(FMT)和参数高效微调(PET,包括提示微调和LoRA),并在LLM模型规模显著超过微调数据规模的数据受限条件下探索它们的扩展行为。基于两组从1B到16B的预训练双语LLM以及在双语机器翻译和多语言摘要基准上的实验,我们发现:1)LLM微调在微调数据规模与每个其他扩展因素之间遵循基于幂函数的乘法联合扩展定律;2)LLM微调从LLM模型扩展中获得的收益大于预训练数据扩展,而PET参数扩展通常无效;3)最优微调方法高度依赖于任务和微调数据。我们希望这些发现能为理解、选择和开发LLM微调方法提供启示。

英文摘要:

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.

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

↑