Variational Streaming Flow:

Probabilistic Forecasting in Physical Time

Hans Hao-Hsun Hsu1,2 Minseon Gwak1,5 Soon Hoe Lim3,4,* Pan Li2 N. Benjamin Erichson1,5

1Lawrence Berkeley National Laboratory 2Georgia Institute of Technology 3KTH Royal Institute of Technology 4Nordita 5International Computer Science Institute *Work done while visiting ICSI/UC Berkeley

Time series describe how systems change, whether we are studying the weather or controlling a robot arm. These are often multivariate problems: temperature, pressure, and wind evolve together, as do a robot's joint positions and velocities. Forecasts need to capture those relationships. They also need to account for what we do not know. A robot may have to move an object before it knows the object's mass or friction. A single predicted motion can hide that uncertainty. A probabilistic forecast describes the range of motions the robot might encounter.

Generating these possible futures can be expensive. Diffusion models start from noise and refine it through repeated network evaluations, either for a whole trajectory or for successive states or blocks. A planner that compares many actions must repeat that work many times. Streaming Flow (SF) avoids a separate denoising loop: it learns the state's rate of change and integrates forward in physical time. With Euler integration, one network evaluation advances the forecast by one step. Standard SF, however, produces only one future from a fixed starting state and history. It needs another source of variation to describe alternative futures.

We introduce Variational Streaming Flow (VSF), which gives the dynamics model an extra input: a randomly sampled latent code. The code stays fixed as the model predicts successive states. Drawing a different code can produce a different trajectory from the same observations. During training, an encoder uses observed transitions to infer codes that explain the motion. At prediction time, we draw the code from a standard normal distribution. The model then updates all state variables together, with one field evaluation per Euler step for each trajectory. We test VSF on 1,000-step forecasts of physical systems and in a visual world model that uses predicted motion to plan actions.

From forecasting to planning

Long forecasts give prediction errors time to grow. Once a model starts using its own predictions as inputs, an early mistake can affect every later step. This is known as error accumulation in autoregressive prediction. We test VSF over 1,000 steps, measuring whether it follows the system's motion and captures the variation caused by a hidden parameter. We then use its forecasts to choose actions in a visual world model: the planner predicts what each candidate plan will do before selecting one to execute. A misleading forecast can make a bad plan look promising. The chart below shows planning success on four tasks, with the visual encoder, planner, and planning budget held fixed.

01

One evaluation per step

With forward Euler, each forecast step needs one call to the velocity network (NFE = 1). An ensemble requires a separate rollout for each sample.

02

One code for a complete future

We sample a code at the start of a forecast and keep it until the end. Different codes can produce different futures from the same observations.

03

Forecasts that help a planner

Replacing the autoregressive world-model predictor with VSF improves average task success by about 7.3 percentage points across four tasks, with the encoder and planner held fixed.

Planning success across four tasks

Success rate (%) · higher is better

PushT

AR
84.7 ± 4.1 percent success, mean and population standard deviation
SF
88.0 ± 2.8 percent success, mean and population standard deviation
VSF
92.7 ± 2.5 percent success, mean and population standard deviation

Cube

AR
69.3 ± 2.5 percent success, mean and population standard deviation
SF
76.7 ± 0.9 percent success, mean and population standard deviation
VSF
80.0 ± 1.6 percent success, mean and population standard deviation

TwoRoom

AR
78.7 ± 9.0 percent success, mean and population standard deviation
SF
76.7 ± 8.2 percent success, mean and population standard deviation
VSF
82.7 ± 5.0 percent success, mean and population standard deviation

Reacher

AR
61.3 ± 8.2 percent success, mean and population standard deviation
SF
49.3 ± 5.0 percent success, mean and population standard deviation
VSF
68.0 ± 0.0 percent success, mean and population standard deviation
VSF has the highest mean success on each task. Only the dynamics predictor changes; the visual encoder, planner, and planning budget are held fixed. Bars show mean success over three seeds, with 50 goals per seed; whiskers show ± one population standard deviation. All axes run from 0 to 100%. A goal counts as reached within a 50-step execution budget. AR is the original autoregressive predictor, SF is Streaming Flow, and VSF is our variational predictor. See Table 3 and the planning setup.

Probabilistic forecasting

Possible futures when a dynamical parameter is hidden

AR diffusionBaseline
Animated AR-diffusion forecasts for the partially observed stochastic Rössler system.
VSFOurs
Animated VSF forecasts for the same partially observed stochastic Rössler history.

Each curve is one possible future. In this example, VSF generates varied paths around the Rössler spiral, while AR diffusion drifts away from the system's motion. The full comparison below includes the simulator's trajectories and other baselines.

