SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model
本文提出了一种名为SmolLM2的小型语言模型,通过精心设计和多阶段训练,在多个基准测试中实现了优异的性能。
更新于 2025-02-06。作者:Loubna Ben Allal、Anton Lozhkov、Elie Bakouch、Gabriel Martín Blázquez、Guilherme Penedo、Lewis Tunstall、Andrés Marafioti、Hynek Kydlíček、Agustín Piqueres Lajarín、Vaibhav Srivastav、Joshua Lochner、Caleb Fahlgren、Xuan-Son Nguyen、Clémentine Fourrier、Ben Burtenshaw、Hugo Larcher、Haojun Zhao、Cyril Zakka、Mathieu Morlon、Colin Raffel、Leandro von Werra、Thomas Wolf。
中文摘要
尽管大型语言模型在人工智能的许多应用中推动了突破,但它们固有的庞大体积使得它们在计算上成本高昂,难以在资源受限的环境中部署。在本文中,我们记录了SmolLM2的开发过程,这是一个最先进的“小型”(17亿参数)语言模型(LM)。为了达到强大的性能,我们使用一个多阶段训练过程,将网络文本与专业的数学、代码和指令遵循数据混合,对SmolLM2进行超训练,使用了约110万亿个标记的数据。此外,我们在发现现有数据集问题性小或质量低的情况下,引入了新的专业数据集(FineMath、Stack-Edu和SmolTalk)。为了指导我们的设计决策,我们进行了小规模消融实验,以及手动细化过程,在每个阶段根据前一阶段的性能更新数据集混合率。最终,我们证明了SmolLM2优于其他最近的小型LM,包括Qwen2.5-1.5B和Llama3.2-1B。为了促进未来对LM开发和小型LM应用的研究,我们发布了SmolLM2以及我们在本项目过程中准备的所有数据集。
英文摘要
While large language models have facilitated breakthroughs in many applications of artificial intelligence, their inherent largeness makes them computationally expensive and challenging to deploy in resource-constrained settings. In this paper, we document the development of SmolLM2, a state-of-the-art "small" (1.7 billion parameter) language model (LM). To attain strong performance, we overtrain SmolLM2 on ~11 trillion tokens of data using a multi-stage training process that mixes web text with specialized math, code, and instruction-following data. We additionally introduce new specialized datasets (FineMath, Stack-Edu, and SmolTalk) at stages where we found existing datasets to be problematically small or low-quality. To inform our design decisions, we perform both small-scale ablations as well as a manual refinement process that updates the dataset mixing rates at each stage based on the performance at the previous stage. Ultimately, we demonstrate that SmolLM2 outperforms other recent small LMs including Qwen2.5-1.5B and Llama3.2-1B. To facilitate future research on LM development as well as applications of small LMs, we release both SmolLM2 as well as all of the datasets we prepared in the course of this project.
解读
一句话总结
本文提出了一种名为SmolLM2的小型语言模型,通过精心设计和多阶段训练,在多个基准测试中实现了优异的性能。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:大型语言模型虽然性能强大,但计算成本高,难以在资源受限的环境中部署。 • 现有方案不足:现有的小型语言模型在性能上往往无法与大型模型相比。 • 研究目标:开发一个高性能的小型语言模型,同时保持计算效率。
问题2:论文的核心创新点是什么?
• 技术创新:采用多阶段训练过程,结合多种数据源,包括网络文本、数学、代码和指令遵循数据。 • 方法改进:创建新的专用数据集(FineMath、Stack-Edu和SmolTalk),并在训练过程中进行数据混合率的动态调整。 • 优势:SmolLM2在多个基准测试中超越了其他小型语言模型,包括Qwen2.5-1.5B和Llama3.2-1B。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:在多个知识、推理和文本理解基准测试中评估SmolLM2的性能。 • 性能提升:SmolLM2在MMLU、HellaSwag、ARC、OpenBookQA、PIQA、CommonsenseQA等基准测试中均取得了显著的性能提升。 • 对比结果:与Qwen2.5-1.5B和Llama3.2-1B等小型语言模型相比,SmolLM2在多个基准测试中表现出更强的性能。
问题4:这个研究的实际应用价值是什么?
• 应用场景:SmolLM2可以应用于移动设备、边缘计算等资源受限的环境。 • 实施建议:发布SmolLM2及其训练数据集,以促进小型语言模型的研究和应用。 • 局限与展望:尽管SmolLM2在性能上取得了显著进展,但仍有改进空间,例如在数学和代码能力上进一步优化。
来源
机器可读索引:llms.txt