Skip to main content
QUICK REVIEW

[Paper Review] Mastering Atari with Discrete World Models

Danijar Hafner, Timothy Lillicrap|arXiv (Cornell University)|Oct 5, 2020
Reinforcement Learning in RoboticsComputer Science74 references23 citations
TL;DR

DreamerV2 is a model-based reinforcement learning agent that achieves human-level performance on the Atari 55-game benchmark by learning behaviors purely within a separately trained world model using discrete latent representations. It outperforms top single-GPU model-free agents like Rainbow and IQN using the same computational budget and wall-clock time, demonstrating that accurate world models enable sample-efficient, high-performance decision-making from pixels.

ABSTRACT

Intelligent agents need to generalize from past experience to achieve goals in complex environments. World models facilitate such generalization and allow learning behaviors from imagined outcomes to increase sample-efficiency. While learning world models from image inputs has recently become feasible for some tasks, modeling Atari games accurately enough to derive successful behaviors has remained an open challenge for many years. We introduce DreamerV2, a reinforcement learning agent that learns behaviors purely from predictions in the compact latent space of a powerful world model. The world model uses discrete representations and is trained separately from the policy. DreamerV2 constitutes the first agent that achieves human-level performance on the Atari benchmark of 55 tasks by learning behaviors inside a separately trained world model. With the same computational budget and wall-clock time, Dreamer V2 reaches 200M frames and surpasses the final performance of the top single-GPU agents IQN and Rainbow. DreamerV2 is also applicable to tasks with continuous actions, where it learns an accurate world model of a complex humanoid robot and solves stand-up and walking from only pixel inputs.

Motivation & Objective

  • To develop a model-based reinforcement learning agent that achieves human-level performance on the Atari benchmark using only imagined rollouts within a learned world model.
  • To demonstrate that a world model trained separately from the policy can support high-accuracy planning and generalization in complex visual environments.
  • To achieve performance competitive with state-of-the-art model-free agents like Rainbow and IQN using only a single GPU and 10 days of training.
  • To validate that discrete latent space representations improve world model accuracy and sample efficiency in visual control tasks.
  • To establish a reproducible, efficient, and scalable framework for model-based RL applicable to both discrete and continuous control tasks.

Proposed method

  • The world model uses a discrete variational autoencoder (dVAE) to learn compact, categorical latent representations from raw pixel inputs.
  • The agent learns a transition model in the discrete latent space that predicts future states given current states and actions.
  • A separate actor-critic network is trained on imagined trajectories generated by the world model, using a value function and a policy network optimized via a KL-balanced loss.
  • The policy is trained using a combination of intrinsic curiosity and extrinsic reward prediction, with the world model providing the environment for planning.
  • The world model is pre-trained on a large dataset of environment interactions before policy training, enabling sample-efficient policy learning.
  • The algorithm uses a novel KL balancing mechanism to stabilize training and improve representation quality in the discrete latent space.

Experimental results

Research questions

  • RQ1Can a world model trained separately from the policy enable sample-efficient, high-performance decision-making in complex visual environments like Atari?
  • RQ2Does using discrete latent representations improve the accuracy and generalization of world models compared to continuous latent spaces?
  • RQ3Can a model-based agent achieve human-level performance on the full Atari 55-game benchmark without direct environment interaction during policy training?
  • RQ4How does the performance of a model-based agent compare to state-of-the-art model-free agents like Rainbow and IQN under identical computational constraints?
  • RQ5To what extent does the world model's ability to predict images and rewards contribute to policy generalization and sample efficiency?

Key findings

  • DreamerV2 achieves human-level performance on the full Atari 55-game benchmark, becoming the first model-based agent to do so using only imagined rollouts within a world model.
  • With the same computational budget and wall-clock time, DreamerV2 surpasses the final performance of top single-GPU model-free agents Rainbow and IQN on the 200M-frame evaluation.
  • The use of discrete latent representations significantly improves world model accuracy and enables stable, high-quality planning in the latent space.
  • DreamerV2 demonstrates that world models trained with image reconstruction and reward prediction signals can learn general-purpose representations useful for diverse control tasks.
  • The agent generalizes effectively to continuous control tasks, solving complex locomotion behaviors (e.g., stand-up and walking) for a humanoid robot using only pixel inputs and a single GPU.
  • The performance gain from discrete latents and KL balancing is empirically validated, with ablation studies confirming their impact on final agent performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.