Planning with a world model

Predicting action outcomes to move a cube to its target

AR predictorFailure
VSF predictorSuccess

The arm must grasp the cube and place it at the target. Here, the plan chosen with the AR predictor fails and the plan chosen with VSF succeeds. The results below show how often each method succeeds across all evaluated goals.

1 · Generating a forecast

Two clocks in diffusion forecasting

Diffusion starts with a noisy guess of the future and refines it through repeated network evaluations. This introduces two clocks: the physical time covered by the forecast, and the progress of denoising. The model can spend many evaluations refining a prediction without advancing physical time. Full-sequence diffusion refines a requested horizon all at once. Block diffusion generates a few future states together, while one-step autoregressive diffusion repeats denoising for every next state. Streaming Flow advances the predicted system directly in physical time. Each integration step produces the next state. The animations below show when predictions become available under each approach.

Use the legend to follow each future state as it moves from waiting, to generation, to a completed forecast.

Observed history Being generated Completed forecast Waiting
A

Full-sequence diffusion

View
Full-sequence diffusion denoises every requested future state together across an auxiliary diffusion-time axis.
Forecast horizon
Fixed up front
Additional denoising
Full trajectory
B

Block diffusion

View
Block diffusion denoises five future states together, appends the block, and repeats.
Forecast horizon
Open-ended
Additional denoising
One loop per block
C

Autoregressive diffusion

View
Autoregressive diffusion fully denoises one future state before advancing to the next physical time.
Forecast horizon
Open-ended
Additional denoising
One loop per state
D

Streaming Flow

View
Streaming Flow moves directly from one physical forecast time to the next without an auxiliary denoising loop.
Forecast horizon
Open-ended
Additional denoising
None; physical time only

2 · Physical-time flow

What is Streaming Flow?

To forecast directly in physical time, SF learns how fast each variable in a system's state changes. For our double pendulum, the state contains the positions and velocities of both masses; in the robot experiments, it contains visual features. The model predicts their rates of change together, and integrating those rates produces a trajectory. Even a small prediction error can put the forecast at a state that never appeared in the training data. SF defines training targets around each observed path so the model can learn what to do there. These targets combine motion along the path with a correction toward it.

Noisy training states narrow around the reference trajectory as physical time advances.

Build training examples around a path

Start with an observed trajectory, ξ(s), and add Gaussian noise around it. This gives the model examples of states slightly away from the path. The noise decreases over physical time, so these examples form a narrowing tube. Each tube belongs to one observed trajectory. Its width controls the training perturbations; variation between possible future trajectories is a separate question.

Ys = ξ(s) + σ(s)ε, σ(s) = σ0e−κs
A learned physical-time velocity field aligns with the trajectory and points nearby states back toward it.

Learn one physical-time field

At each training state, the target combines the observed velocity with a correction, gξ(x, s) = ξ̇(s) − κ(x − ξ(s)). The correction is zero on the path. Away from it, the correction points back toward the path while the reference velocity carries the state forward. Standard SF learns these targets by squared-error regression.

LSF = E‖vθ − gξ‖²
One deterministic Streaming Flow forecast rolls forward from the latest observed state.

Roll forward one step at a time

Start from the latest observation and ask the learned field how the state should change. An Euler update uses that prediction to advance one step. Repeat from the new state, adding generated states to the rolling history. These updates are autoregressive: each predicted state helps determine the next. The field receives the current state, normalized physical time sk, and a history representation h. With the same starting state and history, standard non-latent SF produces the same trajectory.

x̂k+1 = x̂k + Δt vθ(x̂k, sk, h)
1 velocity-field evaluation per Euler step
Diffusion forecasting

Physical time auxiliary denoising time

Streaming Flow

Physical time only

Adding noise to the starting state gives standard SF a way to produce different futures. The next example shows why relying on small state differences can be difficult when those futures separate sharply.

3 · Bifurcation example

How a latent code separates futures

We use a single-variable example to see why a separate code helps. Two futures follow the same path until a branch point and then move in opposite directions. This splitting into two possible futures is the bifurcation in our example. The shared past gives no clue about which branch will follow. Standard SF can send forecasts toward either branch by starting slightly to either side of the split state. Making those perturbations smaller improves the fit at the split, but asks the field to send nearly identical states in different directions. In this example, that makes the field increasingly sensitive to small state errors. A latent code can choose the branch while both forecasts begin at exactly the same physical state.

A shared past

Before the split, the observed trajectories are identical. A forecast cannot infer which branch will follow.

Small state differences

Standard SF uses small differences in the starting state to send forecasts toward different branches.

A separate branch code

