[論文レビュー] Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
Mem0は会話から salient な情報を動的に抽出・統合・取得するメモリ中心のAIエージェントアーキテクチャを提案し、Mem0^gが関係推論のグラフベースメモリを追加。LOCOMOでベースラインより優れており、待機時間とトークンコストを低減。
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コンテキストウィンドウを超えた長期的な会話の一貫性を維持する課題に対処する。
- 進行中の対話から salient な情報を抽出・統合・取得するメモリアーキテクチャを開発する。
- LOCOMO上で多様な質問タイプに対してベースラインと比較し、効率を測定する。
- 密な自然言語メモリ(Mem0)と関係推論のためのグラフベースメモリ(Mem0^g)の両方を調査する。
提案手法
- 2つのメモリアーキテクチャ:自然言語で表現された密なMem0と、グラフベースのMem0^g。
- Mem0パイプライン:抽出フェーズで新しいメッセージペアと文脈から候補メモリを生成するLLMを使用;更新フェーズで既存メモリに対してADD/UPDATE/DELETE/NOOPをツール呼び出しで適用。
- Mem0^gパイプライン:エンティティをノード、関係をエッジとする有向ラベル付きグラフとしてメモリを格納;LLMがエンティティと関係三つ組を抽出し、衝突検出と更新解決を用いて時間的一貫性を維持。
- Mem0^gの取得は二つの戦略を用いる:エンティティ中心のサブグラフ取得と意味的三つ組マッチングによる、ターゲット型および広範な問合せを実現。
- 実装は推論にGPT-4o-mini、密な埋め込みを類似性検索に、グラフ格納にNeo4jを使用。
- 評価は LOCOMO を用い、F1、BLEU-1、LLM-as-a-Judge(J)を含む多面的指標セットと、トークン消費量・遅延といったデプロイメント指標を採用。
実験結果
リサーチクエスチョン
- RQ1Mem0は複数セッション対話にわたって長期的な一貫性を保つ点で既存のメモリシステムより優れているか?
- RQ2グラフベースのメモリ(Mem0^g)を追加することで密なメモリを超えた関係推論と時間的理解は改善されるか?
- RQ3LOCOMOにおけるAccuracyとデプロイ効率性について、メモリベースのアプローチは全体コンテキストとRAGベースのベースラインと比較してどうか?
- RQ4Mem0およびMem0^gの本番環境における遅延とトークンコストのトレードオフはどのようになるか?
主な発見
- Mem0はLOCOMOの単一ホップ、オープンドメイン、時間的な質問で最先端のF1、BLEU-1、LLM-as-a-Judgeスコアを達成し、Mem0^gは時間的推論性能が強力。
- Mem0は単一ホップ・マルチホップタスクで多くのベースラインを上回り、Mem0^gは主に時間的推論での改善を提供。
- オープンドメインタスクではZepがMem0およびMem0^gより若干上回るJスコアだが、Mem0^gはグラフ構造による堅牢なメモリ取得を示唆する接戦。
- Mem0およびMem0^gはフルコンテキスト処理(Mem0は95パーセンタイル遅延を91%低減)とトークンコストを90%以上削減し、実運用での展開を実現。
- Mem0^gは明示的な関係表現から強い時間的一貫性の利点を示し、時間的質問でMem0を上回る一方、グラフのオーバーヘッドが多段合成に必ずしも有利ではない場合もある。
- 全体の評価を通じて、Mem0およびMem0^gはLOCOMOの四つの質問タイプで一貫してメモリベースとRAGバリアントを上回る。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。