Model Architecture2026-11-29Updated 2026-11-29

Liang Wenfeng's Newest Signed Paper: Pushing the Limits of KV Cache Compression

TL;DRA new DeepSeek paper signed by Liang Wenfeng, DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression (arXiv 2609.19969), introduces a Causal Encoder-Decoder (CED) architecture on a 552B-parameter MoE backbone that activates only 8B parameters at prefill and 16B at decoding, with support for million-token contexts. Combining CSA2 cross-layer KV reuse, FP4 caching and SWA Bounded Replay, it cuts the global KV cache in HBM to one quarter of its former size and the persistent KV cache to one eighth, while benchmark scores improve. On agentic suites such as Terminal-Bench 3.0, DeepSWE v1.1, CyberGym and Automation-Bench, V4.1-Flash leads most comparisons against Kimi-K3, GLM-5.3, OpusS and GPT5.6-Sol.

By Cameron Voss and West Mao

Adapted from a Chinese-language report dated November 1, 2026; figures reproduced from that publication. The paper, DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression, is on arXiv as 2609.19969.

DeepSeek-AI has posted a new paper, and the name on the author list is the one people look for: Wenfeng Liang appears among the authors of DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression and submitted it to arXiv. The subject is the cost that quietly dominates long agent sessions, the KV cache, and the paper's argument is that compression has a lot further to go than the current generation of models assumes.

Title block of the paper DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression, credited to DeepSeek-AI
The paper's title block, credited to DeepSeek-AI.

Innovations

  • It proposes the Causal Encoder-Decoder (CED) architecture: a 552B-parameter backbone MoE model that activates 8B parameters during prefill and 16B during decoding, supports million-token contexts, and materially cuts the compute overhead and inference cost of agentic tasks.
  • It combines CSA2 cross-layer KV reuse, FP4 caching and SWA Bounded Replay: the global KV cache in HBM drops to one quarter of its original size and the persistent KV cache is compressed to one eighth, and performance improves on top of that.

Method

The paper's research approach applies architecture-level and deployment-level optimizations together. The authors build a multimodal MoE model with a 552B-parameter backbone and use the Causal Encoder-Decoder (CED) architecture, which separates the activated parameter counts of the prefill and decoding stages so the model fits long-context agentic workloads. The model combines Compressed Sparse Attention 2 (CSA2) cross-layer KV cache reuse with FP4 KV caching to compress the global KV cache footprint in HBM; it also introduces a dedicated deployment optimization, SWA Bounded Replay, to reduce the persistent KV cache overhead on SSD or host memory. The researchers streamlined the original DeepSeek-V4 architecture and added efficient extension modules, completed pretraining on a 45T-token multimodal dataset, then ran the full post-training pipeline and carried out comprehensive evaluations in text and multimodal agentic scenarios. The results verify that the model maintains and improves its overall capabilities while compressing the KV cache by a wide margin.

Benchmark performance and KV cache compression of DeepSeek-V4.1-Flash

Panel (a): bar charts of Terminal-Bench 3.0, DeepSWE v1.1, CyberGym and Automation-Bench scores for DeepSeek-V4.1-Flash, Kimi-K3, GLM-5.3, OpusS and GPT5.6-Sol. Panel (b): global KV cache per token falling from 389,120 bytes on DeepSeek-V1 to 890 bytes on DeepSeek-V4.1-Flash.
Agentic benchmark scores (a) and global KV cache bytes per token across generations (b).

This figure contains two panels, (a) and (b), comparing DeepSeek-V4.1-Flash against Kimi-K3, GLM-5.3, OpusS and GPT5.6-Sol on multi-task benchmarks and on KV cache overhead. Panel (a) is a bar chart: across the four evaluations of Terminal-Bench 3.0, DeepSWE v1.1, CyberGym and Automation-Bench, DeepSeek-V4.1-Flash leads on most tasks, reflecting stronger agentic and automation capability. Panel (b) shows the bytes of global KV cache per token for each model generation, falling steeply and continuously from V1 to V4.1-Flash; V4.1-Flash needs only 890 bytes, a multiple-fold compression against its predecessor, which sharply reduces memory overhead while keeping task performance high.

DeepSeek V4.1-Flash is the kind of model that makes long agent sessions affordable. If you want to run DeepSeek coding models directly, see our DeepSeek Coding Plans: official keys, direct connection, while stock lasts.

How single-token decoding compute changes with context length across models

Line chart of single-token decode FLOPs in GFLOPs against context length from 4K to 1024K tokens, comparing DeepSeek-V1, V3.2, V4-Flash and V4.1-Flash
Single-token decoding compute versus context length, 4K to 1024K tokens.

