1 00:00:01,000 --> 00:00:07,733 [Hal Turing] Alrighty! Thanks for tuning in! Hello AI world! I am your host, Hal Turing, and my co-host is Dr. Ada Shannon. 2 00:00:07,733 --> 00:00:43,306 [Hal Turing] Today's paper is MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agents. First author Dongming Jiang, with Yi Li, Guanpeng Li and Bingzhe Li, from the University of Texas at Dallas and the University of Florida. It's on arXiv as 2601.03236, 2026. The question: if an agent stores its memory as four separate graphs, one for meaning, time, cause and entities, and retrieves by following the edge type the question calls for, does it answer long-horizon questions better and more cheaply than flat memory? 3 00:00:43,306 --> 00:00:54,452 [Dr. Ada Shannon] The paper's headline is a single number, and it's a good one for the authors. Part of today is asking what that number actually measures. But first the problem, because the design only makes sense against it. 4 00:00:54,452 --> 00:00:59,003 [Hal Turing] So why does an agent need this at all? Context windows keep getting bigger. 5 00:00:59,003 --> 00:01:18,322 [Dr. Ada Shannon] They do, but cost and latency grow with length, and models get worse at using what's in the middle of a long prompt. That's the lost-in-the-middle effect. Now picture an assistant you talk to for weeks. Stuffing every past session into the prompt is expensive, and the details decay anyway. You want memory that persists and that you can query. 6 00:01:18,322 --> 00:01:20,412 [Hal Turing] And the paper frames how the field got here? 7 00:01:20,412 --> 00:01:49,112 [Dr. Ada Shannon] As a progression. First, stretch the window: Longformer, by Beltagy and colleagues at the Allen Institute in 2020, and ALiBi, by Press and colleagues at the University of Washington in 2021. Then retrieval: the RAG paper by Patrick Lewis and colleagues at Facebook AI Research, 2020. The model fetches relevant passages from a corpus and conditions on them. Then what the paper calls Memory-Augmented Generation, or MAG. 8 00:01:49,112 --> 00:01:52,687 [Hal Turing] What's the difference between MAG and RAG? Retrieval is retrieval. 9 00:01:52,687 --> 00:02:20,505 [Dr. Ada Shannon] RAG reads from a static corpus someone else curated. In MAG the store is the agent's own history, and it changes. Each turn the agent answers from the query plus whatever it retrieves from memory. Then it writes the interaction back into memory. That write-back is the feedback loop. Concretely: in session one you mention a violin. Three sessions later you ask what instruments you play. The assistant has to have stored the violin and then find it. 10 00:02:20,505 --> 00:02:22,409 [Hal Turing] Who has tried to build that already? 11 00:02:22,409 --> 00:02:54,824 [Dr. Ada Shannon] MemGPT, by Charles Packer and colleagues at UC Berkeley, 2023, treats the context window like RAM and external storage like disk. MemoryOS follows that operating-system hierarchy. A-Mem, by Wujiang Xu and colleagues, 2025, builds Zettelkasten-style linked notes, but the links are mostly embedding similarity. Nemori segments conversations into episodes and has a predict-and-calibrate step. Think-in-Memory, GraphRAG and Zep add stored thoughts, entity graphs and a temporal knowledge graph. 12 00:02:54,824 --> 00:02:56,542 [Hal Turing] What's the gap the authors claim? 13 00:02:56,542 --> 00:03:18,276 [Dr. Ada Shannon] These systems organize memory by associative proximity, what resembles what, rather than mechanistic dependency, what led to what. Ask why Alice quit her job, and similarity returns text about jobs and Alice. The event that caused the decision may look nothing like the query. Ask what Bob did before the trip, and an embedding doesn't encode order at all. 14 00:03:18,276 --> 00:03:21,434 [Hal Turing] Three related systems come up later, so let's name them now. 15 00:03:21,434 --> 00:04:01,465 [Dr. Ada Shannon] The paper cites all three and evaluates none as a baseline. Zep, by Preston Rasmussen and colleagues, 2025, is a bi-temporal knowledge graph, the closest prior system to MAGMA's time and entity structure. Mem0, by Prateek Chhikara and colleagues, 2025, extracts facts, has a graph variant, and reports LoCoMo results with latency and token costs, so it's the natural cost comparison. And HippoRAG 2, from the paper From RAG to Memory by Bernal Jiménez Gutiérrez and colleagues, 2025, runs Personalized PageRank over a graph. That's the natural test of whether typed edges beat a generic graph walk. I'm only flagging them for now. 16 00:04:01,465 --> 00:04:04,252 [Hal Turing] Now the benchmarks, since the claim lives or dies on them. 17 00:04:04,252 --> 00:04:41,961 [Dr. Ada Shannon] LoCoMo, by Adyasha Maharana and colleagues, 2024, is very long multi-session conversations, about nine thousand tokens on average. Questions come in five types: single-hop, multi-hop, temporal, open-domain, and adversarial. Adversarial questions are unanswerable, and the right response is to say the information isn't there. LongMemEval, by Di Wu and colleagues, 2024, is the stress test: contexts above a hundred thousand tokens and six question types, including multi-session, temporal reasoning and knowledge updates. Both are scored as accuracy, higher is better. 18 00:04:41,961 --> 00:04:44,794 [Hal Turing] So the four graphs. Is this a neural architecture? 19 00:04:44,794 --> 00:05:10,614 [Dr. Ada Shannon] No. Nothing is trained with SGD. It's a data structure and retrieval layer around a frozen LLM. Each memory event is stored once, as a node, and linked four ways. Semantic edges connect conceptually similar events. Temporal edges order them. Causal edges connect an event to what it led to or explained. Entity edges connect events to the people, objects and places they mention. 20 00:05:10,614 --> 00:05:12,751 [Hal Turing] Why does the entity one need its own graph? 21 00:05:12,751 --> 00:05:28,076 [Dr. Ada Shannon] Object permanence. A person mentioned in session two and again in session nine should be one persistent thing, however far apart the sessions are. The relational-database version: several indexes over one table, instead of a single full-text index. 22 00:05:28,076 --> 00:05:29,237 [Hal Turing] What does it cost? 23 00:05:29,237 --> 00:05:46,280 [Dr. Ada Shannon] Write-time work. Temporal, causal and entity edges need LLM extraction, and causal edges are the shakiest, because the model infers them rather than reading them off the text. So when we get to the gains, keep asking whether they come from the graph or from the extraction and prompts around it. 24 00:05:46,280 --> 00:05:54,082 [Hal Turing] Let's walk one query through the system. Take the paper's example: 'What instruments does Melanie play?' What happens, step by step? 25 00:05:54,082 --> 00:06:27,658 [Dr. Ada Shannon] First, a lightweight classifier labels the question as WHY, WHEN or ENTITY. That label is the whole routing decision. This one is an entity question. Next, the system needs entry points into the graph. It runs three searches, a dense vector search, a keyword search and a time-window filter, and fuses the ranked lists with Reciprocal Rank Fusion. Each node scores the sum of one over sixty plus its rank in each list. Those top nodes are the anchors. Here they'd be a violin mention from an early session and a clarinet mention from a later one. 26 00:06:27,658 --> 00:06:29,841 [Hal Turing] And the graph part starts after the anchors? 27 00:06:29,841 --> 00:06:54,965 [Dr. Ada Shannon] Yes. A beam search expands outward from the anchors. Each neighbor is scored by the exponential of two terms: a weight for the edge type, given the intent, plus the cosine similarity between that neighbor and the query. Depth stops at five hops and the node budget is 200. For a WHY question, causal edges get weights somewhere between three and five. For an entity question the entity edges get the boost. 28 00:06:54,965 --> 00:06:57,055 [Hal Turing] The paper calls this a policy. Is it learned? 29 00:06:57,055 --> 00:07:29,702 [Dr. Ada Shannon] No. It's a hand-set weight table, and the ranges were tuned on LoCoMo. The router is a three-way classifier, and the traversal makes no LLM-driven decisions. What it buys you is pruning and steering. A WHEN question doesn't wander through causal links. What it doesn't buy is anything adaptive in the reinforcement-learning sense. Also, the similarity term uses the same embedding a plain vector baseline would use. So the graph adds a bias on top of ordinary retrieval, not a replacement for it. 30 00:07:29,702 --> 00:07:31,327 [Hal Turing] Then the output gets assembled. 31 00:07:31,327 --> 00:08:02,721 [Dr. Ada Shannon] The subgraph is linearized. WHEN questions sort by timestamp, WHY questions by causal order. Each node is written as a timestamp, its content and a reference ID. Low-salience nodes get collapsed into short codes to fit the token budget. The prompt tells the model to answer only from that context, and to say exactly 'Information not found' otherwise. For 'When did she hike?', the 'yesterday' in the text gets resolved against the session date, to 19 October 2023. 32 00:08:02,721 --> 00:08:04,671 [Hal Turing] Who builds the causal edges, and when? 33 00:08:04,671 --> 00:08:36,436 [Dr. Ada Shannon] A write path with two speeds. The fast path segments the event, links it to the previous node on the temporal chain, embeds and indexes it, and queues it. No LLM call blocks it. The slow path is a background worker that looks at a two-hop neighborhood and asks an LLM to infer causal and entity edges. Ingestion stays cheap and the reasoning moves off the critical path. The cost is that causal quality depends on how reliable that extraction is, which the authors list as their first limitation. 34 00:08:36,436 --> 00:08:38,479 [Hal Turing] Now the experiments. What's the setup? 35 00:08:38,479 --> 00:08:51,761 [Dr. Ada Shannon] Every system uses gpt-4o-mini for retrieval reasoning and answer generation. Baselines ran at default hyperparameters, while MAGMA's were tuned on LoCoMo. Full Context feeds the whole history, up to 128K tokens. 36 00:08:51,761 --> 00:08:52,783 [Hal Turing] And the grading? 37 00:08:52,783 --> 00:09:37,087 [Dr. Ada Shannon] The main metric is an LLM judge: gpt-4o-mini at temperature zero, scoring each answer against the gold answer from zero to one, with steps at 0.8, 0.6 and so on. So partial credit exists. The authors also report token-level F1 and BLEU-1, which measure word overlap. They argue overlap is a poor metric because 'not compatible' shares words with 'compatible' and gets rewarded. They back that with seven constructed cases in the appendix. Those show F1 is weak. They don't show the judge is calibrated. Keep that in mind for the adversarial questions, the unanswerable ones. They're 446 of the 1,986 LoCoMo questions, about 22 percent. 38 00:09:37,087 --> 00:09:38,944 [Hal Turing] So, results. What's the headline? 39 00:09:38,944 --> 00:10:02,629 [Dr. Ada Shannon] On LoCoMo under the judge, MAGMA scores 0.700. Nemori scores 0.590 and Full Context 0.481. The paper states the margin as relative percentages, 18.6 to 45.5. In points it's eleven over Nemori and about twenty-two over Full Context. And those are points of a partial-credit score, not eleven more correct answers per hundred. 40 00:10:02,629 --> 00:10:04,951 [Hal Turing] And LongMemEval, the 100K-token one? 41 00:10:04,951 --> 00:10:32,397 [Dr. Ada Shannon] This is the more convincing result. MAGMA gets 61.2 percent accuracy against 55.0 for reading the whole history. It reads at most about four thousand tokens, against roughly 101 thousand. That's about a twenty-fourth of the text. Full context still wins three question types: knowledge update, single-session user and single-session assistant. And that table only compares against Nemori and full context. 42 00:10:32,397 --> 00:10:33,743 [Hal Turing] What about speed and cost? 43 00:10:33,743 --> 00:10:57,381 [Dr. Ada Shannon] Latency is 1.47 seconds against 2.26 for A-MEM. That's about 35 percent lower, so the paper's 'about 40 percent faster' is a little generous. Tokens per query are essentially tied with Nemori, 3.37 thousand against 3.46. Build time is slower than Nemori's. And the cost of the background consolidation calls isn't reported. 44 00:10:57,381 --> 00:10:59,471 [Hal Turing] Do the ablations say the graphs matter? 45 00:10:59,471 --> 00:11:27,521 [Dr. Ada Shannon] They're the only evidence on that point. Remove the adaptive policy and the score drops from 0.700 to 0.637, the biggest hit. Remove causal links or the temporal backbone and it falls about five to six points. Remove entity links and it falls about three. Every single-graph version stays under 0.60. F1 ranks the components in much the same order, so the judge isn't arbitrary within one system. 46 00:11:27,521 --> 00:11:28,728 [Hal Turing] Is anything missing? 47 00:11:28,728 --> 00:11:46,050 [Dr. Ada Shannon] Yes, a control. They never keep the RRF anchors, the linearization and the prompt while stripping out all the graph edges. Without that, the paper can't separate graph traversal from a strong hybrid retriever. Each ablation is also a single run, with no variance reported. 48 00:11:46,050 --> 00:11:49,719 [Hal Turing] So the judge says MAGMA wins. I'd want to look at that more closely. 49 00:11:49,719 --> 00:11:52,970 [Dr. Ada Shannon] Hold that thought. The F1 table says something different. 50 00:11:52,970 --> 00:11:54,920 [Hal Turing] Okay, the F1 table. What does it say? 51 00:11:54,920 --> 00:12:23,481 [Dr. Ada Shannon] Table 9 drops the adversarial questions and scores by token overlap. There, Nemori leads MAGMA overall, 0.502 to 0.467 on F1. Nemori also leads on temporal. MemoryOS leads on multi-hop, 0.365 to 0.264. Under the judge, Nemori is also ahead on multi-hop. So 'consistently outperforms' holds for one metric's overall score, and that overall includes the unanswerable questions. 52 00:12:23,481 --> 00:12:27,475 [Hal Turing] So how much of the 0.700 is the judge, and how much is retrieval? 53 00:12:27,475 --> 00:12:55,478 [Dr. Ada Shannon] The paper can't decompose it, and no experiment tries. But it bounds it. This is my arithmetic from their tables, not a number they state. Drop the adversarial category and weight the other four by question count. MAGMA and Nemori both land near 0.69. Nearly the whole lead sits in the one question in four that is unanswerable. Nemori's reported overall doesn't quite reproduce from its own rows either, and neither does Full Context's. 54 00:12:55,478 --> 00:12:57,753 [Hal Turing] Is that a graph win, or a refusal win? 55 00:12:57,753 --> 00:13:27,568 [Dr. Ada Shannon] The source can't separate them, but the clues point toward refusal. The prompt tells the model to answer exactly 'Information not found'. The judge rubric requires an explicit lack-of-information statement for those items. The baselines ran at default settings, and the paper doesn't say they got the same instruction. And even the entity-only variant beats Nemori by a wide margin on adversarial. That points at the shared pipeline, the provenance scaffold and the 'only use the context' prompt, rather than any one graph. 56 00:13:27,568 --> 00:13:30,168 [Hal Turing] Still, a memory that says 'I don't know' is useful. 57 00:13:30,168 --> 00:13:34,859 [Dr. Ada Shannon] It is. That's a real product virtue. It just isn't evidence that four graphs matter. 58 00:13:34,859 --> 00:13:36,809 [Hal Turing] What about trusting the judge itself? 59 00:13:36,809 --> 00:14:11,175 [Dr. Ada Shannon] It's gpt-4o-mini grading answers that gpt-4o-mini produced in every system. Zheng and colleagues at Berkeley, in the 2023 MT-Bench and Chatbot Arena paper, documented self-preference and verbosity biases in LLM judges. There's no human audit here, no second judge family, no agreement statistic. Appendix F's seven cases are constructed and show only 0.0 or 1.0 verdicts. They show F1 is a poor metric. They don't show the judge is calibrated on real outputs. How often partial credit fires is unreported, so I won't guess. 60 00:14:11,175 --> 00:14:13,265 [Hal Turing] And the verbosity point cuts both ways? 61 00:14:13,265 --> 00:14:23,203 [Dr. Ada Shannon] Yes. F1 punishes long answers and the judge may not, so verbosity differences could push the two metrics in opposite directions. Nothing in the paper measures it. 62 00:14:23,203 --> 00:14:28,358 [Hal Turing] Back to the ablations. Pulling out the policy cost the most. Does that isolate traversal? 63 00:14:28,358 --> 00:14:55,618 [Dr. Ada Shannon] Not really. The paper doesn't say what the 'without policy' variant substitutes, and it may also drop the intent-specific prompt instructions, so it could be partly measuring prompt engineering. Combined with the missing no-graph control, we can't tell whether the gain comes from the graph or from the hybrid anchor stage the baselines lack. What we do see is that every single-graph variant scores between 0.53 and 0.59, and the gain only appears with everything combined. 64 00:14:55,618 --> 00:14:56,965 [Hal Turing] Anything else you'd flag? 65 00:14:56,965 --> 00:15:47,352 [Dr. Ada Shannon] A few things. The hyperparameters were tuned on LoCoMo, which is also the test set, while baselines ran at defaults. There's no variance anywhere, so gaps like 0.646 versus 0.644 aren't wins or ties. Table 2 omits A-MEM and MemoryOS, and the LongMemEval judge isn't named. The LongMemEval average also looks off. Using the standard question counts, which I'd verify, MAGMA's per-type scores average nearer 59.8 than 61.2. That would shrink the lead over Nemori. Worth checking. Finally, consolidation cost is missing from the efficiency table, the 32-second MemoryOS latency looks like a configuration artifact, and the causal edge definition conditions on a query, which doesn't exist at ingestion time. 66 00:15:47,352 --> 00:15:50,231 [Hal Turing] The 'policy-guided' label is doing a lot of work, then. 67 00:15:50,231 --> 00:16:08,761 [Dr. Ada Shannon] It's a three-class router with hand-tuned weights. Think-on-Graph, Sun and colleagues in 2024, already did LLM-guided beam search over knowledge graphs. A personalized-PageRank retriever like HippoRAG 2 would be a direct test of whether typed edges beat generic propagation. The paper only cites it in passing. 68 00:16:08,761 --> 00:16:10,711 [Hal Turing] And the comparisons that never happened? 69 00:16:10,711 --> 00:16:30,402 [Dr. Ada Shannon] Zep, for temporal and entity structure, especially on LongMemEval where Zep reported results. Mem0 and its graph variant, for the latency and token claims. And HippoRAG 2. Whether their published numbers are comparable depends on which LoCoMo categories they include. Check that rather than assume. 70 00:16:30,402 --> 00:16:31,563 [Hal Turing] What would settle it? 71 00:16:31,563 --> 00:16:48,235 [Dr. Ada Shannon] Adversarial and non-adversarial scores reported separately, with bootstrap intervals. A second judge family and a human-labelled sample. The same abstention prompt for every system, or ablated out of MAGMA. The no-graph control. And tuning on one split while testing on another. 72 00:16:48,235 --> 00:16:51,857 [Hal Turing] Practically, what should someone building agent memory take from it? 73 00:16:51,857 --> 00:17:27,709 [Dr. Ada Shannon] Compressing a 100K-token history into a few thousand tokens at similar or better accuracy is real evidence on LongMemEval. Moving causal inference off the write path is a sound systems idea. The costs are real too: extra storage, engineering complexity, and causal edges that depend on LLM extraction. Wrong edges persist, and the paper says nothing about retraction or deletion. It also doesn't test queries that arrive before consolidation finishes. The authors name multimodal agents and broader benchmarks as next steps. I'd add tool-using agents and poisoned writes. 74 00:17:27,709 --> 00:17:58,220 [Hal Turing] So, to sum up. Structured, intent-routed memory can match or beat reading the full history with a small fraction of the tokens, and this pipeline is unusually good at declining unanswerable questions. What it doesn't show is that the four graphs cause the gain. The 0.700 leans on one self-family judge and on the adversarial category, and on lexical metrics a competitor leads. Thanks for listening, everyone. See you next time.