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

nanoLM:通过跨尺度精确损失预测实现的经济型 LLM 预训练基准

nanoLM: an Affordable LLM Pre-training Benchmark via Accurate Loss Prediction across Scales

Beijing Academy of Artificial Intelligence(北京人工智能研究院);University of Electronic Science and Technology of China(电子科技大学);Institute of Automation, Chinese Academy of Science(中国科学院自动化研究所);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Nanyang Technological University(南洋理工大学)

Yiqun Yao, Siqi fan, Xiusheng Huang, Xuezhi Fang, Xiang Li, Ziyi Ni, Xin Jiang, Xuying Meng, Peng Han, Shuo Shang, Kang Liu, Aixin Sun, Yequan Wang

AI总结:

本文提出 μScaling 方法,利用 μP 在小模型上精确拟合缩放定律,从而以约 14% 的成本预测高达 52B 模型的预训练损失,并据此构建经济型基准 nanoLM,帮助资源有限的研究者验证大模型设计。

摘要:

随着语言模型规模不断扩大,验证研究想法的成本越来越高,因为在小模型上得到的结论并不能直接迁移到大模型上。一种可能的解决方案是建立一个通用系统,在不训练大模型的情况下准确预测其某些指标。现有的缩放定律需要在大模型上进行超参数搜索,这限制了它们的预测能力。在本文中,我们提出了一种方法(即 μScaling)来预测预训练损失,该方法基于我们的观察:最大更新参数化(μP)能够在超参数空间中接近常见损失盆地的地方实现缩放定律的精确拟合。借助 μScaling,不同的模型设计只需训练其较小规模的对应模型,即可在大规模上进行比较。此外,我们引入了 nanoLM:一个经济型 LLM 预训练基准,以促进这一新的研究范式。只需约 14% 的一次性预训练成本,我们就能准确预测高达 52B 规模模型的损失。我们推出 nanoLM 的目标是让资源有限的研究人员能够在大模型上得出有意义的结论。我们还希望我们的基准能够成为学术界与工业界之间的桥梁。μScaling 的代码可在 https://github.com/cofe-ai/Mu-scaling 获取。nanoLLM 的代码将在稍后提供。

英文摘要:

As language models scale up, it becomes increasingly expensive to verify research ideas because conclusions on small models do not trivially transfer to large ones. A possible solution is to establish a generic system that accurately predicts certain metrics for large models without training them. Existing scaling laws require hyperparameter search on the largest models, limiting their predicative capability. In this paper, we present an approach (namely μScaling) to predict the pre-training loss, based on our observations that Maximal Update Parametrization (μP) enables accurate fitting of scaling laws close to common loss basins in hyperparameter space. With μScaling, different model designs can be compared on large scales by training only their smaller counterparts. Further, we introduce nanoLM: an affordable LLM pre-training benchmark that facilitates this new research paradigm. With around 14% of the one-time pre-training cost, we can accurately forecast the loss for models up to 52B. Our goal with nanoLM is to empower researchers with limited resources to reach meaningful conclusions on large models. We also aspire for our benchmark to serve as a bridge between the academic community and the industry. Code for μScaling is available at https://github.com/cofe-ai/Mu-scaling. Code for nanoLLM will be available later.

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

↑