Manuscript Offprint
arXiv:2610.29995Remembering Through Change: Provenance-Preserving Hypergraph Memory for Multimodal Agents
ABSTRACT
Long-term memory for multimodal agents remains challenging, as it must preserve fine-grained visual evidence while tracking entity evolution across sessions. Existing abstraction-based memories compress images into text, often discarding visually discriminative details, whereas pixel-preserving memories retain raw observations but struggle to reliably associate diverse observations with persistent entity identities and track their evolving states. To address these limitations, we propose MHG-Mem, a multimodal hypergraph memory that jointly organizes entity identity, state evolution, and provenance to visual evidence. Specifically, MHG-Mem represents distinct entity mentions and their observed facts as individual nodes, grouping identity-consistent mentions and facts through occurrence hyperedges. It then synthesizes aspect-specific evolution states from these grouped observations and links them to supporting entities, facts, and source evidence through evolutionary and evidential hyperedges. To navigate this structured memory, we introduce hypergraph-based agentic search, which adaptively selects an entry layer, traverses typed hyperedges across memory levels, and inspects source observations when fine-grained verification is required. These designs support both detailed visual verification and reasoning over cross-session state changes. Extensive experiments across three benchmarks demonstrate the effectiveness of MHG-Mem, improving performance by 8.20–9.98% over the strongest baseline.
1 INTRODUCTION
Long-term memory enables large language model (LLM) agents to reuse past experience beyond their context windows (Packer et al., 2023; Xu et al., 2025). As agents increasingly browse websites and interact with users through images, multimodal memory becomes essential for understanding user needs and providing personalized assistance (Guo et al., 2026; Liu et al., 2026a). As shown in Fig. 1(a), a web agent encounters several backpacks across sessions, with varying page layouts, product views, prices, and availability. Subsequent queries require inspecting the main zipper of the purchased backpack (Q1) or determining whether an earlier offer for the same backpack was both cheaper and in stock (Q2). Answering these queries remains challenging. Memory must preserve fine-grained visual evidence while tracking the entity's state across sessions despite variations in its visual observation.
Existing multimodal memories address these requirements only partially. As illustrated in Fig. 1(b), abstraction-based memory converts visual observations into textual descriptions or structured records for subsequent consolidation and retrieval (Wang & Chen, 2025; Feng et al., 2026). Such abstractions may omit visual details needed for inspection or for
Work done during internship.
Corresponding authors.
(a) Multimodal Agent Interaction History

(b) Different Memory Representations
Figure 1: (a) Long-term agent–user multimodal interaction example. (b) Comparison of existing approaches: (i) Abstraction-based memory loses visual details (failing Q1, Q2); (ii) Pixel-preserving memory lacks persistent identity–evolution bindings (failing Q2); (iii) Our MHG-Mem organizes multimodal observations via typed hyperedges, preserving both fine-grained visual crops for inspection and traceable evolution across diverse entity mentions.
distinguishing similar entities. Pixel-preserving memory retains original images, allowing relevant observations to be retrieved and inspected at query time (Lu et al., 2026). Yet the retrieved images remain isolated observations. Nothing records that the product photo in one session and the listing page in another show the same backpack, or how its price and availability evolved. Without reliable associations, an agent may confuse similar entities or incorrectly combine attributes in different observations. These raise the question: How can multimodal memory organize visually diverse observations of the same entity into coherent state histories while keeping each state traceable to its supporting evidence?
Addressing this question requires preserving individual observations while explicitly organizing how they relate across sessions. The underlying memory structure is inherently higher-order: the same entity may be observed differently across sessions, with each observation jointly associating several entity mentions, facts, and visual evidence, while its evolutions must integrate these observations into coherent state histories. These relationships therefore extend beyond isolated entities or facts and naturally form structured groups at different semantic levels. Motivated by this, we propose MHG-Mem, a multimodal hypergraph memory that uses typed hyperedges to explicitly organize these higher-order relationships while preserving each observation separately. Specifically, occurrence hyperedges group identity-consistent entity mentions and their associated facts across sessions, evolution nodes summarize aspect-specific state changes from temporally ordered observations, and evolutionary and evidential hyperedges connect each evolution to the participating entity mentions and its supporting facts, respectively. Because these facts retain provenance to the original dialogue and images, each inferred state remains traceable to its source evidence.
This structured memory naturally exposes evidence at multiple granularities, but different queries require different retrieval paths. Q1 ultimately requires inspecting a particular source image, whereas Q2 requires first locating the backpack's state history and then verifying the facts underlying the relevant price and availability states. A fixed retrieval strategy therefore cannot serve both effectively. To this end, we introduce Hypergraph-based Agentic Search, which adaptively selects an entry layer, traverses typed hyperedges across entity, evolution, and fact-level memory, and follows provenance links to inspect source observations when necessary. In this way, compact evolution records guide cross-session reasoning, while grounded facts and images provide fine-grained, verifiable evidence. Our contributions are summarized as follows:
• We propose MHG-Mem, a multimodal hypergraph memory framework that organizes cross-session observations into coherent entity evolution histories through typed hyperedges, while preserving visual evidence and state-specific provenance.
• We introduce Hypergraph-based Agentic Search, which adaptively accesses entity groups, state histories, and their supporting observations to assemble query-relevant evidence across granularities.
• Experiments across three benchmarks and three backbones demonstrate MHG-Mem's effectiveness, improving average performance by 8.20–9.98% over the strongest baseline.
Hypergraph-based Agent Memory. Graph memory has evolved from knowledge graphs (Rasmussen et al., 2025; Gutierrez et al., 2024), toward entity-centered graph such as M3-Agent (Long et al., 2025) and query-aware evidence expansion in GraphMemix (Li et al., 2026). Hypergraph methods then make higher-order membership explicit: HyperGraphRAG (Luo et al., 2025b) represents n-ary facts for corpus-level RAG, HGMEM (Zhou et al., 2025) uses hypergraph working memory for multi-step reasoning, and HyperMem (Yue et al., 2026) organizes long conversations as topic-episode-fact hypergraphs with coarse-to-fine retrieval. Despite their effectiveness, these approaches remain largely confined to text-centric memory organization, limiting their applicability to information-dense and dynamically evolving multimodal agent interactions. In contrast, MHG-Mem uses typed hyperedges to jointly organize persistent multimodal occurrences, entity-specific aspect evolutions and provenance, enabling identity-aware state tracking and fine-grained visual verification within a unified long-term memory framework.
3 METHODOLOGY
To track entity states across sessions while preserving their supporting evidence, we propose MHG-Mem, a multimodal hypergraph memory framework. Typed hyperedges organize entity mentions, facts, and state evolutions into reusable histories while retaining observation-specific visual evidence and links from individual states to their sources. Hypergraph-based agentic search then adapts retrieval to the query, navigating these histories and inspecting the underlying evidence as needed. Figure 2 illustrates (a) memory construction, (b) the multimodal hypergraph memory structure, and (c) hypergraph-based agentic search.
Provenance-Preserving Multimodal Hypergraph Memory