The code chooses the branch, so each forecast can start from the same physical state.

The plots below use exact formulas for both fields. The top row shows the reference paths and an ideal field with a branch code. In the bottom row, reduce the tube width. Standard SF fits the shared state more closely, but becomes more sensitive to small errors around it. The technical panel gives the population-optimal SF field and the proof; the results section evaluates trained neural networks.

Bifurcation analysis showing the ground truth, standard Streaming Flow, an ideal latent construction, and the fidelity-sensitivity tradeoff.
Bifurcation example. As standard SF fits the shared state more closely, it becomes more sensitive to small state differences near the split. Giving the branch choice to a latent code avoids this trade-off in the example.

In this example, we chose what the code means by hand. For real data, the encoder learns to associate codes with observed motion, without branch labels.

See technical detailsHide technical details Matched Standard-SF and latent equations, with Proposition A.1

Setup and notation

Bifurcation example

At the split, the present state is known exactly, but the future branch is still uncertain. We want a forecast to respect both facts: every sample should agree with the observed state, and the samples should cover both futures. This example lets us calculate how two ways of representing that uncertainty behave.

Let B ∈ {−1,+1} index the two equally likely futures. Both trajectories remain at x = 0 through the bifurcation time τ; for t > τ, B = −1 and B = +1 select the negative and positive branches:

ξB(t) = Bm(t), with m(t) = 0 before τ and positive after τ

The sign selects the branch; the displacement function determines how far it moves from zero. Before the split, this displacement is zero for both signs. Even the entire observed history therefore provides no way to choose between the two futures.

B
future branch label
m(t)
distance of either branch from zero
τ
bifurcation time
σ₀
initial tube scale; the slider control
k
tube contraction rate, with σt = σ₀e−kt
JSFτ,t
effect of a small state error at the split on the later state

If the branch were known, its field would follow the reference motion and correct deviations toward that path. Both constructions use q(t) = ṁ(t) + km(t) to combine these terms. The dot denotes a time derivative. Standard SF also uses a Gaussian training tube with width σt = σ₀e−kt, which shrinks over time.

For each model, we examine three quantities. The velocity field is the update rule. Fidelity measures agreement with the state at the split. Sensitivity measures how much a small error in that state changes the later forecast. The last two need to be considered together: a close fit is less useful if a tiny perturbation can substantially change the prediction.

Standard Streaming Flow

Why physical-state fidelity raises sensitivity

Standard SF has no separate input for the branch. At a given time, forecasts with the same state and history receive the same update. To generate both futures, this construction varies the physical starting state x. Small differences in that state must then determine which future a forecast follows.

We study the population optimum: the field that minimizes the expected SF training loss exactly. This removes imperfect fitting from the comparison and isolates a limitation of the formulation in this example. The calculation and its assumptions are given in Proposition A.1 in the paper .

01Velocity fieldPopulation-optimal

Squared-error training averages the two branch-specific target velocities according to how likely each branch is at the current state. For this symmetric Gaussian construction, the average has an exact expression:

v⋆SF(x,t) = −kx + q(t)tanh(xm(t)/σt²)

The tanh factor is a smooth average of the branch sign, taking values between −1 and +1. Once the branches separate, positive states put more weight on the positive branch, while negative states favor the negative branch. At zero, the branches have equal weight and their velocities cancel.

A forecast started exactly at zero therefore stays at zero, even after the reference paths separate. Starting slightly to either side lets the field produce different futures. A narrower tube makes the change between the branch weights sharper near zero.

02Split-time fidelity errorDistance to the data marginal

At the split, every reference trajectory is exactly at zero. In this construction, standard SF starts from a Gaussian distribution and contracts it toward zero before the branches separate. A Gaussian spread remains at the split. The two distributions below describe these physical states, and the Wasserstein distance measures their discrepancy:

ετ := W₂(PτSF, Pτdata) = στ = σ₀e−kτ
Current slider setting σ₀ = 0.340 ετ ≈ 0.194

Here, the 2-Wasserstein distance is simply the root-mean-square distance of SF's sampled states from zero. It equals the tube's standard deviation. Reducing the tube scale with the slider improves this fit, but also brings the states that must eventually follow different branches closer together.

03Flow-map sensitivityFor fixed t > τ, at x = 0

Now perturb the state slightly at the split and integrate to the same later time. The flow map takes the starting state to that later state; its derivative Jτ,t measures the local amplification of the perturbation. We evaluate it along the central trajectory, where the two branches have equal weight:

JSFτ,t = exp[−k(t−τ) + m(t)²e2k(t−τ)/(2ετ²)]

