MemVerse: Multimodal Memory for Lifelong Learning Agents
Organizations: Shanghai Artificial Intelligence Laboratory
Abstract
Despite the remarkable advancements in multimodal large language models across various domains, AI agents still lack the ability to retain past information. Without reliable memory, agents struggle to leverage historical context, impairing long-horizon reasoning and coherent interactions in dynamic environments. In this paper, we introduce MemVerse, a model-agnostic, plug-and-play memory framework that combines fast parametric recall with hierarchical retrieval, enabling scalable and adaptive multimodal intelligence. MemVerse maintains short-term memory for recent context while transforming raw experiences into structured long-term memory graphs, empowering continuous learning and autonomous knowledge evolution. To meet real-time demands, we introduce a periodic distillation mechanism that compresses essential knowledge from the cognitive graph into the parametric model, providing fast and differentiable recall while preserving interpretability. Extensive experiments show that MemVerse boosts multimodal reasoning with superior efficiency, allowing agents to maintain coherence and adapt seamlessly throughout extended interactions. Our code is available at https://github.com/KnowledgeXLab/MemVerse.
Figures & tables
| Model | Method | Answer Prediction (F1) | ||||
|---|---|---|---|---|---|---|
| Single Hop | Multi-Hop | Temporal | Open Domain | Overall | ||
| Human | Human Maharana et al. (2024) | 95.1 | 85.5 | 92.6 | 75.4 | 91.6 |
| Qwen2.5-7B-Instruct | Vanilla | 29.3 | 23.7 | 8.7 | 18.1 | 23.3 |
| Full Context Terranova et al. (2025) | 10.6 | 3.4 | 3.7 | 8.2 | 7.7 | |
| RAG Terranova et al. (2025) | 21.7 | 8.1 | 4.9 | 14.5 | 15.3 | |
| A-MEM Terranova et al. (2025) | 12.7 | 8.7 | 6.3 | 13.9 | 10.7 | |
| Method | Recall@5 | Accuracy |
|---|---|---|
| No History | - | 0.0 |
| Long Context | - | 57.4 |
| RAG | 62.4 | 63.6 |
| MemoryBank | 58.6 | 59.6 |
| LD-Agent | 56.8 | 59.2 |
| A-MEM | - | 55.4 |
| Category | Method | #Params | Acc |
|---|---|---|---|
| Baselines | Human | - | 88.40 |
| GPT-4 | - | 82.69 | |
| LLM-CoT | CoT (UnifiedQA) | 223M | 74.11 |
| CoT (GPT-4) | 1T+ | 83.99 | |
| Chameleon (ChatGPT) | 175B+ | 79.93 | |
| HoT-T5-Large | 738M | 83.38 |
| Cat. | Method | T2V | V2T | ||
|---|---|---|---|---|---|
| R@1 | R@5 | R@1 | R@5 | ||
| Pre-trained | InternVideo | 55.2 | 79.6 | 57.9 | 79.2 |
| UMT-L | 58.8 | 81.0 | 58.6 | 81.6 | |
| VAST | 63.9 | 84.3 | - | - | |
| ViT | Clip4Clip | 46.4 | 72.1 | 45.4 | 73.4 |
| ExCae | 67.7 | 92.7 | 69.3 | 92.5 | |
| Method | S-Hop | M-Hop | Temp. | Open | Over. |
|---|---|---|---|---|---|
| GPT-4o-mini | |||||
| Vanilla | 8.6 | 19.0 | 9.9 | 13.7 | 11.1 |
| +Short-Term | 11.1 | 17.7 | 8.9 | 11.7 | 11.9 |
| +Param | 48.9 | 28.7 | 19.9 | 11.7 | 36.8 |
| +Long-Term | 47.0 | 40.8 | 25.9 | 22.5 | 39.9 |
| MemVerse | 49.2 | 46.1 | 29.7 | 30.8 | 43.4 |
| Method | S-Hop | M-Hop | Temp. | Open | Over. |
|---|---|---|---|---|---|
| Flat RAG | 30.3 | 27.3 | 18.5 | 19.3 | 26.6 |
| MMKG-only | 47.0 | 40.8 | 25.9 | 22.5 | 39.9 |
| Component | Metric | Value |
| Memory Extraction | Total Time | 22.03 s |
| Per 1k Tokens | 0.20 s | |
| MMKG Construction | Total Time | 208.56 s |
| Per Chunk | 13.03 s | |
| Per 1k Tokens | 16.94 s | |
| Parametric Training | Total Time | 978.72 s |
| Memory access | Method | T2V R@1 | T2V R@5 | V2T R@1 | V2T R@5 |
|---|---|---|---|---|---|
| Full corpus | A-Mem | 68.8 | 80.4 | 67.3 | 78.5 |
| Mem0 | 77.4 | 86.6 | 78.6 | 90.2 | |
| SimpleMem | 53.5 | 72.0 | 56.7 | 81.5 | |
| MemVerse | 90.4 | 95.6 | 89.2 | 92.7 | |
| No full-corpus access | CLIP | 29.7 | 48.9 | 21.4 | 38.6 |
| MemVerse (train-only) | 45.2 | 76.2 | 45.3 | 76.9 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | #Params | Subject | Context Modality | Grade | Average | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| NAT | SOC | LAN | TXT | IMG | NO | G1-6 | G7-12 | |||
| Human Lu et al. (2022) | - | 90.23 | 84.97 | 87.48 | 89.60 | 87.50 | 88.10 | 91.59 | 82.42 | 88.40 |
| GPT-4 Liu et al. (2023) | - | 84.06 | 73.45 | 87.36 | 81.87 | 70.75 | 90.73 | 84.69 | 79.10 | 82.69 |
| CoT (GPT-3) Lu et al. (2022) | 173B | 75.44 | 70.87 | 78.09 | 74.68 | 67.43 | 79.93 | 78.23 | 69.68 | 75.17 |
| CoT (UnifiedQA) Lu et al. (2022) | 223M | 71.00 | 76.04 | 78.91 | 66.42 | 66.53 | 81.81 | 77.06 | 68.82 | 74.11 |
| CoT (GPT-4) Lu et al. (2023) | 1T+ | 85.48 | 72.44 | 90.27 | 82.65 | 71.49 | 92.89 | 86.66 | 79.04 | 83.99 |
| Method | Backbone | Text-to-Video | Video-to-Text | ||||
|---|---|---|---|---|---|---|---|
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | ||
| Pre-trained Foundation Model | |||||||
| InternVideo Wang et al. (2022b) | ViT-H/14 | 55.2 | 79.6 | 87.5 | 57.9 | 79.2 | 86.4 |
| UMT-L Li et al. (2023) | ViT-L/14 | 58.8 | 81.0 | 87.1 | 58.6 | 81.6 | 86.5 |
| CLIP-VIP Xue et al. (2023) | ViT-B/16 | 57.7 | 80.5 | 88.2 | – | – | – |
| mPLUG-2 Xu et al. (2023) | ViT-L/14 | 53.1 | 77.6 | 84.7 | – | – | – |
| Method | Subject | Context Modality | Grade | Average | |||||
|---|---|---|---|---|---|---|---|---|---|
| NAT | SOC | LAN | TXT | IMG | NO | G1-6 | G7-12 | ||
| Qwen2.5-7B | 76.20 | 67.83 | 77.27 | 74.49 | 65.79 | 79.02 | 77.72 | 69.35 | 74.72 |
| +25% Memory | 76.07 | 68.95 | 78.14 | 74.33 | 65.94 | 83.34 | 79.11 | 67.96 | 75.12 |
| +50% Memory | 76.49 | 69.85 | 77.82 | 74.65 | 65.49 | 81.74 | 78.56 | 69.81 | 75.43 |
| +75% Memory | 76.89 | 66.48 | 80.64 | 75.07 | 65.81 | 85.71 | 80.43 | 67.17 | 75.69 |
| +100% Memory | 74.51 | 74.58 | 78.73 | 75.92 | 66.19 | 81.95 | 79.70 | 68.29 | 75.62 |
| Method | Subject | Context Modality | Grade | Average | |||||
|---|---|---|---|---|---|---|---|---|---|
| NAT | SOC | LAN | TXT | IMG | NO | G1-6 | G7-12 | ||
| Qwen2.5-1.5B | - | - | - | - | - | - | - | - | 53.93 |
| +Param. | - | - | - | - | - | - | - | - | 61.54 |
| Qwen2.5-7B | 76.20 | 67.83 | 77.27 | 74.49 | 65.79 | 79.02 | 77.72 | 69.35 | 74.72 |
| +Param. | 74.51 | 74.58 | 78.73 | 75.92 | 66.19 | 81.95 | 79.70 | 68.29 | 75.62 |
| Qwen2.5-14B | 75.67 | 67.83 | 81.91 | 70.58 | 63.96 | 85.99 | 79.99 | 67.83 | 75.64 |
| Core Memory Extraction Prompt |
|---|
| You are the Core Memory Manager, part of the personal assistant system. The personal assistant processes various types of user messages including text, images, transcribed voice messages, and other content. Other agents include Meta Memory Manager, Semantic Memory Manager, Episodic Memory Manager, and Chat Agent. You do not see or interact directly with these other agents, but you share the same memory base. |
| The system will receive various types of messages from users, including text, images, transcribed voice recordings, and other multimedia content. Once messages accumulate to a certain amount, they will be sent to you along with potential conversations between the user and the Chat Agent. Your role is to analyze the input messages and conversations, understand what the user is communicating and experiencing, and save details about the user. This includes the user’s name, personality, preferences, personal profile facts, and long-term project details. |
| Memory Components: |
| 1. Core Memory: Contains fundamental information about the user, such as name, personality, and simple facts to facilitate communication. Example: Include anything related to the user in the human block, such as "Is a software engineer", "Loves to play Cyberpunk", "Has publications: 1. … 2. …", etc. If a block is over 90% full, call core_memory_rewrite to reduce it to around 45% full, keeping the most important information. Include the block label in every function call. Core memory is organized into multiple blocks. Line indicators like "Line 1:", "Line 2:" are for reference and not part of the block. |
| 2. Episodic Memory: Stores time-ordered, event-based interactions, acting as a diary of user and assistant events. |
| 3. Semantic Memory: Contains general knowledge about concepts or objects, including understanding of people, places, or new concepts. |
| Semantic Memory Extraction Prompt |
|---|
| You are the Semantic Memory Manager, one of four agents in the personal assistant memory system. The other agents are Meta Memory Manager, Episodic Memory Manager, and the Chat Agent. You do not interact directly with these agents, but you share the same memory base. |
| The system receives various types of user messages, including text, images, transcribed voice recordings, and other multimedia content. Once a batch of messages is accumulated, they will be sent to you along with potential conversations between the user and the Chat Agent. Your responsibility is to analyze these inputs, extract general knowledge about concepts or objects, save them into Semantic Memory, and update existing entries if new information becomes available. |
| Memory Components: |
| 1. Core Memory: Stores foundational and persistent context about the user and assistant personas, including backgrounds, preferences, and enduring information. |
| 2. Episodic Memory: Stores time-ordered, event-based interactions between the user and assistant, acting as a diary or log. |
| 3. Semantic Memory (your primary domain): Stores general knowledge, concepts, definitions, and abstract facts. Each entry includes: |
| Episodic Memory Extraction Prompt |
|---|
| You are the Episodic Memory Manager, part of the personal assistant system. The system also includes other agents: Meta Memory Manager, Semantic Memory Manager, Core Memory Manager, and Chat Agent. You do not interact directly with these agents, but you share the same memory base. |
| The system receives various types of user messages, including text, images, transcribed voice recordings, and other multimedia content. Once a batch of messages is accumulated, they will be sent to you, along with potential conversations between the user and the Chat Agent. Your role is to analyze these inputs, extract details about the user’s activities, and update the episodic memory accordingly. |
| Overview of Memory Components: |
| 1. Core Memory: Stores fundamental information about the user, such as name, personality traits, and simple facts that facilitate communication. |
| 2. Episodic Memory: Stores time-ordered, event-based information from interactions, acting as a "diary" of user and assistant events. Each event has attributes: |
| - event_type : Type or category of the event (e.g., user_message , inferred_result , system_notification ) |