Figure 2: Overview of MHG-Mem. (a) Memory construction proceeds through three steps. (b) The three-layer MHG-Mem architecture and three types of hyperedges enable cross-layer traversal and provenance tracing. (c) Hypergraph-based agentic search employs four types of tools to adaptively construct query-aware evidence chains.
3.1 PROBLEM FORMULATION
Let denote an agent's ordered multimodal interaction history across sessions, where each round comprises dialogue text , images , and a recorded date . A memory construction operator maps this history to persistent memory before subsequent queries are known. Given a query with optional visual input , a retrieval operator selects relevant evidence from . A multimodal agent then generates an answer conditioned on the query and retrieved evidence:
where denotes the retrieved evidence and denotes fixed model parameters. The objective is to design W and S to support accurate answering of multimodal agent.
3.2 MULTIMODAL HYPERGRAPH MEMORY STRUCTURE
MHG-Mem represents multimodal memory using three node types and three types of n-ary hyperedges. Nodes encode memory units at different levels of granularity, while hyperedges capture cross-level associations and provenance, allowing high-level memory to be traced back to their supporting evidence. We formalize this memory as an attributed hypergraph:
where denotes the set of nodes incident to hyperedge , while and specify the node and hyperedge types, respectively. The contribution of nodes and hyperedges is defined as follows: ① FactNodes store atomic multimodal observations. ② EntityNodes store individual textual or visual entity mentions. We denote EntityNodes linked to the same underlying entity as a referent group . ③ EvolutionNodes store state changes in an entity attribute or relation. ④ Occurrence hyperedges bind a referent's EntityNodes to its associated FactNodes. ⑤ Evolutionary hyperedges connect EvolutionNodes to its associated EntityNodes. ⑥ Evidential hyperedges connect EvolutionNodes to the supporting FactNodes used for verification.
The complete node, hyperedge, and incidence definitions are given in Appendix B.1. The notation is summarized in Appendix A. This memory structure supports cross-session identity tracking, state synthesis, and provenance tracing while preserving original visual evidence.
3.3 MHG-MEM CONSTRUCTION
Step 1: Multimodal Fact Extraction. In each round , a vision-language model (VLM) extracts atomic multimodal fact descriptions from dialogue and images, using recent within-session context to resolve references. These descriptions are grounded as FactNodes:
where creates each by attaching the current round's image identifiers and source metadata to the extracted description .
Step 2: Multimodal Entity Extraction and Occurrence Linking. A VLM extracts multimodal entity mentions from . For each mention , we score an occurrence hyperedge by independently maximizing textual and visual similarity over its constituent EntityNodes:
Here, and are cosine similarities between mention-name and image-region embeddings, respectively, and contains the visual mentions in . Conditioned on , , and the top-K hyperedges ranked by , the model selects one of three actions for occurrence linking: UPDATE adds to the mention set of a matching referent group, ADD creates a new group with and its occurrence hyperedge, and SKIP rejects an invalid entity mention. Each accepted mention remains a distinct EntityNode, retaining its visual region when available. We then attach facts in to occurrence hyperedges by mention-name matching:
Here, is a lexical matching indicator that equals 1 iff contains the name of at least one EntityNode in . The resulting membership is .
Step 3: Evolution Synthesis and Grounding. To track the evolving states of the same entity across sessions, we synthesize the facts grouped by each occurrence hyperedge into state histories with explicit evidence grounding. For each occurrence hyperedge , candidate EvolutionNodes are generated from the associated facts :
where Order follows observation-order in . The model identifies changes in the same attribute or relation across sessions, excluding repeated descriptions and incidental scene variation. Each retained records the subject referent , summary , update type (replacement, update, or addition), and state sequence
where is the changing value extracted for , and the states follow observation order. Retention requires valid references within and at least two distinct values.
The evolutionary hyperedge then connects to subject mentions and coactor mentions . Coactors come from cited rounds of other groups sharing supporting facts, . The evidential hyperedge links to its supporting facts , with retaining the individual state–fact correspondence. Please refer to Appendix B.2 for more details of MHG-Mem construction.
3.4 HYPERGRAPH-BASED AGENTIC SEARCH
Since different queries require integrating evidence at different levels of granularity, fixed retrieval and graph traversal still struggle to get the optimal evidence chain (Luo et al., 2025a). We therefore implement S as agentic search that adaptively selects a memory layer, traverses hyperedges across memory layers, and follows provenance links to sources.
Adaptive Search. Given a multimodal query with optional images and search history , an LLM controller selects a tool call and receives observation :
Four tool types support this agent loop: (i) Hypergraph Tool (ii) Visual Tool (iii) Inspection Tool and (iv) Assembly Tool. Table 4 shows the tool details, the search process is outlined in Algorithm 2.
Hypergraph Retrieval. Each memory layer provides an isolated search tool (as described in Table 4), with hyperedge traversal among retrieved entities, evolutions and facts.
Fact-layer Search. For a search query w generated by the LLM, we rank using
where , , and measure text-text, text-image, and image-image cosine similarity with weights , , and . Visual terms take the best match over associated images, including for . Retrieved facts retain their source references for inspection.
Entity-layer Search. A name or query image identifies referent groups through maximum textual similarity to referent entity names and visual similarity over (equation 4). We then traverse each matched occurrence hyperedge from the entity layer to the fact layer . This gathers observations of the same underlying entity across rounds.
Evolution-layer Search. To retrieve how an entity changes over time, we first identify its referent group from a name or query image and retrieve the EvolutionNodes belonging to that group (). The evolutionary hyperedge connects each such node to mentions of its subject entity. We then compare the query text with each node's attribute and summary to assess relevance:
Here, encodes text, denotes cosine similarity, and concatenates the attribute and summary. For each selected , we traverse its evidential hyperedge from the evolution layer to the fact layer, getting the supporting facts in the order recorded by .
Cross-layer Traversal. A traversal step moves from a retrieved node to another memory layer through incident hyperedges. Given selected hyperedges and a target layer with , the cross-layer traversal can be formalized as:
Source Inspection and Evidence Assembly. The Inspection Tool follows from retrieved FactNodes to the original observations, enabling the controller to inspect fine-grained evidence for queries that require detailed information or visual verification. For an EvolutionNode , traversing to supporting facts and then following keeps its state history traceable to the original observations. The Assembly Tool organizes selected evidence and image references, together with optional summary, into an evidence chain . After reference validation, this chain is submitted to the QA model with the cited textual and visual evidence to answer as in Equation equation 1.
4 EXPERIMENT
4.1 EXPERIMENTAL SETUP
Benchmarks and Metrics. We evaluate on three multimodal memory benchmarks: MemEye (Guo et al., 2026), Mem-Gallery (Bei et al., 2026), and WorldMemArena-S (subset) (Liu et al., 2026a). We report exact match (EM) for MemEye's multiple-choice (MCQ) questions, token-level F1 for the other two benchmarks, and BLEU-1 (B-1) and LLM-as-a-judge (Judge) score for open-ended answers on all three. For memory quality evaluation, we follow (Liu et al., 2026a) using the same judging rubrics, recall, and retrieval coverage. Dataset and metric details are provided in Appendix C.1.
Implementation Details. We use Qwen3-VL-8B (Bai et al., 2025), GPT-4.1-mini (OpenAI, 2025), and Qwen3.8-27B (Qwen Team, 2026) as different memory backbones, GPT-5.4-mini (OpenAI, 2026) as LLM-as-a-judge model. MHG-Mem uses all-MiniLM-L6-v2 for text embeddings and SigLIP2 (Tschannen et al., 2025) for visual and cross-modal embeddings.
Table 1: Comparison with state-of-the-art memory systems across different backbone models. We report Exact Match (EM), BLEU-1 (B-1), and LLM-Judge (Judge) on MemEye, Mem-Gallery, and WorldMemArena-S. Avg. J. denotes the average Judge score across the three benchmarks. Bold and underlined results indicate the best and second-best performance, respectively.
| Type | Method | Venue | MemEye | Mem-Gallery | WorldMemArena-S | Avg. J. | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EM | B-1 | Judge | F1 | B-1 | Judge | F1 | B-1 | Judge | ||||
| Qwen3-VL-8B | ||||||||||||
| Unimodal | A-Mem | NIPS'25 | 45.15 | 19.22 | 29.38 | 47.68 | 41.76 | 66.93 | 25.23 | 12.16 | 46.57 | 47.63 |
| MemoryOS | EMNLP'25 | 40.23 | 17.22 | 26.28 | 39.36 | 35.28 | 58.86 | 10.24 | 3.50 | 20.18 | 35.11 | |
| SimpleMem | ICML'26 | 44.27 | 16.04 | 31.26 | 37.36 | 33.12 | 52.43 | 14.33 | 4.71 | 33.50 | 39.06 | |
| HyperMem | ACL'26 | 42.31 | 16.84 | 28.42 | 41.05 | 32.80 | 62.56 | 20.06 | 12.33 | 40.45 | 43.81 | |
| Multimodal | M2A | Arxiv'26 | 39.96 | 10.40 | 18.41 | 18.19 | 14.03 | 37.65 | 23.02 | 11.31 | 41.64 | 32.57 |
| MMA | AACL'26 | 46.92 | 20.62 | 38.17 | 34.80 | 30.34 | 57.49 | 21.73 | 10.82 | 38.95 | 44.87 | |
| SRAG | Arxiv'26 | 56.78 | 24.87 | 41.80 | 40.74 | 35.89 | 63.62 | 23.53 | 11.21 | 43.93 | 49.78 | |
| UniversalRAG | ACL'26 | 57.48 | 23.92 | 42.09 | 51.05 | 46.39 | 66.23 | 14.96 | 5.06 | 36.33 | 48.21 | |
| Ours | MHG-Mem | - | 61.26 | 26.52 | 46.28 | 66.00 | 60.90 | 76.89 | 23.17 | 15.29 | 50.78 | 57.98 (+8.20) |
| GPT-4.1-mini | ||||||||||||
| Unimodal | A-Mem | NIPS'25 | 49.73 | 21.11 | 38.27 | 44.08 | 38.37 | 64.35 | 33.39 | 17.54 | 60.40 | 54.34 |
| MemoryOS | EMNLP'25 | 45.75 | 13.12 | 34.91 | 43.09 | 37.76 | 64.64 | 17.46 | 6.63 | 35.87 | 45.14 | |
| SimpleMem | ICML'26 | 50.34 | 9.42 | 42.59 | 34.73 | 28.90 | 58.33 | 23.75 | 14.71 | 56.13 | 52.35 | |
| HyperMem | ACL'26 | 47.82 | 19.64 | 36.43 | 44.57 | 33.42 | 66.76 | 24.91 | 15.62 | 52.04 | 51.74 | |
| Multimodal | M2A | Arxiv'26 | 52.31 | 6.31 | 44.50 | 15.04 | 10.28 | 51.81 | 29.26 | 18.55 | 53.38 | 49.90 |
| MMA | AACL'26 | 50.96 | 16.32 | 43.81 | 26.99 | 20.60 | 60.87 | 30.10 | 16.33 | 51.15 | 51.95 | |
| SRAG | Arxiv'26 | 58.36 | 31.48 | 50.54 | 41.07 | 35.03 | 67.06 | 30.47 | 18.34 | 54.27 | 57.29 | |
| UniversalRAG | ACL'26 | 60.49 | 11.23 | 52.61 | 48.36 | 41.90 | 70.63 | 26.44 | 13.03 | 50.95 | 58.06 | |
| Ours | MHG-Mem | - | 66.84 | 22.36 | 59.73 | 52.58 | 45.75 | 81.56 | 33.61 | 21.52 | 62.57 | 67.95 (+9.89) |
| Qwen3.8-27B | ||||||||||||
| Unimodal | A-Mem | NIPS'25 | 45.10 | 18.13 | 33.64 | 60.56 | 54.37 | 75.98 | 27.99 | 13.92 | 57.49 | 55.71 |
| MemoryOS | EMNLP'25 | 42.24 | 16.67 | 28.25 | 42.82 | 37.49 | 70.19 | 10.17 | 3.76 | 20.95 | 39.80 | |
| SimpleMem | ICML'26 | 47.84 | 5.37 | 37.40 | 49.43 | 43.26 | 68.70 | 18.95 | 7.34 | 46.33 | 50.81 | |
| HyperMem | ACL'26 | 50.56 | 21.02 | 39.66 | 47.23 | 36.64 | 73.03 | 22.84 | 10.61 | 50.57 | 54.42 | |
| Multimodal | M2A | Arxiv'26 | 48.23 | 19.51 | 35.90 | 20.46 | 15.49 | 65.30 | 28.15 | 14.14 | 55.58 | 52.25 |
| MMA | AACL'26 | 56.47 | 24.95 | 47.30 | 35.18 | 29.03 | 69.32 | 26.66 | 13.35 | 52.80 | 56.47 | |
| SRAG | Arxiv'26 | 66.95 | 28.26 | 53.37 | 41.45 | 35.68 | 75.80 | 28.78 | 13.97 | 59.69 | 62.95 | |
| UniversalRAG | ACL'26 | 67.85 | 13.45 | 60.64 | 57.30 | 50.51 | 76.18 | 22.11 | 9.34 | 53.07 | 63.30 | |
| Ours | MHG-Mem | - | 78.76 | 39.54 | 65.93 | 66.07 | 59.84 | 87.85 | 30.48 | 21.21 | 66.05 | 73.28 (+9.98) |
For a fair comparison, we reproduce all baseline methods with the same model setting and running environment of MHG-Mem. Results are averaged over 3 runs. Additional implementation settings are provided in Appendix C.2.
Baselines. We compare with four unimodal memory methods using dense image caption: A-Mem (Xu et al., 2025), MemoryOS (Kang et al., 2025), SimpleMem (Liu et al., 2026c), and HyperMem (Yue et al., 2026); and four multimodal memory or RAG methods: M2A (Feng et al., 2026), MMA (Lu et al., 2026), SRAG (Guo et al., 2026), and UniversalRAG (Yeo et al., 2026). Detailed baseline descriptions are deferred to Appendix C.3.
4.2 MAIN RESULTS
Table 1 compares MHG-Mem with eight memory systems across three benchmarks and three backbones. Figure 3 shows memory quality on WorldMemArena-S and fine-grained task performance on WorldMemArena-S and Mem-Gallery. We highlight four key findings:
(1) MHG-Mem consistently outperforms existing memory systems across benchmarks and backbones. MHG-Mem achieves the highest Judge score in every benchmark–backbone setting, with Avg. J. scores of 57.98% (+8.20%), 67.95% (+9.89%), and 73.28% (+9.98%) on Qwen3-VL-8B, GPT-4.1-mini, and Qwen3.8-27B, respectively. Moreover, MHG-Mem achieves the best or second-best results on metrics including EM, BLEU-1, and F1. These consistent improvements across models and benchmarks demonstrate the effectiveness and generalization of provenance-preserving multimodal hypergraph memory.
(a) Memory Quality

