What DIAMOND is
DIAMOND (DIffusion As a Model Of eNvironment Dreams) is a world model that generates the next frame of a game with a diffusion model, conditioned on the frames and actions before it, together with an agent trained entirely inside it. Token world models such as IRIS compress every frame hard, and Alonso et al. argued that this can throw away visual details that matter for playing; generating pixels keeps them. On Atari 100k they report a mean human-normalised score of 1.46, the best at the time for agents trained entirely in a world model.
The page records the released Breakout agent: a 4.4 M-parameter denoiser, a 5.9 M-parameter reward and end model and a 3.2 M-parameter actor-critic. Each 64 × 64 frame is made from the 4 frames and actions before it, in 3 denoising steps.
What the denoiser reads
The next frame starts as Gaussian noise, and at each noise level the denoiser stacks the 4 past frames, 3 colour channels each, with the noisy next frame: 4 × 3 + 3 = 15 input channels. The noise level and the four actions go through an MLP into one 256-wide conditioning vector , and every ResBlock reads it through adaptive group normalisation, which gives each channel its own scale and shift:
This is how an action steers the picture. The The action in every block panel keeps the frames and fixed and swaps only the newest action, showing the scale and shift each of the four actions gives the first ResBlock's 64 channels.
The U-Net
The network is a U-Net: an encoder that halves the map three times (64, 32, 16 and 8 pixels, 64 channels at every level, two ResBlocks each), a middle at 8 × 8, and a decoder that doubles it back, with skip connections that hand each encoder level's maps to the decoder level of the same size. Each ResBlock is two 3 × 3 convolutions, each after an adaptive group norm; self-attention appears only in the middle, over the 64 positions of the 8 × 8 map. The U-Net panel shows every block's output in the first imagined step.
EDM preconditioning
DIAMOND follows Karras et al.'s EDM formulation. The network never sees the noisy frame raw; the denoised estimate mixes the input with the network's output, with weights that depend on :
with . brings the input to unit variance. At high noise is near 0 and the network predicts the clean frame; at low noise it is near 1 and the network predicts only a small correction, so its target has about the same scale at every level. Training minimises over random noise levels. DIAMOND evaluates the coefficients at , because it trains with extra offset noise, and the past frames are divided by . The EDM preconditioning panel shows , and their sum , clipped and rounded to 256 levels per channel like a real frame.
Three Euler steps
Sampling solves the diffusion's ordinary differential equation from high noise to none, , with Euler steps:
The levels follow Karras et al.'s spacing, with , , and , which gives 5, 0.283 and 0.002, then 0. The last step lands on , so the frame is 's output. Three network calls per frame are very few for a diffusion model; Alonso et al. chose EDM partly because it stayed stable with so few steps where their DDPM-style variant drifted. The σ buttons at the top of the page pick the level shown in every panel.
Actions steer the frames
The Actions steer the frames panel starts from one real frame and holds each of the four actions (NOOP, FIRE, RIGHT, LEFT) for 3 steps, with the same noise in every row, so only the action differs. The Imagined vs real frame panel feeds the model the actions the policy really took and compares its frames with the game's. Its mean squared error grows from to over 10 imagined steps, while each step made from the four real frames before it (teacher-forced) stays between and : the gap is what feeding on its own frames adds.
Where it came from
Denoising diffusion (Ho et al., 2020) made diffusion a leading way to generate images, and EDM (2022) cleaned up its design space; DIAMOND (2024) brought it to world models for reinforcement learning, from the authors of IRIS. The same paper trained a DIAMOND model on Counter-Strike: Global Offensive gameplay and played it as a neural game engine. Oasis and Matrix-Game, the next tabs, take the idea to Minecraft and other 3-D worlds with transformers, latent spaces and longer contexts.
Papers
- Diffusion for World Modeling: Visual Details Matter in Atari DIAMOND, the agent this tab records: an EDM diffusion world model in pixel space and an actor-critic trained in it.
- Elucidating the Design Space of Diffusion-Based Generative Models EDM: the preconditioning, noise-level spacing and Euler sampler DIAMOND uses.
- Denoising Diffusion Probabilistic Models The denoising diffusion model that the Diffusion Explainer starts with.
- U-Net: Convolutional Networks for Biomedical Image Segmentation The encoder–decoder with skip connections that the denoiser is built on.
- Diffusion Models Beat GANs on Image Synthesis Diffusion U-Nets conditioned through adaptive group normalisation, as DIAMOND's ResBlocks are.
- Transformers are Sample-Efficient World Models IRIS, the token world model DIAMOND set out to improve on.