A sensitivity of ten means a sufficiently small state error at the split becomes roughly ten times larger later. The negative term in the exponent comes from contraction toward the reference paths. The positive term comes from separating the branches.

The squared fidelity error sits in the denominator of that positive term. With the branch motion and later time fixed, reducing this error increases sensitivity. The model fits the split more closely, but becomes more responsive to small state errors around zero.

The issue

The physical state is doing two jobs: matching the observed present and carrying the future branch choice. Keep the branch motion and contraction rate fixed. For any fixed later time t > τ with m(t) > 0, making the fit arbitrarily precise forces the local sensitivity to grow without bound:

ετ ↓ 0 implies JSFτ,t → ∞

For every positive tube width, the sensitivity is finite. The limit concerns how strongly an infinitesimal error at zero changes the later state. It exposes the cost of encoding the branch choice in ever-smaller physical-state differences.

Ideal latent construction

How conditioning removes the toy bottleneck

Now give the branch choice its own variable. We sample a code once and keep it fixed throughout the trajectory. Two forecasts can then start from the same observed physical state and receive different updates because their codes differ. Sampling chooses one possible future; it does not reveal which future will actually occur.

Let Z ∼ N(0,1), with b(Z) = +1 for Z ≥ 0 and b(Z) = −1 for Z < 0. The two signs have equal probability, so each future is selected half the time. Both forecasts start from xτ = 0.

01Velocity fieldIdeal latent-conditioned

The code now supplies the branch sign directly. Replacing the averaged branch sign in standard SF with this chosen sign gives:

videal(x,t,Z) = −kx + b(Z)q(t)

Expanding q(t) writes the field as b(Z)ṁ(t) − k[x − b(Z)m(t)]: the selected branch's velocity plus a correction toward its position. On the path, the correction is zero and the velocity matches the reference motion. The physical state can track the path while the code retains the branch choice.

02Split-time fidelity errorDistance to the data marginal

Every generated trajectory starts from zero at the split, whatever its code. The model's distribution of physical states therefore matches the data distribution exactly:

W₂(Pτideal, Pτdata) = 0

The forecast can be certain about the present state and still uncertain about the future. That uncertainty is represented by the code, which preserves both future branches with equal probability.

03Flow-map sensitivityFor fixed latent code Z

Finally, perturb only the physical state and keep the code fixed. This tests whether a state error grows while the selected future stays the same:

Jidealτ,t = ∂Φidealτ,t(x,Z)/∂x = e−k(t−τ)

Because the contraction rate is positive, this factor is below one and decreases with time. Small state errors shrink toward the selected path. A different code can still select a different future; that intended variation is separate from sensitivity to errors in the physical state.

What changes

The variable Z carries the future choice, while x can match the shared observed state exactly. For a fixed code, this constructed field also contracts small state errors. This is why separating future variation from the physical state helps in this example.

The calculation constructs an ideal field by hand. It shows what a separate latent variable makes possible, without establishing the same contraction for a trained VSF network. In VSF, the encoder and velocity network must learn how codes affect motion from data. The next section explains how we learn that relationship; the forecasting experiments test the resulting trajectories.

4 · Method

Variational Streaming Flow

We train an encoder and a velocity network together. The encoder sees an observed transition and proposes latent codes that help the velocity network explain its motion. The network learns how each code changes its prediction, given the current state, time, and history. The posterior describes which codes are likely given the observed motion. Computing it exactly is difficult, so the encoder predicts the mean and variance of a Gaussian approximation. This is the variational inference step that motivates our training objective. When forecasting, the future motion is unknown, so we draw a code from a fixed standard-normal prior, p(z) = N(0, I), and keep it throughout the rollout. A Kullback–Leibler (KL) penalty encourages the encoder's distributions to stay close to this prior. This helps match the codes used during training to those drawn when forecasting. The paper also relates this variational approach to earlier SF extensions with auxiliary latents.

The forecast follows the learned latent-conditioned dynamics:

d x̂s / ds = vθ(x̂s, s, h, z)

Training

Take a transition from a training trajectory and compute its local state and velocity (xs, us). The encoder proposes codes that could explain this movement.

z(1:M) iid∼ qφ(· | us, xs, s, h)

For each code, predict the velocity at this state and time.

ûs(1:M) = vθ(xs, s, h, z(1:M))

Train both networks with the energy reconstruction loss below and a KL penalty toward p(z).

Inference

Sample z ∼ p(z) and retain it throughout the forecast.

Advance the predicted state directly in physical time.

x̂k+1 = x̂k + Δs vθ(x̂k, sk, h, z)

Append generated states to the rolling history and refresh h at each segment boundary.

How local predictions become complete trajectories