(b) Task-wise Performance
| WMA small | Mem-Gallery | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 79 | 83 | 75 | 47 | 33 | 36 | 56 | 52 | 38 | 49 | 80 | 67 | 74 | 64 | 90 | 79 | 67 | 65 | 73 |
| 21 | 17 | 6 | 17 | 3 | 9 | 12 | 13 | 10 | 17 | 80 | 73 | 73 | 52 | 89 | 38 | 81 | 64 | 88 |
| 71 | 61 | 25 | 44 | 25 | 25 | 49 | 48 | 37 | 42 | 91 | 92 | 80 | 54 | 89 | 18 | 85 | 81 | 56 |
| 72 | 84 | 75 | 44 | 33 | 39 | 60 | 60 | 39 | 53 | 82 | 80 | 76 | 40 | 73 | 28 | 83 | 63 | 85 |
| 68 | 84 | 76 | 47 | 29 | 38 | 61 | 54 | 31 | 45 | 81 | 81 | 55 | 45 | 78 | 51 | 85 | 67 | 84 |
| 80 | 66 | 45 | 54 | 48 | 46 | 57 | 60 | 54 | 25 | 81 | 81 | 77 | 55 | 91 | 78 | 75 | 66 | 59 |
| 77 | 83 | 75 | 51 | 41 | 44 | 60 | 65 | 47 | 59 | 87 | 89 | 55 | 60 | 89 | 56 | 84 | 67 | 88 |
| 87 | 87 | 78 | 69 | 87 | 63 | 55 | 78 | 64 | 76 | 94 | 93 | 97 | 82 | 93 | 95 | 91 | 83 | 81 |
FR VFR VS CMR TR DU VU MC KR TTL
FR MR TR VR TTL VS CD KR AR
Figure 3: (a) Memory quality and (b) fine-grained tasks performance on WorldMemArena-S (WMA-S) and Mem-Gallery with Qwen3.8-27B.
(2) Effective visual memory requires structured access to preserved observations. On the visual-centric MemEye benchmark, MHG-Mem with Qwen3.8-27B achieves 78.76% EM, compared with 67.85% for UniversalRAG and 66.95% for SRAG. A similar advantage appears in visually demanding categories in Figure 3(b): MHG-Mem achieves 82% versus 60% on visual reasoning (VR) in Mem-Gallery and 87% versus 83% on visual fact recall (VFR) in WorldMemArena-S. These results suggest that retaining images alone is insufficient when relevant observations cannot be reliably associated with the underlying entity. Occurrence hyperedges address this limitation by grouping visually diverse mentions of the same referent while preserving direct access to observation-specific visual evidence.
(3) Substantial performance gains on temporal and cross-modal reasoning. MHG-Mem achieves the best performance in 17 of the 19 task categories in Figure 3(b), with particularly large gains on tasks requiring integration of observations across sessions. On WorldMemArena-S, temporal reasoning (TR) improves from 48% to 87% over the strongest baseline, while dynamic update (DU), test-time learning (TTL), and cross-modal reasoning (CMR) improve by 17%, 17%, and 15%, respectively. On Mem-Gallery, visual reasoning (VR) and temporal reasoning (TR) improve by 18% and 17%. These gains are supported by our evolution design, which summarize time-ordered entity states to guide retrieval, together with evidential hyperedges that preserve state-fact correspondence and enable provenance tracing from synthesized states back to the originating dialogue and images.
(4) Memory quality and evidence accessibility improve together. As shown in Figure 3(a), MHG-Mem achieves the highest memory recall, memory correctness, and retrieval coverage among all compared systems. The simultaneous improvement in memory quality and coverage indicates that MHG-Mem preserves useful information accurately while keeping its supporting evidence readily accessible.
4.3 ABLATION STUDY
Tables 2 and 3 evaluate memory construction and retrieval components using the average LLM-judge score across the three benchmarks. Memory components are introduced cumulatively, whereas retrieval components are removed individually. Specifically, w/o Agentic Search replaces agentic search with three-layer top-k retrieval; w/o Inspection Tool, w/o Cross-layer Traversal, and w/o Visual Tool disable the corresponding functionality.
Memory-side ablation. (1) Effectiveness of the entity node with occurrence hyperedge. The entity layer with occurrence hyperedges improves performance by 5.48% over fact-only memory. Occurrence hyperedges account for 4.78% of this gain, with improvements across all three benchmarks. These hyperedges connect mentions and facts associated with the same entity, enabling retrieval of its observations across sessions. (2) Effectiveness of the evolution node with evolutionary hyperedge. The evolution layer with evolutionary hyperedges yields a further 3.37% improvement. This representation makes state histories directly retrievable and associates them with entities in subject and coactor roles, supporting reasoning about changes across sessions. (3) Effectiveness of the evidential
Table 2: Ablation of memory side with Qwen3.8-27B.
| Layers | Hyperedges | MemEye | Mem-Gallery | WMA-S | Avg. |
|---|---|---|---|---|---|
| 53.81 | 76.08 | 58.72 | 62.87 | ||
| 54.06 | 77.54 | 59.10 | 63.57 | ||
| 60.69 | 82.13 | 62.24 | 68.35 | ||
| 64.70 | 85.48 | 64.97 | 71.72 | ||
| 65.93 | 87.85 | 66.05 | 73.28 |
Table 3: Ablation of retrieval side with Qwen3.8-27B.
| Method | MemEye | Mem-Gallery | WMA-S | Avg. |
|---|---|---|---|---|
| w/o Agentic Search | 60.59 | 82.06 | 61.90 | 68.18 |
| w/o Inspection Tool | 61.77 | 84.64 | 63.12 | 69.84 |
| w/o Cross-layer Traversal | 62.33 | 84.49 | 63.74 | 70.19 |
| w/o Visual Tool | 63.52 | 86.98 | 65.23 | 71.91 |
| MHG-Mem (Full) | 65.93 | 87.85 | 66.05 | 73.28 |

