arXiv:2611.31265v1 Announce Type: new Abstract: Large language models (LLMs) are increasingly deployed as persistent services that must reason over large volumes of external knowledge. Retrieval-augmented generation (RAG) grounds model responses in relevant documents, but the retrieved content must still be encoded and stored in the key-value (KV) cache. As this content accumulates, the cache grows linearly, increasing memory consumption and inference cost. Existing memory-compression methods address this problem either by retaining a subset of cached states or by learning context compressors that map documents to compact latent representations. Despite these advances, consolidating information under tight memory budgets while preserving its usefulness for future queries remains challenging. We investigate how the model's native KV states can be selectively consolidated into a fixed-size working memory without access to future queries. To this end, we introduce SD-Cache (State-guided and Dynamically updated Cache), a query-agnostic KV-memory consolidation framework that operates alongside a frozen generator LLM. SD-Cache learns to consolidate layer-wise KV states into fixed-size memory through selective anchor-based pooling and state-guided refinement, processing new contexts in a single forward pass without context-specific optimisation. Experiments on retrieval-augmented question answering and synthetic long-context benchmarks show that SD-Cache maintains competitive downstream performance under constrained memory budgets.
SD-Cache: Learnable Memory Consolidation with State-Guided Dynamic Caching
Researchers posted arXiv:2611.31265v1, introducing SD-Cache, a query-agnostic KV-memory consolidation framework that learns to compress layer-wise key-value states into a fixed-size working memory alongside a frozen generator LLM. SD-Cache uses selective anchor-based pooling and state-guided refinement to process new contexts in a single forward pass without context-specific optimization, addressing the linear cache growth that raises memory use and inference cost in retrieval-augmented generation. Experiments on retrieval-augmented question answering and synthetic long-context benchmarks show SD-Cache maintains competitive downstream performance under constrained memory budgets.
Consolidate retrieved-document KV states into a fixed-size memory with anchor-based pooling and state-guided refinement instead of letting the cache grow linearly; the source reports competitive QA accuracy under tight memory budgets.
more in playbook: Inference and self-hostingRun your AI side-project on zahid.host
EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.