KV-LTM: Persistent Per-Session KV Caches as Long-Term Memory for Personal Assistants
Abstract
Personal assistants accumulate months of conversations, but today's long-term memory stacks put derivation or selection between a question and its evidence. In a system-level comparison on LongMemEval, two commercial assistants scored well below the same model reading the history offline [1], consistent with, but not isolating, content loss between write and read. We propose KV-LTM: a memory tier storing each session's raw text plus its KV cache under a fixed reader model, answering by restoring cached sessions and appending the question. KV-LTM is complementary to, not a replacement for, retrieval and indexing. Text is the memory of record; the cache is a recompute-free prefill accelerator, degrading gracefully to text. We specify the design: storage record, budget-derived retention, append-only read path, and bounded aggregation. We size it analytically: across pinned BF16 full-attention (GQA) and latent-cached MLA configurations, per-token state spans approximately 31K-328K bytes (the pinned KDA+MLA hybrid differs: approximately 8.1K bytes/token plus a fixed per-session recurrent term), giving approximately 0.34-3.6 TB per user-year at a declared 30K-token/day scenario, against approximately 49 MB of raw text; per-query cost is modelled as regime-conditional transfer, attention, decode, aggregation, and compute. We define an evaluation protocol needing no persistent-cache implementation for logical QA evaluation: per-session prefill emulates valid cache reuse under the same model/input-state contract and ideal arithmetic, with named arms, controlled baselines, and a preregistered reader-model gate; a separate minimal real-cache replay tests numerical equivalence and measures the cost axis, with outcomes not assumed. KV-LTM trades storage for avoided re-prefill compute and write-time fidelity, within a declared retention budget.
Create a lesson
Related papers
How Developer Personality Shapes the Use of AI Coding Assistants
Shared title terminology · Annemarie Wittig, Alina Mailach, Norbert Siegmund
AdMem: Expectation-Grounded Procedural Memory for Long-Horizon Task-Solving Agents
Shared title terminology · Runzhe Wang, Huilin Lu, Shengjie Liu et al.
Engram: Multi-Stage Memory for Agentic Tuning of Heterogeneous Models
Shared title terminology · Huanran Li, Nhat X. T. Le, Kevin De Angeli et al.
MatHarness: Towards Long-Horizon Open-ended AutoResearch for Computational Materials Science
Shared title terminology · Yanlin Fei, Lei Li, Shaolong Chen et al.
Specialized Large Language Models for Markovian Reasoning: Structural Cache Compression, Transition Pretraining, and Dual-Loop Transformers
Shared title terminology · Haibin Tong, Liangliang Xin, Yamei Zhu et al.
FinEvo: Recursive Self-Improvement for Long-Horizon Financial Modeling
Shared title terminology · Chengjun Pan, Shichun Liu, Zekai Zhou et al.