MemPilot: Orchestrating On-Demand Multimodal Memory Curation for LLM Agents

Haozhen Zhang, Haodong Yue, Quanyu Long, Jianzhu Bao, Qingyuan Liu, Tao Feng, Bohan Liu, Weida Liang, Wenya WangarXiv 2026

TL;DR

MemPilot is a flexible framework that uses reinforcement learning to orchestrate on-demand multimodal memory curation for LLM agents. By adaptively choosing between simple retrieval and delegating complex curation to a pool of heterogeneous models, it allows developers to navigate the fine-grained trade-offs between answer quality, monetary cost, and user-facing latency.

What Problem Does This Paper Address?

As LLM agents move toward long-horizon interactions, "memory" is no longer optional. However, most current systems build memory in a query-agnostic way: they process and compress interaction histories before a user even asks a question. This leads to a "Goldilocks" problem: either you store everything (incurring massive preprocessing costs) or you summarize too aggressively (discarding details that might be essential for a future, specific query).

While some recent work has moved toward "runtime" memory adaptation, these methods are usually structurally rigid. They often rely on fixed processing pipelines or single-model backends, offering little control over the balance between how good an answer is, how much it costs in API tokens, and how long the user has to wait for a response.

Methods

MemPilot treats memory curation as a multi-step decision process. Instead of a fixed pipeline, an orchestrator policy ($\pi_\theta$) iteratively decides how to gather evidence.

1. Dual-View Memory

The system maintains two views of history:

  • Memory Bank ($M$): A compressed, query-agnostic bank for efficient, low-cost access.
  • Raw History ($H$): The full, uncompressed multimodal history (text and images) for high-fidelity, query-specific curation.

2. Factorized Curation and Delegation

The policy doesn't just "retrieve"; it controls several "knobs" for every action:

  • Action Type: Choose between RETRIEVE (from the bank) or CURATE (from raw history).
  • Model Selection: Delegate curation to a pool of heterogeneous models (e.g., a small text-only LLM for counting vs. a large VLM for visual reasoning).
  • Visual Access: Decide whether to include raw image pixels in a curation request.
  • Curation Strategy: Generate specific instructions for the delegated model.
Overview of MemPilot's orchestration and reward modeling

3. Resource-Aware RL Optimization

To train this policy, the authors use Group Relative Policy Optimization (GRPO) with two key innovations:

  • Objective-wise Advantage Decoupling: Instead of combining Quality, Cost, and Latency into a single reward (where one signal might drown out others), they normalize each objective's advantage separately before aggregation.
  • Prefix-based Marginal Utility: To solve the credit assignment problem in multi-step tasks, they "probe" the agent after each step to estimate how much that specific action improved the final answer quality.

Datasets

The authors evaluated MemPilot on five multimodal agent-memory benchmarks:

  • In-Distribution: Mem-Gallery, WorldMemArena, and H2HMem.
  • Out-of-Distribution (OOD): MemEye and MemLens (used to test how well the policy generalizes to unseen memory distributions).

Key Insights and Ideas

  • Model Delegation is the "Big Lever": The most significant way MemPilot manages cost and latency is by knowing when to use a "cheap" model. For simple tasks like counting items mentioned in text, it learns to avoid expensive VLMs.
  • Decoupling is Crucial for Stability: In multi-objective RL, the high variance of "answer quality" rewards often makes it hard for a model to learn to save cost. Separately normalizing advantages ensures the "cost-saving" signal remains clear.
  • Plug-and-Play Compatibility: MemPilot isn't tied to a specific memory architecture. As shown in Figure 4, it can be wrapped around different off-the-shelf memory banks (like A-MEM or SimpleMem) and still effectively navigate the performance-cost frontier.

Key Results

MemPilot consistently achieves a broader and more efficient Pareto frontier than existing baselines.

  • Superior Frontiers: In Figure 2, MemPilot's performance-cost and performance-latency curves generally envelope those of fixed-configuration and trade-off-aware baselines.
  • Adaptability: Under the "Perf" preference, MemPilot-Perf achieved the highest LLM-judge scores across all five benchmarks (e.g., 65.82 on Mem-Gallery). Under the "Cost" preference, it reached cost regimes similar to simple text-only retrieval while maintaining significantly higher accuracy.
  • Zero-Shot Generalization: The policy maintained favorable trade-offs on OOD datasets (MemEye and MemLens) without any additional training, proving the learned orchestration logic is robust.
Performance–cost–latency frontiers across benchmarks

Limitations and Future Work

  • Privacy Concerns: Delegating curation to external APIs (like those accessed via OpenRouter) means sending raw interaction history to third parties, which may be a dealbreaker for sensitive applications.
  • Preference Calibration: While the framework supports different $\lambda$ weights for quality/cost/latency, mapping these abstract coefficients to intuitive user settings (e.g., "spend exactly $0.05 per query") remains a challenge.
  • Latency Proxies: During training, the authors used a deterministic latency proxy rather than real wall-clock time to avoid network jitter. Future work could involve training in more controlled, low-jitter environments to optimize for real-world hardware latency.

Summary updated

BibTeX
@misc{zhang2026mempilot,
  author = {Haozhen Zhang and Haodong Yue and Quanyu Long and Jianzhu Bao and Qingyuan Liu and Tao Feng and Bohan Liu and Weida Liang and Wenya Wang},
  title = {{MemPilot: Orchestrating On-Demand Multimodal Memory Curation for LLM Agents}},
  year = {2026},
  eprint = {2610.06830},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.06830},
}
Figure