DeepSeek-V4 Review: Why Million-Token Context Needs Efficient Attention, Not Just Larger Windows

· Source: NLP on Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Robotics & Autonomous Systems · Depth: Expert, medium

Summary

DeepSeek-V4 introduces two new models, V4-Pro (49B active parameters) and V4-Flash (13B active parameters), both supporting 1M-token context windows. The architecture prioritizes efficient long-horizon computation through a hybrid compressed attention stack, including Compressed Sparse Attention (CSA), Heavily Compressed Attention (HCA), and Sliding Window attention, interleaved across layers. It also features a scaled Mixture-of-Experts (MoE) with Manifold-Constrained Hyper-Connections (mHC), the Muon optimizer, and a post-training recipe using on-policy distillation of independently trained domain specialists. DeepSeek-V4-Pro achieves 27% of DeepSeek-V3.2's single-token inference FLOPs and 10% of its KV cache size at 1M tokens, while V4-Flash reduces this to 10% of FLOPs and 7% of KV cache. The model also preserves reasoning content across tool calls and introduces Quick Instruction tokens for auxiliary tasks.

Key takeaway

For AI Engineers building long-horizon agentic systems, DeepSeek-V4 demonstrates that efficient attention and specialized training are critical for usable 1M-token context. You should consider adopting hybrid sparse attention techniques and a multi-specialist distillation approach to reduce inference costs and improve long-term state maintenance, rather than solely focusing on increasing raw context window size. This approach can significantly lower FLOPs and KV cache requirements for practical deployments.

Key insights

Efficient attention mechanisms and specialized training are key to practical 1M-token context LLMs.

Principles

Method

DeepSeek-V4 uses hybrid compressed attention (CSA, HCA, Sliding Window) and on-policy distillation of domain specialists, merging them via full-vocabulary KL divergence for robust long-context inference.

In practice

Topics

Best for: AI Engineer, NLP Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, AI Architect

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by NLP on Medium.