Encoding Memory in World Models with Test-Time Model-Based Reinforcement Learning
Maxime BurchiFayaz Ali DharejoRadu Timofte
Maxime Burchi
Fayaz Ali Dharejo
Radu Timofte
+3
Current model-based reinforcement learning (MBRL) agents still struggle to surpass human performance on tasks demanding long-term memory and planning. Rather than pursuing architecture design, this work introduces Test-Time Model-Based Reinforcement Learning (TT-MBRL), which uses gradient descent at test time to encode the memory of episode observations into world model parameters. This yields a distinct world model for each episode and improves memory capabilities beyond approaches relying solely on contextual memory. A proof of concept on a simplified two-dimensional variant of the Memory Maze environment, Memory Maze 2D, shows consistent improvements across world model architectures; TT-MBRL also achieves new state-of-the-art results on the Memory Maze benchmark in the 3D domain and maintains strong performance on non-memory benchmarks such as DeepMind Control and Atari 100k.

arXiv ·
· November 6, 2026