Mem0让AI对话记住长期信息,提升准确率并大幅降低计算开销。
Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory

- 用动态提取与整合机制构建可扩展的长效记忆架构。
- 在四个问答类型上均超越现有系统,较OpenAI提升26%评分。
- 相比全历史处理,延迟降91%,令牌成本省超90%,适合生产部署。
大语言模型虽能生成连贯回复,但固定上下文窗口限制了长期对话的一致性。我们提出Mem0,一种以记忆为中心的可扩展架构,通过动态提取、整合和检索对话中的关键信息来解决此问题。在此基础上,进一步设计基于图结构的记忆表示,以捕捉对话元素间的复杂关系。在LOCOMO基准上的全面评估显示,我们的方法在四类问题(单跳、时间、多跳、开放域)中持续优于六类基线系统:(i)已有的记忆增强系统,(ii)不同分块大小和k值的RAG,(iii)全历史处理方式,(iv)开源记忆方案,(v)专有模型系统,(vi)专用记忆管理平台。实证结果表明,Mem0相较OpenAI在LLM-as-a-Judge指标上实现26%相对提升,引入图记忆后整体得分比基础版本高约2%。此外,相比全历史处理方式,显著降低计算开销:p95延迟降低91%,令牌成本节省超90%,在先进推理能力与实际部署约束间取得良好平衡。研究凸显结构化持久记忆对长期对话连贯性的关键作用,为更可靠高效的LLM驱动智能体铺平道路。
原文摘要 · Abstract (English)
Large Language Models (LLMs) have demonstrated remarkable prowess in generating contextually coherent responses, yet their fixed context windows pose fundamental challenges for maintaining consistency over prolonged multi-session dialogues. We introduce Mem0, a scalable memory-centric architecture that addresses this issue by dynamically extracting, consolidating, and retrieving salient information from ongoing conversations. Building on this foundation, we further propose an enhanced variant that leverages graph-based memory representations to capture complex relational structures among conversational elements. Through comprehensive evaluations on LOCOMO benchmark, we systematically compare our approaches against six baseline categories: (i) established memory-augmented systems, (ii) retrieval-augmented generation (RAG) with varying chunk sizes and k-values, (iii) a full-context approach that processes the entire conversation history, (iv) an open-source memory solution, (v) a proprietary model system, and (vi) a dedicated memory management platform. Empirical results show that our methods consistently outperform all existing memory systems across four question categories: single-hop, temporal, multi-hop, and open-domain. Notably, Mem0 achieves 26% relative improvements in the LLM-as-a-Judge metric over OpenAI, while Mem0 with graph memory achieves around 2% higher overall score than the base configuration. Beyond accuracy gains, we also markedly reduce computational overhead compared to full-context method. In particular, Mem0 attains a 91% lower p95 latency and saves more than 90% token cost, offering a compelling balance between advanced reasoning capabilities and practical deployment constraints. Our findings highlight critical role of structured, persistent memory mechanisms for long-term conversational coherence, paving the way for more reliable and efficient LLM-driven AI agents.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。