arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.02314cs.LGcs.AIcs.CL
收藏

通过修正缩放定律选择用于微调的大型语言模型

Selecting Large Language Model to Fine-tune via Rectified Scaling Law

Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);Peking University(北京大学);Stanford University(斯坦福大学);Tsinghua University(清华大学)

Haowei Lin, Baizhou Huang, Haotian Ye, Qinyu Chen, Zihao Wang, Sujian Li, Jianzhu Ma, Xiaojun Wan, James Zou, Yitao Liang

AI总结:

针对微调模型选择难题,提出修正缩放定律,识别微调缩放曲线中的“幂前阶段”,据此设计选择算法,以数百倍更少的资源选出接近最优模型。

摘要:

大型语言模型生态系统的不断壮大,在众多预训练模型中挑选出最适合微调的模型已成为一项挑战。在资源受限的情况下,先微调所有模型再作选择是不现实的。在这项工作中,我们将这一资源受限的选择任务转化为预测微调性能的问题,并阐述了其与缩放定律之间的自然联系。与预训练不同,我们发现微调缩放曲线不仅包含众所周知的“幂律阶段”,还包含此前未被观察到的“幂前阶段”。我们还在理论和实证两方面解释了现有缩放定律为何无法捕捉这一相变现象。为解决这一问题,我们将“预学习数据量”的概念引入我们的修正缩放定律,该定律克服了理论局限性,并能更好地拟合实验结果。通过利用我们的定律,我们提出了一种新颖的大型语言模型选择算法,该算法能以数百倍更少的资源消耗选出接近最优的模型,而其他方法可能提供负相关的选择。项目页面可在 rectified-scaling-law.github.io 获取。

英文摘要:

The ever-growing ecosystem of LLMs has posed a challenge in selecting the most appropriate pre-trained model to fine-tune amidst a sea of options. Given constrained resources, fine-tuning all models and making selections afterward is unrealistic. In this work, we formulate this resource-constrained selection task into predicting fine-tuning performance and illustrate its natural connection with Scaling Law. Unlike pre-training, we find that the fine-tuning scaling curve includes not just the well-known "power phase" but also the previously unobserved "pre-power phase". We also explain why existing Scaling Law fails to capture this phase transition phenomenon both theoretically and empirically. To address this, we introduce the concept of "pre-learned data size" into our Rectified Scaling Law, which overcomes theoretical limitations and fits experimental results much better. By leveraging our law, we propose a novel LLM selection algorithm that selects the near-optimal model with hundreds of times less resource consumption, while other methods may provide negatively correlated selection. The project page is available at rectified-scaling-law.github.io.

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

↑