arXiv:2606.03463cs.AIcs.CL2026-06被引 1

用确定性方法替代大模型生成,实现零成本记忆管理。

DMF: A Deterministic Memory Framework for Conversational AI Agents

论文配图:DMF: A Deterministic Memory Framework for Conversational AI Agents
图 1 · 摘自论文原文
  • 基于经典NLP与数学评分构建确定性记忆框架
  • 相比现有方法节省5到242倍的令牌消耗
  • 适合追求低成本、可复现对话系统的开发者

对话式AI代理需要在长对话中保持可扩展且语义连贯的记忆系统。现有方法主要依赖大语言模型(LLM)在写入时进行摘要,导致非确定性、令牌成本上升以及裁剪决策不透明。我们提出确定性记忆框架(DMF),一种以CPU为主的设计,将生成式记忆压缩替换为完全确定性的流水线,基于经典自然语言处理分析、向量几何和数学评分。每个对话交互被赋予一个生存得分Ω,由确定性内容信号、对话线索和结构化溯源通过逻辑投影组合而成。一个交互次数衰减定律Ω_eff(Δn)控制相关性随新对话轮次变化,其中Δn表示较新交互的数量而非时间,确保完全确定性。我们给出了DMF的数学形式、结构化召回流程、裁剪决策机制及评估协议。在专设基准上使用LoCoMo和LongMemEval数据集进行实验,对比Mem0这一流行的智能体记忆层。DMF在准确率相当的情况下,内存准备阶段零令牌开销,整个对话中令牌消耗减少5至242倍。结果表明,可在记忆管理中完全消除LLM调用,将令牌成本降至接近零,并实现对话式AI代理的确定性记忆系统。

原文摘要 · Abstract (English)

Conversational AI agents require memory systems that are both scalable and semantically coherent across long interaction horizons. Existing approaches rely predominantly on large language model (LLM)-based summarisation at write time, which introduces non-determinism, escalating token costs, and opacity in pruning decisions. We present the Deterministic Memory Framework (DMF), a CPU-first approach that replaces generative memory compression with a fully deterministic pipeline grounded in classical NLP analysis, vector geometry, and mathematical scoring. DMF assigns each conversational interaction a Survival Score $Ω$ computed from deterministic content signals, conversational cues, and structured provenance, combined through a logistic projection. An interaction-count decay law, denoted as $Ω_{\mathrm{eff}}(Δn)$, governs how relevance evolves as new turns arrive, where $Δn$ is the number of newer interactions rather than wall-clock time, preserving full determinism. We present the mathematical formulation of DMF, its structured recall pipeline, the pruning decision procedure, and the evaluation protocol. Experiments are conducted on a purpose-built benchmark using the LoCoMo and LongMemEval datasets. We compare DMF against Mem0, a popular memory layer for AI agents. DMF achieves comparable accuracy while using zero tokens to prepare the memory context and 5x to 242x fewer tokens over the entire conversation. These results show that it is possible to eliminate LLM calls from the memory-management loop, reducing token costs to nearly zero and enabling deterministic memory systems for conversational AI agents.

记忆系统确定性对话智能零令牌

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。