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.

Method

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.World-model training t t+1 encoder DRIFT + noise clean latent control state st at ≈ Actor–critic learning in imagination 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.World-model training t t+1 encoder DRIFT + noise clean latent control state st at ≈ Actor–critic learning in imagination 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.

Imagination in one step per frame

Each clip shows the real game on the left and DRIFT imagining the same actions on the right, one denoising step per frame, from 8 real context frames taken mid-episode. For every environment the clip is the median of 10 rollouts by pixel error, so misses stay in. Frames are decoded for display.

RealImaginedBoxingRealImaginedPongRealImaginedBreakoutRealImaginedKungFuMasterKangarooHeroBankHeistRoadRunner
RealImaginedBoxingRealImaginedPongBreakoutKungFuMasterKangarooHeroBankHeistRoadRunner
Atari 100k, eight games, 32 imagined frames. The blue line tracks the imagined rollout. The imagined side drifts from the real one as small errors add up; a brief punch can be missed in Boxing and the BankHeist maze changes colour early.
RealImaginedSmallRoomRealImaginedRoomRealImaginedSpeleoRealImaginedChopTree
RealImaginedSmallRoomRealImaginedRoomSpeleoChopTree
Craftium, four 3D tasks, same protocol. In SmallRoom the clip is one rollout, not a median of 10, because its short episodes end during the warm-up. The imagined SmallRoom view loses the red target block.
RealImaginedCrafter
Crafter, same protocol.

Results

DreamerV3
DIAMONDpolicy on pixels
DRIFT-symlogpolicy on control state
DRIFTpolicy on control state
Human-normalized score on Atari 100k, 26 games, 95% intervals

Policy input: DRIFT and DRIFT-symlog act from the backbone's control state, Horizon Imagination and DIAMOND from pixels.

Atari 100k, 26 games, 95% bootstrap intervals over 5 seeds. DRIFT is competitive with DIAMOND (the intervals overlap and DIAMOND has the higher mean); TWISTER, a latent world model without per-seed scores, reports higher mean and median.
Craftium, mean return at 100k steps
TaskDIAMONDDIAMONDHorizon Imag.Horizon
Imag.
DRIFT-symlogDRIFT-
symlog
DRIFTDRIFT
SmallRoom−172.6−40.9−18.6−19.4
Room−546.1−135.5−649.6−123.2
Speleo−2,047.0−339.6669.81,727.6
ChopTree7.313.831.615.3
Craftium, mean return at 100k steps. DRIFT has a higher mean return than DIAMOND and Horizon Imagination on all four tasks, and on the three navigation tasks it passes DIAMOND's final return within 12k steps (learning curves in the paper).
Crafter score at 1M steps. DRIFT-symlog, trained on full-scale rewards, is the best diffusion or flow world model, while DreamerV3 XL is higher and sign-reward DRIFT falls below Horizon Imagination.
Ablations. (a) Next-latent prediction, on a subset of 8 Atari games with an earlier agent setup. (b) Training on self-generated rollouts, on all 26 games.

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}
}