cs.LGNov 6, 2026

Encoding Memory in World Models with Test-Time Model-Based Reinforcement Learning

Authors: Maxime Burchi, Fayaz Ali Dharejo, Radu Timofte

Organizations: Computer Vision Lab, CAIDAS & IFI, University of Würzburg, Germany

Abstract

Model-based reinforcement learning (MBRL) approaches have demonstrated strong performance across diverse domains in recent years, learning accurate world models from agent trajectories. However, despite this progress, current approaches still struggle to surpass human performance on tasks that require long-term memory and planning. In this work, we address the problem of long-term memory in MBRL by moving beyond the commonly studied paradigm of architecture design. We introduce Test-Time Model-Based Reinforcement Learning (TT-MBRL), using gradient descent at test time to encode the memory of episode observations into world model parameters. This enables the agent to learn a distinct world model for each episode, improving memory capabilities compared to traditional approaches that solely rely on contextual memory. We first establish a proof of concept on a simplified two-dimensional variant of the Memory Maze environment, which we refer to as Memory Maze 2D, showing consistent improvements across different world model architectures. We then demonstrate the effectiveness of TT-MBRL in the 3D domain, achieving new state-of-the-art results on the Memory Maze benchmark. Finally, we show that TT-MBRL maintains strong performance on non-memory benchmarks such as DeepMind Control and Atari 100k.

Figures & tables

Appendix figures & tables32 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. MemWM: Associative Memory-Enhanced Latent World Models for Long-Horizon Planning

    Oct 14, 2026Yuwei Sun, Siyu ZhuWorld Model LearningWorld Models for Robotics

  2. T2^2Mem: Learning Test-Time Memory for Robotics

    Sep 29, 2026Yize Liu, Huang Huang, Yining Hong +4Robot Policy LearningTest-Time Adaptation of VLA Models

  3. Next Embedding Prediction Makes World Models Stronger

    Mar 3, 2026George Bredis, Nikita Balagansky, Daniil Gavrilov +1Model-Based RLPartially Observable RL