Figure 4: Case study in a home renovation scenario. MHG-Mem tracks wall paint color changes through evolution nodes and traces supporting facts to source images via evidential hyperedges, forming a verifiable evidence chain.
hyperedge. Evidential hyperedges provide an additional 1.56% gain by linking evolution states to their supporting facts. These connections preserve provenance and allow retrieved states to be checked against the observations from which they were derived.
Retrieval-side ablation. (1) Effectiveness of agentic search. Three-layer top-k retrieval underperforms agentic search by 5.10%, the largest decline among the retrieval ablations. This result supports query-adaptive selection of retrieval entry points and subsequent evidence expansion. (2) Effectiveness of the inspection tool. Without source inspection, performance falls by 3.44%, the largest decline among individual tool ablations. Access to original dialogue and images enables the agent to verify fine-grained evidence that facts and evolution summaries may omit. (3) Effectiveness of cross-layer traversal. Removing cross-layer traversal reduces performance by 3.09%. Traversal connects entities to their associated facts and evolution records to supporting observations, allowing the agent to assemble evidence across memory granularities. (4) Effectiveness of the visual tool. Performance decreases by 1.37% when image retrieval is disabled. Direct visual search provides a complementary route to relevant observations, extending evidence access beyond entity- and evolution-centred retrieval.
4.4 CASE ANALYSIS
Figure 4 illustrates the advantages of MHG-Mem in a home renovation scenario involving successive living room color schemes. To identify the scheme the user did not adopt, the memory system must trace the progression from color trials through revisions to completion and inspect the corresponding images. UniversalRAG and M2A retrieve bedroom images by similarity but miss the initial color information, while MMA preserves the pixels without tracking the evolving schemes. MHG-Mem identifies paint as the tracked entity, preserves its mentions across rounds, and links atomic facts through occurrence hyperedges. Evolution nodes record the change in candidate color from sage green to terracotta. During retrieval, the agent follows evidential hyperedges to f56 and f129, then inspects their source images to verify the colors and answer correctly.
CONCLUSION
We presented MHG-Mem, a multimodal hypergraph memory framework that organizes visually diverse observations of the same entity into coherent state histories while preserving fine-grained visual evidence. Typed n-ary hyperedges connect entity mentions, atomic facts, and evolution records, keeping individual states traceable to their supporting observations. Hypergraph-based agentic search adaptively navigates these memory levels, using state histories to guide retrieval and original dialogue and images to verify evidence. Ablations demonstrate the contributions of entity associations, explicit state histories, evidence grounding, and adaptive retrieval. These findings support the joint design of memory organization and evidence access for reasoning over evolving multimodal experience.
REFERENCES
Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, Wenbin Ge, Zhifang Guo, Qidong Huang, Jie Huang, Fei Huang, Binyuan Hui, Shutong Jiang, Zhaohai Li, Mingsheng Li, Mei Li, Kaixin Li, Zicheng Lin, Junyang Lin, Xuejing Liu, Jiawei Liu, Chenglong Liu, Yang Liu, Dayiheng Liu, Shixuan Liu, Dunjie Lu, Ruilin Luo, Chenxu Lv, Rui Men, Lingchen Meng, Xuancheng Ren, Xingzhang Ren, Sibo Song, Yuchong Sun, Jun Tang, Jianhong Tu, Jianqiang Wan, Peng Wang, Pengfei Wang, Qiuyue Wang, Yuxuan Wang, Tianbao Xie, Yiheng Xu, Haiyang Xu, Jin Xu, Zhibo Yang, Mingkun Yang, Jianxin Yang, An Yang, Bowen Yu, Fei Zhang, Hang Zhang, Xi Zhang, Bo Zheng, Humen Zhong, Jingren Zhou, Fan Zhou, Jing Zhou, Yuanzhi Zhu, and Ke Zhu. Qwen3-VL Technical Report. arXiv preprint arXiv:2511.21631, 2025. URL https://arxiv.org/abs/2511.21631.
Yuanchen Bei, Tianxin Wei, Xuying Ning, Yanjun Zhao, Zhining Liu, Xiao Lin, Yada Zhu, Hendrik Hamann, Jingrui He, and Hanghang Tong. Mem-Gallery: Benchmarking Multimodal Long-Term Conversational Memory for MLLM Agents. arXiv preprint arXiv:2601.03515, 2026. URL https://arxiv.org/abs/2601.03515.
Wenhu Chen, Hexiang Hu, Xi Chen, Pat Verga, and William W. Cohen. MuRAG: Multimodal Retrieval-Augmented Generator for Open Question Answering over Images and Text. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pp. 5558–5570, Abu Dhabi, United Arab Emirates, December 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.emnlp-main.375. URL https://aclanthology.org/2022.emnlp-main.375/.
Yijun Chen, Yaqi Zheng, Yanya Li, Boyi Xiao, Buqiang Xu, Shuofei Qiao, Jizhan Fang, Xinle Deng, Yunzhi Yao, Xuehai Wang, Liuxin Zhang, Hui Li, Huajun Chen, and Shumin Deng. EM Mem: Event-Centric Multimodal Memory for Large Language Models. arXiv preprint arXiv:2609.00551, 2026. URL https://arxiv.org/abs/2609.00551.
Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. Mem0: Building production-ready ai agents with scalable long-term memory. arXiv preprint arXiv:2504.19413, 2025.
Yue Fan, Xiaojian Ma, Rujie Wu, Yuntao Du, Jiaqi Li, Zhi Gao, and Qing Li. VideoAgent: A Memory-Augmented Multimodal Agent for Video Understanding. In Computer Vision – ECCV 2024, volume 15080 of Lecture Notes in Computer Science, pp. 75–92, Cham, 2025. Springer Nature Switzerland. doi: 10.1007/978-3-031-72670-5_5. URL https://doi.org/10.1007/978-3-031-72670-5_5.
Junyu Feng, Binxiao Xu, Jiayi Chen, Mengyu Dai, Cenyang Wu, Haodong Li, Bohan Zeng, Yunliu Xie, Hao Liang, Ming Lu, and Wentao Zhang. M2A: Multimodal Memory Agent with Dual-Layer Hybrid Memory for Long-Term Personalized Interactions. arXiv preprint arXiv:2602.07624, 2026. URL https://arxiv.org/abs/2602.07624.
Minghao Guo, Qingyue Jiao, Zeru Shi, Yihao Quan, Boxuan Zhang, Danrui Li, Liwei Che, Wujiang Xu, Shilong Liu, Zirui Liu, Mubbasir Kapadia, Vladimir Pavlovic, Jiang Liu, Mengdi Wang, Yiyu Shi, Dimitris N. Metaxas, and Ruixiang Tang. MemEye: A
Visual-Centric Evaluation Framework for Multimodal Agent Memory. arXiv preprint arXiv:2605.15128, 2026. URL https://arxiv.org/abs/2605.15128.
Bernal Jimenez Gutierrez, Yiheng Shu, Yu Gu, Michihiro Yasunaga, and Yu Su. HippoRAG: Neurobiologically inspired long-term memory for large language models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=hkujvAPVsg.
Jitesh Jain, Shubham Maheshwari, Ning Yu, Wen-mei Hwu, and Humphrey Shi. AUGUSTUS: An LLM-Driven Multimodal Agent System with Contextualized User Memory. arXiv preprint arXiv:2510.15261, 2025. URL https://arxiv.org/abs/2510.15261.
Soyeong Jeong, Kangsan Kim, Jinheon Baek, and Sung Ju Hwang. VideoRAG: Retrieval-Augmented Generation over Video Corpus. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 21278–21298, Vienna, Austria, July 2025. Association for Computational Linguistics. doi: 10.18653/v1/2025.findings-acl.1096. URL https://aclanthology.org/2025.findings-acl.1096/.
Dingyi Kang, Dongming Jiang, Yi Li, Guanpeng Li, and Bingzhe Li. V-Mem: Modality-Routed Retrieval for Long-Term Multimodal Agentic Memory. arXiv preprint arXiv:2608.01543, 2026. URL https://arxiv.org/abs/2608.01543.
Jiazheng Kang, Mingming Ji, Zhe Zhao, and Ting Bai. Memory OS of AI Agent. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 25961–25970, Suzhou, China, November 2025. Association for Computational Linguistics. doi: 10.18653/v1/2025.emnlp-main.1318. URL https://aclanthology.org/2025.emnlp-main.1318/.
Geng Li, Yuhao Wang, Dong Li, Jianye Hao, and Yuxin Peng. GraphMemix: Query-Aware Evidence Forests for Long-Term Multimodal Agent Memory. arXiv preprint arXiv:2608.26983, 2026. URL https://arxiv.org/abs/2608.26983.
Chengzhi Liu, Yuzhe Yang, Sophia Xiao Pu, Yepeng Liu, Lin Long, Yichen Guo, Nuo Chen, Zhaotian Weng, Elena Kochkina, Simerjot Kaur, Charese Smiley, Xiaomo Liu, James Zou, Sheng Liu, Yuheng Bu, Songyou Peng, and Xin Eric Wang. WorldMemArena: Evaluating Multimodal Agent Memory Through Action-World Interaction. arXiv preprint arXiv:2605.29341, 2026a. URL https://arxiv.org/abs/2605.29341.
Jiaqi Liu, Zipeng Ling, Shi Qiu, Yanqing Liu, Siwei Han, Peng Xia, Haoqin Tu, Zeyu Zheng, Cihang Xie, Charles Fleming, Mingyu Ding, and Huaxiu Yao. Omni-SimpleMem: Autoresearch-Guided Discovery of Lifelong Multimodal Agent Memory. arXiv preprint arXiv:2604.01007, 2026b. URL https://arxiv.org/abs/2604.01007.
Jiaqi Liu, Yaofeng Su, Peng Xia, Siwei Han, Zeyu Zheng, Cihang Xie, Mingyu Ding, and Huaxiu Yao. SimpleMem: Efficient Lifelong Memory for LLM Agents. arXiv preprint arXiv:2601.02553, 2026c. URL https://arxiv.org/abs/2601.02553.
Lin Long, Yichen He, Wentao Ye, Yiyuan Pan, Yuan Lin, Hang Li, Junbo Zhao, and Wei Li. Seeing, Listening, Remembering, and Reasoning: A Multimodal Agent with Long-Term Memory. arXiv preprint arXiv:2508.09736, 2025. URL https://arxiv.org/abs/2508.09736.
Yihao Lu, Wanru Cheng, Zeyu Zhang, and Hao Tang. MMA: Multimodal Memory Agent. arXiv preprint arXiv:2602.16493, 2026. URL https://arxiv.org/abs/2602.16493.
Haoran Luo, Haihong E, Guanting Chen, Qika Lin, Yikai Guo, Fangzhi Xu, Zemin Kuang, Meina Song, Xiaobao Wu, Yifan Zhu, and Anh Tuan Luu. Graph-R1: Towards Agentic GraphRAG Framework via End-to-end Reinforcement Learning. arXiv preprint arXiv:2507.21892, 2025a. URL https://arxiv.org/abs/2507.21892.
Haoran Luo, Haihong E, Guanting Chen, Yandan Zheng, Xiaobao Wu, Yikai Guo, Qika Lin, Yu Feng, Zemin Kuang, Meina Song, Yifan Zhu, and Anh Tuan Luu.
HyperGraphRAG: Retrieval-Augmented Generation via Hypergraph-Structured Knowledge Representation. In Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 152206–152234. Curran Associates, Inc., 2025b. doi:10.52202/085713-5089. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/df55ee6e59f8ac4a625219e11fe9ddba-Paper-Conference.pdf.
Adyasha Maharana, Dong-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang. Evaluating very long-term conversational memory of llm agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 13851–13870, 2024.
Viet Nguyen, Thao Nguyen, Vishal M. Patel, and Yuheng Li. Personal Visual Memory from Explicit and Implicit Evidence. arXiv preprint arXiv:2605.28806, 2026. URL https://arxiv.org/abs/2605.28806.
OpenAI. GPT-4.1 Mini. OpenAI API model documentation, 2025. URL https://developers.openai.com/api/docs/models/gpt-4.1-mini.
OpenAI. GPT-5.4 Mini. OpenAI API model documentation, 2026. URL https://developers.openai.com/api/docs/models/gpt-5.4-mini.
Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. MemGPT: Towards LLMs as Operating Systems. arXiv preprint arXiv:2310.08560, 2023. URL https://arxiv.org/abs/2310.08560.
Qwen Team. Qwen3.8-27B. Hugging Face model card, 2026. URL https://huggingface.co/Qwen/Qwen3.8-27B.
Preston Rasmussen, Pavlo Paliychuk, Travis Beauvais, Jack Ryan, and Daniel Chalef. Zep: A Temporal Knowledge Graph Architecture for Agent Memory. arXiv preprint arXiv:2501.13956, 2025. URL https://arxiv.org/abs/2501.13956.
Jielong Tang, Xujie Yuan, Jiayang Liu, Jianxing Yu, Xiao Dong, Lin Chen, Yunlai Teng, Shimin Di, and Jian Yin. SAKE: Self-aware knowledge exploitation-exploration for grounded multimodal named entity recognition. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2, KDD '26, pp. 4592–4603. Association for Computing Machinery, 2026. doi: 10.1145/3770855.3817763. URL https://doi.org/10.1145/3770855.3817763.
Zhoujin Tian, Hao Zhang, Yao Tian, Cheng Chen, Yakun Li, Lei Zhang, and Xiaofang Zhou. Beyond Retrieval: Analytic Memory for Multimodal Agents. arXiv preprint arXiv:2607.29440, 2026. URL https://arxiv.org/abs/2607.29440.
Michael Tschannen, Alexey Gritsenko, Xiao Wang, Muhammad Ferjad Naeem, Ibrahim Al-abdulmohsin, Nikhil Parthasarathy, Talfan Evans, Lucas Beyer, Ye Xia, Basil Mustafa, Olivier Hénaff, Jeremiah Harmsen, Andreas Steiner, and Xiaohua Zhai. SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Features. arXiv preprint arXiv:2502.14786, 2025. URL https://arxiv.org/abs/2502.14786.
Yu Wang and Xi Chen. MIRIX: Multi-Agent Memory System for LLM-Based Agents. arXiv preprint arXiv:2507.07957, 2025. URL https://arxiv.org/abs/2507.07957.
Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. A-Mem: Agentic Memory for LLM Agents. In Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 17577–17604. Curran Associates, Inc., 2025. doi:10.52202/085713-0593. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/19909c36f51abc4856b4560aff3d36d6-Paper-Conference.pdf.
Woongyeong Yeo, Kangsan Kim, Soyeong Jeong, Jinheon Baek, and Sung Ju Hwang. UniversalRAG: Retrieval-Augmented Generation over Corpora of Diverse Modalities and Granularities. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3843–3871, San Diego, California,
United States, July 2026. Association for Computational Linguistics. doi: 10.18653/v1/2026.acl-long.177. URL https://aclanthology.org/2026.acl-long.177/.
Xujie Yuan, Shimin Di, Jielong Tang, Libin Zheng, and Jian Yin. Towards self-cognitive exploration: Metacognitive knowledge graph retrieval augmented generation. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.1, KDD '26, pp. 1844–1855. Association for Computing Machinery, 2026. doi:10.1145/3770854.3780156. URL https://doi.org/10.1145/3770854.3780156.
Juwei Yue, Chuanrui Hu, Jiawei Sheng, Zuyi Zhou, Wenyuan Zhang, Tingwen Liu, Li Guo, and Yafeng Deng. HyperMem: Hypergraph Memory for Long-Term Conversations. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 35237–35254, San Diego, California, United States, July 2026. Association for Computational Linguistics. doi: 10.18653/v1/2026.acl-long.1627. URL https://aclanthology.org/2026.acl-long.1627/.
Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang. Memorybank: Enhancing large language models with long-term memory. In Proceedings of the AAAI conference on artificial intelligence, volume 38, pp. 19724–19731, 2024.
Chulun Zhou, Chunkang Zhang, Guoxin Yu, Fandong Meng, Jie Zhou, Wai Lam, and Mo Yu. HGMEM: Hypergraph-based Working Memory to Improve Multi-step RAG for Long-Context Complex Relational Modeling. arXiv preprint arXiv:2512.23959, 2025. URL https://arxiv.org/abs/2512.23959.
APPENDIX CONTENTS
A Notation Definition 15
B Additional Method Details 16
B.1 Detailed Hypergraph Memory Schema 16
B.2 Detailed Memory Construction 16
B.3 Agentic Search and Tool Specification 18
B.4 Provenance Preservation 18
C Additional Experimental Details 19
C.1 Benchmarks and Metrics 19
C.2 Implementation Details 21
C.3 Baselines 22
D Additional Experiment Results and Analysis 23
D.1 Retrieval Tool Analysis 23
D.2 Cost Analysis 24
D.3 Memory Quality and Fine-grained Analysis on More Backbones 25
D.4 Hyperparameter Analysis 25
D.5 More Case Studies 26
E Prompt Templates 28
E.1 Atomic fact construction 28
E.2 Multimodal entity extraction 29
E.3 Occurrence linking 29
E.4 State evolution synthesis 30
E.5 Hypergraph-based agentic search 31
A NOTATION DEFINITION
| Symbol | Meaning | Symbol | Meaning |
|---|---|---|---|
| Ordered multimodal history | Interaction round | ||
| Dialogue text in round | Images in round | ||
| Date of round | Recent within-session context | ||
| Multimodal query | Memory construction and retrieval operators | ||
| Retrieved evidence and generated answer | Fixed model parameters | ||
| Attributed multimodal hypergraph | Persistent memory at history length | ||
| Node and hyperedge sets | Hyperedge incidence map | ||
| Node-type and hyperedge-type maps | Source-round reference map | ||
| FactNode, EntityNode, and EvolutionNode sets | Stored embedding indices | ||
| Occurrence, evolutionary, and evidential hyperedge families | Referent group | ||
| FactNode and its text, images, round, session, and date | EntityNode and its mention attributes | ||
| Mentions and facts associated with referent | Occurrence hyperedge of | ||
| EvolutionNode and its subject, aspect, summary, state trace, and update type | Facts supporting evolution | ||
| Ordered state-fact trace of | State value at position and number of recorded states | ||
| Subject and coactor mentions of | Evolutionary and evidential hyperedges | ||
| Tool action, observation, and search history at step | LLM search controller | ||
| Search-step and image budgets | Controller-generated fact-search string | ||
| Current-round facts and candidate evolutions | Fact-to-occurrence anchoring predicate | ||
| Fact-level component scores and weights | Entity-linking weights and similarities | ||
| Fact- and evolution-level relevance scores | Text, image, and cross-modal encoders | ||
| Traverse | Cross-layer traversal operator | Source rounds cited by evolution | |
| Retained archive and recorded source set of | Candidate limit in construction |
B ADDITIONAL METHOD DETAILS
This section provides more detailed hypergraph schema, notation definition, construction and search algorithms, tool specifications, and a source-recoverability proof.
B.1 DETAILED HYPERGRAPH MEMORY SCHEMA
MHG-Mem is an attributed hypergraph with three node types and three typed n-ary hyperedge families:
Nodes. FactNode is an atomic multimodal observation such as an event, state, visual attribute, or spatial relation. Each stores
where is the fact description, is its set of image identifiers, and gives the source round, session, and date.
EntityNode represents a distinct entity mention expressed as a text span, an image region, or both. Each stores
where is its name, its entity class, its modality, an optional image identifier, and an optional normalized visual region. EntityNodes linked to the same underlying entity form a referent group with mention set ; every mention remains a distinct observation.
EvolutionNode records a change in an attribute or relation of a referent group, such as changes in appearance, price, or location. Each stores
where is the subject referent, is the evolving attribute or relation, summarizes the observed states, is the ordered state–fact trace, and is the update type.
Hyperedges. Occurrence hyperedge binds all mentions and associated facts of a referent group:
Evolutionary hyperedge binds an EvolutionNode to its subject and coactor mentions:
where contains mentions of the changing entity and contains mentions from other participating referents.
Evidential hyperedge connects the evolution to its supporting facts:
Finally, gives the source-round reference for , while and retain image-level and region-level grounding. The complete memory is
B.2 DETAILED MEMORY CONSTRUCTION
Algorithm 1 combines the three construction steps. Original rounds and images are archived before extraction. FactNodes retain round-level image references , whereas visual EntityNodes retain observation-specific regions ; both use to locate their source rounds.
Algorithm 1 MHG-Mem construction
Require: History , construction models, candidate limit
Ensure: Memory
1: Initialize the archive, , , and
2: for do
3: Archive ; index its images and captions
4: Extract using Equation equation 3
5: Store , source references, and text embeddings
6: Extract entity candidates from
7: for each candidate do
8: Rank occurrence hyperedges by Equation equation 4
9: Condition on , , and the top- candidates
10: Select UPDATE, ADD, or SKIP
11: if the action is not SKIP then
12: Store and ; execute the occurrence update
13: Index its name and available visual region
14: end if
15: end for
16: Anchor using Equation equation 5
17: end for
18: for each referent group with facts across sessions do
19: Generate using Equation equation 6
20: Filter and order state references; apply Equation equation 19
21: for each retained do
22: Set ; construct subject and coactor memberships
23: Store , , and
24: Index in
25: end for
26: end for
27: return
Evolution validation and participants. The synthesizer reads ordered fact descriptions and their identifiers, and proposes histories for changing attributes or relations across sessions. Invalid fact references and repeated references are removed; the remaining state–fact pairs are ordered by . For a candidate with subject , retention requires
The values must be nonempty, and distinctness is checked after case and whitespace normalization. These checks validate the recorded sequence; identifying a meaningful change remains the synthesizer's task.
Let be the cited round references. Subject mentions are selected from with ; if none occurs in these rounds, one stored subject mention identifies the referent. For each other group with , a mention satisfying is selected as a coactor when available. These role sets define ; the distinct state references define through Equations equation 16 and equation 17. The ordered correspondence remains in .
Incremental construction. At a new session boundary, only groups receiving newly anchored facts require resynthesis. Their evolution records are regenerated from the updated . Successful replacements update the derived nodes, hyperedges, and embeddings while retaining the underlying facts, mentions, and original sources.
Table 4: Four tool types for hypergraph-based agentic search. Query images, when supplied, are available to the visual lookups.
| Type | Tool | Input | Returned information |
|---|---|---|---|
| Hypergraph | resolve_facts | Text query | Ranked facts and source references. |
| resolve_entity | Entity name or query image | Candidate referent groups and corresponding occurrence linking facts. | |
| resolve_evolution | Referent name, query image, or evolution_id | Evolutions and evidential linking facts. | |
| Visual Inspection | search_imageget_raw_verbatim | Text query or query imageSource-round identifier | Matching images.Original dialogue and images. |
| Assembly | submit_evidence | Fact and image references; optional summary | Validation feedback; accepted evidence forms . |
B.3 AGENTIC SEARCH AND TOOL SPECIFICATION
Table 4 specifies the six tools available to the controller. Algorithm 2 uses them under a step budget and a budget on distinct images presented during search.
Multimodal embedding scoring. Using the text encoder from the main text, let encode images and encode text in 's feature space. An image identifier is resolved to its pixels before encoding. The components of Equation equation 9 are
Visual scores are floored at zero, and unavailable terms contribute zero without renormalizing . The Visual Tool searches stored captions for a text lookup and image embeddings for a query-image lookup.
Traversal and evidence assembly. Entity and evolution lookups perform the membership expansions described in Section 3.4. Evolution relevance uses , while readout dereferences the supporting facts in the order retained by . Source inspection follows to recover original observations. Facts returned by retrieval or associated with accessed rounds are registered for citation. At submission, fact identifiers must be registered and available, and attached image identifiers must belong to the cited fact's source round. Invalid references are removed. The retained references select textual and visual evidence for , together with the optional controller summary. These checks validate identifier associations, not the semantic content of that summary.
B.4 PROVENANCE PRESERVATION
Let be the archive mapping source-round identifiers to retained observations, so means that the source of is available. For , define the recorded source set
The following property concerns access to recorded evidence, independently of extraction accuracy or the truth of generated summaries.
Proposition 1 (Source recoverability). Suppose every retained state cites with , and stores exactly the distinct facts cited in as in Equation equation 17. Then each state has a trace to its original observation, and expanding followed by recovers exactly . This property is preserved by fact and mention additions and validated evolution insertions or replacements with valid fact identifiers, source bindings, and archive records.
Proof. Because and are disjoint, . Since every , Equation equation 11 gives
(22)
For every , the membership and the source-availability assumption therefore define the trace
Applying to all recovered fact members yields
(24)
Thus expansion neither adds nor omits a recorded source. The set equality deduplicates shared sources; the index-specific association remains available through .
For preservation, denote the evolution sets before and after an update by and . If contains removed evolutions and contains validated new evolutions, then
For every surviving z, unchanged state references and source bindings give
where superscripts identify the corresponding memory snapshots. Its evidential membership is unchanged, so Equations equation 22–equation 24 continue to hold. For every new evolution, validation supplies the same assumptions, and the preceding argument applies directly. Fact and mention additions are the case . The empty memory satisfies the property vacuously; induction over these operations establishes it for every successfully constructed snapshot.
C ADDITIONAL EXPERIMENTAL DETAILS
C.1 BENCHMARKS AND METRICS
MemEye. MemEye (Guo et al., 2026) evaluates visual memory along two axes: visual evidence granularity, from scene-level to pixel-level details, and memory reasoning depth, from atomic retrieval to evolutionary synthesis. It contains eight everyday scenarios and 371 questions, each with paired multiple-choice and open-ended versions. These tasks require agents to recover visually grounded facts, distinguish similar instances, and reason over observations accumulated across sessions.
Mem-Gallery. Mem-Gallery (Bei et al., 2026) evaluates long-term multimodal conversational memory using persona-driven dialogues across 20 scenarios. The evaluated release contains 240 sessions, 3,962 dialogue rounds, 1,490 images, and 1,711 open-ended questions. It probes memory extraction, reasoning, and knowledge management over extended text-image histories.
Algorithm 2 Hypergraph-based agentic search
Require: Query , memory , controller , step budget , image budget
Ensure: Retrieved evidence
1: Initialize and an empty registry of retrieved facts
2: for do
3: Reason over ; select
4: if selects hypergraph retrieval then
5: layer-specific retrieval with applicable traversal (Eq. equation 11)
6: else if selects visual retrieval then
7: matching images and captions
8: else if selects source inspection then
9: original dialogue and images via
10: else
11: Validate submitted references and source associations
12: if submission is accepted then
13: return assembled from selected evidence and notes
14: end if
15: feedback requesting additional evidence
16: end if
17: Register retrieved facts and facts associated with accessed sources
18: Attach requested images to within
19:
20: end for
21: return Finalize through forced evidence submission
WorldMemArena-S. WorldMemArena (Liu et al., 2026a) evaluates memory in GUI and embodied-agent trajectories, as well as lifelong personal and project interactions. We use its released 150-sample subset, denoted WorldMemArena-S, containing 7,906 questions. Its 11 question types cover textual memory, visual memory, and reasoning, including factual recall, dynamic updates, conflict resolution, and cross-modal reasoning. Evaluation follows the annotated QA checkpoints: MHG-Mem constructs memory from only the sessions covered by each checkpoint. Prefix checkpoints reuse the corresponding historical state, while non-prefix session windows are constructed independently to prevent access to out-of-scope observations.
Evaluation Metrics. Let denote the open-ended questions of benchmark and its multiple-choice questions. Answers are lowercased, punctuation-normalized, and whitespace-normalized before scoring; all reported values are percentages.
For MemEye, options are rotated across equivalent instances. Exact Match (EM) is the mean accuracy over rotations and questions:
For open-ended answers, let be the normalized token multiset after Porter stemming and . Token F1 is
with when the overlap is empty. BLEU-1 uses the same normalization without stemming and combines clipped unigram precision with a brevity penalty:
(29) where if and otherwise . We use NLTK method-1 smoothing for sentence-level BLEU-1.
MemEye and Mem-Gallery use their native reference-based judge, whose parsed score is ; . WorldMemArena-S labels each answer as correct, hallucination, or omission and reports QA-C as its Judge:
For WorldMemArena memory diagnostics, let be the gold memory points, the stored add/update items, and the gold points judged covered by . With importance weight , Memory Recall is
If stored items are judged correct, Memory Correctness is
implemented by the released evaluator as . For each update, the post-session memory is classified as updated, both, or outdated, yielding
Finally, if is the gold evidence set and covered is the number of evidence points found by the LLM judge in the returned retrieval list, retrieval hit rate is
where questions without gold evidence contribute zero. WMA metrics are first computed per trajectory and then averaged across evaluated instances.
Table 5 consolidates the fine-grained task semantics used by Mem-Gallery and WorldMemArena-S. Shared capabilities are listed once, while benchmark-specific labels and definitions are retained.
C.2 IMPLEMENTATION DETAILS
We use Qwen3-VL-8B, GPT-4.1-mini, and Qwen3.8-27B memory backbones. The selected backbone performs memory construction, agentic retrieval, and answer generation in MHG-Mem. We instantiate the text encoder with all-MiniLM-L6-v2, and the image and cross-modal encoders with google/siglip2-base-patch16-384. Qwen3-VL-8B and Qwen3.8-27B are served using vLLM on four NVIDIA A800 GPUs, while GPT-4.1-mini is accessed through the official API. All models apply 65,536 max token limit and 0 temperature. Each result is averaged over three runs.
In memory construction stage, the context contains up to three preceding rounds from the same session, and at most eight images from are passed to the construction models. Occurrence linking uses the top candidate hyperedges in Eq. equation 4, with . Evolution synthesis retains only records grounded in at least two facts in and observations from at least two sessions. For WorldMemArena-S, is refreshed after every visible session checkpoint; for the static MemEye and Mem-Gallery corpora, it is synthesized after the available history has been constructed.
In memory retrieval stage, the controller follows the search loop in Algorithm 2 with and . The entity-layer search returns at most 3 referent groups; the
Table 5: Fine-grained task definitions used by Mem-Gallery and WorldMemArena-S. A dash indicates that the benchmark has no directly corresponding task label.
| Capability | Mem-Gallery | WorldMemArena-S |
|---|---|---|
| Fact recall | FR (Factual Retrieval): retrieve an explicit fact from the conversation. | FR (Fact Recall): retrieve one concrete fact stated earlier in the trajectory. |
| Multi-entity reasoning | MR (Multi-entity Reasoning): combine retrieved information about multiple entities to infer an answer. | - |
| Temporal reasoning | TR (Temporal Reasoning): resolve a time-dependent question. | TR (Temporal Reasoning): reason about timing, ordering, or duration. |
| Visual or cross-modal reasoning | VR (Visual-centric Reasoning): use visual information in addition to the dialogue. | CMR (Cross-modal Reasoning): combine textual and visual memory. |
| Test-time learning | TTL (Test-time Learning): learn visual knowledge from historical images and apply it during QA. | TTL (Test-Time Learning): apply a rule or skill taught earlier in the trajectory. |
| Visual search | VS (Visual-centric Search): find the image(s) matching a query and return their image IDs. | VS (Visual Search): locate an object or attribute across visual memory. |
| Conflict handling | CD (Conflict Detection): detect a contradiction between the history and the question. | MC (Memory Conflict): resolve disagreement between two memory items using context. |
| Knowledge reasoning or resolution | KR (Knowledge Resolution): resolve updates or conflicts by prioritizing the most recent information. | KR (Knowledge Reasoning): combine stored facts with general world knowledge. |
| Answer boundary | AR (Answer Refusal): answer “Not mentioned” when the information is absent. | - |
| Dynamic update | - | DU (Dynamic Update): report the latest value after a queried fact is overwritten. |
| Visual fact recall | - | VFR (Visual Fact Recall): recover a fact anchored to a specific image. |
| Visual update | - | VU (Visual Update): report the most recent state after a visual attribute changes. |
visual search returns at most 5 images. Evolution-layer search returns at most 3 relevant evolution aspects. The fact-layer search returns at most 30 candidates facts. For MemEye and Mem-Gallery, source inspection exposes the rounds referenced by ; WorldMemArena-S exposes the cited FactNodes . We follow the benchmark-specific QA and judging procedures defined above.
C.3 BASELINES
A-Mem. A-Mem (Xu et al., 2025) organizes textual memories as interconnected notes inspired by the Zettelkasten method. It enriches each note with contextual descriptions and indexing attributes, establishes links to related notes, and updates existing memories as new observations arrive.
MemoryOS. MemoryOS (Kang et al., 2025) maintains short-term, mid-term, and long-term memory. Storage, updating, retrieval, and generation modules coordinate the transfer and consolidation of conversational information across these tiers to support persistent user knowledge and preferences.
SimpleMem. SimpleMem (Liu et al., 2026c) compresses interactions into compact, self-contained textual memory units. Its pipeline combines semantic structured compression, online semantic synthesis, and intent-aware retrieval planning to reduce redundancy and assemble query-relevant context. The unimodal category refers to textual memory representations.
HyperMem. HyperMem (Yue et al., 2026) organizes long-term conversations into topic, episode, and fact levels. Hyperedges group associated episodes and facts, while hybrid lexical-semantic indexing and coarse-to-fine retrieval recover related information across these levels.
M2A. M2A (Feng et al., 2026) combines an immutable raw-message store with a semantic-memory store of higher-level observations. A conversational agent and a memory manager coordinate memory updates and iterative retrieval, retaining links between semantic memories and their original multimodal evidence.
MMA. MMA (Lu et al., 2026) is a confidence-aware multimodal memory agent. It combines semantic relevance with memory reliability, estimated from source credibility, temporal decay, and conflict-aware consensus, to reduce reliance on stale or conflicting observations.
SRAG. SRAG denotes the multimodal Semantic RAG baseline in MemEye (Guo et al., 2026). It ranks historical records by combining text and image embedding similarities and supplies retrieved text and associated original images to the answer model. It provides a direct retrieval comparison to methods that construct additional memory abstractions or relational structures.
UniversalRAG. UniversalRAG (Yeo et al., 2026) routes queries to corpora organized by modality and granularity. Modality-aware routing selects the appropriate evidence source, while retrieval at different granularities supplies context for answer generation.
D ADDITIONAL EXPERIMENT RESULTS AND ANALYSIS

