[Paper Review] MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategies
The paper introduces MiniCPM, a series of small language models (1.2B and 2.4B non-embedding) with scalable training strategies, achieving capabilities comparable to larger 7B–13B LLMs and exploring data-model scaling laws with a Warmup-Stable-Decay scheduler.
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 .
Motivation & Objective
- Demonstrate that small language models can achieve competitive performance with scalable training strategies.
- Investigate model and data scaling using wind tunnel experiments and a novel learning rate scheduler (WSD).
- Characterize training dynamics and derive data-model scaling laws favoring data scaling for SLMs.
- Introduce the MiniCPM family variants and assess their performance against established benchmarks.
Proposed method
- Conduct extensive model wind tunnel experiments to optimize hyper-parameters and batch-size scaling across small models.
- Propose Warmup-Stable-Decay (WSD) learning rate scheduler to enable continuous training and domain adaptation.
- Analyze training dynamics under WSD to study data-model scaling efficiently without retraining from scratch.
- Evaluate MiniCPM variants (MiniCPM-DPO, MiniCPM-MoE, MiniCPM-128K) against established SLM benchmarks.
- Share the MiniCPM models and configurations publicly.
Experimental results
Research questions
- RQ1Can small language models (1.2B and 2.4B non-embedding) achieve competitive performance with scalable training strategies?
- RQ2How do model and data scaling interact under a WSD learning rate scheduler compared to traditional schedules?
- RQ3What is the effective data-to-model ratio for optimal performance in MiniCPM under continuous training?
- RQ4Do MiniCPM variants (DPO, MoE, 128K) surpass existing 7B–13B models on standard benchmarks?
Key findings
- MiniCPM-1.2B and MiniCPM-2.4B achieve competitive performance, surpassing Mistral-7B and LLama-13B in certain evaluations.
- The DPO variant surpasses zephyr-7B on MTBench.
- The 2.4B MiniCPM-128K model matches or surpasses Yarn-Mistral-7B-128K and ChatGLM3-6B-128K in select tasks.
- MiniCPM-MoE (with 4B activated parameters) is on par with Llama2-34B.
- WSD LRS enables efficient data-model scaling analysis and reveals a higher data-to-model ratio than Chinchilla Optimal.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.