CLSep 22, 2025

EpiCache: Episodic KV Cache Management for Long Conversational Question Answering

arXiv:2509.17396v33 citationsh-index: 8Has Code
Originality Highly original
AI Analysis

This addresses the problem of efficient long conversational question answering for users in resource-constrained environments, representing a novel method for a known bottleneck.

The paper tackles the memory bottleneck in large language models caused by KV caching during long conversations by introducing EpiCache, a training-free framework that uses episodic compression and adaptive budget allocation, resulting in up to 40% accuracy improvement, near-full accuracy under 4-6x compression, and up to 2.4x/3.5x reductions in latency/memory.

Modern large language models (LLMs) extend context lengths to millions of tokens, enabling coherent, personalized responses grounded in long conversational histories. This ability, however, hinges on Key-Value (KV) caching, whose memory grows linearly with dialogue length and quickly becomes the bottleneck in resource-constrained environments. An active line of research for reducing memory bottleneck is KV cache compression, which seeks to limit cache size while preserving accuracy. Yet existing methods face two major limitations: (i) evicting the KV cache after full-context prefill causes unbounded peak memory, and (ii) query-dependent eviction narrows the cache to a single query, leading to failure cases in multi-turn conversations. 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 applies episode-specific KV cache eviction. We further design an adaptive layer-wise budget allocation strategy that measures each layer's sensitivity to eviction and distributes the memory budget across layers accordingly. Across three LongConvQA benchmarks, EpiCache improves accuracy by up to 40%, maintains near-full KV accuracy under 4-6x compression, and reduces latency/memory by up to 2.4x/3.5x, enabling efficient multi-turn interaction under strict resource limits. Our code is available at https://github.com/apple/ml-epicache.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes