为长对话应用设计可演化记忆系统,提升信息留存与检索效率。
VikingMem: A Memory Base Management System for Stateful LLM-based Applications

- 通过事件与实体抽象实现动态记忆演化,支持复杂信息流处理。
- 在长期记忆基准上检索效果比基线最高提升30%,延迟低适合交互场景。
- 通用记忆架构适配教育、推荐、智能体等多种应用,迁移性强。
大语言模型虽革新了交互式应用,但其有限的上下文窗口给长期状态维护带来数据管理挑战。现有方法多依赖简单提取策略,导致记忆不完整,或使用单一用途提示,缺乏泛化性。为此,我们提出「记忆库」(Memory Base)新范式,包含三原则:从原始信息流中选择性提取高价值记忆;具备内在状态性和演化能力,通过逐步总结、修正和时间加权优先最近交互;支持跨应用场景的通用抽象,适用于教育、推荐、智能体记忆等。基于此,我们构建了基于VikingDB向量引擎的端到端系统VikingMem,通过事件中心记忆提取与动态更新的实体机制,结合话题级时间线与时间加权召回实现时序压缩,渐进生成高层摘要记忆,强化近期内容并淡化旧信息。在长期记忆基准上的大量实验表明,VikingMem在记忆检索有效性上比基线最高提升30%,同时保持交互应用所需的低延迟。
原文摘要 · Abstract (English)
Large Language Models have revolutionized interactive applications; however, their finite context windows pose a critical data management challenge for maintaining stateful, long-term interactions. Existing memory approaches often rely on simplistic extraction methods that lead to incomplete memories or use rigid, single-purpose memory extraction prompts tailored to a single use case, such as chatbots. Consequently, they lack generalizability and perform poorly across diverse downstream tasks. To bridge this gap, we introduce the Memory Base, a novel data management paradigm for managing the persistent state of long-term interactions. It is characterized by three core principles: selective extraction of high-value memories from raw information streams; inherent statefulness and evolution, where memory content is progressively summarized, corrected, and temporally weighted to prioritize recent interactions; and a generalizable abstraction paradigm designed for robust transferability across diverse applications, including education, recommendation, and agent memory. Building on this foundation, we present VikingMem, an end-to-end Memory Base Management System implemented on the VikingDB vector engine. VikingMem materializes this paradigm through interconnected event and entity abstractions. It features event-centric memory extraction to selectively handle complex information streams, while entities are dynamically updated by events to achieve stateful evolution. Using temporal compression via a topic-wise timeline and time-weighted recall, the system progressively produces high-level summary memories, prioritizes recent items, and compresses and fades older ones. Extensive evaluations on long-term memory benchmarks demonstrate that VikingMem outperformes baselines by up to 30% in memory retrieval effectiveness while maintaining the low latency essential for interactive applications.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。