Each training example tells the network how the state moves over a short interval. To generate a forecast, we start from the last observation, predict its rate of change, and update the state. We then evaluate the network at this new state and repeat. Generated states enter the rolling history, and the same latent code stays in use as that history is refreshed. This gives one complete trajectory from the observed history and code. Drawing a new code and rerunning the forecast can give another future:

z ∼ p(z), x̂m+1:T = Rolloutθ(xa:m, z)

We evaluate this distribution using full trajectories in the stochastic experiments. In the ablation in Figure 11, keeping the code fixed gives more accurate long forecasts than resampling it at every step. The theorem below addresses the local velocity distributions used to build those trajectories.

Latent velocity model

Let cs = (xs, s, h) collect the state, time, and history, and let us be the observed velocity. For the training derivation, we place a Gaussian distribution around the velocity predicted for each code at this context. Averaging these distributions over the prior gives the conditional velocity likelihood:

maximize log pθ(us | cs), where pθ(us | cs) = ∫ pθ(us | cs, z)p(z) dz

The encoder makes this model practical to train by proposing codes from the motion observed in the training data. The paper first derives an evidence lower bound (ELBO): with a Gaussian reconstruction model, this gives squared error plus a KL penalty. We then replace the squared-error reconstruction with the energy term below. The final loss is a KL-regularized distributional objective. At inference, the network returns a single velocity for the sampled code and current context.

Learning a distribution of local motion

When a system can move in several ways, we want the samples to reproduce those motions in the right proportions. We therefore train the predicted velocities together as a distribution. For each observed transition, we draw M codes from the encoder's distribution and predict a velocity for each. The generalized energy reconstruction loss scores these velocities using both their distance to the observed motion and their differences from one another.

Why not use MSE alone?

Suppose velocities −1 and +1 remain equally likely at the same context and code. Squared error favors their average, 0. An informative code can separate the two directions. Any uncertainty left after conditioning is still averaged: v*(c, z) = E[U | C = c, Z = z]. This motivates training the predicted velocities as a distribution.

LES(s) = (1/M) Σi ‖ûs(i) − us‖₂α − (1/2M²) Σi,j ‖ûs(i) − ûs(j)‖₂α, 0 < α < 2

In the paper's formulation above, the first term pulls predictions toward the observed velocity. The subtracted term rewards differences among predictions. The two terms work together: spreading samples too far apart also increases their distance from the observation. The exponent sets how strongly large distances count. We add the KL penalty to encourage codes inferred during training to remain close in distribution to the prior used for forecasting:

LVSF = E[LES(s) + βKL KL(qφ(z | us, xs, s, h) ‖ p(z))]

The example below makes this distinction visible. The true velocity is equally likely to be −1 or +1. Choose a predicted pair, then increase the exponent toward 2. At 2, two different distributions can have zero mismatch just because their means agree. The left plot also shows the population reconstruction term for the example's encoder; the right plot maps the prediction–truth mismatch.

α = 1.000
Prediction
At α = 1, the mismatch uses unsquared distances. Selected pair {−0.7, +0.7}.

(a) Predicted distribution versus target
  1. Prediction–truth mismatch: the actual distribution error; for 0 < α < 2, 0 means an exact match.
  2. Population reconstruction term: the term in the paper's objective, evaluated with this example's encoder; it upper-bounds the mismatch under the stated alignment assumption.
(b) Prediction–truth mismatch landscape
The star marks an exact match. Color shows the mismatch for each prediction; the selected pair has mismatch 0.150.
See technical guaranteeHide technical guarantee Proposition C.1 and its aggregate-alignment assumption
What does aggregate posterior matching mean?

We construct a two-branch example to make q̄φ(z | c) = p(z) concrete:

  • Inference prior: p(z) = (0.50, 0.50), so either branch is sampled with equal probability.
  • Training posteriors: the encoder assigns (0.85, 0.15) for U = −1 and (0.15, 0.85) for U = +1, ordered as (P(Z = −1), P(Z = +1)).
  • Aggregate posterior: averaging over the two equally likely targets recovers the inference prior.
q̄φ(z | c) = ½(0.85, 0.15) + ½(0.15, 0.85) = (0.50, 0.50) = p(z).

Objective type. Replacing Gaussian reconstruction with LES makes the final loss a KL-regularized distributional objective.

5 · Results

Forecasting dynamical systems

A model can predict the next step well and still lose track of the motion over a longer forecast. Once it starts using its own predictions, an early mistake changes the states it encounters later. We test this over 1,000 steps on the double pendulum, Rössler, and Lorenz systems. All three require multivariate prediction: the pendulum has eight state variables, and Rössler and Lorenz each have three. We first test deterministic systems with the full state observed, so there is one correct future to follow. We then hide a parameter in the Rössler and Lorenz systems and test whether the models predict the resulting range of futures.

