NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

DeepSeek-AI, Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chenchen Ling, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chengyu Hou, Chenhao Xu, Chenze Shao, Chong Ruan, Conner Sun, Damai Dai, Daya Guo, Dejian Yang, Deli Chen, Donghao Li, Dongjie Ji, Erhang Li, Fang Wei, Fangyun Lin, Fangzhou Yuan, Feiyu Xia, Fucong Dai, Guangbo Hao, Guanting Chen, Guoai Cao, Guolai Meng, Guowei Li, Han Yu, Han Zhang, Hanwei Xu, Hao Li, Haofen Liang, Haoling Zhang, Haoming Luo, Haoran Wei, Haotian Yuan, Haowei Zhang, Haowen Luo, Haoyu Chen, Haozhe Ji, Hengqing Zhang, Honghui Ding, Hongxuan Tang, Huanqi Cao, Huazuo Gao, Hui Qu, Hui Zeng, J Yang, Jq Zhu, Jia Luo, Jia Song, Jia Yu, Jialiang Huang, Jialu Cai, Jian Liang, Jiangting Zhou, Jiasheng Ye, Jiashi Li, Jiaxin Xu, Jiewen Hu, Jin Chen, Jin Yan, Jingli Zhou, Jingting Xiang, Jingyang Yuan, Jingyuan Cheng, Jingzi Zhou, Jinhua Zhu, Jiping Yu, Joseph Sun, Jun Ran, Junguang Jiang, Junjie Qiu, Junlong Li, Junmin Zheng, Junxiao Song, Kai Dong, Kaige Gao, Kang Guan, Kexing Zhou, Kezhao Huang, Kuai Yu, Lean Wang, Lecong Zhang, Lei Wang, Leyi Xia, Li Zhang, Liang Zhao, Lihua Guo, Lingxiao Luo, Linwang Ma, Linyan Zhu, Litong Wang, Liyu Cai, Longhao Chen, Ms Di, My Xu, Max Mei, Miaojun Wang, Mingchuan Zhang, Minghua Zhang, Minghui Tang, Mingming Li, Mingxu Zhou, Minmin Han, Ning Wang, Panpan Huang, Panpan Wang, Peixin Cong, Peiyi Wang, Peng Zhang, Qiancheng Wang, Qihao Zhu, Qingyang Li, Qinyu Chen, Qiushi Du, Qiwei Jiang, Rui Tian, Ruifan Xu, Ruijie Lu, Ruiling Xu, Ruiqi Ge, Ruisong Zhang, Ruizhe Pan, Runji Wang, Runqian Chen, Runqiu Yin, Runxin Xu, Ruomeng Shen, Ruoyu Zhang, Ruyi Chen, Sh Liu, Shanghao Lu, Shangmian Sun, Shangyan Zhou, Shanhuang Chen, Shaofei Cai, Shaoheng Nie, Shaoqing Wu, Shaoyuan Chen, Shengding Hu, Shiqiang Hu, Shirong Ma, Shiyu Wang, Shuiping Yu, Shunfeng Zhou, Shuting Pan, Shuying Yu, Songyang Zhou, Tao Ni, Tao Yun, Tian Jin, Tian Pei, Tian Ye, Tianle Lin, Tianran Ji, Tianyi Cui, Tianyuan Yue, Tingting Yu, Tun Wang, W Zhang, Wl Xiao, Wangding Zeng, Wei An, Weilin Zhao, Wen Liu, Wenfeng Liang, Wenjie Pang, Wenjing Luo, Wenjing Yao, Wenjun Gao, Wenkai Yang, Wenlve Huang, Wenqing Hou, Wenting Ma, Xi Gao, Xiang He, Xiangwen Wang, Xianzu Wang, Xiao Bi, Xiaodong Liu, Xiaohan Wang, Xiaokang Chen, Xiaokang Zhang, Xiaotao Nie, Xiaowen Sun, Xiaoxiang Wang, Xin Cheng, Xin Liu, Xin Xie, Xingkai Yu, Xingyou Li, Xinyu Yang, Xinyu Zhang, Xu Chen, Xuanyu Wang, Xuecheng Su, Xuheng Lin, Xuwei Fu, Yc Yan, Yq Wang, Yw Ma, Yanfeng Luo, Yang Zhang, Yanhong Xu, Yanru Ma, Yanwen Huang, Yao Li, Yao Xu, Yao Zhao, Yaofeng Sun, Yaohui Wang, Yi Qian, Yi Shao, Yi Yu, Yichao Zhang, Yifan Ding, Yifan Shi, Yijia Wu, Yiliang Xiong, Yiling Ma, Ying He, Ying Tang, Ying Zhou, Yingjia Luo, Yinmin Zhong, Yishi Piao, Yisong Wang, Yixiang Zhang, Yixiao Chen, Yixuan Tan, Yixuan Wei, Yiyang Ma, Yiyuan Liu, Yonglun Yang, Yongqiang Guo, Yongtong Wu, Yu Wu, YuKun Li, Yuan Cheng, Yuan Ou, Yuanfan Xu, Yuanhao Li, Yuduan Wang, Yuehan Yang, Yuer Xu, Yuhao Meng, Yuheng Zou, Yukun Zha, Yunfan Xiong, Yupeng Chen, Yuping Lin, Yuqian Cao, Yuqian Wang, Yushun Zhang, Yuting Yan, Yutong Lin, Yuxian Gu, Yuxiang Luo, Yuxiang You, Yuxuan Liu, Yuxuan Zhou, Yuyang Zhou, Yuzhen Huang, Zf Wu, Zehao Wang, Zehua Zhao, Zehui Ren, Zekai Zhang, Zhangli Sha, Zhe Fu, Zhe Ju, Zhean Xu, Zhenda Xie, Zhengyan Zhang, Zheren Gao, Zhewen Hao, Zhibin Gou, Zhicheng Ma, Zhigang Yan, Zhihong Shao, Zhixian Huang, Zhixuan Chen, Zhiyu Wu, Zhizhou Ren, Zhongyu Wu, Zhuoshu Li, Zhuping Zhang, Zian Xu, Zihao Wang, Zihua Qu, Zihui Gu, Zijia Zhu, Zilin Li, Zipeng Zhang, Ziwei Xie, Ziyi Gao, Ziyi Wan, Zizheng Pan, Zongqing YaoarXiv 2026

