Memori:一种高效的、基于上下文的LLM代理持久内存层
Memori: A Persistent Memory Layer for Efficient, Context-Aware LLM Agents
AI总结:
Memori通过结构化表示替代大上下文窗口,实现高效、低成本的LLM代理部署,准确率达81.95%。
摘要:
随着大型语言模型(LLMs)发展为自主代理,API层的持久内存对于实现跨LLM和多会话的上下文感知行为至关重要。现有方法导致供应商锁定,并依赖将大量原始对话注入提示,导致高token成本和性能下降。我们引入Memori,一种LLM无关的持久内存层,将内存视为数据结构化问题。其高级增强管道将无结构对话转换为紧凑的语义三元组和对话摘要,实现精确检索和连贯推理。在LoCoMo基准测试中,Memori达到81.95%的准确率,比现有内存系统更高效,仅使用每个查询1,294个token(约5%的完整上下文)。这导致显著的成本降低,包括比竞争方法少67%的token,以及相比完整上下文方法节省超过20倍。这些结果表明,LLM代理中的有效内存依赖于结构化表示而非更大的上下文窗口,从而实现可扩展且成本效益高的部署。
英文摘要:
As large language models (LLMs) evolve into autonomous agents, persistent memory at the API layer is essential for enabling context-aware behavior across LLMs and multi-session interactions. Existing approaches force vendor lock-in and rely on injecting large volumes of raw conversation into prompts, leading to high token costs and degraded performance. We introduce Memori, an LLM-agnostic persistent memory layer that treats memory as a data structuring problem. Its Advanced Augmentation pipeline converts unstructured dialogue into compact semantic triples and conversation summaries, enabling precise retrieval and coherent reasoning. Evaluated on the LoCoMo benchmark, Memori achieves 81.95% accuracy, outperforming existing memory systems while using only 1,294 tokens per query (~5% of full context). This results in substantial cost reductions, including 67% fewer tokens than competing approaches and over 20x savings compared to full-context methods. These results show that effective memory in LLM agents depends on structured representations instead of larger context windows, enabling scalable and cost-efficient deployment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。