We compare VSF with diffusion and rectified-flow forecasters, DeepAR, standard SF, and the pretrained time-series model Chronos-2. SF and VSF use the same U-Net backbone. We also test SF with noise added to its starting state, labeled SF (perturb.), to see how much this simple source of variation helps. Chronos-2 is frozen; its calibrated variant corrects the predicted quantiles after forecasting. The tables cover the test data, and the animations show selected forecasts in more detail.

5.1

Tracking a single future

We begin with deterministic systems whose full state is observed. Their future is fixed by the initial condition. Chaos makes that future sensitive to small errors, but the simulator does not draw a new outcome each time it runs. We therefore want a probabilistic model's samples to stay close to the same reference path. We score the samples with the continuous ranked probability score (CRPS), separately at each time and state coordinate. Root mean square error (RMSE) and mean absolute error (MAE) measure errors in their mean. We report both because averaging can hide errors: several poor paths can have a better-looking mean.

Table 1. Deterministic forecasting. Errors are aggregated over the 1,000-step horizon. CRPS is evaluated at each time and state coordinate; RMSE and MAE use the ensemble mean. VSF has the lowest reported mean error on all three systems. Runtime (RT) is measured in seconds and averaged across tasks. Lower values are better.

Complete deterministic results

Scroll horizontally to view all metrics.

Complete 1,000-step deterministic forecasting results.
Model Double pendulum Rössler Lorenz RT
CRPS ↓RMSE ↓MAE ↓ CRPS ↓RMSE ↓MAE ↓ CRPS ↓RMSE ↓MAE ↓
Block diffusion0.46 ± 0.070.91 ± 0.140.47 ± 0.070.29 ± 0.130.54 ± 0.260.29 ± 0.130.31 ± 0.120.42 ± 0.180.33 ± 0.1230.2
AR diffusion0.43 ± 0.000.96 ± 0.010.59 ± 0.010.35 ± 0.061.00 ± 0.130.53 ± 0.080.86 ± 0.041.96 ± 0.061.50 ± 0.0678.2
Rectified flow0.53 ± 0.071.08 ± 0.110.67 ± 0.070.40 ± 0.070.85 ± 0.200.48 ± 0.081.46 ± 0.892.69 ± 1.461.94 ± 1.1441.1
DeepAR0.58 ± 0.001.07 ± 0.000.68 ± 0.000.17 ± 0.040.54 ± 0.050.21 ± 0.0510.30 ± 0.2212.42 ± 0.1310.88 ± 0.133.9
SF2.12 ± 0.879.18 ± 5.172.12 ± 0.870.16 ± 0.070.34 ± 0.180.16 ± 0.071.42 ± 0.142.75 ± 0.311.42 ± 0.146.4
SF (perturb.)1.83 ± 0.868.38 ± 5.181.96 ± 0.890.11 ± 0.050.34 ± 0.180.16 ± 0.071.39 ± 0.142.75 ± 0.311.42 ± 0.146.4
Chronos-20.78 ± 0.001.50 ± 0.020.96 ± 0.011.98 ± 0.004.11 ± 0.022.62 ± 0.0113.50 ± 0.0628.19 ± 1.1425.22 ± 0.850.8
Chronos-2 (calib.)0.62 ± 0.001.16 ± 0.000.74 ± 0.001.91 ± 0.003.91 ± 0.022.52 ± 0.012.39 ± 0.026.01 ± 0.274.54 ± 0.270.4
VSF Ours0.25 ± 0.070.71 ± 0.110.33 ± 0.080.03 ± 0.000.13 ± 0.010.05 ± 0.000.16 ± 0.020.25 ± 0.020.19 ± 0.017.2

Values are mean ± population standard deviation across three seeds.

VSF improves on SF even when there is only one future to predict. Since both models advance directly in physical time, this comparison tests the benefit of the variational formulation within the same forecasting approach. Adding noise to SF's starting state helps on some metrics, but leaves a gap to VSF. Chronos-2 has a different setup: it is frozen and receives only 10 context steps, while the other models are trained on these systems.

5.2

Forecasting when a parameter is hidden

For the next experiment, we hide one parameter of the Rössler or Lorenz equations from the forecaster. We draw a value for each simulated trajectory and keep it fixed until the end. Once that value is set, the trajectory follows deterministic equations. Starting from the same initial state, these trajectories look almost identical over the short observed history but later separate. The model must now predict a range of futures. Because we know how the data were generated, we can compare that range with many futures from the simulator.

