TL;DR
MIRIX-2.0 is a multi-agent memory system that achieves state-of-the-art accuracy on long-term memory benchmarks by separating raw data storage from graph-based indexing. By combining a "system of record" database with a provenance hypergraph and an offline consolidation process called "AutoDream," it provides LLM agents with memory that is simultaneously accurate, efficient, and traceable.
What Problem Does This Paper Address?
As LLM agents move from single-turn interactions to long-term partnerships, they need memory. However, current memory systems face a "trilemma":
- Accuracy: Systems that summarize or consolidate records often lose critical details (names, dates, counts) forever.
- Efficiency: Systems that keep every record verbatim become prohibitively slow and noisy to search as history grows.
- Practicality: Many high-performing systems require expensive fine-tuning or only work with specific open-source models.
Furthermore, agents have two distinct needs: user-centric memory (broadly connecting a user's history for personalization) and agent-centric memory (precisely distilling past experiences into reusable skills). MIRIX-2.0 aims to solve all these challenges within a single, unified architecture.
Methods
MIRIX-2.0 introduces a layered design that separates storage from indexing:
- Typed Evidence Plane ($P_u$): This is the "system of record." Six specialized memory agents (Episodic, Semantic, Procedural, Core, Resource, and Vault) write complete, verbatim records to a vector database. Because records are never rewritten during consolidation, source fidelity is guaranteed.
- Provenance Hypergraph ($G_u$): Instead of simple binary triples (subject-verb-object), MIRIX-2.0 uses n-ary frames to index records. This allows a single "fact" to link multiple entities, times, and literal values (like prices or dates). Crucially, every graph node cites the specific rows in the evidence plane it was extracted from.
- Graph-owned Retrieval: Retrieval is budget-constrained. A deterministic planner sets explicit limits on how many graph facts and source rows can be inspected. This ensures that answer latency stays bounded even as the agent's history grows to millions of tokens.
- AutoDream: This is an offline consolidation process that runs "while the agent sleeps."
- For semantic memory, it merges duplicate entity anchors (e.g., realizing "Suica card" and "transit card" are the same object) without touching the underlying raw records.
- For procedural memory, it distills task sessions into "skills" by judging outcomes and curating successful strategies.
Datasets
The authors evaluated MIRIX-2.0 across a diverse battery of benchmarks:
- Conversational Recall: LoCoMo and LongMemEval-S.
- Document QA: SHDocQA, MHDocQA, and DetectiveQA (from MemoryAgentBench).
- Personalized Generation: MemoryCD (Amazon product reviews).
- Interactive Agent Tasks: ALFWorld (household tasks), WebShop (online shopping), and MetaClaw-Bench (long-term software/OS tasks).
Key Insights and Ideas
- The "System of Record" Philosophy: By treating the vector database as immutable and the graph as a mere index, MIRIX-2.0 avoids the "lossy compression" trap. If the graph extraction fails or makes a mistake, the system can always fall back to the raw data.
- N-ary Frames over Triples: Standard knowledge graphs struggle with context (e.g., "Who did what, where, and for how much?"). N-ary frames keep these related attributes together, significantly improving multi-hop reasoning.
- Bounded Retrieval is Scalable Retrieval: By enforcing strict "budgets" on the number of facts retrieved, the system prevents the LLM from being overwhelmed by a "growing store to search."
- Traceability as a First-Class Citizen: Every answer provided by the agent can be traced back to the specific "cited rows" in its memory, making the system's reasoning transparent and auditable.
Key Results
MIRIX-2.0 outperformed strong baselines like HyperMem and Mem0 across almost all categories:
- Accuracy: Reached 91.4% on LoCoMo and 72.6% on LongMemEval-S, leading the strongest baseline by 14.3 points on the latter.
- Document QA: In single-hop and multi-hop document tasks, it gained 31.0 and 22.0 points over HyperMem respectively.
- Agent Performance: Achieved the highest mean success on ALFWorld (76.4%) and WebShop (37.4%). On MetaClaw-Bench, it reached 49.2% accuracy, surpassing MetaClaw’s own skill library.
- Efficiency: Despite the complexity of graph indexing, MIRIX-2.0 answered questions faster than HyperMem on all five timed benchmarks.
Limitations and Future Work
- Ingestion Overhead: Building the provenance hypergraph is computationally expensive. Ingestion is roughly 4 times slower than simple flat vector memory.
- Ablation Granularity: The current study ablates components in groups (e.g., "Graph + AutoDream"). Future work is needed to isolate the specific contributions of n-ary frames versus source citations.
- Human-in-the-loop: While AutoDream is automated, the authors suggest that in high-stakes settings, merged identities and learned skills should still be reviewed by humans to prevent "persistent mistakes."
For those interested in the implementation, the code is public and designed to work with both open and closed models without any fine-tuning required.
Summary updated