scimeatlas

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

EMNLP 2024Architectures and efficiency › Attention and transformersapproach: KV cache eviction and compressionopen problems in this approach10 citations (OpenAlex)

Fudan University · Shanghai AI Laboratory · Huawei

Read the paperPlace an idea next to itCheck your own paper ↗

9measured effects
4improved
3no clear effect
1hurt
1mixed

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 changedWhereMeasuredEffect
use incremental memory and decremental chunk instead of fixed-size memoryiterative compression with SnapKV (A800) · TTFTspeedup: up to approximately 1.45xImproved
use incremental memory and decremental chunk instead of fixed-size memoryiterative compression (A800) · peak GPU memoryreduction: up to 23.3% (SnapKV), 16.2% (StreamingLLM)Improved
use IM/IMDC instead of fixed-size memoryiterative compression · LongBenchaverage score: differences <=0.5 for IM vs FMNo clear effect
use IM/IMDC instead of fixed-size memoryLLama2-7B · Redpajama Github/ArxivperplexityNo clear effect
increase memory size to 8192 (ablation)iterative compression (IM) · LongBench Single-Doc QAscore: 22.36 -> 39.16Improved
use SQRT incremental function instead of LINEAR (ablation)IM with SnapKV · LongBench Single-Doc QAscore: 22.35 -> 23.35Improved
use SQUARE incremental function instead of SQRT (ablation)IM with SnapKV · LongBench Single-Doc QAscore: 23.35 -> 21.90Hurt
use IM instead of FMSnapKV, needle-in-a-haystack · pass-key retrievalaccuracyMixed
scale input to 1M tokensiterative compression (FM/IM/IMDC) · Redpajama Githubloss: IM 2.08, IMDC 2.11 vs FM 2.00 (LLama2-7B)No clear effect

Open problems this paper states

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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy