Share from 0:00
0:00
/

"SCOPE: Optimizing Key-Value Cache Compression in Long-context Generation"

Generated below podcast on this paper with Google's Illuminate.

Memory-efficient KV cache framework that knows when to compress and when to preserve.

SCOPE framework optimizes KV cache during prefill and decoding phases separately, achieving 35% compression while maintaining performance for long-context generation tasks.

https://arxiv.org/abs/2412.13649

πŸ€– Original Problem:

β†’ KV cache becomes a major bottleneck in LLMs during long-context generation, especially for tasks requiring both long inputs and outputs

β†’ Current methods either retain all decoding cache or discard essential prefill information

-----

πŸ”§ Solution in this Paper:

β†’ SCOPE separates KV cache optimization into prefill and decoding phases

β†’ During prefill, it preserves essential context information without excessive compression

β†’ For decoding, it introduces three strategies: Slide, Adaptive, and Discontinuous

β†’ Slide strategy selects essential heavy hitters through a sliding window mechanism

β†’ Adaptive strategy dynamically adjusts cache size based on generation progress

β†’ Discontinuous strategy optimizes memory transfer by reducing update frequency

-----

πŸ’‘ Key Insights:

β†’ Excessive compression during prefill phase significantly impairs reasoning capabilities

β†’ Heavy hitters deviate during decoding phase in long-text generation tasks

β†’ Separate optimization of prefill and decoding phases is crucial for performance

-----

πŸ“Š Results:

β†’ Achieves comparable performance to full KV cache with only 35% compression rate

β†’ Outperforms baselines on LongGenBench benchmark across multiple tasks

β†’ Successfully integrates with existing prefill-only compression methods

Discussion about this video

User's avatar

Ready for more?