Key points
MAGMA (Multi-Graph based Agentic Memory Architecture) rethinks how AI agents store and retrieve long-term memory. Rather than a flat vector store, it maintains four interconnected graph layers over a unified multi-graph base:
- Semantic graph – conceptual associations between memories
- Temporal graph – strict chronological ordering of events
- Causal graph – explicit "A caused B" relationships
- Entity graph – people, places, and objects and their connections
- Query process: intent recognition classifies queries as WHY / WHEN / ENTITY to decide which graph(s) to prioritize.
- Data structure layer: the four graphs share a unified base, like transparent overlays on one city map — queryable individually or combined.
- Write/update process: dual-stream evolution inspired by Kahneman's fast/slow thinking.
- Fast path (synaptic ingestion): zero-latency recording of new events, immediate vector-store updates and timeline ordering.
- Slow path (structural consolidation): asynchronous background processing that builds causal links, entity associations, and semantic enrichment via LLM reasoning.
- MAGMA: 0.70 LLM-as-a-Judge
- Full Context: 0.481 (+45.5% improvement)
- Nemori: 0.59; A-MEM: 0.58
- Adversarial subset: 0.742, showing resistance to "semantic similarity traps"
- 61.2% accuracy vs. Full Context 55.0% and Nemori 56.2%
- Average query uses only 0.7k–4.2k tokens — over 95% token savings
- Query latency: 1.47s, ~40% faster than the next-best baseline
- Remove adaptive traversal: 0.637 (largest drop)
- Remove causal linking: 0.644
- Remove temporal skeleton: 0.647
- Remove entity linking: 0.666
- From retrieval to navigation: memory access becomes path-based traversal over explicit relations, not global similarity search.
- Explicit relations: causal, temporal, and entity relationships are pre-computed at write time rather than re-inferred at retrieval.
- Explainability: answers come with auditable reasoning paths ("I traced the timeline, found A caused B, which involves C").
- Causal/entity graph construction depends on base LLM reasoning; errors can be baked into the graph (though structured errors are easier to correct than unstructured noise).
- Maintaining four graphs plus dual-stream processing adds engineering complexity and resource overhead.
- Evaluation is limited to long-dialogue memory; multimodal, real-time, and tool-use agent scenarios remain untested.
Architecture: three decoupled layers
Dual-stream memory evolution
This separation guarantees immediate responsiveness while memory quality improves over time.
Adaptive traversal retrieval
1. Intent recognition – select graph emphasis by query type. 2. Anchor identification – combine semantic similarity, keyword match, and time range to find starting nodes. 3. Strategy-guided traversal – weight edge types by intent (causal edges for WHY, temporal for WHEN, entity for WHO), balanced with semantic relevance. 4. Narrative synthesis – reorganize retrieved fragments logically (chronological for WHEN, cause-before-effect for WHY).
Benchmark results
LoCoMo (avg. ~9,000-token dialogues; multi-hop, temporal, adversarial questions):
LongMemEval (>100k tokens, ~150-page book equivalent):
Ablation study (score drops from 0.700):
Deeper implications
Limitations and future work
Reference
Jiang, D., Li, Y., Li, G., & Li, B. (2026). MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agents. arXiv preprint arXiv:2601.03236.
Paper: https://arxiv.org/abs/2601.03236
Code: https://github.com/FredJiang0324/MAMGA