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

MiniCPM:通过可扩展的训练策略揭示小语言模型的潜力

MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategies

Tsinghua University(清华大学);Modelbest Inc.(模best公司)
Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, Xinrong Zhang, Zheng Leng Thai, Kaihuo Zhan… 展开作者

Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, Xinrong Zhang, Zheng Leng Thai, Kaihuo Zhang, Chongyi Wang, Yuan Yao, Chenyang Zhao, Jie Zhou, Jie Cai, Zhongwu Zhai, Ning Ding, Chao Jia, Guoyang Zeng, Dahai Li, Zhiyuan Liu, Maosong Sun

AI总结:

本文提出 MiniCPM 小语言模型,通过模型风洞实验和 WSD 学习率调度器实现高效可扩展训练,其性能媲美 7B-13B 模型,并推导出优于 Chinchilla Optimal 的计算最优比率。

摘要:

随着对开发具有高达万亿参数的大型语言模型(LLMs)的兴趣日益浓厚,人们对其资源效率和实际开销产生了担忧,特别是考虑到实验的巨大成本。这一背景凸显了探索小语言模型(SLMs)作为资源高效替代方案的潜力的重要性。在此背景下,我们推出了 MiniCPM,特别是 1.2B 和 2.4B 非 embedding 参数的变体,它们不仅在各自的类别中表现卓越,而且还展现出与 7B-13B LLMs 相当的能力。在关注 SLMs 的同时,我们的方法在模型和数据维度上均展现出可扩展性,为未来的 LLM 研究铺平了道路。在模型扩展方面,我们进行了广泛的模型风洞实验,以实现稳定且最优的扩展。在数据扩展方面,我们引入了 Warmup-Stable-Decay (WSD) 学习率调度器(LRS),有利于持续训练和领域适应。我们深入分析了 WSD LRS 中发生的引人入胜的训练动态。借助 WSD LRS,我们现在能够高效地研究数据-模型缩放定律,而无需在模型和数据两个轴线上进行大量的重新训练实验,由此我们推导出比 Chinchilla Optimal 高得多的计算最优数据-模型比率。此外,我们还介绍了 MiniCPM 家族,包括 MiniCPM-DPO、MiniCPM-MoE 和 MiniCPM-128K,其出色的性能进一步巩固了 MiniCPM 在各种 SLM 应用中的基础。MiniCPM 模型已在 https://github.com/OpenBMB/MiniCPM 公开发布。

英文摘要:

The burgeoning interest in developing Large Language Models (LLMs) with up to trillion parameters has been met with concerns regarding resource efficiency and practical expense, particularly given the immense cost of experimentation. This scenario underscores the importance of exploring the potential of Small Language Models (SLMs) as a resource-efficient alternative. In this context, we introduce MiniCPM, specifically the 1.2B and 2.4B non-embedding parameter variants, not only excel in their respective categories but also demonstrate capabilities on par with 7B-13B LLMs. While focusing on SLMs, our approach exhibits scalability in both model and data dimensions for future LLM research. Regarding model scaling, we employ extensive model wind tunnel experiments for stable and optimal scaling. For data scaling, we introduce a Warmup-Stable-Decay (WSD) learning rate scheduler (LRS), conducive to continuous training and domain adaptation. We present an in-depth analysis of the intriguing training dynamics that occurred in the WSD LRS. With WSD LRS, we are now able to efficiently study data-model scaling law without extensive retraining experiments on both axes of model and data, from which we derive the much higher compute optimal data-model ratio than Chinchilla Optimal. Additionally, we introduce MiniCPM family, including MiniCPM-DPO, MiniCPM-MoE and MiniCPM-128K, whose excellent performance further cementing MiniCPM's foundation in diverse SLM applications. MiniCPM models are available publicly at https://github.com/OpenBMB/MiniCPM .

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

↑