DeepSeek-V4.1-Flash: Pushing KV Cache Compression to 890 Bytes per Token
arXiv 2026 (2609.19969)
How DeepSeek-V4.1-Flash cuts global KV cache to 890 bytes per token: an LLM inference systems dissection of CSA2, CED, FP4 KV caching and SWA Bounded Replay.
- Reframes a model release as an inference-systems problem: long-horizon agents make workloads input-heavy, and the KV cache — not the weights — is what caps how many concurrent long contexts a GPU fleet can hold
- Reproduces the paper's headline 890 bytes/token global KV cache from the published architecture config alone, and decomposes it: cross-layer reuse in CSA2 does 11.6x of the work, FP4 quantization the remaining 1.8x
- Separates capability scaling from memory-footprint scaling — V4.1-Flash matches or beats frontier models on agentic benchmarks while holding ~1/4 the runtime and ~1/8 the persistent KV cache of DeepSeek-V4-Flash
- Walks the full training story in plain terms: 45T multimodal tokens on a single fixed-batch schedule with sparse attention from scratch, a three-optimizer split (Muon / AdamW / Sinkhorn-balanced), and a post-training chapter where DeepSeek explicitly declines algorithmic novelty in favour of automated environment construction
- Digs into the four load-bearing mechanisms: CSA2's Full/Reindex/Reuse modes, the Hierarchical Sparse Indexer, the Causal Encoder-Decoder that halves prefill, and SWA Bounded Replay's storage-for-compute trade