A world model lets an agent anticipate the consequences of its actions and use imagined futures to make decisions. We introduce Normalizing-Flow World Model (NFWM), which pairs an invertible observation encoder with an action-conditioned probabilistic predictor. Because the encoder is invertible, the predicted distribution over latent states defines a distribution over future observations. Maximizing the exact conditional likelihood of those observations therefore trains the representation and dynamics jointly. An agent can plan directly in the learned latent space and decode sampled trajectories to inspect possible futures. On Teleport, these samples capture the two possible outcomes of the same action. In Flappy Bird, a world model trained by likelihood alone supports reward-based planning that reaches 100 pipes in all ten evaluated games. For goal-conditioned control, an auxiliary inverse-dynamics objective shapes the coordinates used to compare predicted states with a goal. On LIBERO, NFWM uses this distance to select successful action sequences more often than LeWM and SMWM. In Atari Boxing, training on imagined trajectories improves a policy beyond its behavior-cloned initialization. Together, these results establish normalizing flows as capable world models.
Figures & tables
Figure 2: Learning a predictive representation. (a) LeWM uses latent regression and SIGReg. (b) NFWM jointly learns an invertible encoder and a conditional predictive density through exact observation likelihood.
Figure 3: Action-conditioned predictions on Flappy Bird. Sampled predictions (top) and environment outcomes (bottom) for three action sequences from the same history. The red border marks collision under always-flap actions.
Model
Games reaching 100 pipes
Best pipes
NFWM, likelihood only
10/10
100
JEPA-style, invertible encoder
0/10
1
JEPA-style, ViT encoder
0/10
0
Table 1: Closed-loop planning on Flappy Bird. Results on ten held-out levels, with a stopping threshold of 100 pipes. All models use readouts fitted to frozen predictor hidden states and the same CEM budget.
Figure 4: Planning performance across environments. Mean ± std over three training runs for NFWM, LeWM, and SMWM. Wan uses one training run per task. Averaged over the four deterministic tasks, NFWM, LeWM, and SMWM achieve 84.5%, 82.5%, and 74.8% success, respectively.
Figure 5: Teleport. Entering the doorway selects the upper or lower destination with equal probability.
Figure 6: Predictor rollouts on Teleport. We visualize decoded latent states predicted from context observations and action sequences. Step t+5 shows the agent just after it passes through the doorway. For LeWM and SMWM, we train a decoder with the encoder frozen. For NFWM, we invert the encoder.
Figure 7: Action selection performance on LIBERO. Mean ± std over three training runs for NFWM, LeWM, and SMWM. Wan uses one training run. The dashed line shows uniform random selection from the same candidate pool.
Suite
Spatial
Object
Goal
Long
Overall
Success (%)
73.8
96.2
90.0
70.8
82.7
Table 2: LIBERO action experts with frozen NFWM features. One expert per suite, evaluated on 50 trials for each of ten tasks.
Figure 8: Policy learning and rollout drift on Atari Boxing. (a) Development returns averaged over three training runs, starting from the behavior-cloned policy. (b) Vector Fréchet distance (FD) for LeWM, SMWM, and DreamerV3. (c) Patch FD for NFWM and JEDI. All FD values are normalized per dimension. Solid curves show predicted futures and dashed curves show real-future controls.
Model
Return
NFWM
77.37±9.28
LeWM
−35.19±23.97
SMWM
40.78±38.34
JEDI
53.92±6.35
DreamerV3 (3-frame memory)
64.47±6.32
Wan (NFE 1)
45.1
Table 3: Policy-learning returns on Atari Boxing. Final policies evaluated on 50 held-out episodes. Mean ± std over three training runs, except Wan, which uses one run.
Figure 9: Image reconstructions on LIBERO. We show observations reconstructed from their encoded latent states and their differences from the original observations. Decoders are trained with the encoders frozen.
Figure 10: Latent geometry of NFWM. Principal component analysis (PCA) of latent states from NFWM and its variant without inverse dynamics (w/o InvDyn). (a) A held-out trajectory, colored by time. The circle and cross mark its start and end. (b) Predicted states for a grid of action offsets from one state, colored by action direction.
Model
Predictor Top-1
Predictor Top-5
Simulator Top-1
NFWM
46.0±3.5
78.7±1.2
54.0±2.0
LeWM
23.3±2.3
73.3±1.2
44.7±4.2
SMWM
32.7±4.2
71.3±4.2
50.0±4.0
Table 5: Ranking diagnosis on LIBERO (%). Mean ± std over three training runs. Predictor columns rank candidates by predicted terminal latent distance to the goal. Simulator Top-1 uses encoded simulator endpoints. Top-5 measures whether any of the five highest-ranked candidates succeeds.
Figure 11: Failure case on LIBERO. Actual simulator terminal images for the five lowest-cost candidates of NFWM. The top-ranked candidate fails, while rank 4 succeeds.
Appendix figures & tables27 assets
Supplementary material from the paper’s appendix.
Appendix
Task
Training episodes
Validation episodes
Action dimension
Push-T
16,816
1,869
2
Cube
9,000
1,000
5
Reacher
9,000
1,000
2
TwoRoom
9,000
1,000
2
Appendix
Table 6: Episode-held-out partitions for deterministic control. Action dimension is per raw environment step.
Figure 12: Teleport geometry. Schematic of the constrained initial region, doorway, and two teleport destinations. The contracted right room allows both branches to reach the goal within the evaluation horizon. The shaded goal box is the training target region, with x∈[180,202] and y∈[88,136] . Paired evaluation fixes the target height at y=112 .
Setting
Four deterministic tasks
Teleport
Candidates / elites / iterations
300 / 30 / 30
300 / 30 / 30
Initial action variance (normalized)
1
1
Fixed validation cases
50 windows per task
25 pairs / 50 windows
Initial observations / past actions
1 / none
1 / none
Goal offset (raw steps)
25
25
Predicted blocks H
5
5
Appendix
Table 7: Shared CEM settings and evaluation budgets. A raw step is one environment transition, not one five-action prediction block.
Figure 13: Token-wise autoregressive prediction on Teleport. Each patch is conditioned on previously generated patches within the same frame. Samples are decoded and score-denoised for display.
Figure 14: Image reconstructions on LIBERO. For each model, we show eight original observations, their reconstructions, and the corresponding difference images. LeWM and SMWM use 24-layer decoders.
Figure 15: Planning with NFWM in Flappy Bird. The frozen predictor rolls each candidate action sequence forward. Its readouts estimate reward and termination at each step, and CEM uses the resulting scores to update the action distribution.
Figure 16: Observations and candidate plans in Flappy Bird. The right panel shows candidate action sequences traced with simulator physics. Yellow marks the plan selected by CEM.
Model
Readout
Games clearing ≥1 pipe
Best pipes
NFWM, likelihood only
Hidden
10/10
100
JEPA-style, invertible
Hidden
1/10
1
JEPA-style, invertible
Latent
3/10
1
JEPA-style, ViT
Hidden
0/10
0
JEPA-style, ViT
Latent
4/10
2
CNN + residual MLP
Latent
0/10
0
Appendix
Table 8: Flappy Bird controls and alternative readouts. Counts use ten level seeds per setting. “Hidden” denotes predictor hidden states, and “latent” denotes predicted latent states. The last two controls use a two-frame CNN encoder, residual-MLP dynamics, and a 24-step consistency loss.
Partition
Episodes
Transitions
Mean episode return
Training
660
930,868
25.53
Offline validation
70
98,760
23.19
Full collection
730
1,029,628
25.30
Appendix
Table 9: Atari Boxing dataset. Counts refer to agent-decision transitions after five-frame action repetition, not raw ALE frames.
1,000 critic-only warm-up updates, then 20,000 actor updates
Appendix
Table 10: Atari Boxing settings for NFWM, LeWM, and SMWM, fixed across training repetitions except for the model-specific objectives and input noise described above. Selection follows Appendix D.3 .
Component
Setting
Selection / check
35 / 35 disjoint episodes
Calibration validation
Two-fold episode-level cross-fitting, at least ten positive examples per fold
Eligibility
Finite metrics, calibrated Brier score and unweighted binary NLL each ≤1.25 times the constant-prevalence reference, mean predicted termination rate 0.25 – 4 times the observed rate
Selection and final fit
Lowest reward SmoothL1 among eligible checkpoints, refit calibration on selection episodes only
Initialization
Analytical −log(1000) logit correction for the positive-class training weight
Appendix
Table 11: Reward/termination head selection. Calibration uses p^t=sigmoid(aℓt+b) with a>0 . NFWM, LeWM, and SMWM use the same rule. Head and calibration parameters are frozen before policy improvement.
Model
Run
Selected BC update
BC
Final RL
NFWM
1
29,000
7.68
86.52
NFWM
2
27,000
9.30
77.64
NFWM
3
16,000
10.58
67.96
LeWM
1
24,000
7.54
−54.80
LeWM
2
22,000
7.52
−42.30
LeWM
3
30,000
5.46
−8.46
Appendix
Table 12: Atari Boxing results by training seed. BC and final RL are mean sampled returns over the same 50 held-out environment seeds. The BC checkpoint is selected on separate development episodes. Final RL always uses 20,000 actor updates after critic warm-up.
Model
Pixel-noise σ
BC
Final RL
Reward loss
NFWM
0.05
7.68
86.52
0.02423
LeWM
0
7.54
−54.80
0.02854
LeWM
0.05
6.62
−45.38
0.02604
SMWM
0
16.84
54.64
0.02676
SMWM
0.05
16.06
15.86
0.02655
Appendix
Table 13: Boxing input-noise control (one training seed). BC and final-RL columns are mean sampled held-out returns. Reward loss is the selected predictor head’s SmoothL1 on the head-selection split. Clean-input baselines and NFWM use reference run 1. The two noise controls retrain each baseline with noisy encoder inputs.
Model
Latent representation
Predicted
Real future
NFWM
144×192 spatial
0.00256
0.00201
LeWM
192D vector
0.07654
0.00100
SMWM
192D vector
0.04925
0.00235
JEDI
64×16 spatial
1.45600
0.00251
DreamerV3
3,328D RSSM
0.31581
0.01279
Appendix
Table 14: Boxing rollout drift at 20 steps. FD per dimension from one checkpoint per model, compared with encoded real futures against the same training reference.
Setting
Value
Training batch
128 windows
Maximum observation context
Three frames
Training window
Four observations: up to three context frames and one target
Continuous-action transitions
Five raw steps between observations, concatenate the five intervening actions
Continuous-action normalization
Statistics fitted on training trajectories for all reported evaluations
Decision-rollout initialization
One observed frame, grow the predicted context to the maximum length
Appendix
Table 15: World-model training and context settings for NFWM, LeWM, and SMWM on goal-conditioned planning, LIBERO, and Atari Boxing. Diagnostic experiments specify any changes to rollout initialization.
Component
Setting
Image / latent
96×96 RGB, 8×8 patches, 144 tokens of width 192
Flow
Four blocks, three Transformer layers per block, three heads of width 64, MLP width 768, alternating token order
Affine scale
Soft clipping at 4, positive softplus scale, lower bound 0.1
Latent predictor
Six layers, token width 192, 16 heads of width 64, MLP width 2048, dropout 0.1, action AdaLN
Conditional variance
Learned diagonal standard deviation, lower bound 10−4
Auxiliary readout
Eight queries, two self-attention layers, three heads of width 64, MLP width 768, no dropout
Appendix
Table 16: NFWM architecture for continuous-action tasks.
Task
Reporting epoch
Noise std.
λinv
Push-T
10
0.05
0.03
Cube
10
0.05
10
Reacher
10
0.05
20
TwoRoom
10
0.05
0.1
Teleport
150
0.05
1
LIBERO
30
0.08
10
Appendix
Table 17: Continuous-action training settings. Reporting epochs are shared by NFWM, LeWM, and SMWM. Noise standard deviations (in [0,1] pixel units) and inverse-dynamics weights are for NFWM.
Table 19: Additional Push-T representation probes. Held-out R2 for the full reference model and its NF-only ablation at the fixed reporting epoch.
Figure 17: Additional Push-T projections. (a) A second real trajectory across all three objectives. (b) The first trajectory under forward MSE + IDM, complementing Figure 10 (a). Color denotes elapsed time. (c) Local predictions for forward MSE + IDM under the same action grid as Figure 10 (b). Color denotes action direction. The deterministic variant has orderly projections despite weaker planning.
Figure 18: Matched Push-T geometry of NFWM and Wan (1 NFE). Top: encoded observations along the same real trajectory, colored by time. Bottom: predicted latent states for the same local action grid, colored by action direction. Wan shows sharper trajectory reversals, while both predictors form ordered local grids.
Figure 19: Local predicted-state geometry of Wan with 2 and 4 NFE. The initial observation, action grid, and PCA protocol follow Figure 18 . The local grid retains a similar structure across the two sampling settings.
Figure 20: Decoded predictions in stochastic environments. (a) Selected Teleport predictions at five-step intervals. The panels share the initial observation and first action block. Upper and lower NFWM continuations then follow branch-specific expert actions. (b) Atari Boxing predictions, progressing from left to right. Teleport and Atari Boxing NFWM images receive one score-denoising step for display.
Task
NFWM
Full-patch LeWM
Full-patch SMWM
Push-T
89.3
80.0
28.0
TwoRoom
98.0
40.0
98.0
LIBERO
46.0
30.0
34.0
Appendix
Table 20: Full-patch planning comparisons. Success (%). NFWM reports the main three-run mean. Each full-patch baseline uses one training run.
Task
K=1
K=4
K=8
K=16
Teleport
44 / 42
30 / 26
30 / 30
30 / 26
Push-T
92 / 92
90 / 92
92 / 92
92 / 92
LIBERO
50 / 48
54 / 56
54 / 52
52 / 54
Appendix
Table 21: Success under different rollout scores (%). Each entry reports sampled endpoint / Final Mean, using one training run and 50 evaluation cases per task.
Task
Model
Predict (ms)
States/s
Peak (MiB)
Decision (s)
Push-T
NFWM
1.19
3,586
423.5
10.038
LeWM
1.17
28,491
84.2
0.286
SMWM
1.17
28,431
83.2
0.286
LeWM, full patch
1.18
3,521
430.0
10.478
SMWM, full patch
1.20
3,533
484.0
10.478
JEDI
5.16
6,230
61.9
1.416
Appendix
Table 22: Prediction and decision cost. Prediction latency (ms), rollout states/s, peak allocated rollout memory (MiB), and decision time (s).
Model
Decision (s)
Peak memory (GiB)
Parallel NFWM
10.14
3.48
Token-wise NFWM
225.92
9.82
LeWM
0.34
0.11
SMWM
0.38
0.10
Appendix
Table 23: Teleport planning cost. Peak allocated memory covers the complete CEM decision.
Latent world models are inherently strong encoders that transform image pixel to latent embedding, yet existing world models still rely on online trajectory optimization for action planning: for every state-goal pair, an iterative optimizer is run from scratch to search for optimal action sequences, treating the world model as a black-box simulator. This approach pays the full iterative optimization cost anew at every replanning step and reuses no planning experience across queries. In this work, we ask whether planning itself can be amortized once a latent world model has been learned. We present LeFlow, which learns a reusable latent trajectory prior operating directly in the latent dynamics space from the world model. LeFlow recasts planning as conditional latent trajectory generation: a rectified-flow model imagines a future latent path between the current and goal embeddings, an inverse dynamics decoder turns latent transitions into action chunks, and the frozen world model verifies each candidate by autoregressive rollout. Across four major goal-conditioned pixel-control benchmarks, LeFlow replaces iterative action-space optimization with amortized latent planning and fixed-budget rollout selection, achieving consistent success-rate gains with an order-of-magnitude reduction in planning time. Our results argue that latent world models should support not only prediction but reusable planning priors. Our code is available at https://github.com/hsiangwei0903/LeFlow.
Modern reinforcement learning (RL) algorithms have found success by using powerful probabilistic models, such as transformers, energy-based models, and diffusion/flow-based models. To this end, RL researchers often choose to pay the price of accommodating these models into their algorithms -- diffusion models are expressive, but are computationally intensive due to their reliance on solving differential equations, while autoregressive transformer models are scalable but typically require learning discrete representations. Normalizing flows (NFs), by contrast, seem to provide an appealing alternative, as they enable likelihoods and sampling without solving differential equations or autoregressive architectures. However, their potential in RL has received limited attention, partly due to the prevailing belief that normalizing flows lack sufficient expressivity. We show that this is not the case. Building on recent work in NFs, we propose a single NF architecture which integrates seamlessly into RL algorithms, serving as a policy, Q-function, and occupancy measure. Our approach leads to much simpler algorithms, and achieves higher performance in imitation learning, offline, goal conditioned RL and unsupervised RL.
Raj Ghugare, Benjamin Eysenbach
Department of Computer Science Princeton University
Joint-Embedding Predictive Architectures (JEPAs) provide a powerful framework for latent world modeling and planning in a reconstruction-free manner. Although numerous JEPA-based approaches have been proposed to mitigate representation collapse, our experiments on localized, out-of-distribution visual noise reveal that performance degradation remains pronounced and unresolved. We propose Flow-JEPA (F-JEPA), a flow-based latent dynamics model that jointly generates a sequence of future latent states conditioned on the current observation and actions. A Gaussian distribution serves as the flow source, exposing the vector field to perturbed latent trajectories as it learns to transport them toward clean future representations. This formulation retains the reconstruction-free JEPA framework while switching from pointwise transition regression to stochastic trajectory-level prediction. F-JEPA raises mean success from 86% to 92% under clean observations and from 67% to 86% under noisy conditions. Further evaluations over varying perturbation severity and inference settings show that the performance advantage persists across a broad range of conditions. These results suggest that conditional flow matching provides a promising alternative to deterministic autoregressive prediction as a dynamics formulation in JEPA world models.
Yanchen Huo, Ziying Song, Yadan Luo
Nanyang Technological University · The University of Queensland