Skip to main content
QUICK REVIEW

[Paper Review] DeepSeek LLM: Scaling Open-Source Language Models with Longtermism

DeepSeek-AI, :|arXiv (Cornell University)|Jan 5, 2024
Natural Language Processing TechniquesComputer Science82 citations
TL;DR

This paper presents DeepSeek LLM, open-source LLMs at 7B and 67B parameters, guided by scaling laws, with a 2-trillion-token pretraining corpus, SFT and DPO alignment, and evaluation showing DeepSeek LLM 67B surpasses LLaMA-2 70B and DeepSeek Chat surpasses GPT-3.5 in open-ended tasks.

ABSTRACT

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.

Motivation & Objective

  • Investigate scaling laws for open-source LLMs under 7B and 67B configurations.
  • Build DeepSeek LLM with a long-term scalability focus using a large, diverse pretraining dataset.
  • Evaluate base and chat models against public benchmarks and open-ended tasks.
  • Explore alignment via SFT and DPO to improve helpfulness and harmlessness while ensuring safety.
  • Analyze data quality impact on scaling and model/data allocation strategies.

Proposed method

  • Pre-train 7B and 67B models following an architecture similar to LLaMA, with a multi-step learning rate scheduler and specific hyperparameters.
  • Assemble a 2 trillion-token multilingual dataset with aggressive deduplication, filtering, and remixing.
  • Apply SFT with 1.2M instruction/data instances and use DPO to refine conversational alignment.
  • Develop DeepSeek Chat models via SFT followed by DPO to improve open-ended generation.
  • Employ scaling-law analyses to determine optimal model/data allocation using the IsoFLOP approach and a new M-based model scale metric (non-embedding FLOPs/token).
  • Evaluate using public benchmarks (MMLU, C-Eval, CMMLU, GSM8K, HumanEval, MBPP, BBH, etc.) and Chinese/English open-ended tasks; assess safety.

Experimental results

Research questions

  • RQ1What are the scaling laws for hyperparameters (batch size, learning rate) across compute budgets for open-source LLMs?
  • RQ2How should model and data scales be allocated under a compute budget to optimize generalization?
  • RQ3How does data quality affect optimal model/data scaling and predictive performance?
  • RQ4Can open-source 7B and 67B models surpass established baselines (e.g., LLaMA-2 70B) in code, math, and reasoning tasks?
  • RQ5Does alignment via SFT and DPO improve open-ended generation and safety across languages (Chinese/English)?

Key findings

  • DeepSeek LLM 67B surpasses LLaMA-2 70B on a range of benchmarks, especially in code, mathematics, and reasoning.
  • DeepSeek LLM 67B Chat outperforms GPT-3.5 in Chinese and English open-ended evaluations.
  • The dataset consists of 2 trillion tokens and is incrementally expanded.
  • SFT and DPO improve conversational performance and reduce repetition in open-ended generation.
  • Alignment shows DeepSeek Chat achieves harmless responses in practice.
  • Hyperparameter scaling laws for batch size and learning rate were modeled as functions of compute budget.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.