The samples should cover the same range of motion as the simulator's futures. We first compare the center and spread of the two ensembles at each forecast time, using conditional mean error (CME) and conditional standard-deviation error (CSE). Standard SF produces the same path each time from a fixed input. Its zero spread gives a CSE of one in this experiment.

Two ensembles can have similar means and spreads at each time yet connect those states into different paths. To check the paths themselves, we also report Wasserstein distance (W1) and energy distance (ED). For these scores, we stack every state in a rollout into one vector, in time order, and compare the resulting distributions. The scores therefore assess the full trajectories generated by the model, including how their states depend on one another over time.

Table 2. Forecasting with a hidden parameter. CME and CSE aggregate errors in the time-local conditional mean and standard deviation. W1 and ED compare distributions of complete 1,000-step trajectories. VSF has the lowest reported mean error for each metric on both systems. Runtime (RT) is in seconds, averaged across tasks; lower values are better.

Complete stochastic results

Scroll horizontally to view all metrics.

Complete 1,000-step partially observed stochastic forecasting results.
Model Rössler Lorenz RT
CME ↓CSE ↓W1 ↓ED ↓ CME ↓CSE ↓W1 ↓ED ↓
Block diffusion0.16 ± 0.020.72 ± 0.088.88 ± 1.0512.67 ± 1.710.20 ± 0.010.93 ± 0.0119.88 ± 0.2813.73 ± 0.4521.8
AR diffusion0.20 ± 0.034.63 ± 0.4016.21 ± 1.1211.46 ± 2.060.22 ± 0.050.95 ± 0.1425.64 ± 3.105.60 ± 1.5442.4
Rectified flow0.22 ± 0.090.89 ± 0.3012.60 ± 4.4416.72 ± 8.720.26 ± 0.030.60 ± 0.1219.74 ± 1.6313.24 ± 2.6919.4
DeepAR0.20 ± 0.020.61 ± 0.0211.81 ± 0.8015.62 ± 1.572.14 ± 0.492.61 ± 0.27131.84 ± 15.99138.30 ± 45.711.2
SF0.06 ± 0.021.00 ± 0.004.53 ± 0.675.00 ± 1.341.04 ± 0.561.00 ± 0.0058.12 ± 24.2389.84 ± 48.457.5
SF (perturb.)0.06 ± 0.021.12 ± 0.234.92 ± 0.842.28 ± 0.820.68 ± 0.331.33 ± 0.7553.62 ± 25.6935.78 ± 19.556.6
Chronos-21.28 ± 0.0647.87 ± 1.6390.54 ± 3.8694.84 ± 0.796.84 ± 0.1737.49 ± 1.66411.32 ± 9.43342.98 ± 1.870.3
Chronos-2 (calib.)1.20 ± 0.0661.83 ± 2.09101.69 ± 4.6193.23 ± 0.201.44 ± 0.0610.53 ± 0.49111.81 ± 3.1164.97 ± 0.790.1
VSF Ours0.04 ± 0.010.36 ± 0.142.62 ± 0.381.28 ± 0.420.19 ± 0.030.50 ± 0.2115.95 ± 5.645.19 ± 0.936.7

Values are mean ± population standard deviation across three seeds.

The galleries show what these scores are measuring. Compare the spread and shape of each model's paths with the simulator's ensemble. Look for samples that all repeat one motion, or that separate by drifting away from the system. A model sample is a possible future, so it need not match the neighboring simulator sample point for point. These are selected examples; Table 2 summarizes the test data.

6 · World-model planning

Planning with predicted futures

A robot uses a forecast to choose what to do next. Before moving, a planner can try many action sequences in the model and select one that appears to reach the goal. If the predicted motion is wrong, a promising plan may fail when executed. Planning therefore tests whether the forecasts lead to useful decisions. It also makes speed matter: the model may simulate many candidate plans before the robot takes a step. We test VSF in this setting with the visual representation, planner, and planning budget held fixed.

We use LeWM, a visual world model whose pretrained encoder turns each image into a 192-dimensional feature vector. We encode the current scene and the goal in the same way. The predictor forecasts how the current scene's features change under a proposed action sequence. The planner compares the predicted endpoint with the goal's feature vector. To find a plan, it uses the Cross-Entropy Method (CEM): sample action sequences, keep the best candidates, and use them to improve the next round of samples.

With the encoder frozen, we compare LeWM's autoregressive predictor with SF and VSF predictors trained on offline observation–action trajectories. The CEM planner, tasks, and planning budget stay the same. In VSF, the visual feature vector changes at every step, while the sampled code stays fixed throughout the imagined trajectory. Each transition uses one velocity-field evaluation. We measure both whether the chosen actions reach the goal and how closely the predicted feature trajectory matches the observations collected along those actions.

