Skip to main content
QUICK REVIEW

[논문 리뷰] Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory

Prateek Chhikara, Dev Khant|ArXiv.org|2025. 04. 28.
Topic ModelingComputer Science인용 수 3
한 줄 요약

Mem0는 대화에서 핵심 정보를 동적으로 추출, 통합 및 검색하는 메모리 중심 AI 에이전트 아키텍처를 도입하며, Mem0^g가 관계 추론을 위한 그래프 기반 메모리를 추가합니다; LOCOMO에서 Baseline보다 성능이 우수하고 지연 및 토큰 비용이 감소합니다.

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.

연구 동기 및 목표

  • 고정된 LLM 컨텍스트 윈도우를 넘어서는 장기 대화 일관성 유지의 과제를 다룬다.
  • 진행 중인 대화에서 핵심 정보를 추출, 통합 및 검색하는 메모리 아키텍처를 개발한다.
  • 다양한 질문 유형에 대해 메모리 아키텍처를 기본 Baseline과 비교하고 효율성을 측정한다.
  • Dense 자연어 메모리(Mem0)와 관계 추론을 위한 그래프 기반 메모리(Mem0^g) 모두를 조사한다.

제안 방법

  • Dense 자연어 메모리를 갖춘 Mem0과 그래프 기반 메모리 표현을 갖춘 Mem0^g의 두 가지 메모리 아키텍처를 제시한다.
  • Mem0 파이프라인: 추출 단계에서 새로운 메시지 쌍과 컨텍스트로부터 후보 메모리를 생성하기 위해 LLM을 사용하고, 업데이트 단계에서 기존 메모리에 대해 ADD, UPDATE, DELETE 또는 NOOP를 수행하는 도구 호출 메커니즘을 사용한다.
  • Mem0^g 파이프라인: 메모리를 엔티티를 노드로, 관계를 엣지로 하는 방향성 표식 그래프로 저장하며, LLM이 엔티티와 관계 트리플을 추출하고 충돌 탐지 및 업데이트 해상장을 통해 시간적 일관성을 유지한다.
  • Mem0^g의 메모리 검색은 엔티티 중심 서브그래프 검색과 시맨틱 트리플 매칭의 이중 전략을 사용해 타깃 쿼리와 광범위한 쿼리를 가능케 한다.
  • 구현은 추론용으로 GPT-4o-mini를 사용하고, 유사성 검색에는 Dense 임베딩을, 그래프 저장은 Neo4j를 활용한다.
  • 평가는 LOCOMO를 사용하며 F1, BLEU-1, LLM-asa-Judge(J) 등 다방면의 메트릭과 토큰 소비 및 지연과 같은 배포 메트릭을 포함한다.

실험 결과

연구 질문

  • RQ1Mem0가 다중 세션 대화에서 기존의 메모리 시스템보다 장기 기억의 일관성을 더 잘 유지할 수 있는가?
  • RQ2그래프 기반 메모리(Mem0^g)를 도입하면 Dense 메모리에 비해 관계 추론과 시간적 이해가 향상되는가?
  • RQ3LOCOMO에서 메모리 기반 접근 방식이 전체 컨텍스트 및 RAG Baselines와 정확도 및 배포 효율성 측면에서 어떻게 비교되는가?
  • RQ4생산 환경과 유사한 설정에서 Mem0 및 Mem0^g를 사용할 때 지연 및 토큰 비용의 trade-off는 무엇인가?

주요 결과

  • Mem0는 LOCOMO의 단일 홉, 오픈 도메인 및 시간적 질문에서 최첨단 F1, BLEU-1 및 LLM-asa-Judge 점수를 달성하며, Mem0^g는 강력한 시간적 추론 성능을 제공합니다.
  • Mem0는 단일 홉 및 다중 홉 작업에서 많은 Baseline을 능가하고, Mem0^g는 주로 시간적 추론에서 이점을 제공합니다.
  • 오픈 도메인 작업에서 Zep이 Mem0 및 Mem0^g보다 J에서 약간 앞서지만 Mem0^g도 근접한 경쟁자이며 그래프 구조를 통한 강력한 메모리 검색을 시사합니다.
  • Mem0 및 Mem0^g는 전체 컨텍스트 처리에 비해 실질적인 지연 감소를 제공하고( Mem0의 경우 p95 지연 91% 감소 ), 토큰 비용도 90% 이상 절감하여 실무 배치를 가능하게 합니다.
  • Mem0^g는 명시적 관계 표현으로부터 강한 시간적 일관성 이점을 보여주며, 시간적 질문에서 Mem0를 능가하는 반면 그래프 오버헤드가 다중 홉 합성에 항상 도움이 되지 않을 수 있습니다.
  • 전반적으로 Mem0 및 Mem0^g는 LOCOMO의 네 가지 질문 타입에서 메모리 기반 및 RAG 변형 대비 지속적으로 우수한 성능을 보였습니다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.