Research map / Architectures and efficiency / Attention and transformers
Memorize Step by Step: Efficient Long-Context Prefilling with Incremental Memory and Decremental Chunk
Zhiyuan Zeng, Qipeng Guo, Xiaoran Liu, Zhangyue Yin, Wentao Shu, MianQiu Huang, Bo Wang, Yunhua Zhou, Linlin Li, Qun Liu, Xipeng Qiu
Fudan University · Shanghai AI Laboratory · Huawei
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use incremental memory and decremental chunk instead of fixed-size memory | iterative compression with SnapKV (A800) · TTFT | speedup: up to approximately 1.45x | Improved |
| use incremental memory and decremental chunk instead of fixed-size memory | iterative compression (A800) · peak GPU memory | reduction: up to 23.3% (SnapKV), 16.2% (StreamingLLM) | Improved |
| use IM/IMDC instead of fixed-size memory | iterative compression · LongBench | average score: differences <=0.5 for IM vs FM | No clear effect |
| use IM/IMDC instead of fixed-size memory | LLama2-7B · Redpajama Github/Arxiv | perplexity | No clear effect |
| increase memory size to 8192 (ablation) | iterative compression (IM) · LongBench Single-Doc QA | score: 22.36 -> 39.16 | Improved |
| use SQRT incremental function instead of LINEAR (ablation) | IM with SnapKV · LongBench Single-Doc QA | score: 22.35 -> 23.35 | Improved |
| use SQUARE incremental function instead of SQRT (ablation) | IM with SnapKV · LongBench Single-Doc QA | score: 23.35 -> 21.90 | Hurt |
| use IM instead of FM | SnapKV, needle-in-a-haystack · pass-key retrieval | accuracy | Mixed |
| scale input to 1M tokens | iterative compression (FM/IM/IMDC) · Redpajama Github | loss: IM 2.08, IMDC 2.11 vs FM 2.00 (LLama2-7B) | No clear effect |
Open problems this paper states
- “Evaluated only on LLama2-7b, InternLM2-7b and Tiny-LLama, not larger models such as LLama2-70b.” → Tested on models of about 8B parameters or fewer. (an open problem in KV cache eviction and compression)
- “Tested only on sequences of 32k tokens, not longer ones such as one million tokens.” → Context length is validated only up to about 128K tokens. (an open problem in KV cache eviction and compression)
Open problems in KV cache eviction and compression
Does KV cache compression keep accuracy at tight budgets, larger scale and long context in real serving?
- Tested on models of about 8B parameters or fewer. · 26 papers state it
- Budgets and thresholds are set by hand or tuned per task or model. · 21 papers state it
- Implementations are unoptimized, so end-to-end speedups are unproven. · 18 papers state it
Closest papers by meaning
- Sequence Accumulation and Beyond: Infinite Context Length on Single GPU and Large Clusters (AAAI 2025 · similarity 0.88)
- FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (ICLR 2024 · similarity 0.86)
- Efficient Long Context Fine-tuning with Chunk Flow (ICML 2025 · similarity 0.86)
- Proteus: Incremental Memory Activation for Long-Context Sequence Modeling (NeurIPS 2026 · similarity 0.86)
- MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attention (NeurIPS 2024 · similarity 0.86)
- M+: Extending MemoryLLM with Scalable Long-Term Memory (ICML 2025 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.