Figure 5: Average tool utilization on WorldMemArena-S with Qwen3.8-27B, reported overall and by 7 task types: OA (Overall Average), TTL (Test-time Learning), TR (Temporal Reasoning), CMR (Cross-modal Reasoning), KR (Knowledge Reasoning), DU (Dynamic Updating), VU (Visual Update), and MC (Memory Conflict).
D.1 RETRIEVAL TOOL ANALYSIS
Figure 5 reports average tool usage on WorldMemArena-S with Qwen3.8-27B. Hypergraph tools (resolve_entity, resolve_fact, and resolve_evolution) and the inspection tool (get_raw_verbatim) dominate agentic search. In particular, resolve_fact and get_raw_verbatim are invoked most frequently, suggesting that many questions can be traced through atomic facts and verified against original dialogue or visual evidence. Entity-and evolution-layer retrieval also accounts for substantial usage in TTL, TR, KR, DU, and VU tasks. This pattern suggests that, for temporal reasoning and multimodal updates, the agent links observations of the same entity and retrieves relevant state histories to reason about attribute updates, conflicts, and replacements.
D.2 Cost Analysis
Figure 6 compares token consumption and QA performance across methods. Following prior work, we measure the average total number of LLM input and output tokens per sample across memory construction, retrieval, and QA. For multimodal methods, this count also includes image input tokens determined by the corresponding LLM's visual encoding. We additionally report MHG-Mem (w/o A.S.), an ablation that replaces agentic search with top-k hypergraph retrieval.
Among the baselines, unimodal memory methods that abstract images into textual captions consume fewer tokens but achieve lower QA performance, as fine-grained visual details are omitted. Among multimodal methods, RAG-based approaches (SRAG, MMA, and UniversalRAG) require fewer tokens than memory-based approaches (M2A and MHG-Mem) because they avoid explicit memory construction and iterative search.
Although MHG-Mem improves benchmark-averaged QA performance by 8.20–9.98 points over the strongest baseline for each backbone, it consumes approximately 2x tokens, reflecting both the processing of multimodal information during memory construction and iterative tool calls during retrieval. The additional cost primarily arises from agentic search: MHG-Mem (w/o A.S.) requires only approximately 1–2k more tokens than multimodal baselines while still delivering performance gains of 5%–15%, offering a favorable balance between cost and performance. These results suggest using similarity-based hypergraph retrieval in resource-constrained settings and agentic hypergraph search when higher QA performance is the priority.

