What IRIS is
IRIS is an agent that learns to play Atari games mostly inside its own world model. The model has two parts: a discrete autoencoder that turns each frame into a few tokens, and an autoregressive transformer, a GPT, that predicts the next frame's tokens, the reward and whether the episode ends from the past frames and actions. An actor-critic then learns from rollouts imagined by the model rather than from the game. On the Atari 100k benchmark, about two hours of play per game, Micheli, Alonso and Fleuret report a mean human-normalised score of 1.046, above human level on 10 of 26 games.
The page records the released Breakout checkpoint: a 4.0 M-parameter tokenizer, an 8.4 M-parameter world model and a 3.2 M-parameter actor-critic. Its own agent played the real game for 1,000 steps, sampling actions at temperature 0.5, and scored 29 points; the page replays a 20-step stretch of that game against the model's imagination.
Frame → 16 tokens
The tokenizer is a VQ-VAE. A convolutional encoder turns a 64 × 64 frame into a 4 × 4 grid of 512-wide vectors, and each vector is replaced by the nearest of 512 learned codebook vectors ; the index of that vector is the token:
The decoder turns the 16 chosen vectors back into a frame. Training minimises the reconstruction error plus two terms that pull the codebook vectors and the encoder's outputs towards each other; the nearest-neighbour step has no gradient, so the decoder's gradient is copied straight through to the encoder. IRIS also adds a perceptual loss, as VQGAN does. The Nearest codebook vectors panel shows, for one cell, the five nearest codes and their distances, and across the 1,001 frames of the recorded game the tokenizer uses 310 of its 512 codes. The actor-critic and the world model only ever see the frame as decoded from its 16 tokens.
A GPT over frame and action tokens
The world model is a transformer of 10 layers, 4 heads and width 256. One time step is 17 tokens, the frame's 16 codebook ids and then the action (NOOP, FIRE, RIGHT or LEFT), and its window holds 20 steps, 340 tokens. Causal attention lets every token read only what comes before it. From each frame token the model predicts the next token of the same frame; from the action token it predicts the first token of the next frame, the reward (−1, 0 or +1, since rewards are clipped) and whether the episode ends:
All three are trained with cross-entropy on real play. With the real frames as context, the recorded window costs 1.62 nats per frame token. The What it reads panel shades the outlined token's attention over everything before it, layer by layer, and says how much of it goes to the same cell of earlier frames and to the actions.
Imagined vs real
To imagine, the model samples a token, appends it and samples the next, 16 times per frame, and then appends an action. The Next token panel shows the distribution of each token with the sampled one and the real game's. From real frame 583 the page feeds the model the actions taken in the real game and lets it run on its own tokens for 20 steps. Over the 19 imagined frames the sampled tokens match the real game's in 25 % to 63 % of the 16 cells, and the decoded frames' mean squared error against the real ones stays between 0.0011 and 0.0020. The Imagined vs real panel shows each pair; on the last step the real game lost a life, and the model predicts only the reward and the end flag, since its window is full.
Actor-critic in imagination
The agent is a small actor-critic that reads decoded frames. After a burn-in on the 20 real frames before the start, its policy picks an action, the world model returns the next frame, reward and end flag, and its value head estimates the return from each imagined frame. (On this page the rollout is fed the real game's actions instead, so that it can be compared with the game.) The training target is the λ-return, which blends one-step bootstraps with longer sums of predicted rewards:
The value head regresses , and the policy raises the log-probability of actions whose advantage is positive and lowers it where it is negative, with a small entropy bonus to keep exploring. The λ-return panel computes step by step; over the 19 imagined steps the policy loss is 0.268 and the value loss 0.078. The real game is played only to collect data for the world model: the behaviour itself is learned in imagination.
Where it came from
SimPLe (Kaiser et al., 2019) introduced the Atari 100k benchmark with a world model that predicted pixels. Dreamer learned behaviour inside a latent world model and trained its actor-critic on λ-returns of imagined trajectories; DreamerV2 brought discrete latents to Atari. VQ-VAE (2017) and VQGAN (2020) turned images into tokens a transformer can model. IRIS (2022) put these together: discrete tokens, a GPT as the dynamics model, and learning in imagination. Its authors' next model, DIAMOND (a later tab), replaced the tokens with diffusion in pixel space to keep visual details, and Cosmos AR, the next tab, predicts real video token by token at a far larger scale.
Papers
- Transformers are Sample-Efficient World Models IRIS, the agent this tab records: a discrete autoencoder, a GPT world model and an actor-critic trained in imagination.
- Neural Discrete Representation Learning VQ-VAE: nearest-codebook quantisation, its losses and the straight-through gradient.
- Taming Transformers for High-Resolution Image Synthesis VQGAN: a convolutional image tokenizer with a perceptual loss, modelled by a transformer.
- Dream to Control: Learning Behaviors by Latent Imagination Dreamer: an actor-critic trained on λ-returns of trajectories imagined by a learned model.
- Mastering Atari with Discrete World Models DreamerV2: discrete latent states and an actor-critic in imagination on Atari.
- Model-Based Reinforcement Learning for Atari SimPLe and the Atari 100k benchmark IRIS is evaluated on.
- The Arcade Learning Environment: An Evaluation Platform for General Agents The Atari emulator and benchmark Breakout runs in.