One Flow Transformer for Imagination and Control

Rabiul Awal, Jinseong Jeong, Ankur Sikarwar, Parisa Kordjamshidi, Andrii Zadaianchuk, Sai Rajeswar, Paul Hongsuck Seo, Aishwarya Agrawal

Under review, 2026

Left, prior diffusion agents: a world model imagines frames over several denoising steps and a separate policy acts on them. Right, DRIFT: one network, world model plus policy, imagines each frame in one step and acts.Prior diffusion agents two networks Worldmodel policy at imagine several steps act DRIFT (ours) one network World model+ policy at imagine 1 step act
Left, prior diffusion agents: a world model imagines frames over several denoising steps and a separate policy acts on them. Right, DRIFT: one network, world model plus policy, imagines each frame in one step and acts.Prior diffusion agents two networks Worldmodel policy at imagine several steps act DRIFT (ours) one network World model+ policy at imagine 1 step act
Prior diffusion agents imagine frames with a world model over several denoising steps and train a separate policy on these frames. DRIFT uses one Flow Transformer for both, imagining each frame in one denoising step and acting from the same backbone.

TL;DR: One Flow Transformer is both the world model and the agent. The policy learns in imagination on the backbone's own features, trained online from scratch. Each imagined frame takes one denoising step, using 33× fewer FLOPs than prior diffusion agents.

I was happy to see DIAMOND show that diffusion models make excellent world models for online RL. But I think it gets the RL part a bit backward. The diffusion model is only a black-box simulator, and a separate policy network learns from its rollouts. I was heavily interested in one generative model for learning from experience. Dreamer seemed like the right idea, since its policy learns on the world model's own state. But Dreamer is recurrent and works in a mostly discrete latent space.

I wanted a cleaner, modern version of that idea, built on a diffusion transformer. In DRIFT, the RL agent sits directly on top of the Flow Transformer's backbone, the same network that imagines the world, and learns in its continuous latent space.

Making this work was harder than I expected. Reading out the control state from vanilla denoising features gave a bad policy, because those features are weak for control. So I borrowed an idea from self-supervised learning to explicitly shape predictive dynamics, which made the features much better. There were a few more things to take care of, like efficiency and stability, which you can read about in the paper. The first problem later led me to a super cool result in DEM.

Imagined Atari games

RealImaginedBoxingRealImaginedPongRealImaginedBreakoutRealImaginedKungFuMasterKangarooHeroBankHeistRoadRunner
RealImaginedBoxingRealImaginedPongBreakoutKungFuMasterKangarooHeroBankHeistRoadRunner
The real game is on the left and DRIFT's imagination of the same actions is on the right, 32 frames after 8 real ones. Each clip is the median of 10 rollouts, so misses stay in.

DRIFT world model agent

The actor and critic read the control state of the world model, so one network both imagines and acts.

Left, world-model training: an observation is encoded, noised and passed with its tokens through DRIFT, which outputs a control state feeding predictor heads, including a next-latent head aligned with the encoder latent of the next observation. Right, actor-critic learning in imagination: DRIFT generates each next latent in one step, and the actor and critic take the resulting control state. t t+1 encoder DRIFT + noise clean latent control state st at ≈ DRIFT 1 step control state st actor critic
Left, world-model training: an observation is encoded, noised and passed with its tokens through DRIFT, which outputs a control state feeding predictor heads, including a next-latent head aligned with the encoder latent of the next observation. Right, actor-critic learning in imagination: DRIFT generates each next latent in one step, and the actor and critic take the resulting control state. t t+1 encoder DRIFT + noise clean latent control state st at ≈ DRIFT 1 step control state st actor critic

World-model training. DRIFT denoises the latent of each time step and outputs the control state, from which small heads predict the reward (trophy) and the continuation (flag). A next-latent head also uses the control state and the action to predict the encoder's latent of the next observation.

Actor–critic learning in imagination. DRIFT generates each next latent in one denoising step, and the actor and critic take the resulting control state as input.

Self-supervised features shaped for control

Denoising features alone make a weak policy state. Following SPR, DRIFT trains the control state to predict the next frame's latent, given the action. This lifts IQM from 0.24 to 0.82 (left), and the state explains more of the player's motion beyond the actions (right).

Human-normalized IQM with 95% intervals. The ablation rows use an earlier setup without self-generated rollouts.

R² gain of a probe one step ahead, mean and spread over 3 seeds.

Tackling exposure bias in generation

In imagination, the model builds on its own generations, and errors compound. Following Self Forcing, DRIFT also trains on its own short rollouts. The reward and continuation heads learn to score them, and the backbone learns to continue from them. This lifts IQM on all 26 games from 0.45 to 0.67.

Human-normalized IQM on 26 Atari games with 95% intervals. Sign rewards is the same agent without self-generated rollouts, and DRIFT-symlog uses symlog rewards.

Results

One step is enough

Each imagined frame takes one denoising step. Four steps give almost the same frames and cost more.

Boxing, imagined from 8 real frames.

Measured on one L40S. Latent world models such as DreamerV3 train faster.

Atari 100k

DRIFT is competitive with DIAMOND, the closest prior diffusion world model, with a higher IQM and median and a lower mean. Full results are in the paper.

Atari 100k, human-normalized score over 26 games and 5 seeds. DreamerV3 is computed from its released per-seed learning curves. The intervals of DRIFT and DIAMOND overlap. TWISTER, a latent world model without per-seed scores, reports a higher mean and median.

BibTeX

@misc{awal2026drift,
  title  = {One Flow Transformer for Imagination and Control},
  author = {Awal, Rabiul and Jeong, Jinseong and Sikarwar, Ankur and Kordjamshidi, Parisa and Zadaianchuk, Andrii and Rajeswar, Sai and Seo, Paul Hongsuck and Agrawal, Aishwarya},
  note   = {Under review},
  year   = {2026}
}