Learning to Learn from Multimodal Experience

Xingyu Sui, Weixiang Zhao, Yongxin Tang, Yanyan Zhao, Yang Wu, Dandan Tu, Bing Qin

TL;DR

Multimodal AI agents generate complex interaction trajectories across vision, text, and action, but traditional fixed, human-engineered memory schemas struggle to store and retrieve this heterogeneous data effectively. This paper introduces AUTOMMEMO, a framework that treats memory design as an optimization problem, automatically generating and refining executable Python code ("memo programs") to manage an agent's memory. Across GUI navigation and visual reasoning benchmarks, AUTOMMEMO significantly boosts agent success rates while simultaneously lowering inference token costs.

What Problem Does This Paper Address?

Recent advances in Multimodal Large Language Models (MLLMs) allow autonomous agents to interact with real-world-like environments (such as websites or visual reasoning tasks), producing massive amounts of raw trajectory data. To continuously improve, agents need to transform these raw interactions into reusable experiences.

However, current experience-driven learning paradigms rely almost entirely on manually designed, fixed memory schemas (e.g., storing simple text summaries or predefined key-value pairs). This creates a fundamental mismatch for multimodal agents, where crucial information is scattered across visual frames, text reasoning, and action histories at varying temporal scales. A fixed schema might discard vital visual cues or inject noisy, irrelevant context. The authors argue that memory design shouldn't be a one-shot engineering choice; instead, agents should dynamically learn how to structure, abstract, and retrieve their own experience based on the task at hand.

Methods

The authors propose AUTOMMEMO, a general framework that automates memory design by representing memory mechanisms as executable code.

  • Executable Memo Programs: Instead of using a static data structure, AUTOMMEMO defines a memory mechanism as a Python class with two core operations: m.update(episode) (specifying how past episodes are summarized and stored) and m.retrieve(task) (defining how relevant context is fetched). This keeps the internal design space open-ended, allowing the system to utilize vector stores, graph utilities, or lightweight databases.
  • Update-then-Retrieve Evaluation: To score a candidate memo program, AUTOMMEMO runs it through a strict protocol on a training dataset. It processes past update episodes to build a memory state, freezes that state, and then evaluates how much the retrieved memory payloads improve a fixed execution agent's performance on held-out tasks.
  • Reflection-Guided Mutation: A meta-agent (e.g., GPT-5) reviews the code of a memo program along with execution evidence (successful/failed trajectories and retrieved payloads). It diagnoses structural failures—such as weak text-vision alignment or excessive truncation—and mutates the code to generate an improved descendant.
  • Budget-Aware Tree Search: Evaluating programs is expensive. AUTOMMEMO maintains a tree of memory designs and uses a variant of the Upper Confidence Bound (UCB) algorithm to intelligently balance re-evaluating promising designs against exploring entirely new memory architectures.
Figure 1: Overview of AUTOMMEMO . It searches over executable memo programs that specify how multimodal experience is stored and retrieved. Each candidate is evaluated with an update- then-retrieve protocol on held-out tasks, and the resulting trajectories and scores are used to derive reflection-based improvement insights for program mutation. A budget-aware tree search maintains a memo-structure tree and decides whether to re-evaluate an existing node or generate a new descendant.

Datasets

AUTOMMEMO was evaluated across four distinct multimodal benchmarks, split into training (for memory search/construction) and held-out test sets:

  • WebVoyager & Mind2Web: Challenging GUI/Web navigation environments requiring agents to interact with web elements based on visual screenshots and text instructions.
  • AgentVista & MMSearch-Plus: Multimodal visual reasoning and search benchmarks that test an agent's ability to gather visual evidence and answer complex queries.

Key Insights and Ideas

  • Memory as Code: Shifting from static data schemas to executable code allows the agent to discover highly specialized, task-dependent memory logic (e.g., building site-intent playbooks or visual-reasoning task libraries) without human intervention.
  • More Context $\neq$ Better Memory: Simply dumping more history into an agent's context window often hurts performance by introducing noise. Effective memory requires aggressive abstraction, filtering, and compression.
  • Task-Adaptive Structures: The search process reveals that different tasks demand completely different memory topologies. For web navigation, the system learned to prioritize "anti-stuck" recovery flags and domain-specific checklists. For visual reasoning, it evolved toward procedural routing based on task families.
  • Robust Transferability: The discovered memory programs aren't just overfitted to a single model or benchmark; they exhibit strong cross-model transferability, showing that the underlying structural logic of experience is generalizable.

Key Results

AUTOMMEMO consistently outperformed both no-memory baselines and state-of-the-art fixed memory baselines (like Trajectory Retrieval, ReasoningBank, and XSkill).

  • Performance Boosts: On the Qwen3-VL-32B model, AUTOMMEMO improved the average GUI navigation success rate by 19.23 points and visual reasoning by 4.60 points over the NoMemory baseline. On GPT-5.4-nano, it achieved a 5.21 point gain on GUI tasks and a 2.55 point gain on visual reasoning.
  • Efficiency Gains: Crucially, these performance boosts came with a massive reduction in inference costs. For instance, on WebVoyager, AUTOMMEMO cut average token consumption from 307.0K to 98.0K tokens per episode while reducing interaction steps.
Main quantitative results across benchmarks and models
  • Cross-Model Transfer: The authors demonstrated that a memory program optimized on one model backbone (e.g., Qwen3-VL-32B) can successfully enhance a completely different backbone model (e.g., GPT-5.4-nano or Qwen3.5-Plus), confirming that it captures fundamental task structures.
Figure 3: Cross-model memory transfer on the WebVoyager benchmark. Rows indicate evaluation models and columns indicate the models used to search memory designs.

Limitations and Future Work

  • Offline Optimization: Currently, memory programs are optimized offline on a fixed training split. Extending AUTOMMEMO to support stable, online, and continual memory evolution as new experiences arrive remains an open challenge.
  • Search Overhead: While inference is highly efficient, the offline search process requires running multiple evaluations of candidate programs, which can be computationally expensive.
  • Environment Scope: The experiments were conducted on a finite set of benchmarks. Testing these learned memory designs in truly open-ended, long-horizon embodied environments or multi-user settings is an important next step.
  • Privacy & Safety: Storing multimodal trajectories (including screenshots of web pages) introduces significant privacy risks, necessitating sandboxing and robust data-deletion mechanisms.

Summary updated

BibTeX
@inproceedings{sui2026learning,
  author = {Xingyu Sui and Weixiang Zhao and Yongxin Tang and Yanyan Zhao and Yang Wu and Dandan Tu and Bing Qin},
  title = {{Learning to Learn from Multimodal Experience}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=2GBnrfEh1p},
}

Loading related content...

Figure