On April 24, 2026, DeepSeek released V4, its fourth-generation large language model, representing a significant leap in efficient AI architecture design. The model introduces a hybrid attention mechanism combining Chunked Shared Attention (CSA) and Hash-based Chunked Attention (HCA), a novel Mixture-of-Experts configuration with 384 experts, and aggressive KV cache compression that enables 1 million token context windows on commodity hardware.
DeepSeek V4's architecture represents a carefully designed system that decouples computational expressiveness from memory bandwidth requirements. The following interactive diagrams illustrate the key architectural innovations.
Interactive Architecture Blueprint
This diagram reconstructs the full Prefill → Decoding pipeline from the DeepSeek-V4-Pro open-source config. Click on any layer or stage to see quantitative details. Toggle between Prefill and Decoding views.
Decoding · Memory-Bound
CSA/HCA Compression Ratios by Layer
DeepSeek V4 uses a heterogeneous compression strategy across its 61 layers. HCA layers (128x compression) use locality-sensitive hashing for coarse retrieval. CSA layers (4x compression) provide fine-grained attention. The final layer (ratio=0) uses full attention for maximum expressiveness at the output stage.
HCA (128x compression)
CSA (4x compression)
Full Attention (0)
Per-Layer Pipeline Steps
Step
Operation
FLOPs
Memory Access
Note
1
Projection (X_n → Q,K,V)
~80.7M
Read weights (~147MB)
Current token only
2
Hash Retrieval (TopK)
O(1)
Read KV Cache
Memory-intensive
3
Attention (Q_n · K_chunks)
~134.2M
Read KV Cache (top-1024)
Dot product + softmax
4
MoE FFN (active experts)
~924.8M
Read expert weights
Compute-intensive
5
Residual + Norm (mHC)
O(d)
Negligible
Constant time
6
Cache Write (compress KV)
O(d)
Write KV Cache
Append compressed
MLA vs MHA: The Dimension Transform
Subscriber Content
Continue reading with a subscription.
You are reading a free preview. The full analysis, unit economics tables, and investment-relevant conclusions are available to Research and Full Quant Intelligence subscribers.
This research was produced by InAI Capital Advisor as part of our ongoing coverage of the global AI investment landscape. The analysis represents proprietary research conducted through expert network consultations and primary technical evaluation.