DeepSeek-V4:迈向高效百万令牌上下文智能

DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence

深度求索 DeepSeek-AI · · 2026-04-26 · arXiv:2606.19348 ↗ · 被引 236

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

我们推出了 DeepSeek-V4 系列的预览版本,包括两个强大的混合专家(MoE)语言模型——参数为 1.6T(激活 49B)的 DeepSeek-V4-Pro 和参数为 284B(激活 13B)的 DeepSeek-V4-Flash,两者均支持百万令牌的上下文长度。DeepSeek-V4 系列在架构和优化方面引入了多项关键升级:(1)混合注意力架构,结合压缩稀疏注意力(CSA)和高度压缩注意力(HCA),提升长上下文效率;(2)流形约束超连接(mHC),增强传统残差连接;(3)Muon 优化器,实现更快的收敛和更高的训练稳定性。我们在超过 32T 多样化和高质量的令牌上预训练了这两个模型,随后进行了全面的后训练流程,以解锁并进一步增强它们的能力。DeepSeek-V4-Pro-Max 是 DeepSeek-V4-Pro 的最大推理努力模式,重新定义了开放模型的最高水平,在核心任务上超越了其前代模型。同时,DeepSeek-V4 系列在长上下文场景中表现出极高的效率。在百万令牌上下文设置下,与 DeepSeek-V3.2 相比,DeepSeek-V4-Pro 仅需 27%的单令牌推理 FLOPs 和 10%的 KV 缓存。这使得我们能够常规支持百万令牌上下文,从而使长期任务和进一步的测试时扩展更加可行。模型检查点可在 https://huggingface.co/collections/deepseek-ai/deepseek-v4 获取。

We present a preview version of DeepSeek-V4 series, including two strong Mixture-of-Experts (MoE) language models -- DeepSeek-V4-Pro with 1.6T parameters (49B activated) and DeepSeek-V4-Flash with 284B parameters (13B activated) -- both supporting a context length of one million tokens. DeepSeek-V4 series incorporate several key upgrades in architecture and optimization: (1) a hybrid attention architecture that combines Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA) to improve long-context efficiency; (2) Manifold-Constrained Hyper-Connections (mHC) that enhance conventional residual connections; (3) and the Muon optimizer for faster convergence and greater training stability. We pre-train both models on more than 32T diverse and high-quality tokens, followed by a comprehensive post-training pipeline that unlocks and further enhances their capabilities. DeepSeek-V4-Pro-Max, the maximum reasoning effort mode of DeepSeek-V4-Pro, redefines the state-of-the-art for open models, outperforming its predecessors in core tasks. Meanwhile, DeepSeek-V4 series are highly efficient in long-context scenarios. In the one-million-token context setting, DeepSeek-V4-Pro requires only 27% of single-token inference FLOPs and 10% of KV cache compared with DeepSeek-V3.2. This enables us to routinely support one-million-token contexts, thereby making long-horizon tasks and further test-time scaling more feasible. The model checkpoints are available at https://huggingface.co/collections/deepseek-ai/deepseek-v4.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 47)

阅读逐段中英对照全文 →