[论文解读] DeepSeek LLM: Scaling Open-Source Language Models with Longtermism
本论文提出 DeepSeek LLM,是在7B 和 67B 参数的开源 LLMs,由扩展规律指导,使用 2-trillion-token 预训练语料,SFT 和 DPO 对齐,评估显示 DeepSeek LLM 67B 超越 LLaMA-2 70B,DeepSeek Chat 在开放式任务中超越 GPT-3.5。
The rapid development of open-source large language models (LLMs) has been truly remarkable. However, the scaling law described in previous literature presents varying conclusions, which casts a dark cloud over scaling LLMs. We delve into the study of scaling laws and present our distinctive findings that facilitate scaling of large scale models in two commonly used open-source configurations, 7B and 67B. Guided by the scaling laws, we introduce DeepSeek LLM, a project dedicated to advancing open-source language models with a long-term perspective. To support the pre-training phase, we have developed a dataset that currently consists of 2 trillion tokens and is continuously expanding. We further conduct supervised fine-tuning (SFT) and Direct Preference Optimization (DPO) on DeepSeek LLM Base models, resulting in the creation of DeepSeek Chat models. Our evaluation results demonstrate that DeepSeek LLM 67B surpasses LLaMA-2 70B on various benchmarks, particularly in the domains of code, mathematics, and reasoning. Furthermore, open-ended evaluations reveal that DeepSeek LLM 67B Chat exhibits superior performance compared to GPT-3.5.
研究动机与目标
- 在 7B 和 67B 配置下,研究开源 LLM 的缩放规律。
- 利用大规模、 多样化的预训练数据集,构建具有长期可扩展性关注的 DeepSeek LLM。
- 在公开基准和开放式任务中评估基础模型和聊天模型。
- 通过 SFT 和 DPO 探索对齐,以在确保安全性的同时提高有用性和无害性。
- 分析数据质量对扩展性以及模型/数据分配策略的影响。
提出的方法
- 按照类似 LLaMA 的架构预训练 7B 和 67B 模型,使用多阶段学习率调度器和特定超参数。
- 组建一个 2 trillion-token 的多语言数据集,进行主动去重、筛选和重新混合。
- 应用带有 1.2M 个指令/数据实例的 SFT,并使用 DPO 来改进对话对齐。
- 通过 SFT 再加 DPO 构建 DeepSeek Chat 模型,以改进开放式生成。
- 使用缩放定律分析,结合 IsoFLOP 方法和新的基于 M 的模型规模度量(非嵌入 FLOPs/ token)来确定最佳的模型/数据分配。
- 使用公开基准测试(MMLU、C-Eval、CMMLU、GSM8K、HumanEval、MBPP、BBH 等)以及中英文开放式任务进行评估;评估安全性。
实验结果
研究问题
- RQ1在不同计算预算下,开源 LLM 的超参数(批量大小、学习率)的缩放规律是什么?
- RQ2在计算预算下,如何分配模型和数据规模以优化泛化?
- RQ3数据质量如何影响最佳模型/数据缩放及预测性能?
- RQ4开源的 7B 和 67B 模型是否能在代码、数学和推理任务中超越基准(如 LLaMA-2 70B)?
- RQ5通过 SFT 和 DPO 的对齐是否在多语言(中文/英文)中提升开放式生成与安全性?
主要发现
- DeepSeek LLM 67B 在一系列基准测试中超过 LLaMA-2 70B,尤其在代码、数学和推理方面。
- DeepSeek LLM 67B Chat 在中文和英文开放式评估中优于 GPT-3.5。
- 该数据集由 2 trillion tokens 组成,并在增量扩展。
- SFT 与 DPO 提升对话性能并减少开放式生成中的重复。
- 对齐表明 DeepSeek Chat 在实践中实现了无害的回答。
- 批量大小和学习率的超参数缩放规律被建模为计算预算的函数。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。