Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
Summary
Mem0 incrementally extracts facts from message pairs (summary + last m=10 turns) then ADD/UPDATE/DELETE/NOOP against top-s=10 similar memories via GPT-4o-mini tool calls. Mem0^g stores entity–relation triplets in Neo4j. On LOCOMO (10 convos, ~600 turns / 26k tokens, ~200 Qs each), Mem0 J 66.88 overall vs OpenAI memory 52.90 / Zep 65.99 / full-context 72.90; single-hop J 67.13 and multi-hop 51.15 lead. Graph variant best on temporal (J 58.13) and competitive open-domain (75.71 vs Zep 76.60). p95 total latency 1.44s (91% below full-context 17.1s) at 1764 retrieved tokens vs 26k. Code https://github.com/mem0ai/mem0; research https://mem0.ai/research.
- Venue
- arXiv / Mem0
- Purpose
- Extract, consolidate, and retrieve compact memories so agents stay coherent across sessions without full context
- Scale
- LOCOMO 10 conversations × ~200 questions; Mem0 ~7k / Mem0^g ~14k stored tokens vs Zep >600k; GPT-4o-mini extractor; text-embedding-3-small; 10 J runs
- Time period
- 2025-04-28 (arXiv 2504.19413 v1). HF paper publishedAt 2025-04-28.
- Added
- Oct 1, 2026
- Research status
- done
From the source
- Published
- Apr 28, 2025
- arXiv categories
- cs.CL, cs.AI
- Citations
- 722 (128 influential)
- References
- 31
- Published in
- European Conference on Artificial Intelligence
Abstract (from arXiv)
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.
Tags
Topics
agent memory, long-term memory, graph memory, conversational agents
Research notes
- Primary: arxiv abs (cs.CL; also cs.AI). License not stated on abs/HTML at check. Authors at Mem0 (research@mem0.ai). Code https://github.com/mem0ai/mem0 (63,230 stars at check). HF paper page 71 upvotes; githubRepo linked; 3 unofficial linked datasets (survey PDFs / 12-row locomo results) not copied into hf_* fields and not substantial, so no datasets_local row. Evaluates public LOCOMO rather than releasing a new corpus. Discord posted abs plus https://mem0.ai/research. License field left blank per catalog convention.
Cited by, within this collection
Similar entries
- Paper Zero-Mem: Zero-Token Memory Operations for LLM Agents
- Paper Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability
- Paper Metis: Memory Foundation Model
- Code Agent Memory Repo (Cognition) — open spec for persistent agent memory
- Paper Continual Graph Memory for Mathematical Research Agents
- Paper HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models