DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression
DeepSeek-AI, :, Anyi Xu, B. Li, Bangcai Lin, Bing Xue et al. · 2026 · 119 citationsRead the paper
All 100 authors
Bingcheng Xian, Bingzheng Xu, Bochao Wu, Bowei Zhang, Boyi Deng, C. C. Yu, Chao Jin, Chaofan Lin, Chen Dong, Chenbing Wang, Chenfan Feng, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chengyuan Zhang, Chenhao Xu, Chenqi Zhao, Chenze Shao, Chuhao Wang, Chuqi Zhang, Damai Dai, Dejian Yang, Deli Chen, Di Huang, Di Wu, D. Li, Erhang Li, Eric Fu, F. Zhou, Fangwei Zhou, Fangyun Lin, Fangzhou Yuan, Feiyu Xia, Fucong Dai, Hao Guangbo, Guanglin Li, Guanting Chen, Guoai Cao, Guofan Fan, Guolai Meng, Guowei Li, Haichuan Zhang, Haiyang Ma, Haiyang Shen, Han Li, Han Yu, Han Zhang, Hangyuan Deng, Hanwei Xu, Hanxiang Xu, Hanxun Zhong, Hao Guo, Hao Jiang, Hao Li, Hao Qin, Haodong Wen, Haofen Liang, Haofeng Huang, Haohua Liu, Haoling Zhang, Haoming Luo, Haoran Yang, Haotian Xu, Haotian Yuan, Haoting Huang, Haowen Luo, Haoyang Cai, Chen, Haoyu, Haozhe Ji, Hengran Zhang, Hengrui Wang, Hengxu Wu, Honghui Ding, Hongxuan Tang, Huadong Wang, Huanqi Cao, Huazuo Gao, Hui Qu, Hui Zeng, J. Yang, J. H. Jin, J. Z. Zhang, J. X. Zou, Jia Yu, Jiahui Zhou, Jiajun Chen, Jianda Huang, Jialin Zhao, Jiamin Tang, Jian Zhou, Jianan Tong, Jianwen Li, Jiaqi Zhu, Jiarui Wang
The widespread adoption of long-horizon agents has made model workloads increasingly input-heavy. Although prior work has substantially reduced the cost of long-context computation, prefill remains computationally expensive, and large KV caches continue to strain HBM and SSD capacity and data-transfer bandwidth. Together, these compute, storage, and bandwidth demands constitute the primary bottleneck to further lowering deployment costs. To address this challenge, we introduce DeepSeek-V4.1-Flash, a multimodal Mixture-of-Experts (MoE) model with 552B backbone parameters and support for contexts of up to one million tokens. With its Causal Encoder-Decoder (CED) architecture, the model activates 16B parameters per token during decode but only 8B parameters during prefill, substantially improving cost efficiency for agentic workloads. To push the limits of KV cache compression, DeepSeek-V4.1-Flash combines cross-layer KV cache reuse in Compressed Sparse Attention 2 (CSA2) with FP4 KV caching. These designs reduce its global KV cache footprint (always in HBM) to 890 bytes per token, roughly 1/4 of the corresponding footprint of DeepSeek-V4-Flash. Further, through a dedicated deployment optimization known as SWA Bounded Replay, DeepSeek-V4.1-Flash reduces its persistent KV cache footprint (always on SSD or in host memory) to roughly 1/8 of that of DeepSeek-V4-Flash. Despite its much smaller KV cache footprint, the model delivers substantially better performance than the baseline. In addition, we streamline the DeepSeek-V4 architecture and introduce several efficient architectural extensions. We pretrain DeepSeek-V4.1-Flash on a multimodal corpus comprising 45T tokens and conduct comprehensive post-training, yielding strong performance across diverse text-based and multimodal agentic scenarios. Model checkpoints are available at https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash.
What the full text shows
Deployed in practice- Reduction of global KV cache footprint in HBM — 890 bytes per token (roughly 1/4 of DeepSeek-V4-Flash) (Using CSA2 and FP4 KV caching)
- Reduction of persistent KV cache footprint on SSD/host memory — roughly 1/8 of DeepSeek-V4-Flash (Using SWA Bounded Replay)
- Prefill parameter activation efficiency — 8B parameters per token during prefill vs 16B during decode (Causal Encoder-Decoder (CED) architecture)
- Coding agent performance on DeepSWE v1.1 — 74.2% pass rate (surpassing Opus-5 at 74.0% and GPT-5.6 Sol at 73.0%) (1M-token context window)
- Reasoning performance on Codeforces — 3471 rating (surpassing DeepSeek-V4-Pro at 3348) (Base model evaluation)
- Accuracy improvement via reasoning-effort scaling — Average Pass@1 increased from 67.1% to 76.3% when effort raised from 25 to 100 (Across eight reasoning-intensive benchmarks)
- Setup
- 552B backbone parameters, support for up to 1M tokens, pretrained on a 45T token multimodal corpus.
- How
- The model uses a multimodal MoE architecture with a Causal Encoder-Decoder (CED) and Compressed Sparse Attention 2 (CSA2) for KV cache reuse. It employs FP4 KV caching and SWA Bounded Replay for storage optimization, pretrained on 45T tokens.
- Limitations
- Potential selection errors in CSA2 and approximate state reconstruction in SWA Bounded Replay may cause degradation in untested boundary cases. · Measurable performance gap remains compared to leading closed-source alternatives on the most challenging tasks. · Robustness boundaries of new architectural changes are not yet fully characterized.
Summarized by Gemma 4 from the open-access full text · 8 Nov 2026. Read it