FlashMemory-DeepSeek-V4: Lightning Index Ultra-Long Context via Lookahead Sparse Attention
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Conventional LLMs keep the full KV cache loaded during decoding, causing a severe GPU memory bottleneck for ultra-long context serving. In this report, we propose Lookahead Sparse Attention (LSA), a novel inference paradigm powered by a Neural Memory Indexer built upon the DeepSeek-V4 architecture. Rather than passively attending to all historical tokens, LSA proactively predicts future context demands and preserves only the query-critical KV chunks in the GPU memory. Crucially, we instantiate this architecture via a backbone-free decoupled training strategy. By formulating the indexer as a standard dual-encoder architecture, we train it independently using standard retrieval training frameworks without ever loading the massive backbone model into GPU memory. We demonstrate that this ``less is more'' paradigm significantly maximizes serving efficiency while acting as an effective attention denoiser in tasks that rely on long-term global memory. Across primary long-context evaluation suites (e.g., LongBench-v2, LongMemEval, and RULER), textttFM-DS-V4 compresses the average physical KV cache footprint down to merely 13.5% of the full-context baseline, while consistently preserving or slightly elevating downstream accuracy (+0.6% absolute margin on average). At 1M context, per-decode-token compute drops to 0.30× of the baseline and GPU KV cache shrinks by 90% (3.73→0.37 GB), translating into 2.8× aggregate throughput and 2.7× concurrency gains in PD-disaggregated serving on 8×H20 GPUs.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 3 of its 5 references that are in the map. First posted on arXiv 8 Jun 2026.
Builds on
3 of 5 references.
References · 3
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Semantic-aware and Self-improving Program Reduction via Agentic Large Language Modelscited by 0
- 2026Variational-Ising-Attention:Tailored Attention Matters for Sciencecited by 0
- 2026OasisKV: Scaling In-Decode KV Cache Beyond HBM with Lookahead Sparse Prefetchingcited by 0
- 2026KVFetch: Temporal Prefetching for the Missing Half of KV Cache Compressioncited by 0
- 2026KVFetch: Temporal Prefetching for the Missing Half of KV Cache Compression23 Sep 2026
- 2026OasisKV: Scaling In-Decode KV Cache Beyond HBM with Lookahead Sparse Prefetching8 Aug 2026
- 2026Variational-Ising-Attention:Tailored Attention Matters for Science26 Jul 2026
- 2026Semantic-aware and Self-improving Program Reduction via Agentic Large Language Models4 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference
- 2026Self-Indexing Attention for Compression-Compatible Sparse Long-Context LLM Inference
- 2026SPLASH: Co-Designing Sparse Attention with High-Bandwidth Flash for Efficient Long-Context Inference
- 2026You Only Index Once: Cross-Layer Sparse Attention with Shared Routing
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Serving
- 2026Elastic Threshold Attention: Learned Contextual Sparsity for Long-Context Decoding
- 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inference
- 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression