Manuscript Offprint

arXiv:2609.07471

MEMO: Multimodal Evidence Memory Organization for Long-Horizon LLM Agents

Xian Gao, Jinpeng Wang, Jiacheng Ruan, Guangyu Cao, Ting Liu, Yuzhuo Fu

Abstract

Long-running LLM agents rely on external memory to store and reuse information beyond a single context window, yet there is a fundamental tension between the continuous accumulation of interaction trajectories and the limited context capacity. The key challenge in agent memory is therefore not only to retrieve relevant records, but also to select necessary evidence under a given budget and organize it in an appropriate modality. Existing memory readout methods mainly use textual or visual forms. Text preserves high fidelity, but its linear token representation makes contents with different importance compete for the limited context at nearly uniform unit cost. Visual readout renders text into document-like images, which can use two-dimensional layouts to expose structure and emphasize key information, but it may lose fine-grained details during rendering and compression. To address this issue, we propose MEMO, a Multimodal Evidence Memory Organization method for LLM agents. MEMO first uses a trained evidence extractor to select relevant memory blocks and form evidence units with source information and presentation requirements. A trained query-conditioned memory manager assigns each unit to a textual, visual, or dual-channel carrier and selects a layout that matches the evidence structure. A deterministic memory construction module then generates the textual package and visual pages. The memory manager is trained with feedback from an offline reader that measures the utility of the guided memory plan, so that retention and presentation decisions align with downstream usage. We evaluate MEMO on four benchmarks, HotpotQA, 2WikiMultiHopQA, LoCoMo, and ALFWorld, with multiple reader backends. The results show that MEMO presents memory more efficiently with fewer memory tokens, improves downstream task performance, and builds more effective working memory under constrained budgets. For example, under a fixed 128-token budget with Qwen3-VL-32B as the reader, MEMO achieves an F1 score of 73.91 on 2Wiki, outperforming text-only memory with 56.26 and visual-only memory with 35.89.

Introduction

Large language models (LLMs) are increasingly evolving into agents that continuously perceive their environments, invoke tools, and execute complex tasks. In long-horizon interactions, agents need external memory to store information beyond a single context window and to recall relevant records in later actions. However, as interaction trajectories accumulate, memory grows continuously. Feeding the full history

Figure

Figure 1: Motivation of MEMO.

directly into the model is not only costly, but also forces truly useful evidence to compete with a large amount of redundant or weakly relevant content for the limited context. The central challenge of long-term memory therefore goes beyond storage and retrieval. It also lies in memory readout: given the current query, candidate records, and a context budget, the memory system needs to select the evidence necessary for the task and organize it into a working memory with clear structure that the model can read efficiently.

As illustrated in Figure 1, existing methods implement memory readout mainly in textual or visual form. Textual memory systems build compact contexts through segmentation, compression, and retrieval. For example, SimpleMem and LightMem compress and retrieve historical records; MemRL, Agentic Memory, and Mem-α\alpha learn record utility or memory operations; EverMemOS and MemoryOS further manage memory hierarchies and life cycles. However, their final readout is still represented as a linear sequence of text tokens, which makes contents with different importance compete for context space at nearly uniform unit cost. Visual memory offers a complementary solution. MemOCR renders textual memory into visual pages with layout structure, while

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

AgentOCR encodes agent histories into OCR-style images through optical self-compression. Image rendering can highlight important evidence by emphasizing text spans and can represent information through page layouts, thereby reducing the number of tokens needed to express the same content. However, after text is rendered into images, fine-grained semantic information may be difficult to preserve accurately. These observations suggest that textual and visual representations are suited to different types of evidence. Restricting all memory to a single modality cannot simultaneously achieve information fidelity, structural expressiveness, and resource efficiency.

To address this issue, we propose MEMO, a multimodal evidence-based memory organization method. Its core idea is to jointly decide what to preserve and how to present it at the granularity of evidence units, rather than converting retrieved results into a single modality. Specifically, the trained evidence extractor in MEMO reads the query and candidate records, selects relevant source blocks, and predicts character-level spans that contain key facts. The selected spans and the original records together form traceable evidence units. Each unit preserves its source, specifies which details must be kept exactly, and indicates whether visual structures such as tables, timelines, lists, or cards can improve readability. This design protects key semantic information and provides compact operational objects for subsequent management. For each evidence unit, the trained memory manager jointly selects a text, image, dual-channel, or deletion action under a unified resource budget. The text representation preserves precise semantics, the visual representation presents structural relations through different layouts, and the dual-channel representation supplements visual structure while retaining textual anchors for semantic precision. The memory manager is trained with offline evaluations of candidate memory plans by a frozen reader model, which aligns evidence selection and presentation decisions with downstream task utility. Finally, the working memory building process constructs the working memory from the evidence units and their presentation actions, and verifies the total resource usage of textual and visual content.

We evaluate MEMO on HotpotQA (Yang et al. 2018), 2WikiMultiHopQA (Ho et al. 2020), LoCoMo (Maharana et al. 2024), and ALFWorld (Shridhar et al. 2020), covering multi-hop document question answering, long-term dialogue memory, and embodied interaction trajectory memory. We use multiple frozen VLMs as backend reader models. The experimental results show that MEMO achieves the best performance across all three reader models considered in the paper, both under a fixed 128-token budget and without a token budget. This indicates that evidence-level modality assignment and layout organization improve the use of limited context. The advantage is especially clear in multi-hop document question answering. With Qwen3-VL-32B as the reader model, MEMO achieves an F1 score of 73.91 on 2Wiki, while purely textual and purely visual memory achieve F1 scores of 56.26 and 35.89, respectively.

This paper makes three main contributions. First, we formulate agent memory readout as query-conditioned working memory construction under a shared resource budget, integrating evidence selection, presentation modality assignment, and visual organization into a unified optimization framework. Second, we propose MEMO, a multimodal memory organization method centered on traceable evidence units. By combining learned evidence extraction, memory planning, and deterministic working memory construction, MEMO exploits the complementarity between textual and visual structures, reducing the number of tokens required for memory while preserving semantic information. Third, we systematically evaluate MEMO across diverse memory sources and reader models, covering downstream task performance, resource usage, and adaptation across readers. The results validate the effectiveness of MEMO for long-horizon agent memory organization.

References (27)