Liyu Cai
Liyu Cai’s papers here examine how language models can use very long sequences without making each step of generation prohibitively expensive. A recurring question is how much of the preceding sequence attention needs to consult directly. A long proof may depend on a premise introduced far earlier, while a software agent may need to recover a detail from a previous document or execution log. Cai’s work addresses these demands through attention design and the management of the key-value cache, which stores information about earlier tokens for reuse during generation.
Cai’s most cited paper presents the Pro and Flash variants of DeepSeek-V4, both designed for million-token contexts. The architecture alternates between forms of attention that compress the sequence at different scales. Compressed Sparse Attention groups nearby tokens and uses a learned index to select compressed entries for each query. Heavily Compressed Attention condenses larger groups and lets a query consult every completed group available to it. In both cases, a short window keeps recent tokens directly accessible. The architecture is described in DeepSeek-V4.
The paper retains expert routing and multi-token prediction from DeepSeek-V3, adopts Manifold-Constrained Hyper-Connections in place of conventional residual connections, and uses the Muon optimizer. After pretraining, the authors train domain specialists and combine their capabilities through on-policy distillation. They evaluate retrieval, reasoning and problem solving alongside estimates of arithmetic and cache size. At a million tokens, the estimates for Pro put generation arithmetic at roughly a quarter of DeepSeek-V3.2’s and cache size at a tenth. Flash has lower estimates for both measures.
In the later 2026 paper, Cai and colleagues turn to the cost of processing and retaining the histories of long-running agents. The system accepts text and images and produces text. Its causal encoder-decoder architecture builds the decoder’s long-range attention state from the encoder’s final representations. During prefill, when the system first processes a prompt, most positions can therefore bypass the decoder blocks. This design makes the initial reading of a long prompt a separate target for computational savings. The authors describe it in DeepSeek-V4.1-Flash.
For long-range attention, Compressed Sparse Attention 2 allows layers to construct their own cache, use another layer’s cache and select entries afresh, or reuse both the cache and the selection. The shared global state uses the low-precision FP4 format. Attention to recent tokens keeps separate state at each layer. Sliding-Window Attention Bounded Replay can approximately restore that local state by reprocessing the most recent part of the sequence. These choices address the cost of keeping a history in accelerator memory, saving it between requests and transferring a saved prefix when an agent resumes.
Across Cai’s papers here, the central design question is what information should be retained, at what resolution and for how long. It connects the architecture directly to Efficient models & compression. The practical costs of storing attention state and executing expert computations bring the work into GPU & parallel computing. The evaluation of what a system can retrieve and use when working through an extended problem connects it to Reasoning.
Topics
Efficient models & compression · 2 papers
Works by year
2020s
Papers
- DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression
DeepSeek-AI presents DeepSeek-V4.1-Flash, a multimodal MoE model with 552B backbone… 101 references, cited by 3 papers here. - DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence
Manifold-Constrained Hyper-Connections replace plain residual connections. 109 references, cited by 118 papers here.
All works
- DeepSeek-V4: Towards Highly Efficient Million-Token Context IntelligencearXiv:2606.19348DeepSeek-AI, Anyi Xu, Bangcai Lin, et al.2026 · 122 citations
- DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache CompressionarXiv:2609.19969DeepSeek-AI, Anyi Xu, B. Li, et al.2026 · 3 citations
- DeepSeek-V4: Towards Highly Efficient Million-Token Context IntelligenceDeepSeek-AI, Anyi Xu, Bangcai Lin, et al.
- DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache CompressionDeepSeek-AI, Anyi Xu, B. Li, et al.
Cited by
This page in Markdown https://md.research.elamur.ai/free/en/authors/liyu-cai/