AIAny

DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model

A 236B-parameter Mixture-of-Experts LLM that activates only 21B parameters per token, cutting training cost 42.5% versus a dense 67B model and shrinking the KV cache 93.3% via Multi-head Latent Attention, with 128K context.

Introduction

By 2024, scaling a language model usually meant scaling its inference bill in lockstep. DeepSeek-V2 breaks that coupling: it carries 236B parameters but fires only 21B per token, so capacity and serving cost stop moving together. The more telling number is the KV cache — the part of attention that quietly dominates long-context memory — shrunk by 93.3%, which is what actually makes 128K context affordable.

Key Findings
  • Multi-head Latent Attention (MLA) compresses keys and values into a low-rank latent vector instead of caching them per head, the lever behind the 93.3% KV-cache cut and a 5.76x jump in peak generation throughput.
  • DeepSeekMoE uses many fine-grained experts plus shared experts, so the model routes sparsely without the load-balancing waste that plagues coarse MoE designs.
  • The combination is what drives the headline economics: 42.5% lower training cost than the dense DeepSeek 67B, while landing among the strongest open-weight models of its release window.
  • Trained on 8.1T tokens, then aligned with SFT and RL, so the gains aren't just a pretraining artifact.
Who Should Read This

Great fit if you build or operate LLM serving infrastructure and care about the memory-vs-context tradeoff, or if you're studying attention variants and MoE routing as a research direction — MLA is the contribution worth dissecting. Look elsewhere if you want a hands-on deployment guide; this is the architecture paper, and the practical recipe lives in DeepSeek's later model releases. Note also that the reported economics are relative to DeepSeek's own dense baseline, not a universal benchmark.

Information

  • Websitearxiv.org
  • OrganizationsDeepSeek-AI
  • AuthorsDeepSeek-AI, Aixin Liu, Bei Feng, Bin Wang, Bingxuan Wang, Bo Liu, Chenggang Zhao, Chengqi Dengr, Chong Ruan, Damai Dai
  • Published date2024/06/19

More Items

Transfers RL-induced policy shifts from a smaller 'weak' teacher to a stronger target by using the teacher's post-/pre-RL log-ratio as a dense implicit reward applied on the student's on-policy states. Enables reuse of RL supervision without running RL rollouts on the target, improving sample/time efficiency.

Introduces KronQ, a post-training quantization framework that incorporates gradient covariance via a Kronecker‑factored Hessian to guide input/output weight rotations and sensitivity-driven mixed-precision allocation. Demonstrates stable 2-bit weight-only quantization on LLaMA-3-70B (7.93 PPL).

Explores unsupervised visual pretraining on visually rich documents to improve language-model intelligence; shows visual-pretrained models outperform text-only counterparts on the same corpora. Key aspects: direct use of images/layouts (no OCR-only pipeline), scalable across backbones and benchmarks.