One Flow Transformer for Imagination and Control
- Paper
- Code
- BibTeX
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
DRIFT world model agent
The actor and critic read the control state of the world model, so one network both imagines and acts.
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.
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.
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}
}