Figure 6: Trade-off between token consumption and QA performance among different baselines. w/o A.S. represents replace MHG-Mem's agentic search with top-k retrieval.
(a) Memory Quality

(b) Task-wise Performance
FR VFR VS CMR TR DU VU MC KR TTL
FR MR TR VR TTL VS CD KR AR
Figure 7: (a) Memory quality and (b) fine-grained tasks performance on WorldMemArena-S (WMA-S) and Mem-Gallery with Qwen3-VL-8B.
(a) Memory Quality

(b) Task-wise Performance
| WMA small | Mem-Gallery | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 80 | 86 | 86 | 65 | 56 | 51 | 72 | 55 | 78 | 61 | 66 | 74 | 74 | 51 | 79 | 50 | 54 | 59 | 62 |
| 26 | 27 | 9 | 45 | 15 | 21 | 47 | 21 | 49 | 41 | 80 | 77 | 73 | 47 | 87 | 27 | 58 | 65 | 68 |
| 72 | 79 | 50 | 61 | 47 | 45 | 67 | 54 | 73 | 50 | 91 | 89 | 83 | 43 | 41 | 23 | 70 | 75 | 61 |
| 75 | 87 | 84 | 63 | 51 | 50 | 70 | 61 | 78 | 57 | 52 | 67 | 56 | 22 | 74 | 21 | 64 | 44 | 69 |
| 72 | 85 | 85 | 58 | 51 | 52 | 70 | 55 | 78 | 53 | 78 | 75 | 39 | 40 | 80 | 34 | 75 | 57 | 65 |
| 75 | 65 | 48 | 58 | 54 | 53 | 66 | 39 | 74 | 48 | 77 | 84 | 74 | 46 | 78 | 87 | 71 | 72 | 65 |
| 78 | 85 | 85 | 64 | 58 | 54 | 72 | 60 | 79 | 59 | 81 | 88 | 48 | 55 | 87 | 34 | 73 | 62 | 69 |
| 70 | 87 | 86 | 71 | 60 | 61 | 74 | 59 | 79 | 54 | 85 | 84 | 77 | 61 | 85 | 84 | 76 | 80 | 64 |
FR VFR VS CMR TR DU VU MC KR TTL
FR MR TR VR TTL VS CD KR AR
Figure 8: (a) Memory quality and (b) fine-grained tasks performance on WorldMemArena-S (WMA-S) and Mem-Gallery with GPT-4.1-mini.
D.3 MEMORY QUALITY AND FINE-GRAINED ANALYSIS ON MORE BACKBONES
Figure 7 and 8 extend the memory quality and task-level analysis to Qwen3-VL-8B and GPT-4.1-mini, respectively. Across both backbones, MHG-Mem achieves the highest memory correctness and update handling, with retrieval coverage among the best. These results show that effective state maintenance coexists with accurate memory retention and strong evidence coverage, consistent with our objective of organizing evolving observations while keeping their supporting evidence accessible.
The most consistent task-level advantages concern visual evidence use and state evolution. On WorldMemArena-S, MHG-Mem outperforms all compared baselines in cross-modal reasoning, temporal reasoning, dynamic updates, and visual updates with both backbones. In particular, cross-modal reasoning improves over the strongest baseline by 20% and 6% with Qwen3-VL-8B and GPT-4.1-mini, respectively. On Mem-Gallery, visual-centric reasoning improves by 4% and 6%, while knowledge resolution improves by 5% under both backbones; conflict detection also benefits in both settings. These recurring gains align with the two requirements motivating MHG-Mem: accessing relevant visual observations and integrating changes across interaction histories. They are consistent with the intended role of entity histories and state-specific evidence links in supporting comparison and verification across observations.
The improvements nevertheless depend on the task and backbone. For example, Mem-Gallery temporal reasoning improves by 3% with Qwen3-VL-8B but remains 6% below the strongest baseline with GPT-4.1-mini. MHG-Mem also trails the strongest factual-recall baseline on both benchmarks under both backbones. Thus, the memory-quality improvements do not translate uniformly into every downstream capability: visual evidence use and state updates show reproducible benefits, while factual recall remain areas for improvement.
D.4 HYPERPARAMETER ANALYSIS
Analysis of the occurrence-linking candidate count K. The upper half of Table 6 reports QA performance with different top-K candidate counts for occurrence linking during memory construction. Across the tested values of K, scores vary by only 1.48, 2.26, and 1.94 points on MemEye, Mem-Gallery, and WorldMemArena-S, respectively. The average score is 73.28 at K = 3, compared with 73.33 at the best tested value, K = 5, indicating that performance is relatively insensitive to K. Since larger candidate sets increase context length with limited performance gains, we retrieve at most K = 3 candidates for occurrence linking.
Analysis of agentic budgets and . The lower half of Table 6 examines the effects of retrieval budgets. Increasing or allows longer retrieval trajectories or more image evidence, respectively, but also increases input token consumption. Raising the budgets from (4, 4) to (16, 8) improves the average QA score from 67.29 to 72.48, a
Table 6: Hyperparameter sensitivity at the construction and retrieval stages with Qwen3.8-27B. The construction-stage sweep varies the number of top- occurrence-linking candidates. The retrieval-stage sweep evaluates the agentic search budget (, ) and reports the force-submit rate. LLM-Judge scores are reported. Avg. means the average judge score across three benchmark. Bold values are the best within each stage.
| Setting | MemEye | Mem-Gallery | WMA-S | Avg. | Force-submit (%) |
|---|---|---|---|---|---|
| Construction stage | |||||
| 64.70 | 85.84 | 64.41 | 71.65 | — | |
| 65.54 | 86.99 | 65.67 | 72.73 | — | |
| 65.93 | 87.85 | 66.05 | 73.28 | — | |
| 65.22 | 87.46 | 66.35 | 73.01 | — | |
| 66.18 | 88.10 | 65.71 | 73.33 | — | |
| Retrieval stage | |||||
| 59.44 | 81.79 | 60.63 | 67.29 | 37.3 | |
| 62.02 | 84.76 | 62.37 | 69.72 | 26.8 | |
| 63.91 | 86.30 | 63.10 | 71.10 | 24.6 | |
| 65.42 | 87.04 | 64.99 | 72.48 | 17.9 | |
| 65.73 | 87.85 | 66.05 | 73.21 | 17.5 | |
| 65.47 | 87.63 | 66.51 | 73.20 | 13.4 | |
| 66.09 | 87.46 | 66.80 | 73.45 | 13.5 | |
gain of 5.19 percentage points, while reducing the forced-submission rate from 37.3% to 17.9%. These results suggest that restrictive budgets can prevent the agent from gathering sufficient evidence through hypergraph search. For example, questions requiring fine-grained visual distinctions among multiple entities may require inspecting more image crops than the budgets permit, leading to premature submission and lower performance. However, increasing (, ) further to (24, 16) yields only a 0.24-point improvement over (16, 10) while consuming more tokens. To balance the cost and performance trade-off, we therefore set (, ) ≤ (16, 10) for experiment.
D.5 MORE CASE STUDIES
Figures 9 and 10 illustrate how MHG-Mem reconstructs entity histories through adaptive retrieval and source verification. In Figure 9, the agent retrieves the faucet's evolution record and traces its supporting facts to original frames, recovering the complete off-running-off sequence; the baselines omit states or fail to answer. In Figure 10, retrieval begins with entity resolution, followed by evolution retrieval and source inspection. This recovers the oak-log count sequence and verifies the latest count from the inventory image, whereas UniversalRAG and M2A recover only . Both cases highlight the value of linking observations under a shared entity identity while preserving state-specific evidence for cross-session synthesis and visual verification.

