Introduction
Real-time streaming video generators are built in three stages: a bidirectional video diffusion model is adapted to causal, frame-by-frame generation; that multi-step autoregressive (AR) model is turned into a few-step student; and the student is refined by distribution matching. This task fixes the first stage, skips the third, and asks for the second: under a fixed compute budget, how should the multi-step AR teacher supervise a few-step AR student so that the student, evaluated directly, generates the best videos with four, two and one denoising steps per frame? Exporting the Stage-1 model unchanged gives a quality score of 69.66 on VBench Quality Score, 4 steps per frame (480x832, 33 frames) and 64.59 on VBench Quality Score, 1 step per frame (480x832, 81 frames).
Three things make this hard. One student serves several samplers. The same weights are sampled with four, two and one step per frame, so an objective tuned to one step count can damage another. Few-step regression goes blurry or static. At the highest noise level the noisy input carries no information about the frame to be produced beyond its context, and a regression objective there collapses toward a conditional mean: a blurry frame, or a copy of the previous one. The student conditions on its own output. At sampling time each frame is cached and used as context for the next, so errors accumulate along longer rollouts, while teacher-forced training only ever shows the student clean context.
The field offers four families of answers, all represented among this task's baselines. Trajectory distillation regresses the student onto teacher ODE solutions, from a bidirectional teacher [1, 2], from the causal teacher [3], or along rectified trajectories [4]. Consistency distillation enforces self-consistency along the teacher's trajectories, in discrete form [5] or in continuous time with teacher forcing [6]. Distribution matching trains the student against the teacher's score using a learned critic of the student's own samples [5], and Self Forcing closes the train-test gap by training on the student's own autoregressive rollouts [2]. Flow-map training learns any-step jumps directly [7]. Our recipe combines the second and third families in sequence and changes each where our development runs showed it failing.
Method
The recipe has two phases over one compute meter: Phase 1 takes the first 36% of the budget
(PHASE1_SHARE = 0.36) and Phase 2 the rest. The student is initialized from the Stage-1
checkpoint, and the export is an exponential moving average (EMA) of the student.
Phase 1: stratified, per-frame continuous-time consistency
We parameterise the student as a velocity on the interpolant , so the clean-frame prediction is . Requiring that prediction to be constant along the teacher's ODE gives the continuous-time consistency condition
and the total derivative is one Jacobian-vector product (JVP). Teacher forcing gives the causal model a useful structure: under teacher forcing, frame 's output depends on its own noisy input and time, and on the clean frames before it, but not on the noisy inputs or times of other frames. Every frame can therefore carry its own timestep inside a single forward and JVP pass, and we use that to stratify. For each clip we draw a random permutation of the frames and set
so that the frames of one clip jointly cover the quantiles of a log-normal noise distribution instead of drawing them independently.
B, Fn = x0.shape[:2]
perm = torch.argsort(torch.rand(B, Fn, device=dev), dim=1).to(torch.float64)
u = ((perm + torch.rand(B, Fn, device=dev, dtype=torch.float64)) / float(Fn)).clamp(1e-4, 1.0 - 1e-4)
z = math.sqrt(2.0) * torch.erfinv(2.0 * u - 1.0)
sigma = torch.exp(z * P1_P_STD + P1_P_MEAN)
t_bt = (sigma / (sigma + 1.0)).clamp(0.005, 0.999).float()
t5 = t_bt[:, :, None, None, None]
xt = (1.0 - t5) * x0 + t5 * torch.randn_like(x0)The teacher is the Stage-1 model with classifier-free guidance at scale 3.5, , computed for the conditional and unconditional prompts in one batched call and always given the clean context. The JVP is taken through a bfloat16 copy of the student that is refreshed before every Phase-1 step, in the direction in , without gradient.
with torch.no_grad():
xt_2 = torch.cat([xt, xt], dim=0).to(torch.bfloat16)
c_2 = {"prompt_embeds": torch.cat([cond["prompt_embeds"], uncond["prompt_embeds"]], dim=0)}
t_2 = torch.cat([t_bt * 1000.0, t_bt * 1000.0], dim=0)
cl_2 = torch.cat([clean_bf, clean_bf], dim=0)
v_both, _ = ctx.teacher(xt_2, c_2, t_2, clean_x=cl_2)
vc, vu = v_both.float().chunk(2, dim=0)
f_teacher = vu + P1_CFG * (vc - vu)
emb = cond["prompt_embeds"]
stu_clean_p = stu_clean.permute(0, 2, 1, 3, 4)
def v_of(x, tau):
return net.model(
x.permute(0, 2, 1, 3, 4),
t=tau,
context=emb,
seq_len=net.seq_len,
clean_x=stu_clean_p,
).permute(0, 2, 1, 3, 4)
with J.exact_attention(), torch.autocast("cuda", dtype=torch.bfloat16):
_, t_v = torch.func.jvp(
v_of,
(xt.to(torch.bfloat16), (t_bt * 1000.0).to(torch.bfloat16)),
(f_teacher.to(torch.bfloat16), torch.full_like(t_bt, 1000.0, dtype=torch.bfloat16)),
)
t_v = t_v.float()The target direction follows the consistency condition, with the tangent term ramped in by a warm-up weight that rises linearly to 1 over the first tenth of Phase 1 (with a minimum length):
where is the stop-gradient student output, and the norm is taken per frame over channels and space rather than over the whole clip. The loss moves along by a unit-normalised step per frame. We normalise per frame because the first frame has no previous frame to condition on, and with a clip-wide norm its larger tangent would set the scale and shrink the signal reaching the frames that must learn the transition from one frame to the next. Non-finite entries are zeroed frame by frame.
f_theta, _ = self.student(xt.to(torch.bfloat16), cond, t_bt * 1000.0, clean_x=stu_clean)
f_theta = f_theta.float()
f_sg = f_theta.detach().clone()
g = -(f_sg - f_teacher) - warm * t5 * t_v
bad = (~torch.isfinite(g)).flatten(2).any(2) | (~torch.isfinite(f_theta)).flatten(2).any(2)
if bad.any():
m = bad.view(B, Fn, 1, 1, 1).expand_as(g)
g = torch.where(m, torch.zeros_like(g), g)
f_theta = torch.where(m, torch.zeros_like(f_theta), f_theta)
f_sg = torch.where(m, torch.zeros_like(f_sg), f_sg)
eps_f = 0.1 / math.sqrt(float(Fn))
g_d = g.double() / (g.double().norm(p=2, dim=(2, 3, 4), keepdim=True) + eps_f)
sq = (f_theta.double() - f_sg.double() - g_d) ** 2
return (P1_LOSS_SCALE / math.sqrt(float(Fn))) * sq.sum(dim=(1, 2, 3, 4)).mean()Three further choices in Phase 1 target motion collapse, which we diagnosed in the teacher-forced continuous-time baseline (Section 4). With probability 0.35 the student's clean context is mixed with up to 5% noise (), which exposes the student to imperfect context. The log-normal is centred at with spread 1.45, which puts more of the JVP compute at the high noise levels the few-step samplers actually visit. And the warm-up is short. The optimizer is AdamW with learning rate , and weight decay 0.01, and the gradient clip is , deliberately above the gradient norms that the scaled sum produces. A power-function EMA with relative width 0.10 tracks the student throughout Phase 1.
Phase 2: self-forcing distribution matching with a temporal preconditioner
At the switch the student is overwritten with its Phase-1 EMA (once Phase 1 has taken at least two steps), which also seeds the Phase-2 EMA. A critic (the "fake" score) is built from the bidirectional base model and trained in full, and the "real" score is the bidirectional teacher with guidance 3.25 applied to clean-frame predictions, .
The generator is trained on its own closed-loop rollouts, following Self Forcing [2]: frames are generated one at a time with the key-value cache, each frame from fresh noise through the steps of a sampler schedule up to a randomly chosen exit step, which is the only step that carries gradient, and each finished frame is written back into the cache with a time-zero forward. The schedule is drawn from a mixture of the one-, two- and four-step samplers with probabilities 0.45, 0.35 and 0.20, so the same weights are trained for every step count. For the one-step sampler (and for 70% of two-step rollouts) the first frame runs its full schedule. In one-step rollouts it gets no gradient and is excluded from the loss.
On a rollout we pick one timestep from the scheduler's grid between 20 and 980, shared by all frames, noise the rollout, and form the score difference in clean-frame space, . We split it along time into its frame mean and the remainder,
so amplifies the frame-varying part of the difference (motion) by 1.70 and leaves the static part unchanged. Since is invertible, the distribution-matching fixed point is the same. The preconditioned difference is then divided by one scalar per sample, the mean absolute distance between the rollout and the real-score prediction (floored at 0.01). The generator loss is .
with torch.no_grad():
t = self._sample_t(mb, Fn, u_quantile=u_t)
sig = (t[:, :, None, None, None]) / 1000.0
xf_det = x_fake.detach().float()
eps_f = torch.randn_like(xf_det)
noisy_fake = (1.0 - sig) * xf_det + sig * eps_f
real_x0 = self._bidir_real_x0(noisy_fake, cond, uncond, t)
flow_fake, _ = self.critic(noisy_fake.to(torch.bfloat16), cond, t)
fake_x0 = noisy_fake.float() - sig * flow_fake.float()
d_score = fake_x0 - real_x0
dc_score = d_score.mean(dim=1, keepdim=True)
ac_score = d_score - dc_score
precond_score = dc_score + (1.0 + P2_AC_BOOST) * ac_score
normalizer = (xf_det - real_x0).abs().mean(dim=(1, 2, 3, 4), keepdim=True).clamp(min=1e-2)
grad = torch.nan_to_num(precond_score / normalizer, nan=0.0, posinf=0.0, neginf=0.0)
ac_ratio = float((ac_score.abs().mean() / (dc_score.abs().mean() + 1e-6)).item())The critic is trained by denoising, , on detached rollouts. Generator and critic run on a two-time-scale schedule: after six critic-only steps, the generator is updated on every third step, with learning rate against the critic's , and the gradient clip is 10. When a generator update has just been made, the critic trains on the same rollouts with fresh noise and fresh timesteps instead of generating new ones. Rollouts made only for the critic use a gradient-free bfloat16 copy of the student.
Fn = x_fake.shape[1]
t = self._sample_t(mb, Fn, u_quantile=u_t)
sig = (t[:, :, None, None, None]) / 1000.0
eps_f = torch.randn_like(x_fake)
noisy_fake = ((1.0 - sig) * x_fake + sig * eps_f).to(torch.bfloat16)
flow_fake, _ = self.critic(noisy_fake, cond, t)
denoise_loss = F.mse_loss(flow_fake.float(), eps_f - x_fake)
return denoise_loss, float(denoise_loss.item())Stratified accumulation and the export
When a generator update accumulates several micro-batches, we stratify both random choices across them: the sampler schedule is drawn from stratified quantiles of the mixture, and the timestep from stratified quantiles of its grid, so each update sees a balanced mix of step counts and noise levels. How many micro-batches to accumulate grows as a power law in the Phase-2 budget, and accumulation is switched on only above a budget threshold. Below it the recipe takes one micro-batch per update, and when the configured accumulation is four or more micro-batches the generator learning rate rises to . Phase 1 uses a power-law accumulation of the same kind.
if n_acc > 1:
perm_s = list(range(n_acc))
perm_t = list(range(n_acc))
random.shuffle(perm_s)
random.shuffle(perm_t)
for k in range(n_acc):
if ctx.meter.remaining() < 5.0:
break
sched_k = _sched_from_u((perm_s[k] + random.random()) / float(n_acc))
u_t_k = (perm_t[k] + random.random()) / float(n_acc)
loss_g, dmd_val, ac_r, xf_det, cond_det = self._p2_generator_microbatch(mb, sched_k, u_t_k)
reused_pairs.append((xf_det, cond_det))
if torch.isfinite(loss_g):
(loss_g / n_acc).backward()
dmd_sum += dmd_val
ac_sum += ac_r
g_acc += 1The Phase-2 EMA is kept on the CPU with a decay set from the expected number of generator updates and clipped to , and it is what we export. The recipe also stops itself if a step fails to advance the compute meter, so that it cannot stall at the end of the budget.
Results
| Method | ① | ② | ③ | ④ |
|---|---|---|---|---|
| VBench Quality Score ↑ | VBench Quality Score ↑ | VBench Quality Score ↑ | VBench Quality Score ↑ | |
| Gemini 4 Carbon | 81.72 | 81.74 | 81.71 | 81.79 |
| No initialization | 69.66 | 67.05 | 65.92 | 64.59 |
| Bidirectional ODE | 75.11 | 71.70 | 71.03 | 67.27 |
| Causal ODE | 82.99 | 80.83 | 77.44 | 70.63 |
| Rectified-trajectory causal ODE | 80.89 | 76.32 | 73.41 | 67.57 |
| Causal consistency distillation | 83.13 | 81.61 | 79.48 | 73.28 |
| Teacher-forcing dCM | 82.80 | 81.80 | 80.48 | 76.85 |
| Teacher-forcing sCM | 82.73 | 80.89 | 78.80 | 72.57 |
| Causal DMD | 84.08 | 78.10 | 81.04 | 80.39 |
| AnyFlow | 80.99 | 77.56 | 74.49 | 70.08 |
- ① VBench Quality Score, 4 steps per frame (480x832, 33 frames)
- ② VBench Quality Score, 4 steps per frame (480x832, 81 frames)
- ③ VBench Quality Score, 2 steps per frame (480x832, 81 frames)
- ④ VBench Quality Score, 1 step per frame (480x832, 81 frames)
Our recipe gives almost the same score on every setting: 81.72 on VBench Quality Score, 4 steps per frame (480x832, 33 frames), 81.74 on VBench Quality Score, 4 steps per frame (480x832, 81 frames), 81.71 on VBench Quality Score, 2 steps per frame (480x832, 81 frames) and 81.79 on VBench Quality Score, 1 step per frame (480x832, 81 frames). The baselines behave differently. Every baseline except causal DMD falls steadily from VBench Quality Score, 4 steps per frame (480x832, 33 frames), VBench Quality Score, 4 steps per frame (480x832, 81 frames), VBench Quality Score, 2 steps per frame (480x832, 81 frames) and VBench Quality Score, 1 step per frame (480x832, 81 frames). Causal DMD is lowest on VBench Quality Score, 4 steps per frame (480x832, 81 frames) and higher again on VBench Quality Score, 2 steps per frame (480x832, 81 frames) and VBench Quality Score, 1 step per frame (480x832, 81 frames). Where we stand therefore depends on the setting.
On VBench Quality Score, 2 steps per frame (480x832, 81 frames) and VBench Quality Score, 1 step per frame (480x832, 81 frames) we are above every published baseline: 81.71 against 81.04 for the strongest baseline there, Causal DMD [5], and 81.79 against 80.39 (Causal DMD [5]). The margin over the teacher-forced consistency baselines is largest on VBench Quality Score, 1 step per frame (480x832, 81 frames), where teacher-forcing dCM reaches 76.85 and teacher-forcing sCM 72.57.
On VBench Quality Score, 4 steps per frame (480x832, 81 frames) we are second, at 81.74 against 81.80 for Teacher-forcing dCM [6], and above causal consistency distillation (81.61) and the rest.
On VBench Quality Score, 4 steps per frame (480x832, 33 frames) we are below five baselines: Causal DMD [5] at 84.08, causal consistency distillation at 83.13, the causal ODE at 82.99, teacher-forcing dCM at 82.80 and teacher-forcing sCM at 82.73. Two comparisons matter most, because our two phases are modified versions of these families. Against teacher-forcing sCM, which is closest to our Phase 1, we are behind on VBench Quality Score, 4 steps per frame (480x832, 33 frames) and ahead on the other three settings. Against causal DMD, closest to our Phase 2, the same holds. On the setting where the baselines do best, our recipe gives up quality that they keep.
How we got here
We began by reading every baseline recipe and re-running two of the trained ones to completion in development: causal consistency distillation and teacher-forcing sCM. The two failed in different ways. Consistency distillation was weakest with one step per frame, and its frames were blurry, which we traced to the discrete step size near the highest noise level and to the collapse toward a conditional mean described in the Introduction. Teacher-forcing sCM was much sharper (a development mean on short clips of 79.64 against 74.11, by our own development scorer) but nearly static: almost none of its clips moved. Our explanation was threefold. A slow tangent warm-up puts the weight of the solution near , where the teacher, conditioned on the exact clean context, predicts something close to the previous frame. A low-noise log-normal spends most of the JVP compute below the noise levels the few-step samplers use. And nothing in a teacher-forced objective corrects the student on its own rollouts. The first two diagnoses became Phase 1's changes, the third became Phase 2.
The design then went through a series of controlled development runs, each at a reduced budget:
- A GAN head was dropped. Our first two-phase candidate combined a boundary-anchored consistency phase with distribution matching plus a real-data discriminator. In development the discriminator memorised its data (its loss fell to about ), and the variant reached a short-clip mean of 80.83 and 80.63 on longer rollouts. The same compute spent on our modified sCM followed by pure self-forcing distribution matching gave 82.25 and 81.27.
- A gradient clip was hiding the signal. A smoke test showed that a clip of 10 cut the natural Phase-1 gradient norms, around because of the scaled sum, by four orders of magnitude. That distorts Adam's normalised step, so we raised the clip to .
- Phase 2 adds to Phase 1 rather than replacing it. Training with Phase 1 alone at the same budget gave 80.13 and 79.15. Its clips moved several times more than those of the sCM baseline, which supports the motion diagnosis, but the scores were lower than with both phases.
- Separate normalisation of the static and moving parts was abandoned. Our first temporal variant normalised the two parts of the score difference independently. A diagnostic we logged showed a bias in the moving part at high noise, which we attributed to independent noise cancelling across frames. The variant scored 82.23 and 80.95. Its replacement applies the preconditioner first and normalises once. That version also lowered the real-score guidance from 4.5 to 3.25, converted the critic's output to a clean-frame prediction at the exact continuous noise level and changed how the first frame of one-step rollouts is produced, among other changes, and together they gave 82.66 and 82.45. The gain belongs to all of them jointly.
- A forward-consistency anchor inside Phase 2 was never evaluated. Its run was lost to an interruption and was not repeated.
- Decoupled guidance lost to uniform guidance. Guiding the frame-varying part harder (4.50) than the static part (3.25) was meant to restore motion. Added as a single change to the version with stratified per-frame timesteps and uniform guidance, it scored 82.74 and 82.65 on our larger development prompt set, against 84.18 and 83.21 without it, so uniform guidance stayed.
- Two refinements did not displace that version. Annealing the preconditioner and the learning rate during Phase 2, together with stratified accumulation, gave smoother generator gradients but fewer updates (83.52 and 83.05). Moving the Phase-1 noise distribution toward the samplers' noise levels and shortening Phase 1 to 30% of the budget, on top of the annealing version, gave 83.42 and 82.82.
All numbers in this section are the agent's own development measurements, on prompts disjoint from the scored ones, and they are not comparable with the evaluation means. The submitted file is the stratified, uniform-guidance version, with the stratified accumulation from the annealing experiment added only above a budget threshold. By our account it reproduces the winning development run below that threshold. We ran three short memory stress tests at the end, one of them on the accumulation path, and all three passed.
Limitations
- VBench Quality Score, 4 steps per frame (480x832, 33 frames) is a loss. We are below five published baselines there, including the two families our phases are built from. Whatever our modifications buy on the other settings, they cost quality on this one, and we have no development measurement that isolates which change is responsible.
- The development evidence for stratification is confounded. The stratified version won on a larger prompt set and at twice the development budget of the version it replaced. On the half of the prompts that both were scored on, it scored 82.38 against 82.66 for its predecessor, so we cannot claim that stratification by itself helped. Every comparison is a single run.
- The submitted configuration was never trained to completion in development. Accumulation, and the learning rate that goes with it, switch on only above a budget threshold that our development runs stayed below. The configuration that was scored, at its own budget, ran only in short stress tests, which show that it runs, not how well it trains.
- Many constants are tuned, not derived. The phase split of 0.36, the guidance scales of 3.5 and 3.25, the preconditioner gain of 0.70, the sampler mixture of 0.45, 0.35 and 0.20, and the log-normal of were all chosen on a small development prompt set.
- The flat profile is unexplained. Our means are nearly identical across the settings, unlike every baseline's. The per-setting means alone do not tell us whether this reflects training on the sampler mixture, a ceiling of the recipe, or something else.
- The critic is expensive. Phase 2 trains a full bidirectional critic in fp32 alongside the generator. The recipe keeps the micro-batch at one clip and reaches larger effective batches only by accumulation.
References
- Tianwei Yin, Qiang Zhang, Richard Zhang et al. (2025). From Slow Bidirectional to Fast Autoregressive Video Diffusion Models. CVPR.
- Xun Huang, Zhengqi Li, Guande He et al. (2025). Self Forcing: Bridging the Train-Test Gap in Autoregressive Video Diffusion. NeurIPS.
- Hongzhou Zhu, Min Zhao, Guande He et al. (2026). Causal Forcing: Autoregressive Diffusion Distillation Done Right for High-Quality Real-Time Interactive Video Generation. ICML.
- Jiaqi Feng, Justin Cui, Yuanhao Ban et al. (2026). One-Forcing: Towards Stable One-Step Autoregressive Video Generation.
- Min Zhao, Hongzhou Zhu, Kaiwen Zheng et al. (2026). Causal Forcing++: Scalable Few-Step Autoregressive Diffusion Distillation for Real-Time Interactive Video Generation.
- Kaiwen Zheng, Guande He, Min Zhao et al. (2026). Causal-rCM: A Unified Teacher-Forcing and Self-Forcing Open Recipe for Autoregressive Diffusion Distillation in Streaming Video Generation and Interactive World Models.
- Yuchao Gu, Guian Fang, Yuxin Jiang et al. (2026). AnyFlow: Any-Step Video Diffusion Model with On-Policy Flow Map Distillation.