Improving Token-Based World Models with Parallel Observation Prediction
Lior Cohen, Kaixin Wang, Bingyi Kang, Shie Mannor
TL;DR
This work tackles the inefficiency of token-based world models in reinforcement learning by addressing the imagination bottleneck that arises from autoregressively generating next observations. It introduces Parallel Observation Prediction (POP), a forward-mode extension to RetNet that enables generating entire next-observation token sequences in parallel, significantly accelerating imagination. The authors instantiate REM (Retentive Environment Model), a TBWM agent that uses a VQ-VAE tokenizer, a token-space world model, and an actor-critic controller trained entirely in imagination, achieving $15.4\times$ faster imagination and superhuman performance on 12 of 26 Atari 100K games, in under 12 hours. The approach demonstrates that TBWMs can be both fast and competitive, with broader potential for longer sequences and frame-level generation in future work.
Abstract
Motivated by the success of Transformers when applied to sequences of discrete symbols, token-based world models (TBWMs) were recently proposed as sample-efficient methods. In TBWMs, the world model consumes agent experience as a language-like sequence of tokens, where each observation constitutes a sub-sequence. However, during imagination, the sequential token-by-token generation of next observations results in a severe bottleneck, leading to long training times, poor GPU utilization, and limited representations. To resolve this bottleneck, we devise a novel Parallel Observation Prediction (POP) mechanism. POP augments a Retentive Network (RetNet) with a novel forward mode tailored to our reinforcement learning setting. We incorporate POP in a novel TBWM agent named REM (Retentive Environment Model), showcasing a 15.4x faster imagination compared to prior TBWMs. REM attains superhuman performance on 12 out of 26 games of the Atari 100K benchmark, while training in less than 12 hours. Our code is available at \url{https://github.com/leor-c/REM}.