Figure 9: Case study in an embodied agent scenario. MHG-Mem records the faucet's state throughout the multimodal agent's action history.

Figure 10: Case study in a GUI agent scenario. MHG-Mem records the count state of oak log in Minecraft throughout the multimodal agent's action history.
E PROMPT TEMPLATES
The five prompt templates below cover memory construction (Appendix B.2) and agentic search (Table 4). We preserve prompt wording and placeholders, omit Python assignment wrappers, and adjust line wrapping for readability. For additional LLM-as-a-judge and QA prompts, we use the original benchmark-provided prompts to ensure fair comparisons.
E.1 ATOMIC FACT CONSTRUCTION
Converts the current round into standalone facts while retaining temporal and visual details.
01 Atomic fact construction
You convert ONE conversation round into a set of ATOMIC MEMORIES — short, standalone facts that a separate answerer will later retrieve to answer questions. You are given the round's dialogue text, its image caption(s), and its REAL image(s). You may also see up to three EARLIER rounds of the same conversation as read-only context (their text and image captions only — no earlier pictures), and a list of EXISTING MEMORIES already stored from past rounds. Write memories ONLY for the CURRENT round; use the earlier rounds and the current image(s) just to understand the round and to resolve references.
Read BOTH the caption AND the real pixels of the current round. The caption often spells a detail out in words (card names, on-screen text, dashboard labels, message transcripts); the pixels carry details the caption omits (colors, counts, spatial layout, what is actually shown). Capture from both.
## ADD-ONLY against EXISTING MEMORIES
If an ## EXISTING MEMORIES list is given, treat it as memories that are ALREADY STORED. Your job is ADDITIVE: output the facts from the CURRENT round that are NOT already represented there. Do not restate, paraphrase, or lightly reword an existing memory. Never create a memory from the existing list alone — every memory you output must be supported by the CURRENT round.
-
Default to WRITING a fact. Suppress a candidate ONLY when it is the SAME fact about the SAME moment as an existing memory. When in doubt, WRITE it — a missed fact can never be recovered, a near-duplicate is cheap.
-
The mere presence of the same entity, brand, game, route, dashboard, or template in an existing memory does NOT make the current round a duplicate. A new event, a new state, a changed value, a different date/session, a new opinion or conclusion the user draws, or any new detail is ALWAYS a new memory — write it.
Write each memory to this STANDARD:
-
ATOMIC & self-contained: one fact per memory — a single event, state, attribute, or relationship — understandable on its own. Begin from the concrete named subject.
-
ABSOLUTE time: anchor every time reference to the Observation Date given. Convert "today / tomorrow / yesterday / last week / this Monday" to an explicit calendar date (YYYY-MM-DD). Never store a bare relative time or weekday.
-
DESCRIBE the state, do NOT compute the answer. Record what is shown or said — list the cards in a hand, the panels on a dashboard and their values, the people in a chat and who said what. Do NOT add totals, counts across rounds, winners, comparisons, or any conclusion the data merely implies. Faithful state, never a frozen verdict.
-
CAPTURE what a later question could ask: numbers, colors, spatial relations (left / right / above / below / lower-left / behind / beside / under), in-image text, per-item attributes, who did what, and any change from the earlier context.
-
Only return an empty list when the CURRENT round genuinely contains NOTHING beyond what is already stored (e.g. a bare "ok", "thanks", "correct" with no new content of its own). Return ONLY JSON:
{"atomic_facts": ["<one standalone memory>", "<another standalone memory>"]}
If the round carries nothing new worth remembering, return {"atomic_facts":[]}
E.2 MULTIMODAL ENTITY EXTRACTION
Extracts nameable entities and grounds visual or multimodal mentions in image regions.
02 Multimodal entity extraction
You extract MULTIMODAL ENTITIES from ONE conversation round (its dialogue text AND its image, if any).
An ENTITY is a persistent, nameable THING that could be asked about later — for example: a brand, logo, product. This list is illustrative, not exhaustive — extract any concrete, nameable thing a later question could point at
Give each entity ONE modality, decided by WHERE you learned about it:
-
visual: something you can SEE in the image. This is the DEFAULT for anything in the picture — objects, people, places, logos, products, signs, on-screen panels. Give it a short specific name (e.g. "red delivery truck", "Coca-Cola logo"). bbox required. -
multimodal: visible in the image AND also named in the dialogue text. Name it from the dialogue; the box is on the region that shows it. bbox required. -
text: named in the dialogue text (what the USER or ASSISTANT actually typed) but NOT visible in the image. bbox is null. This is RARE — use it ONLY for things mentioned in the conversation that you cannot see.
For every visual and multimodal entity, bbox is absolute pixels [x0,y0,x1,y1] in the image's pixel frame, tight around the thing.
Return ONLY JSON:
{"entities": [{"name":"...","type":"<brand|person|character|object|product|place|animal|organization|other>","modality":"visual|multimodal|text","bbox":[x0,y0,x1,y1] or null]}]
Rules:
-
Only extract things written in the dialogue or clearly visible in the image — never invent.
-
If nothing qualifies, return {"entities":[]}.
E.3 OCCURRENCE LINKING
Associates a candidate mention with a stored referent, creates a new referent, or rejects an invalid extraction.
03 Occurrence linking
You decide how to store ONE candidate entity into a memory of already-known entities.
You are given:
-
ROUND CONTEXT: the conversation round the candidate was found in (its text, and the full round image if any) — use it to understand what the candidate actually is.
-
CANDIDATE: its name, type, modality, and, if visual, its cropped region (shown below).
-
MATCHES: most similar to the candidate (by text and visual similarity), each with its best-matching stored region (shown below).
Choose EXACTLY ONE action:
-
update: the candidate is the SAME real-world thing as one MATCH—link to that entity id. Also useupdatefor a repeat sighting of a thing already stored, to record this new occurrence. -
add: the candidate is a REAL entity but none of the MATCHES is the same real-world thing. -
skip: ONLY when the candidate is NOT a real, storable entity (an extraction mistake or abstract concept).
Return ONLY JSON:
{"action":"update|add|skip","target_entity_id":"<id, only if update>","add_alias":"<optional new alias>","reason":"<one line>"}
E.4 STATE EVOLUTION SYNTHESIS
Identifies changing aspects and binds each reported state to its supporting fact identifier.
04 State evolution synthesis
You are given ONE referent (a thing that recurs in a long conversation) and the time-ordered list of ATOMIC FACTS recorded about it. Your job is to report which ASPECTS of this referent actually CHANGED over time.
An ASPECT is a single named property that can hold different values at different times — for example: hand_size, location, owner, color, price, status, score, version, participants, weight.
What counts as a change
A change means: the SAME aspect of the SAME referent holds DIFFERENT values at different times. For example:
-
"is in the kitchen" then "is in the bedroom"-> aspect
locationCHANGED. Report it. -
"costs 9"-> aspect
priceCHANGED. Report it.
What does NOT count as a change (this is the common case — read carefully)
-
A value stated repeatedly, or restated in different words, is NOT a change.
-
New, additional details about DIFFERENT aspects are NOT a change unless one aspect's own value is replaced by another value.
How to write what you find
For each aspect that genuinely changed:
-
aspect: a short lowercase snake_case key naming the property (hand_size, not "the size of the hand"). -
states: two or more entries in TIME ORDER. Each entry MUST carry: -
value: the value at that time, as short as possible (a number, a color, a place, a name). -
fact_id: the id of the fact you read that value from. It MUST be one of the fact ids listed below, copied exactly. Never invent an id. -
summary: one sentence DESCRIBING the observed states in order, with their dates. -
update_type: one of -
replacement— the new value replaces the old one (a measurement, a location, a price) -
correction— the later fact says the earlier one was wrong -
addition— the value grew by accumulating items rather than being replaced
Return ONLY JSON:
{"aspects": [{"aspect":"<snake_case>","states": [{"value":"<v1>","fact_id":"<id>"},"value":"<v2>","fact_id":"<id>"}],"summary":"<one sentence describing the states in order>","update_type":"replacement|correction|addition"}]}
If no aspect of this referent changed, return exactly {"aspects":[]}.
E.5 HYPERGRAPH-BASED AGENTIC SEARCH
Guides sequential tool use to assemble evidence for the separate answer model.
The placeholders [MEMORY_SCHEMA], [TOOL_SCHEMA], and {max_steps} denote the memory schema, tool definitions, and search budget, respectively. The five gathering tools collect evidence; submit_evidence terminates retrieval.
05 Hypergraph-based agentic search
You are a hypergraph memory retriever. Given a QUESTION, you SEARCH a long-term multimodal memory of past conversation rounds and assemble an EVIDENCE CHAIN for a separate QA model. You do NOT answer the question yourself.
What is in memory: [MEMORY_SCHEMA]
Tool Definition: [TOOL_SCHEMA]
Format — EXACTLY ONE action per reply, nothing after it
Each reply MUST be exactly:
...
Action: <one tool name>
Action Input: {{<json>} }
...
STRICT RULES:
-
Output ONE Action, ONE Action Input, then STOP. Do NOT write a second Thought/Action in the same reply — you will only see the result of the FIRST action, so any extra ones are wasted.
-
After
Action Input: {{...}}write NOTHING more. Do not narrate, do not plan further steps. -
you will receive
Observation: {{...}}(and any images). Read it, then send your NEXT single action.
When the evidence is sufficient, call submit_evidence.
Strategy
-
You have five hypergraph gathering tools; use whichever fit the question. Call ONE per turn and read its Observation before the next.
-
If the question hinges on a visual/pixel detail, open the most promising facts' rounds with get_raw_verbatim (or use search_image) so you actually SEE the images before citing.
-
Be efficient: you have at most {max_steps} steps. Submit as soon as the evidence is sufficient.