TL;DR

DeepSeek-V4 introduces a highly efficient preview series of Mixture-of-Experts (MoE) language models (Pro and Flash) capable of natively supporting a one-million-token context window. By deploying a novel hybrid attention mechanism (Compressed Sparse and Heavily Compressed Attention) alongside optimization upgrades like the Muon optimizer and Manifold-Constrained Hyper-Connections, DeepSeek-V4 drastically cuts down inference FLOPs and KV cache footprints while matching or exceeding the performance of frontier closed models on core reasoning and agentic tasks.

What Problem Does This Paper Address?

As large language models scale up test-time compute and tackle complex, long-horizon workflows—such as multi-document analysis and advanced agentic tasks—the quadratic computational complexity of vanilla attention becomes a massive bottleneck. Processing ultra-long sequences (up to 1 million tokens) typically incurs prohibitive costs in both compute (FLOPs) and memory (KV cache size). DeepSeek-V4 addresses this efficiency barrier, aiming to make million-token context windows routinely supportable and cost-effective without sacrificing the model's core reasoning and knowledge capabilities.

Methods

DeepSeek-V4 retains the core DeepSeekMoE framework and Multi-Token Prediction (MTP) strategy from its predecessor, V3, but introduces three major architectural and optimization innovations:

  1. Hybrid Attention Architecture: Combines Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA). CSA compresses the KV cache along the sequence dimension (by a factor of $m$) and applies sparse attention via a "Lightning Indexer." HCA applies an even more aggressive compression rate ($m' \gg m$) but maintains dense attention.
  2. Manifold-Constrained Hyper-Connections (mHC): An upgrade over conventional residual connections that projects the residual mapping matrix onto the manifold of doubly stochastic matrices (using the Sinkhorn-Knopp algorithm) to ensure numerical stability when stacking deep layers.
  3. Muon Optimizer: Replaces standard AdamW for the majority of modules, utilizing hybrid Newton-Schulz iterations to drive faster convergence and greater training stability.
Overall architecture of DeepSeek-V4 series

Additionally, the post-training pipeline leverages On-Policy Distillation (OPD) to consolidate specialized domain experts into a single unified model, and FP4 quantization-aware training (QAT) for routed expert weights and the indexer QK path.

Datasets

  • Pre-training: Trained on a massive, diverse corpus of over 32T tokens, with an emphasis on long-document data curation (scientific papers, technical reports), mathematics, programming, and multilingual data.
  • Evaluation Benchmarks: Evaluated across multiple dimensions using standard benchmarks:
  • World Knowledge: SimpleQA, Chinese-SimpleQA, MMLU-Pro, GPQA, HLE, AGIEval, C-Eval, CMMLU, FACTS Parametric, TriviaQA.
  • Language Understanding & Reasoning: BigBench Hard (BBH), DROP, Hellaswag, WinoGrande, CLUEWSC.
  • Coding & Math: LiveCodeBench-v6, Codeforces (internal benchmark), HMMT 2026 Feb, IMOAnswerBench, Apex, Apex Shortlist, HumanEval, GSM8K, MATH, MGSM, CMath.
  • Long Context: OpenAI MRCR, CorpusQA, LongBench-V2.
  • Agentic Capabilities: Terminal Bench 2.0, SWE-Verified, SWE-Pro, SWE Multilingual, BrowseComp, GDPval-AA, MCPAtlas Public, Toolathlon.

Key Insights and Ideas

  • Extreme KV Cache Reduction: By co-designing the sparse attention kernel and the KV cache layout, DeepSeek-V4 reduces the KV cache size to approximately 2% of a standard BF16 GQA8 baseline in a 1M-context setting.
  • Decoupling Routing from Backbone Updates: To mitigate training instability (loss spikes) common in trillion-parameter MoE models, the authors introduced Anticipatory Routing, which computes routing indices using historical network parameters ($\theta_{t-\Delta t}$) rather than synchronous updates.
  • Interleaved Thinking for Agents: Unlike previous versions that discarded reasoning traces upon receiving a new user message, DeepSeek-V4 preserves the complete reasoning history across multi-turn tool-calling scenarios, preventing the model from having to reconstruct its problem-solving state from scratch.
  • Lossless FP4-to-FP8 Dequantization: Because FP8 (E4M3) has two more exponent bits than FP4 (E2M1), fine-grained scale information from FP4 sub-blocks can be fully absorbed into the dynamic range of FP8, allowing the QAT pipeline to reuse the existing FP8 training framework seamlessly.
Illustration of the KV cache Layout for DeepSeek-V4

Key Results

  • Drastic Efficiency Gains: In a 1M-token context setting, DeepSeek-V4-Pro requires only 27% of single-token inference FLOPs and 10% of the KV cache compared to DeepSeek-V3.2. DeepSeek-V4-Flash pushes this further, requiring only 10% FLOPs and 7% KV cache size.
Inference FLOPs and KV cache size of DeepSeek-V4 series and DeepSeek-V3.2
  • Frontier-Level Performance: DeepSeek-V4-Pro-Max sets a new state-of-the-art for open models. On SimpleQA-Verified, it outperforms all open-source baselines by 20 absolute percentage points. On the Codeforces leaderboard, it achieves a rating of 3206, matching closed models like GPT-5.4-xHigh and Gemini-3.1-Pro.
  • Perfect Math Proofs: In a scaled hybrid formal-informal regime (Putnam-2025), DeepSeek-V4 achieves a proof-perfect score of 120/120.

Limitations and Future Work

  • Architectural Complexity: The bold push for extreme long-context efficiency resulted in a highly complex architecture with many preliminarily validated components and tricks. Future iterations aim to distill this into a more elegant design.
  • Theoretical Gaps: While Anticipatory Routing and SwiGLU Clamping successfully mitigated training instabilities, their underlying theoretical principles are not yet fully understood.
  • Knowledge Gaps: Despite outperforming open-source counterparts, DeepSeek-V4-Pro-Max still trails leading proprietary models (like Gemini-3.1-Pro) on certain broad educational knowledge evaluations.
  • Future Directions: The authors plan to explore model sparsity along new dimensions (e.g., sparse embedding modules), investigate lower-latency architectures, incorporate multimodal capabilities, and enhance multi-round agentic performance.

Summary updated

BibTeX
@misc{deepseekai2026deepseek,
  author = {DeepSeek-AI and Anyi Xu and Bangcai Lin and Bing Xue and Bingxuan Wang and Bingzheng Xu and Bochao Wu and Bowei Zhang and Chaofan Lin and Chen Dong and Chenchen Ling and Chengda Lu and Chenggang Zhao and Chengqi Deng and Chengyu Hou and Chenhao Xu and Chenze Shao and Chong Ruan and Conner Sun and Damai Dai and Daya Guo and Dejian Yang and Deli Chen and Donghao Li and Dongjie Ji and Erhang Li and Fang Wei and Fangyun Lin and Fangzhou Yuan and Feiyu Xia and Fucong Dai and Guangbo Hao and Guanting Chen and Guoai Cao and Guolai Meng and Guowei Li and Han Yu and Han Zhang and Hanwei Xu and Hao Li and Haofen Liang and Haoling Zhang and Haoming Luo and Haoran Wei and Haotian Yuan and Haowei Zhang and Haowen Luo and Haoyu Chen and Haozhe Ji and Hengqing Zhang and Honghui Ding and Hongxuan Tang and Huanqi Cao and Huazuo Gao and Hui Qu and Hui Zeng and J Yang and JQ Zhu and Jia Luo and Jia Song and Jia Yu and Jialiang Huang and Jialu Cai and Jian Liang and Jiangting Zhou and Jiasheng Ye and Jiashi Li and Jiaxin Xu and Jiewen Hu and Jieyu Yang and Jin Chen and Jin Yan and Jingchang Chen and Jingli Zhou and Jingting Xiang and Jingyang Yuan and Jingyuan Cheng and Jingzi Zhou and Jinhua Zhu and Jiping Yu and Joseph Sun and Jun Ran and Junguang Jiang and Junjie Qiu and Junlong Li and Junmin Zheng and Junxiao Song and Kai Dong and Kaige Gao and Kang Guan and Kexing Zhou and Kezhao Huang and Kuai Yu and Lean Wang and Lecong Zhang and Lei Wang and Leyi Xia and Li Zhang and Liang Zhao and Lihua Guo and Lingxiao Luo and Linwang Ma and Linyan Zhu and Litong Wang and Liyu Cai and Liyue Zhang and Longhao Chen and MS Di and MY Xu and Max Mei and Miaojun Wang and Mingchuan Zhang and Minghua Zhang and Minghui Tang and Mingming Li and Mingxu Zhou and Minmin Han and Ning Wang and Panpan Huang and Panpan Wang and Peixin Cong and Peiyi Wang and Peng Zhang and Qiancheng Wang and Qihao Zhu and Qingyang Li and Qinyu Chen and Qiushi Du and Qiwei Jiang and Rui Tian and Ruifan Xu and Ruijie Lu and Ruiling Xu and Ruiqi Ge and Ruisong Zhang and Ruizhe Pan and Runji Wang and Runqian Chen and Runqiu Yin and Runxin Xu and Ruomeng Shen and Ruoyu Zhang and Ruyi Chen and SH Liu and Shanghao Lu and Shangmian Sun and Shangyan Zhou and Shanhuang Chen and Shaofei Cai and Shaoheng Nie and Shaoqing Wu and Shaoyuan Chen and Shengding Hu and Shengyu Liu and Shiqiang Hu and Shirong Ma and Shiyu Wang and Shuiping Yu and Shunfeng Zhou and Shuting Pan and Shuying Yu and Songyang Zhou and Tao Ni and Tao Yun and Tian Jin and Tian Pei and Tian Ye and Tianle Lin and Tianran Ji and Tianyi Cui and Tianyuan Yue and Tingting Yu and Tun Wang and W Zhang and WL Xiao and Wangding Zeng and Wei An and Weilin Zhao and Wen Liu and Wenfeng Liang and Wenjie Pang and Wenjing Luo and Wenjing Yao and Wenjun Gao and Wenkai Yang and Wenlve Huang and Wenqing Hou and Wentao Zhang and Wenting Ma and Xi Gao and Xiang He and Xiangwen Wang and Xianzu Wang and Xiao Bi and Xiaodong Liu and Xiaohan Wang and Xiaokang Chen and Xiaokang Zhang and Xiaotao Nie and Xiaowen Sun and Xiaoxiang Wang and Xin Cheng and Xin Liu and Xin Xie and Xingchao Liu and Xingchen Liu and Xingkai Yu and Xingyou Li and Xinyu Yang and Xinyu Zhang and Xu Chen and Xuanyu Wang and Xuecheng Su and Xueyin Chen and Xuheng Lin and Xuwei Fu and YC Yan and YQ Wang and YW Ma and Yanfeng Luo and Yang Zhang and Yanhong Xu and Yanru Ma and Yanwen Huang and Yao Li and Yao Li and Yao Xu and Yao Zhao and Yaofeng Sun and Yaohui Wang and Yi Qian and Yi Shao and Yi Yu and Yichao Zhang and Yifan Ding and Yifan Shi and Yijia Wu and Yiliang Xiong and Yiling Ma and Ying He and Ying Tang and Ying Zhou and Yingjia Luo and Yinmin Zhong and Yishi Piao and Yisong Wang and Yixiang Zhang and Yixiao Chen and Yixuan Tan and Yixuan Wei and Yiyang Ma and Yiyuan Liu and Yonglun Yang and Yongqiang Guo and Yongtong Wu and Yu Wu and YuKun Li and Yuan Cheng and Yuan Ou and Yuanfan Xu and Yuanhao Li and Yuduan Wang and Yuehan Yang and Yuer Xu and Yuhan Wu and Yuhao Meng and Yuheng Zou and Yukun Zha and Yunfan Xiong and Yupeng Chen and Yuping Lin and Yuqian Cao and Yuqian Wang and Yushun Zhang and Yuting Yan and Yutong Lin and Yuxian Gu and Yuxiang Luo and Yuxiang You and Yuxuan Liu and Yuxuan Zhou and Yuyang Zhou and Yuzhen Huang and ZF Wu and Zehao Wang and Zehua Zhao and Zehui Ren and Zekai Zhang and Zhangli Sha and Zhe Fu and Zhe Ju and Zhean Xu and Zhenda Xie and Zhengyan Zhang and Zheren Gao and Zhewen Hao and Zhibin Gou and Zhicheng Ma and Zhigang Yan and Zhihong Shao and Zhixian Huang and Zhixuan Chen and Zhiyu Wu and Zhizhou Ren and Zhongyu Wu and Zhuoshu Li and Zhuping Zhang and Zian Xu and Zihao Wang and Zihua Qu and Zihui Gu and Zijia Zhu and Zilin Li and Zipeng Zhang and Ziwei Xie and Ziyi Gao and Ziyi Wan and Zizheng Pan and Zongqing Yao},
  title = {{DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence}},
  year = {2026},
  eprint = {2606.19348},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.19348},
}
Figure