Rabiul Awal

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 imagine frames with a world model over several denoising steps and train a separate policy on these frames. Right: DRIFT uses one Flow Transformer for both, imagining each frame in one denoising step and acting from the same backbone.

Abstract

Diffusion and flow models are effective world models for visual reinforcement learning, letting agents learn behaviors in imagination. In current diffusion-based online agents, the world model serves as a black-box simulator. A separate policy network learns from its generated rollouts, so the diffusion model's backbone representations go unused for control. We introduce DRIFT, an agent whose policy learns entirely in imagination on the same Flow Transformer backbone as its world model, trained online from scratch. Three modeling choices make this work. First, denoising alone yields a less effective control state for the actor–critic. We therefore train the backbone to predict the next frame's latent from the control state's summary of the history and the current action, a reconstruction-free objective that makes the control state predictive and improves control. Second, the world model's reward predictions are less accurate on the generated latents than on the real ones. A simple and effective mitigation is to also train the world model on its own rollouts, with targets from the real data. Third, shortcut flow matching reduces imagination time to one denoising step per imagined transition while matching multi-step sampling in rollout accuracy. Imagining in a compact continuous latent space, DRIFT uses 33× fewer FLOPs per imagined transition than prior diffusion-based agents. It outperforms diffusion and flow baselines on Craftium and on Crafter with full-scale rewards, and is competitive on Atari. These results show that one diffusion generative backbone can both imagine and control in online RL.

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 Actor–critic learning in imagination t t+1 encoder DRIFT + noise clean latent control state st at ≈ DRIFT 1 step control state st actor critic
Left: 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. Right: 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.

Atari 100k, eight games, 32 imagined frames. 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.
Crafter, same protocol.

Results

Mean, median and IQM human-normalized score on Atari 100k with 95% intervals for DreamerV3, DIAMOND, DRIFT-symlog and DRIFT. DRIFT has the highest median and IQM, DIAMOND the highest mean, and the intervals overlap. Mean 1 1.2 1.4 1.6 DreamerV3, mean 1.183 [1.079, 1.321] DreamerV3 1.18 DIAMOND, mean 1.459 [1.358, 1.566] DIAMOND 1.46 DRIFT-symlog, mean 1.328 [1.201, 1.461] DRIFT-symlog 1.33 DRIFT, mean 1.348 [1.252, 1.448] DRIFT 1.35 Median 0.3 0.5 0.7 DreamerV3, median 0.437 [0.383, 0.503] 0.44 DIAMOND, median 0.373 [0.309, 0.489] 0.37 DRIFT-symlog, median 0.427 [0.379, 0.488] 0.43 DRIFT, median 0.520 [0.395, 0.730] 0.52 IQM 0.4 0.6 0.8 DreamerV3, iqm 0.471 [0.424, 0.525] 0.47 DIAMOND, iqm 0.641 [0.578, 0.706] 0.64 DRIFT-symlog, iqm 0.620 [0.553, 0.699] 0.62 DRIFT, iqm 0.673 [0.602, 0.757] 0.67 Human-normalized score on Atari 100k, 26 games, 95% intervals
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.
Four learning curves on Craftium tasks SmallRoom, Room, Speleo and ChopTree for DRIFT and DRIFT-symlog, with the final returns of DIAMOND and Horizon Imagination as horizontal lines.
Craftium, evaluation return over 100k steps, with the baselines' final returns as dashed lines. DRIFT ends above DIAMOND and Horizon Imagination on all four tasks.
Crafter score at 1M steps. DreamerV3 XL 14.5, DRIFT-symlog 10.6, DreamerV2 10.0, Delta-IRIS 9.3, Horizon Imagination 8.1, DRIFT 6.4, PPO 4.6, Rainbow 4.3, DIAMOND 3.8. 0 5 10 15 DreamerV3 XL, score 14.5%, latentDreamerV3 XL14.5latent DRIFT-symlog, score 10.6%, diffusion or flowDRIFT-symlog10.6diffusion or flow DreamerV2, score 10.0%, latentDreamerV210.0latent Δ-IRIS, score 9.3%, latentΔ-IRIS9.3latent Horizon Imag., score 8.1%, diffusion or flowHorizon Imag.8.1diffusion or flow DRIFT, score 6.4%, diffusion or flowDRIFT6.4diffusion or flow PPO, score 4.6%, model-freePPO4.6model-free Rainbow, score 4.3%, model-freeRainbow4.3model-free DIAMOND, score 3.8%, diffusion or flowDIAMOND3.8diffusion or flow Crafter score (%) at 1M steps
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 in IQM human-normalized score. Left, next-latent prediction on 8 games: frozen tokenizer 0.199, online tokenizer 0.242, frozen tokenizer with next-latent 0.790, online tokenizer with next-latent 0.818, DRIFT 1.243. Right, self-generated rollouts on 26 games: sign rewards 0.447, DRIFT 0.673, DRIFT-symlog 0.620. 8 games 0 0.5 1 1.5 IQM (human-normalized) Frozen tokenizer, IQM 0.199 Frozen tokenizer 0.20 Online tokenizer, IQM 0.242 Online tokenizer 0.24 Frozen tokenizer + next-latent, IQM 0.790 Frozen tokenizer + next-latent 0.79 Online tokenizer + next-latent, IQM 0.818 Online tokenizer + next-latent 0.82 + self-rollouts (DRIFT), IQM 1.243 + self-rollouts (DRIFT) 1.24 (a) Next-latent prediction 26 games 0.4 0.5 0.6 0.7 0.8 IQM (human-normalized) Sign rewards, IQM 0.447 Sign rewards 0.45 + self-rollouts (DRIFT), IQM 0.673 + self-rollouts (DRIFT) 0.67 DRIFT-symlog, IQM 0.620 DRIFT-symlog 0.62 (b) Self-generated rollouts
Ablations. Left: next-latent prediction, on a subset of 8 Atari games with an earlier agent setup. Right: 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}
}