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

Enables multi-head, depth-wise residual retrieval in Transformers by expanding a single residual stream into multiple context-aware streams using causal depthwise convolutions. Improves pretraining convergence and downstream benchmark scores with minimal overhead, yielding notable iso-loss compute speedups in large MoE models.

Measures when LLMs produce visible reasoning despite instructions not to, introducing three response-level metrics (Empty-Thinking Rate, Question–Pre-answer Relevance, Explicit Inference Rate) and evaluating 'no-thinking' behavior across tasks, models, and prompting interventions.

Proposes TerminalHorizon, an automated engine that synthesizes long-horizon task environments and agentic trajectories that preserve exploration, evidence accumulation, and iterative improvement; uses ~1.5K environments and ~2.8K trajectories to fine-tune Qwen3.5-27B and improves performance on multiple benchmarks.