arXiv:2610.10778cs.LGOct 2026

Manuscript Offprint

arXiv:2610.10778

MemoWM: How World Models Change What Agents Need to Remember

Bingfan Zeng, Zhisheng Chen, Chenbo Sang, Zhengwei Xie, Jinpeng Wang, Xiangchen Guan, Rui Qian, Zheng Lu, Jingwei Song

ABSTRACT

Long-term agents face growing storage demands as they accumulate experience. World models capture reusable regularities that can reduce the information stored for each experience. We formulate the problem of memory allocation conditioned on a world model and introduce MemoWM, a framework that uses shared predictions to compress retained information and reconstruct omitted content. Its task-aware allocation rule balances the expected impact of reconstruction errors against storage cost, retaining information with downstream value beyond the predictive prior. Across five long-term agent-memory benchmarks, MemoWM achieves 42.42% average answer accuracy, exceeding the strongest baseline by 2.62 percentage points, while reducing average experience-specific storage by 53.9% relative to MIRIX, the most storage-efficient baseline. Further analysis shows that stronger world models reduce per-experience storage at comparable task quality. Accounting for model parameters reveals a trade-off between shared model capacity and recurring storage costs, with the capacity that minimizes total storage increasing as more interactions are retained. Our code is available at https://github.com/Feld-maxiu/MemoWM.

Figure

Figure 1: Average accuracy versus experience-specific storage.

1 INTRODUCTION

Agent research is moving from answering isolated questions to acting continuously over time. An agent that can genuinely carry out a task must repeatedly observe its environment, take actions, revise its plan, and bring what happened before into its next decision—over hours, days, or longer.

(Yao et al., 2022; Deng et al., 2023; Zhou et al., 2024b). GUI and web agents make this demand especially concrete: they execute long sequences of actions through websites and computer interfaces whose state persists across steps (He et al., 2024; Xie et al., 2024). For such agents, memory is not merely extra context. It is what gives behavior continuity and allows experience to accumulate.

Giving an agent a past, however, does not require preserving that past verbatim. Long interactions repeatedly expose the same page structure, stable control layouts, persistent environmental regularities, and future content that can be inferred from earlier states and actions (Wu et al., 2024; Rasmussen et al., 2025). What matters for a later decision may be only whether a click succeeded, an input was accepted, or a small part of the state changed. Writing every observation in full makes persistent storage grow continually with the agent's lifetime. Storing only what has the largest prediction error is not enough either: a nearly unchanged fact can still be decisive for the task, while an unpredictable interface change may be irrelevant noise. This tension is largely left unresolved by memory systems that gate or consolidate experience using novelty, surprise, prediction error, or downstream utility (Wang et al., 2023; Tan et al., 2025; Xiong et al., 2026).

This leads to a more basic question for long-term memory: once an agent knows what usually happens in its environment, how much of a particular experience must still be stored explicitly? Answering it requires separating two forms of persistent information. A world model internalizes regularities that can be reused across experiences, whereas episodic memory pays a new storage cost for each event that actually occurred (Bruce et al., 2024; Zhou et al., 2024a; Assran et al., 2025). When recall has access to the same world model, content recoverable from shared knowledge need not be stored repeatedly in every episode. Episodic memory should instead carry what cannot be recovered from the existing prediction and still matters for future reasoning or action. Recoverability alone, however, does not determine what deserves storage: the decision must jointly account for whether information can be predicted and whether an error would affect the task. The former is a property of the world model; the latter is a property of the information's task value (Bar et al., 2025).

We therefore adopt a direct principle: leave what the world model can explain to the model, and store in episodic memory only what cannot be safely recovered and matters to future tasks. Under this view, memory is no longer just a container for observations, but a division of labor between shared knowledge and individual experience. A world model shared by the writer and decoder becomes a predictive prior: it supplies both a coding distribution for information that must be preserved exactly and a reconstruction for information that may be omitted. Prediction is not only a signal for deciding what to remember; it becomes part of the memory representation itself.

We instantiate this principle in MemoWM, an episodic-memory framework that uses a world model as a shared predictive prior. Each observation is first encoded into a compact, query-independent state so that the same memory can serve future questions unknown at write time. The state is discretized, and an action-conditioned world model predicts a conditional distribution for every coordinate from reconstructed history. Offline single-coordinate counterfactual readouts estimate how much an error at each coordinate affects task answers. At write time, MemoWM combines this task-impact prior with the current prediction risk and expected coding cost to decide which true values must be stored and which can be reconstructed by the world model. Because the decision depends only on the shared predictive distribution, frozen task statistics, and a fixed threshold, it requires neither future queries nor a transmitted state-specific mask. Retained true codes and model-filled coordinates form the reconstructed state, which is fed back as history for the next prediction, yielding a synchronized closed-loop memory.

Across five long-term agent-memory benchmarks, MemoWM achieves the highest average answer accuracy (42.42%, Table 1) while using the lowest experience-specific storage on every benchmark: it exceeds the strongest baseline by 2.62 points and reduces average storage by 53.9% relative to MIRIX. Further analysis shows that stronger world models internalize more reusable structure and thereby reduce the storage required for each experience. Once the model's own parameters are also counted, however, the storage-optimal capacity depends on how many interactions must be remembered and shifts toward larger models as the agent's lifetime grows.

Our contributions are threefold.

We recast long-term agent memory around the question of how much information an experience must retain beyond existing world knowledge. It distinguishes selecting which experiences matter from determining how many bits a selected experience still needs, and unifies world models and episodic memory as persistent information with different amortization costs.

We introduce MemoWM, which turns world-model predictions into a task-usable prior for episodic memory. It combines a query-independent state interface, a shared predictive prior, and offline task impact estimates to retain only important information that cannot be recovered, while the allocation rule and closed-loop reconstruction keep writing and decoding synchronized.

We characterize the trade-off among world-model capacity, episodic storage, and task quality. Stronger predictors lower the recurring cost of storing each experience, but the model itself incurs a parametric cost, and the storage-optimal world-model capacity grows with the memory horizon.

References (93)