In this figure the horizontal axis is context length in thousands of tokens, spanning 4K to 1024K, and the vertical axis is single-token decoding compute in GFLOPs, comparing the decoding overhead of four models: DeepSeek-V1, V3.2, V4-Flash and V4.1-Flash. On the older V1 and V3.2 models, decoding compute climbs quickly as the context grows: the longer the context, the more visibly the compute cost balloons, making long-context scenarios enormously expensive. V4-Flash pushes compute far down thanks to KV cache compression, yet it still rises noticeably at very long contexts. V4.1-Flash, by contrast, relies on CSA2 cross-layer KV reuse and FP4 cache optimization to keep single-token decoding FLOPs extremely low and flat across the whole range, so even at 1024K of context the increase remains slight. This is a direct illustration of how well the model controls decoding compute in ultra-long-context inference, and it materially eases the compute bottleneck of long-sequence reasoning.

The overall architecture of DeepSeek-V4.1-Flash

Architecture diagram of DeepSeek-V4.1-Flash: a Causal Encoder stacking SWA, CSA2 (Full) and CSA2 (Reuse) attention with MoE layers, feeding a Decoder built from CSA2 (Full), CSA2 (Reindex) and CSA2 (Reuse) blocks, with a hierarchical sparse indexer producing a candidate pool and a DSpark output
The Causal Encoder and Decoder modules with their CSA2 variants, MoE layers and the hierarchical sparse indexer.

The diagram shows a model built from two large modules, a Causal Encoder and a Decoder, accepting text, vision and Engram inputs. Text and vision enter the encoder through embedding layers, and inside the encoder several attention variants, SWA, CSA2 (Full) and CSA2 (Reuse), are stacked together with MoE expert layers, with the different sub-blocks repeating 2, 3 and 5 times respectively; encoded hidden states are then passed to the decoder through a Single-Pass mHC output. The decoder integrates CSA2 (Full), CSA2 (Reindex) and CSA2 (Reuse) attention modules paired with MoE layers, its sub-blocks cycling 3 to 4 times; a hierarchical sparse indexer generates the candidate pool, the CED mechanism completes cross-module information exchange, and the model finally outputs its DSpark result. The architecture mixes several CSA2 variants that divide the work of full computation, index re-ranking and KV reuse to control compute overhead: the encoder focuses on processing the input context while the decoder handles generation and inference, achieving efficient sparse attention computation over ultra-long contexts.

Experiments

Benchmark table comparing DeepSeek-V4-Flash, V4-Pro and V4.1-Flash across world knowledge, language and reasoning, code and math, long context and multimodal evaluations
Evaluation results for the DeepSeek-V4 model family.

This table collects comprehensive evaluation results for the DeepSeek-V4 model family, comparing parameter scale and multi-dimensional benchmark performance across three MoE models: V4-Flash, V4-Pro and V4.1-Flash. V4.1-Flash activates only 8B/16B parameters, far below V4-Pro's 49B activated parameters. The evaluation spans five major task categories: world knowledge, language reasoning, code and math, long context, and multimodal. V4-Pro has the highest overall ceiling, but at its much lower activation count V4.1-Flash comes close to, or surpasses, V4-Flash on most tasks. It posts gains on MMLU-Pro, HumanEval and GSM8K, outscores V4-Flash on the long-context LongBench-V2, and reports a complete set of multimodal metrics. The picture is a model that balances inference efficiency with capability, delivering strong overall performance at a far smaller activation cost.

Frequently asked

What is DeepSeek-V4.1-Flash?

A multimodal MoE model built on a 552B-parameter backbone with a Causal Encoder-Decoder (CED) architecture. It activates 8B parameters during prefill and 16B during decoding, supports million-token contexts, and targets long-context agentic workloads.

How much does it compress the KV cache?

The global KV cache held in HBM drops to one quarter of its original size and the persistent KV cache on SSD or host memory drops to one eighth. Measured per token, the global KV cache falls from 389,120 bytes on DeepSeek-V1 to 3,514 bytes on V4-Flash and 890 bytes on V4.1-Flash.

What is the CED architecture?

A causal encoder-decoder split that separates the activated parameter counts of the two stages: the encoder handles input context with 8B activated parameters, the decoder generates with 16B. A hierarchical sparse indexer builds the candidate pool and the CED mechanism carries information across the two modules.

What do CSA2, FP4 caching and SWA Bounded Replay do?

Compressed Sparse Attention 2 reuses KV across layers in several variants: full computation, index re-ranking and KV reuse. FP4 caching stores the KV cache in 4-bit precision. SWA Bounded Replay is a deployment-side optimization that cuts the persistent KV cache kept on SSD or host memory.

How does V4.1-Flash perform against other models?

Against Kimi-K3, GLM-5.3, OpusS and GPT5.6-Sol it leads most comparisons on Terminal-Bench 3.0, DeepSWE v1.1, CyberGym and Automation-Bench. Inside the DeepSeek-V4 family it matches or beats V4-Flash on most benchmarks while activating far fewer parameters than V4-Pro's 49B, with gains on MMLU-Pro, HumanEval, GSM8K and LongBench-V2.

Did Liang Wenfeng sign the paper?

The arXiv listing credits the work to DeepSeek-AI, and Wenfeng Liang appears in the author list and as the submitter of arXiv 2609.19969.