Seedlabs
Source research

EpiCache: Episodic KV Cache Management for Long-Term Conversation on Resource-Constrained Environments

Minsoo Kim, Arnav Kundu, Kim, Han-Byul, Richa Dixit, Cho, Minsik · 2025 · 11 citationsRead the paper

Modern large language models (LLMs) extend context lengths to millions of tokens, enabling coherent, personalized responses grounded in long conversational history. However, the Key-Value (KV) cache grows linearly with the extended dialogue history, causing the model's memory footprint to quickly exceed device limits. While recent KV cache compression methods attempt to reduce memory usage, most apply cache eviction after processing the entire context, incurring unbounded peak memory usage. Additionally, query-dependent eviction narrows the cache semantics to a single query, leading to failure cases in multi-turn conversations. In this paper, we introduce EpiCache, a training-free KV cache management framework for long conversational question answering (LongConvQA) under fixed memory budgets. EpiCache bounds cache growth through block-wise prefill and preserves topic-relevant context via episodic KV compression, which clusters conversation history into coherent episodes and performs episode-specific KV cache eviction. Across three LongConvQA benchmarks (LongMemEval, Realtalk, and LoCoMo), EpiCache improves accuracy by up to 30%, achieves near full-cache accuracy under 4-6x compression, and reduces latency and peak memory by up to 2.4x and 3.7x, respectively.

What the full text shows

Working prototype
  • EpiCache improves accuracy on LongConvQA benchmarks compared to other KV cache compression methods. — up to 30% absolute score improvement (under constrained memory budgets (2-4K))
  • EpiCache reduces peak GPU memory usage and latency. — up to 3.7x reduction in peak memory and 2.4x reduction in latency (compared to post-prefill eviction methods)
  • EpiCache maintains near full-cache accuracy under significant compression. — 4-6x compression (across LongMemEval, Realtalk, and LoCoMo benchmarks)
  • EpiCache outperforms RAG-based baselines on cross-episode and temporal queries. — 50.8 / 55.7 vs 31.9 / 22.4 (RAG) (RealTalk benchmark, 8K cache budget, Qwen3-4B)
Setup
Evaluated on Qwen3 (4B, 8B), LLaMA3.1 (8B), LLaMA3.2 (3B), and Qwen2.5 (3B, 7B) using LongMemEval, Realtalk, and LoCoMo benchmarks.
How
The framework uses block-wise prefill to bound memory growth and clusters conversation history into semantically coherent episodes using K-Means. It constructs episode-specific KV caches using centroid-closest segments as patched prompts and retrieves the most relevant cache based on query embedding similarity at inference.

Summarized by Gemma 4 from the open-access full text · 8 Nov 2026. Read it