arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.08527cs.CLcs.AIcs.LG
收藏

用于预测大语言模型下游性能的缩放定律

Scaling Laws for Predicting Downstream Performance in LLMs

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Amazon(亚马逊公司)

Yangyi Chen, Binxuan Huang, Yifan Gao, Zhengyang Wang, Jingfeng Yang, Heng Ji

AI总结:

本文提出两阶段方法FLP及其扩展FLP-M,通过预训练损失作为中间指标,利用小规模采样语言模型预测大语言模型的下游性能,在7B和13B模型上实现10%以内的误差,并支持多数据源混合场景。

摘要:

在训练之前精确估计大语言模型(LLMs)的下游性能对于指导其开发过程至关重要。缩放定律分析利用一系列规模显著更小的采样语言模型(LMs)的统计数据来预测目标LLM的性能。对于下游性能预测而言,关键挑战在于LLMs中出现的涌现能力,这些能力出现在特定任务的计算阈值之上。在本工作中,我们关注预训练损失,将其作为一种计算效率更高的性能估计指标。我们的两阶段方法FLP包括:首先使用一系列完全收敛的采样模型,估计一个将计算资源(例如FLOPs)映射到预训练损失的函数;随后利用已涌现出性能的中间模型,将预训练损失映射到下游任务性能。在我们的实验中,该FLP解决方案使用一系列规模最高为3B的采样LMs,准确预测了具有7B和13B参数的LLMs的性能,分别实现了5%和10%的误差范围,并显著优于从FLOPs直接映射到性能的方法。此外,我们提出了FLP-M,这是一种用于性能预测的基础方法,旨在解决预训练期间整合多个来源数据集的现实需求。FLP-M扩展了幂律解析函数,以基于跨数据源的FLOPs预测特定领域的预训练损失,并采用一个两层神经网络来建模多个特定领域损失与下游性能之间的非线性关系。通过利用一个以特定比例训练的3B LLM和一系列规模更小的采样LMs,FLP-M能够有效预测3B和7B LLMs在多种数据混合下的大多数基准测试性能,误差范围在10%以内。

英文摘要:

Precise estimation of downstream performance in large language models (LLMs) prior to training is essential for guiding their development process. Scaling laws analysis utilizes the statistics of a series of significantly smaller sampling language models (LMs) to predict the performance of the target LLM. For downstream performance prediction, the critical challenge lies in the emergent abilities in LLMs that occur beyond task-specific computational thresholds. In this work, we focus on the pre-training loss as a more computation-efficient metric for performance estimation. Our two-stage approach FLP consists of first estimating a function that maps computational resources (e.g., FLOPs) to the pre-training Loss using a series of fully-converged sampling models, followed by mapping the pre-training loss to downstream task Performance using the intermediate models with emerged performance. In our experiments, this FLP solution accurately predicts the performance of LLMs with 7B and 13B parameters using a series of sampling LMs up to 3B, achieving error margins of 5% and 10%, respectively, and significantly outperforming the FLOPs-to-Performance approach. Further, we present FLP-M, a fundamental approach for performance prediction that addresses the practical need to integrate datasets from multiple sources during pre-training. FLP-M extends the power law analytical function to predict domain-specific pre-training loss based on FLOPs across data sources, and employs a two-layer neural network to model the non-linear relationship between multiple domain-specific loss and downstream performance. By utilizing a 3B LLM trained on a specific ratio and a series of smaller sampling LMs, FLP-M can effectively forecast the performance of 3B and 7B LLMs across various data mixtures for most benchmarks within 10% error margins.

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

↑