Smaller World Models for Reinforcement Learning

Jan Robine, Tobias Uelwer, Stefan Harmeling

TL;DR

This paper introduces a significantly smaller world model for reinforcement learning by using a VQ-VAE for observation encoding and a convolutional LSTM for dynamics prediction. This approach achieves comparable performance to existing methods on Atari games with drastically fewer parameters and a limited number of real-world interactions, making model-based RL more practical.

What Problem Does This Paper Address?

Reinforcement learning (RL) agents learn by interacting with an environment to maximize rewards. While model-free RL methods are popular, they often require a massive amount of data (millions of interactions), making them inefficient and costly for real-world applications. Model-based RL aims to improve sample efficiency by learning a model of the environment (a "world model") and using it to simulate experiences. However, these world models, especially those dealing with complex visual inputs like Atari games, tend to be very large, which can be computationally expensive and difficult to train. This paper tackles the challenge of creating a highly sample-efficient and parameter-efficient world model for RL, specifically targeting the Atari benchmark with a strict limit of 100,000 real-world interactions.

Methods

The core innovation lies in the architecture of their world model. Instead of directly processing raw pixels, they employ a Vector Quantized-Variational Autoencoder (VQ-VAE) to compress high-dimensional observations (Atari frames) into a low-dimensional, discrete latent representation. This VQ-VAE acts as the observation encoder.

For predicting the future, they use a convolutional LSTM (ConvLSTM). This network takes the current latent representation and the agent's action as input and predicts the next latent representation and the reward. This ConvLSTM is responsible for modeling the environment's dynamics in the latent space.

Crucially, the agent (trained using the PPO algorithm) interacts only with this learned world model during training. This means the agent learns from simulated experiences generated by the world model, drastically reducing the need for real-world interactions. The policy is conditioned on these latent representations, avoiding the need to decode back into high-dimensional pixels during agent training.

Datasets

The experiments were conducted on 36 Atari environments. The paper does not introduce new datasets but uses the standard Atari game suite for evaluation.

Key Insights and Ideas

  • Discrete Latent Spaces are Powerful: Using a VQ-VAE to create a discrete latent space for observations proved effective. This discretization, combined with a two-dimensional latent representation, was sufficient for modeling complex Atari environments.
  • Smaller Models, Similar Performance: The paper demonstrates that a significantly smaller world model (with ~10 million parameters) can achieve performance comparable to much larger models (like SimPLe with ~74 million parameters) within a limited interaction budget. This highlights the efficiency gains from their architectural choices.
  • Latent Space RL is Viable: Training an agent entirely within the learned latent space is feasible and efficient. This bypasses the computational cost of decoding observations back into pixels, speeding up the training process.
  • Iterative Training is Key: The authors adopt an iterative training scheme, alternating between collecting real data, training the world model, and training the agent. This cyclical process allows the world model to improve over time, leading to better simulations and, consequently, a better agent.

Key Results

  • The proposed model achieves comparable performance to the SimPLe algorithm on 36 Atari environments, despite having a significantly smaller parameter count (approximately 10.3 million vs. 74 million).
  • The method is effective with a strict limit of 100,000 real-world interactions, a substantial reduction compared to typical model-free RL requirements.
  • In 20 out of 36 environments, their method achieved higher mean final episode rewards than SimPLe.
  • The paper shows that their model can learn effectively even without frame stacking in some environments, suggesting robustness to different input processing strategies.

Limitations and Future Work

  • Independent Latent Index Prediction: The current dynamics model predicts latent indices independently. The authors acknowledge that this might be suboptimal as it ignores potential conditional dependencies between indices that correspond to different parts of an image. They suggest exploring autoregressive models (like PixelCNN) for predicting latent indices to potentially improve prediction accuracy, though this might increase training time.
  • Fixed Episode Length: The world model is trained to predict terminal states by assuming episodes end after a fixed number of steps. The authors propose to move away from this fixed episode length and have the world model predict terminal states directly, which would allow agents to learn beyond a predefined horizon.
  • Exploration: Similar to other works in this domain, the authors note that results can vary significantly across different random seeds. They attribute this to the limited number of interactions and the sensitivity of the algorithm to the exploration-exploitation trade-off. Improving exploration strategies is identified as a key area for future work to enhance sample efficiency further.

Summary updated

BibTeX
@inproceedings{robine2023smaller,
  author = {Jan Robine and Tobias Uelwer and Stefan Harmeling},
  title = {{Smaller World Models for Reinforcement Learning}},
  booktitle = {Neural Process. Lett},
  year = {2023},
  url = {https://openreview.net/forum?id=lbBt5ITJJw},
}
Figure