跳到正文
arXiv cs.AI· Yuanhong Chen, Yiping Ji, Cameron Gordon, Emily Hackett-Jones, Hemanth Saratchandran, Anton van den Hengel·· 1 小时前AI 评分36

SD-Cache:状态引导的动态 KV 缓存整合框架

SD-Cache: Learnable Memory Consolidation with State-Guided Dynamic Caching

AI 导读

论文提出 SD-Cache,一种查询无关的 KV 记忆整合框架,可将冻结生成式大语言模型的分层 KV 状态选择性地整合为固定大小工作记忆。该框架通过选择性锚点池化和状态引导精炼,在单次前向传播中处理新上下文,无需针对具体上下文的优化。在检索增强问答和合成长上下文基准上的实验显示,受限内存预算下 SD-Cache 仍保持有竞争力的下游性能。

正文 · 原文

View PDF HTML (experimental)

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.
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Machine Learning (cs.LG)
Cite as: arXiv:2611.31265 [cs.CL]
  (or arXiv:2611.31265v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2611.31265

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Yuanhong Chen [view email]
[v1] Wed, 21 Oct 2026 08:17:56 UTC (5,204 KB)

来源:arXiv cs.AI · arxiv.org