# Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory

- **ID:** 549
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2504.19413
- **Authors:** Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, Deshraj Yadav
- **Venue:** arXiv / Mem0
- **Published:** 2025
- **Tags:** mem0, agent-memory, locomo, graph-memory, rag, neo4j, latency
- **Topics:** agent memory, long-term memory, graph memory, conversational agents
- **Added:** 2026-10-01
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/549

## 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.

## Attributes

- **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.

## From the source (fetched 2026-10-03)

- **Published:** Apr 28, 2025 (arXiv)
- **arXiv categories:** cs.CL, cs.AI (arXiv)
- **Citations:** 722 (128 influential) (Semantic Scholar)
- **References:** 31 (Semantic Scholar)
- **Published in:** European Conference on Artificial Intelligence (Semantic Scholar)

## Abstract

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.

## 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

- [Decentralized Multi-Agent Systems with Shared Context](https://papers.projxon.ai/entries/493) (paper 2026, #493)
- [Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity](https://papers.projxon.ai/entries/1072) (paper 2026, #1072)

## Similar entries

- [Zero-Mem: Zero-Token Memory Operations for LLM Agents](https://papers.projxon.ai/entries/456) (paper, #456)
- [Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability](https://papers.projxon.ai/entries/448) (paper, #448)
- [Metis: Memory Foundation Model](https://papers.projxon.ai/entries/466) (paper, #466)
- [Agent Memory Repo (Cognition) — open spec for persistent agent memory](https://papers.projxon.ai/entries/1269) (code, #1269)
- [Continual Graph Memory for Mathematical Research Agents](https://papers.projxon.ai/entries/1264) (paper, #1264)
- [HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models](https://papers.projxon.ai/entries/665) (paper, #665)
