[论文解读] MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategies
本文提出 MiniCPM,一系列小型语言模型(1.2B 和 2.4B 非嵌入模型)具有可扩展训练策略,达到与更大 7B–13B LLMs 相当的能力,并探索数据-模型扩展规律,使用 Warmup-Stable-Decay 调度器。
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 .
研究动机与目标
- 证明小型语言模型在可扩展训练策略下也能获得竞争力表现。
- 通过风洞实验和新颖学习率调度器 (WSD) 研究模型和数据扩展。
- 表征训练动态并推导有利于数据扩展的 SLMs 的数据-模型扩展规律。
- 介绍 MiniCPM 家族变体并评估它们在既定基准上的表现。)
提出的方法
- 进行广泛的模型风洞实验,优化小模型的超参数和小批量缩放。
- 提出 Warmup-Stable-Decay (WSD) 学习率调度器,以实现持续训练和领域适应。
- 在 WSD 下分析训练动态,以在无需从头再训练的情况下高效研究数据-模型扩展。
- 评估 MiniCPM 变体(MiniCPM-DPO、MiniCPM-MoE、MiniCPM-128K)在既定 SLM 基准上的表现。
- 公开分享 MiniCPM 模型和配置。
实验结果
研究问题
- RQ1小型语言模型(1.2B 和 2.4B 非嵌入)是否能在可扩展训练策略下实现具有竞争力的表现?
- RQ2在 WSD 学习率调度器下,模型和数据扩展如何相互作用,与传统调度相比?
- RQ3在持续训练下,MiniCPM 的有效数据对模型比率是多少以达到最佳性能?
- RQ4MiniCPM 变体(DPO、MoE、128K)是否在标准基准上超过现有的 7B–13B 模型?
主要发现
- MiniCPM-1.2B 与 MiniCPM-2.4B 在某些评估中达到具有竞争力的性能,超过 Mistral-7B 与 LLama-13B。
- DPO 变体在 MTBench 上超过 zephyr-7B。
- 2.4B MiniCPM-128K 模型在部分任务中与 Yarn-Mistral-7B-128K 和 ChatGLM3-6B-128K 相匹配或超越。
- MiniCPM-MoE(激活参数 4B)与 Llama2-34B 实力相当。
- WSD LRS 使数据-模型扩展分析更高效,并揭示的数据对模型比率高于 Chinchilla Optimal。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。