Action-conditioned VSF world-model pipeline, from CEM candidate actions and encoded observations through the VSF predictor to a latent goal cost.
Candidate action sequences produce predicted visual-state trajectories. The planner scores each predicted endpoint against the encoded goal, executes the selected actions, and replans from a new observation when needed.
Table 3. Planning success and prediction error. VSF has the highest mean success rate on all four tasks, with an average gain of about 7.3 percentage points over the AR predictor. It also has the lowest RMSE on three tasks. Success measures the outcome of executing the plan; RMSE measures the predictor's error in the learned visual representation.

Scroll horizontally to see every task and metric.

Planning success and latent-trajectory RMSE for AR, SF, and VSF predictors on PushT, Cube, TwoRoom, and Reacher.
Method PushT Cube TwoRoom Reacher
Success (%) ↑ RMSE ↓ Success (%) ↑ RMSE ↓ Success (%) ↑ RMSE ↓ Success (%) ↑ RMSE ↓
AR predictor 84.7 ± 4.10.28 ± 0.01 69.3 ± 2.50.80 ± 0.05 78.7 ± 9.00.67 ± 0.03 61.3 ± 8.21.06 ± 0.01
SF predictor 88.0 ± 2.80.30 ± 0.04 76.7 ± 0.90.64 ± 0.02 76.7 ± 8.20.59 ± 0.05 49.3 ± 5.01.13 ± 0.03
VSF predictor Ours 92.7 ± 2.50.27 ± 0.03 80.0 ± 1.60.65 ± 0.08 82.7 ± 5.00.58 ± 0.01 68.0 ± 0.01.03 ± 0.02

Values are mean ± population standard deviation over three seeds, with 50 goals per seed. Success is the percentage of goals reached within a 50-step execution budget. RMSE measures error in the predicted visual state representations along the action sequence selected by CEM. Higher success and lower RMSE are better.

The planner succeeds only if its chosen actions actually reach the goal. This is a different test from prediction RMSE: on Cube, SF has slightly lower RMSE, while VSF reaches more goals. The predictors also lead the planner to choose different action sequences, so their RMSE values need not describe the same physical trajectories. The clips below let us compare the forecast with what happened when a plan was executed.

From prediction to action

Each clip pairs the executed task with the model's forecast. Solid curves show predicted visual-state features; dashed curves show features extracted from the actual observations. We project these features into two dimensions with PCA so the paths can be plotted. The axes describe the learned representation, rather than positions in the physical scene.

When the curves separate, the prediction is drifting from the observed motion. PCA can hide differences outside the displayed plane, so Table 3 measures RMSE in the full feature space. The physical rollout alongside the plot shows whether the robot reaches its goal.

  1. Plan 1 (blue) starts from the initial observation. The agent executes the chosen actions for 25 environment steps.
  2. Plan 2 (red) starts from the new observation if the goal has not yet been reached. The planner chooses another action sequence toward the same goal.

We selected examples where the AR predictor leads to failure and VSF leads to success. They show how a forecast can look promising to the planner but fail when its actions are executed. Table 3 reports success across all evaluated goals.

PushT

The pusher must move the T-shaped block into the target pose and finish at its own target position. Predicting the block's motion requires the model to account for contact with the pusher.

AR predictorFailure
VSF predictorSuccess

7 · Next steps

What comes next

Our hidden-parameter experiments study uncertainty that lasts for a whole trajectory. Many systems also face new disturbances as they evolve. One extension would keep the current code for persistent uncertainty and add new random inputs during the rollout. New observations could then update the forecast as the robot or system reveals more about its dynamics.

Impacts and contact changes raise a different problem: motion can change abruptly between observations. A model that combines continuous evolution with explicit jumps could handle these events more directly. For rapidly changing but continuous motion, adaptive or higher-order solvers could reduce integration error. They require extra field evaluations, so the comparison should measure how much accuracy they buy for a given computation budget.

We also want to test how a planner should use the range of futures VSF predicts. Generating several futures for each candidate plan would let it estimate both expected performance and the chance of failure. This could matter when occasional failures are costly, even if average prediction error is small. The next experiment would compare that planner with the current goal-matching procedure under the same computation budget.

BibTeX

@article{hsu2026variational,
  title={Variational Streaming Flow: Probabilistic Forecasting in Physical Time},
  author={Hsu, Hans Hao-Hsun and Gwak, Minseon and Lim, Soon Hoe and Li, Pan and Erichson, N Benjamin},
  journal={arXiv preprint arXiv:2610.00976},
  year={2026}
}