Manuscript Offprint
arXiv:2610.03543DuoMatching: Joint-Marginal Distribution Matching for Few-Step Video Generation
Abstract
Streaming video generation has benefited from distribution matching distillation (DMD), which matches the joint distribution of video frames to a video teacher's approximation of the real video distribution. Although this joint matching mitigates drift during autoregressive rollouts, limitations remain in visual quality and semantic alignment. To address these limitations, we propose DuoMatching, a distribution matching framework that approximates the real video distribution through a unified joint-marginal formulation. On top of existing joint matching formulations, the additional marginal matching objective provides dedicated frame-level supervision from an image generator, transferring complementary visual and semantic priors from it. To apply this frame-level supervision in video generation, we introduce LatentBridge to resolve the latent representation mismatch between the video student and the image teacher. Latent Variation Sampling further distributes such frame-level supervision across distinct temporal segments, reducing redundancy. Experiments demonstrate that DuoMatching improves visual quality, composition, and semantic alignment while largely preserving motion dynamics. Human evaluations show overall preference rates above 80% against all evaluated baselines.
Date: October 2, 2026
Project Page: https://johnzhan2023.github.io/DuoMatching/
1 Introduction
Recent video generation models have achieved remarkable advances in visual quality and temporal coherence [20, 41]. Despite their impressive performance, these models typically require many sequential denoising steps, resulting in substantial computational cost and inference latency that hinder real-time applications such as interactive world simulation [24] and digital entertainment [49]. Recently, distribution matching distillation (DMD) [43] addresses this computational bottleneck by distilling multi-step diffusion [10] or flow models [18] into few-step generators. Although streaming video generation built on this paradigm has approached real-time inference [19, 30, 40], preserving generation quality under distribution matching remains a challenge [7].
Specifically, we identify remaining limitations in visual quality and semantic alignment of autoregressive generators trained with existing DMD methods. These methods use the video teacher's distribution as a
Corresponding authors.
Causal CD Init.

Temporal Quality
Visual Quality
Semantic Alignment
Causal Forcing++

Temporal Quality
Visual Quality
Semantic Alignment

RGB Frame
DuoMatching (Ours)

Temporal Quality
Visual Quality
Semantic Alignment
Figure 1 Motivation and results of DuoMatching. Videos generated by autoregressive models often have degraded quality for later rollout frames (see Q-Align [38] curves). Joint DMD mitigates this drift, yet the student still retains a visual quality gap relative to the video teacher. The example reveals a missing feather specified in the prompt. To solve this problem, we reformulate distribution matching from a coupled joint-marginal perspective to better approximate the real video distribution, as illustrated by improved visual quality and the recovered feather, while maintaining temporal coherence.
proxy for the real video distribution [43] and match the joint distribution of all frames, a formulation we refer to as joint DMD. As shown in Figure 1, the quantitative results indicate that joint DMD substantially mitigates drift over the rollout, but yields only limited improvement in initial-frame quality. The qualitative comparison highlights remaining limitations in visual quality and semantic alignment, as illustrated by insufficient fine-grained fur detail and the missing feather in this example. These frame-level deficiencies suggest that existing DMD methods do not adequately model the marginal distribution, i.e., the distribution of individual frames. Indeed, existing DMD matches marginals jointly with cross-frame dependencies, without a dedicated objective for individual frames. Adding an additional marginal distribution constraint in training may better approximate the real video distribution.
To model the marginal distribution in video generation, we employ image generation models [3, 27] which provide a natural frame-level reference distribution. Their strong priors support fine-grained appearance modeling, and their semantic alignment capabilities also help capture prompt-specified attributes and spatial relationships. Marginal distribution matching directly steers the student's frame-level distribution toward the image teacher's distribution, without being constrained by cross-frame dependencies. As illustrated in Figure 2, the marginal distribution matching's signal exhibits

Generated Frame
Joint Matching Signal
Marginal Matching Signal
Figure 2 Spatial structure of score differences in joint and marginal distribution matching. Marginal matching exhibits more spatially coherent responses, whereas joint matching produces more scattered responses in this example. Each heatmap is independently normalized to highlight spatial structure rather than absolute magnitude.
more coherent spatial structure, with particularly strong responses on the subject's overly smooth black clothing. Together with the video teacher's joint distribution, the additional marginal distribution from image teachers guides the student to generate more realistic video.
We propose DuoMatching, a distribution matching framework that approximates the real video distribution through a unified joint-marginal formulation. For few-step video generation, we instantiate this formulation by training a video generator with a weighted combination of joint DMD and marginal DMD. Specifically, we sample a subset of frames from each generated video and apply marginal DMD independently to each frame using the image teacher, transferring visual and semantic priors to strengthen frame-level supervision. Joint DMD supervises the full sequence using the video teacher, constraining cross-frame dependencies to encourage temporal consistency.
Still, applying marginal distribution matching to a video student is nontrivial. Applying marginal DMD requires frame-level representations compatible with the image teacher. However, temporally compressed video latents do not directly correspond to individual frames, and video and image VAEs may use incompatible latent spaces. Therefore, we propose LatentBridge, a lightweight module that resolves the latent representation mismatch, enabling frame-level distribution matching without substantially suppressing encoded dynamics. We further introduce Latent Variation Sampling (LVS) to distribute marginal matching across distinct temporal segments, reducing redundant supervision to better balance visual quality and video dynamics.
Experiments demonstrate that DuoMatching improves fine-grained visual quality, visual composition, and semantic alignment not only in causal generation but also in bidirectional generation, while largely preserving temporal quality. Human evaluations further show overall preference rates above 80% against all evaluated baselines.
2 Related Work
Few-step video generation. Recent video generation models [20, 26, 36] achieve strong visual quality but rely on expensive iterative denoising, motivating the development of few-step generation methods. Some works adopt adversarial post-training to enable one-step video generation [17], while others reduce sampling steps through model distillation [5, 15]. VideoLCM [34] extends consistency distillation to video generation. CausVid [44] uses DMD [42] for autoregressive video generation, enabling KV-cache reuse. Subsequent works address different limitations of causal distillation: Self Forcing [11] reduces the mismatch between training and self-generated inference rollouts, while Causal Forcing [50] addresses the architectural mismatch to ensure frame-level injectivity. DuoMatching instead investigates the persistent quality limitations of distribution matching itself to improve the generation quality of few-step generators.
Distribution matching. Distribution matching provides a general framework for generative modeling by aligning the generated distribution with the real data distribution [35, 42, 43]. However, the matching process can still suffer from optimization instability. Phased DMD [6] eases multi-step optimization by decomposing the denoising process into smaller SNR intervals. Beyond improving the optimization itself, several works introduce additional supervision to enhance the matched distribution. One-Forcing [7] adds adversarial supervision to alleviate frame blurring at extremely low NFE, while Reward Forcing [21] and DMDR [13] incorporate reward signals to favor preferred outputs. Data-Forcing [4] leverages real data to mitigate the mode-seeking behavior of DMD, whereas SA-DMD [39] anchors distribution matching to the source video for better content preservation in video editing. DuoMatching complements joint distribution matching with direct marginal distribution matching to more stably approximate the real video distribution.
Image priors for video generation. Image priors support video generation through image animation [8, 31], and initialization from pretrained image models [1, 2, 29]. Beyond initialization, image generation models have been integrated into video sampling to improve visual quality [28, 46]. Some works have also explored incorporating image priors through distribution matching to accelerate video generation, focusing on image-derived video models such as AnimateDiff [9]. MCM [45] introduces a discriminator trained on image data during consistency distillation, while AVDM2 [51] incorporates score distribution matching using an image teacher to enhance video adversarial training. We revisit distribution matching from a joint-marginal perspective, theoretically analyze the relationship between joint and marginal matching, and formulate both as distribution matching objectives within DuoMatching. We further introduce LatentBridge to generalize this framework to modern video generators with temporally compressed latents.

Causal CD init. ● Joint DMD ● DuoMatching
→ Joint matching → Marginal matching
(a) Joint-Marginal Distribution Matching
Figure 3 Overview of DuoMatching. (a) DuoMatching complements joint distribution matching with an image-teacher reference distribution . Each group schematically represents a video, with nodes depicting frame-level distributions. (b) LatentBridge is trained to map a video latent , conditioned on the preceding slice and a local frame index , to the corresponding image latent using an reconstruction loss. (c) Latent Variation Sampling uses differences between adjacent latent slices to partition the sequence into segments, within which slices are randomly sampled.
3 Method
We first formulate video generation as distribution matching, identify the limitations of relying solely on joint matching, and motivate explicit frame-level marginal matching in Section 3.1. In Section 3.2, we reformulate distribution matching through a unified joint-marginal framework to better approximate the real video distribution. To enable marginal distribution matching with image generation models, we introduce LatentBridge to resolve the mismatch between video and image latent spaces in Section 3.3. Finally, Section 3.4 introduces Latent Variation Sampling (LVS) to improve temporal coverage and reduce redundancy in marginal matching.
3.1 Distribution Matching for Video Generation
Video generation aims to learn a generator whose output distribution matches the real data distribution . For simplicity, we omit text conditioning from the notation. The ideal distribution matching objective is
Since the score of is not directly available, we follow prior work and approximate it using a pretrained video teacher with distribution , which leads to the joint distribution matching objective:
Joint distribution matching is performed over all temporal latent slices. In practice of joint DMD, given a generated video latent , its noisy version is , where and are independent standard Gaussian noise. The video teacher and an auxiliary score model then estimate the teacher and student scores at , respectively, to guide the generator update. We write and use to denote all slices except . For either the teacher or student density , the joint distribution factorization yields
Thus, the score for each latent slice is conditioned on the other slices. Although joint distribution matching also constrains frame-level marginals, a change that improves an individual frame may not be favored if it conflicts with the surrounding frames. For example, adding a missing feather or finer fur details to one frame alone could introduce such inconsistencies with other frames. This potential tension, together with the observed quality limitations in Figure 1, motivates an additional marginal distribution objective.
3.2 DuoMatching: Joint-Marginal Distribution Matching
Let denote a frame-sampling operator that selects one frame from a video according to a specified sampling policy. The corresponding frame-level marginals of the video teacher and real data are and , respectively. Since is defined over individual frames, it can also be directly approximated by an image generation model with distribution . Under ideal marginal fitting within the same feasible family, the is no greater than the (see Appendix C for the assumptions and proof). Therefore, we extend the original distribution matching objective from a single proxy distribution to joint and marginal references, forming our DuoMatching framework.
Let denote the generator's frame-level marginal. We retain the video teacher as the joint distribution reference and use the image teacher for direct marginal supervision, defining the joint-marginal distribution matching objective:
where balances the influence of the video teacher's joint distribution estimate and the image teacher's complementary marginal estimate. Under the assumptions detailed in Appendix D, we show that there exists for which the ideal joint-marginal optimum is closer to than in forward KL. As illustrated in Figure 3(a), the marginal term strengthens frame-level distribution matching beyond joint supervision alone, while transferring complementary visual and semantic priors from the image teacher. The joint term simultaneously constrains cross-frame dependencies, encouraging the student to incorporate these priors coherently throughout the generated sequence. Implementing the joint and marginal terms with their corresponding DMD surrogates gives:
In practice, joint DMD follows the procedure in Causal Forcing [50]. For marginal DMD, given a generated video latent , LatentBridge maps a temporal latent slice and a local frame index to an image-compatible representation . The mapping is detailed in Section 3.3. We perturb this representation according to the image teacher's noise schedule: , where . A frozen image teacher and a trainable fake score estimator provide score estimates and at , respectively. The fake estimator is trained on the mapped generated latents to track their evolving distribution. The marginal DMD gradient is estimated as
where is a timestep-dependent weighting function. The sampling of l is described in Section 3.4. Gradients propagate through the frozen LatentBridge to the student generator, providing direct frame-level supervision. Although motivated by the quality limitations in autoregressive generation, our joint-marginal framework also generalizes to bidirectional generators.
3.3 LatentBridge: Bridging Video and Image Latents
Because we use image generation models to approximate the marginal distribution, an additional issue arises from the difference between image VAE encoding and video VAE encoding. Most video VAEs [48] use temporal compression, where one video latent maps to multiple actual RGB frames, while each image latent is constrained to one frame. A straightforward solution is to decode video latents into RGB frames and re-encode them with the image VAE, but backpropagating matching gradients through both VAEs incurs substantial memory overhead.
We therefore introduce LatentBridge, a lightweight differentiable module that maps temporally compressed video latents to frame-specific representations in the image teacher's latent space. We pretrain this module using paired video and image latents, as illustrated in Figure 3(b).
Given a temporal latent slice , we uniformly sample a local frame index , where is the number of RGB frames represented by that slice. To account for the causal temporal encoding of the video
VAE, we additionally condition on the preceding latent slice , providing temporal context for the mapping. Conditioned on these slices and i, LatentBridge predicts the latent of the corresponding RGB frame in the image teacher's latent space:
For training, let denote the RGB frame corresponding to latent slice and local frame index . The target latent is obtained by encoding with the image teacher's VAE encoder . We train using an reconstruction loss:
By conditioning on the sampled frame index, LatentBridge learns to recover distinct frame-level representations from shared temporal latent slices. Optimization through LatentBridge can improve the quality of decoded video frames (see Appendix F for an analysis of frame-level loss transfer). The module can be trained for the latent space of a chosen image teacher, allowing DuoMatching to use different image priors.
3.4 Latent Variation Sampling for Frame-Level Supervision
Marginal distribution matching supervises sampled frames, but concentrating samples in slowly changing regions produces redundant supervision. This incurs unnecessary computational cost and may suppress motion dynamics by overemphasizing nearly static content. To address the issue, we introduce Latent Variation Sampling, as shown in Figure 3(c). Given the clean video latent sequence , we compute the mean squared difference between adjacent latent slices:
where , , and are the channel and spatial dimensions of each latent slice. We select the positions with the largest MSE values and split the sequence into contiguous temporal segments. Denoting the sorted split positions by , with and , we uniformly sample one latent slice from each segment:
For each selected slice , we apply marginal DMD to the image-aligned latent , with uniformly sampled. Each segment receives one frame sample per update, distributing the limited supervision budget across temporal regions.
4 Experiments
Implementation details. For causal models, we initialize the generator from the causal consistency distillation checkpoint from Causal Forcing++ [47] and subsequently optimize it with DMD on VidProM [33] for 1,000 training steps. For bidirectional models, following CausVid [44], we initialize the generator directly from Wan2.1-T2V-1.3B and perform DMD training for 1200 steps on Mixkit [16]. In both settings, we use the frozen Qwen-Image [37] as the default image teacher. The output videos consist of 81 frames and have a resolution of , . LatentBridge is trained separately on a curated subset of OpenVid [23] containing 29,400 videos with high aesthetic quality and substantial motion. For DuoMatching, we set the marginal DMD loss weight to and sample temporal latent slices from each video by default. All experiments are conducted on eight GPUs, each with 80 GB of memory.
Baselines. For causal generation, we compare our method with autoregressive video generation methods, including Self Forcing [11], Reward Forcing [21], Causal Forcing++ [47, 50] and One-Forcing [7], covering both chunk-wise and frame-wise variants when available. For bidirectional generation, we use the bidirectional DMD variant of CausVid [44] as our primary baseline.
Metrics. We conduct automatic evaluation on VBench [12] using its official prompt suite and evaluation protocol. To more thoroughly assess video generation quality in fine-grained visual quality, visual composition, and semantic alignment, we additionally curate a test set of 400 challenging prompts featuring rich visual details and complex dynamics. We report the Semantic Score, Aesthetic Quality, Imaging Quality, Dynamic Degree, and Motion Smoothness, together with the aggregate VBench score.
Joint DMD (Causal Forcing++)
Fine-grained Visual Quality
DuoMatching (Ours)

Semantic Alignment
Prompt: Photorealistic alpine lake at sunrise. A single wooden canoe rests by the pebbled shore, gently rocking as mist rolls across the blue water. Snowcapped mountains are reflected in the lake. Locked wide composition, one continuous shot, crisp natural textures, no cuts.

Prompt: A hand pours amber tea from a clear glass teapot into a teal ceramic cup. There is a teal plate with half a lemon sits nearby on a wooden table. Warm sunlight, gentle steam, smooth motion, cinematic close-up, shallow depth of field.
Composition

Dynamics
Figure 4 Qualitative comparison between DuoMatching and Causal Forcing++ across four aspects: fine-grained visual quality, semantic alignment, composition, and dynamics. DuoMatching improves visual details, prompt adherence, and composition while preserving video dynamics.
4.1 Results
Qualitative comparison with baselines. Figure 4 presents side-by-side comparisons between Causal Forcing++ and DuoMatching. Compared with the baseline, DuoMatching produces finer visual details, such as more distinct surface textures and subtle color variations on the ceramic cat. Benefiting from the semantic alignment capabilities of the image teacher, DuoMatching also better follows prompt specifications, including object counts (a single wooden canoe) and attributes (a teal ceramic cup). In addition, DuoMatching exhibits improved composition, framing the subject as intended rather than incorrectly focusing the camera on the waist. These improvements in fine-grained visual quality, composition, and semantic alignment are achieved while preserving temporal quality, as illustrated by the smooth and consistent paddling motions in the kayaking example. Further comparisons with other baselines are provided in Appendix B.
Table 1 Quantitative comparison on VBench with Self Forcing [11], One-Forcing [7], Reward Forcing [21] and Causal Forcing++ [47]. “Full” denotes bidirectional full-video generation, while “Frame” and “Chunk” denote the causal autoregressive generation unit. NFE denotes the number of function evaluations per generation unit. Results should be compared within matched generation modes and NFE budgets. Bold indicates the best result within each matched group; ours are shaded in light gray.
| Method | Mode | NFE | Semantic ↑ | Aesthetic ↑ | Imaging ↑ | Dynamic ↑ | Smoothness ↑ | Total ↑ |
|---|---|---|---|---|---|---|---|---|
| Bidirectional DMD methods | ||||||||
| CausVid | Full | 4 | 69.23 | 64.15 | 73.00 | 36.67 | 98.84 | 80.63 |
| Ours | Full | 4 | 70.89 | 64.55 | 73.77 | 39.17 | 98.82 | 81.45 |
| Causal autoregressive methods | ||||||||
| Frame-wise generation (1 step) | ||||||||
| Causal Forcing++ | Frame | 1 | 57.17 | 67.12 | 68.83 | 70.56 | 98.49 | 79.82 |
| One-Forcing | Frame | 1 | 69.25 | 65.08 | 68.28 | 66.11 | 99.03 | 82.09 |
| Ours | Frame | 1 | 69.95 | 68.62 | 69.42 | 69.44 | 99.07 | 82.65 |
| Frame-wise generation (2 steps) | ||||||||
| Causal Forcing++ | Frame | 2 | 68.42 | 62.28 | 69.82 | 94.44 | 98.20 | 80.67 |
| Ours | Frame | 2 | 72.84 | 66.97 | 73.48 | 93.61 | 98.39 | 83.53 |
| Chunk-wise generation (4 steps) | ||||||||
| CausVid | Chunk | 4 | 68.69 | 62.16 | 66.97 | 55.83 | 98.04 | 80.19 |
| Self Forcing | Chunk | 4 | 71.41 | 66.83 | 69.66 | 68.61 | 95.52 | 81.52 |
| Reward Forcing | Chunk | 4 | 56.23 | 63.62 | 71.72 | 73.61 | 98.44 | 80.10 |
| Causal Forcing++ | Chunk | 4 | 70.84 | 64.47 | 70.13 | 80.56 | 98.14 | 82.79 |
| Ours | Chunk | 4 | 71.61 | 66.90 | 72.41 | 76.67 | 99.06 | 83.51 |
Table 2 Human preference study under the same Wan2.1 video teacher. Each entry reports the percentage of pairwise judgments favoring our method over the corresponding baseline.
| Comparison | Visual Quality ↑ | Semantic Alignment ↑ | Temporal & Motion ↑ | Overall ↑ |
|---|---|---|---|---|
| Ours vs. CausVid | 92.17% | 89.13% | 51.30% | 91.30% |
| Ours vs. Causal Forcing++ | 81.30% | 79.57% | 49.57% | 80.87% |
| Ours vs. One-Forcing | 93.48% | 91.74% | 90.87% | 94.35% |
| Ours vs. Reward Forcing | 83.91% | 82.61% | 60.87% | 83.91% |
Quantitative results. The quantitative results in Table 1 show DuoMatching’s significant advantages over the compared methods within each matched generation mode and NFE budget. For bidirectional generation, DuoMatching improves upon CausVid in visual quality, semantic alignment, and video dynamics. For causal generation, DuoMatching achieves higher video generation quality across one-, two-, and four-step settings, yielding considerable improvements in visual quality and semantic alignment while largely preserving motion quality. These results support our joint-marginal formulation, which improves frame-level quality through explicit marginal matching and complementary visual and semantic priors from pretrained image generation models. All gains are achieved without additional inference computation, preserving the real-time generation capability of Causal Forcing++ [47].
Human evaluation. We further conduct a human evaluation following a two-alternative forced-choice (2AFC) protocol. We recruit 23 participants, each of whom evaluates 40 prompt-matched pairs of videos generated by different methods and indicates their preference in terms of visual quality, semantic alignment, temporal quality, and overall quality. As shown in Table 2, DuoMatching achieves overall preference rates above 80% against every baseline. It receives higher preference rates for visual quality and semantic alignment, supporting the effectiveness of explicit marginal distribution matching in improving frame-level quality. Preference rates for Temporal & Motion are near or above parity, indicating that temporal quality is largely preserved.
Table 3 Ablation of image teachers, comparing Wan2.1-14B [32], SDXL [25], FLUX.2-4B [14], and Qwen-Image [37] against a baseline without an image teacher. Teacher HPSv3 [22] measures human preference alignment of images generated by each teacher, while the remaining metrics evaluate the resulting video student.
| Image Teacher | Teacher HPSv3 ↑ | Video Student | |||||
|---|---|---|---|---|---|---|---|
| Semantic ↑ | Aesthetic ↑ | Imaging ↑ | Dynamic ↑ | Smoothness ↑ | Total ↑ | ||
| None | – | 68.42 | 62.28 | 69.82 | 94.44 | 98.20 | 80.67 |
| Wan2.1-14B | 5.87 | 68.77 | 64.16 | 69.90 | 94.72 | 99.05 | 81.43 |
| SDXL | 6.57 | 68.50 | 64.78 | 70.01 | 93.89 | 98.12 | 81.47 |
| FLUX.2-4B | 8.86 | 69.06 | 65.29 | 71.58 | 94.17 | 99.23 | 82.64 |
| Qwen-Image | 9.05 | 72.84 | 66.97 | 73.48 | 93.61 | 98.39 | 83.53 |
Table 4 Ablation of marginal DMD and latent mapping strategies. Direct applies marginal DMD directly to temporally compressed video latent slices. Decode-Encode decodes video latents into RGB frames and re-encodes sampled frames with the image VAE, retaining gradients through both operations. Peak memory denotes the maximum GPU memory allocated to tensors during a complete training iteration. OOM indicates an out-of-memory failure.
| Configuration | Evaluation Metrics | Peak Memory (GB) ↓ | ||||
|---|---|---|---|---|---|---|
| Marginal DMD | Latent Mapping | Semantic ↑ | Imaging ↑ | Dynamic ↑ | Total ↑ | |
| ✕ | — | 68.42 | 69.82 | 94.44 | 80.67 | 56.49 |
| ✓ | Direct | 71.74 | 71.66 | 76.94 | 81.78 | 59.40 |
| ✓ | Decode-Encode | — | — | — | — | OOM |
| ✓ | LatentBridge | 72.84 | 73.48 | 93.61 | 83.53 | 59.41 |
4.2 Ablation Study
Gains from marginal matching and stronger image priors. Our ablation suggests that the improvements above stem from both explicit marginal matching and stronger image priors. As shown in Table 3, using Wan2.1-14B as the image teacher, without introducing additional priors from an external image generation model, already improves performance across all reported metrics. We further compare SDXL [25], FLUX.2-4B [14], and Qwen-Image [37]. Across these three image teachers, higher teacher HPSv3 scores are accompanied by consistent improvements in Semantic, Aesthetic, and Imaging scores. Thanks to the spatiotemporal decoupling enabled by LatentBridge, Dynamic Degree and Motion Smoothness remain stable across different image teachers, indicating that teacher capability primarily affects visual quality and semantic alignment with relatively trivial changes in motion dynamics and smoothness.
Enabling frame-level marginal matching with LatentBridge. We investigate the role of LatentBridge in enabling marginal matching. Qwen-Image and Wan share the same VAE encoder, allowing us to directly apply marginal DMD to temporally compressed video latent slices as a baseline. As shown in Table 4, such direct application improves semantic alignment and visual quality, but suppresses the dynamic information encoded in the latent representation, resulting in videos with limited motion. By mapping temporally compressed video latents to frame-specific image latents, LatentBridge separates spatial information in video latents and aligns it with the target image latent space. LatentBridge yields further gains in visual quality and semantic alignment while largely retaining video dynamics. While Decode-Encode runs out of memory under our training configuration, LatentBridge incurs only a small additional memory overhead over the Direct baseline.
Effective allocation of frame-level supervision with Latent Variation Sampling (LVS). We first examine the effect of the number of sampled latent slices K, then compare LVS with uniform random and temporally stratified sampling. As shown in Table 5, increasing K from 2 to 4 improves the Total score for both uniform sampling and LVS, whereas further increasing K to 8 reduces both Dynamic and Total scores. This indicates that increasing K raises computational cost without necessarily improving performance, highlighting the importance of an effective supervision allocation strategy. LVS outperforms uniform sampling across all tested
and temporally stratified sampling at . These results demonstrate that LVS enables more effective frame-level supervision while preserving temporal quality and limiting computational cost.
Table 5 Ablation of the number of sampled latent slices and sampling strategies. Temporally stratified sampling randomly selects one latent slice from each of segments of equal length.
| Sampling strategy | |||
|---|---|---|---|
| Dynamic / Total | Dynamic / Total | Dynamic / Total | |
| Uniform random | |||
| Temporally stratified | |||
| LVS (Ours) |
5 Conclusion
We presented DuoMatching, a unified joint-marginal distribution matching framework for few-step video generation. By complementing joint DMD with explicit marginal DMD, our framework strengthens frame-level supervision and transfers visual and semantic priors from image models. LatentBridge enables marginal matching for temporally compressed video latents, while Latent Variation Sampling reduces redundant supervision. Experiments demonstrate improvements in visual quality, composition, and semantic alignment while largely preserving motion dynamics.
Acknowledgments
We thank Shuai Ma for his suggestions on the name DuoMatching and Kunyu Feng and Zhenhua Yang for their helpful suggestions on the writing of this paper.
References
[1] Yunpeng Bai, Yossi Gandelsman, Michaël Gharbi, and Qixing Huang. Instruction-based video editing by repurposing an image editing model, 2026. URL https://arxiv.org/abs/2608.14790.
[2] Andreas Blattmann, Tim Dockhorn, Sumith Kulal, Daniel Mendelevitch, Maciej Kilian, Dominik Lorenz, Yam Levi, Zion English, Vikram Voleti, Adam Letts, et al. Stable video diffusion: Scaling latent video diffusion models to large datasets. arXiv preprint arXiv:2311.15127, 2023.
[3] Huanqia Cai, Sihan Cao, Ruoyi Du, Peng Gao, Aiming Hao, Steven Hoi, Zhaohui Hou, Shijie Huang, Dengyang Jiang, Yuming Jiang, et al. Z-image: An efficient image generation foundation model with single-stream diffusion transformer. arXiv preprint arXiv:2511.22699, 2025.
[4] Siyi Chen, Shaowei Liu, Yixuan Jia, Zian Wang, Huan Ling, Qing Qu, and Jun Gao. Data-forcing distillation: Restoring diversity and fidelity in few-step video generation. arXiv preprint arXiv:2606.18478, 2026.
[5] Zihan Ding, Chi Jin, Difan Liu, Haitian Zheng, Krishna Kumar Singh, Qiang Zhang, Yan Kang, Zhe Lin, and Yuchen Liu. Dollar: Few-step video generation via distillation and latent reward optimization. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 17961–17971. IEEE, 2025.
[6] Xiangyu Fan, Zesong Qiu, Zhuguanyu Wu, Fanzhou Wang, Zhiqian Lin, Tianxiang Ren, Dahua Lin, Ruihao Gong, and Lei Yang. Phased dmd: Few-step distribution matching distillation via score matching within subintervals. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 41667–41676, 2026.
[7] Jiaqi Feng, Justin Cui, Yuanhao Ban, and Cho-Jui Hsieh. One-forcing: Towards stable one-step autoregressive video generation. arXiv preprint arXiv:2605.23458, 2026.
[8] Xiefan Guo, Jinlin Liu, Miaomiao Cui, Liefeng Bo, and Di Huang. I4vgen: Image as free stepping stone for text-to-video generation. arXiv preprint arXiv:2406.02230, 2024.
[9] Yuwei Guo, Ceyuan Yang, Anyi Rao, Zhengyang Liang, Yaohui Wang, Yu Qiao, Maneesh Agrawala, Dahua Lin, and Bo Dai. Animatediff: Animate your personalized text-to-image diffusion models without specific tuning. arXiv preprint arXiv:2307.04725, 2023.
[10] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020.
[11] Xun Huang, Zhengqi Li, Guande He, Mingyuan Zhou, and Eli Shechtman. Self forcing: Bridging the train-test gap in autoregressive video diffusion. Advances in Neural Information Processing Systems, 38:167283–167308, 2026.
[12] Ziqi Huang, Yinan He, Jiashuo Yu, Fan Zhang, Chenyang Si, Yuming Jiang, Yuanhan Zhang, Tianxing Wu, Qingyang Jin, Nattapol Chanpaisit, et al. Vbench: Comprehensive benchmark suite for video generative models. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 21807–21818. IEEE, 2024.
[13] Dengyang Jiang, Dongyang Liu, Zanyi Wang, Qilong Wu, Liuzhuozheng Li, Hengzhuang Li, Xin Jin, David Liu, Changsheng Lu, Zhen Li, et al. Distribution matching distillation meets reinforcement learning. arXiv preprint arXiv:2511.13649, 2025.
[14] Black Forest Labs. FLUX.2: Frontier Visual Intelligence. https://bfl.ai/blog/flux-2, 2025.
[15] Jiachen Li, Weixi Feng, Tsu-Jui Fu, Xinyi Wang, Sugato Basu, Wenhu Chen, and William Y Wang. T2v-turbo: Breaking the quality bottleneck of video consistency model with mixed reward feedback. Advances in neural information processing systems, 37:75692–75726, 2024.
[16] Bin Lin, Yunyang Ge, Xinhua Cheng, Zongjian Li, Bin Zhu, Shaodong Wang, Xianyi He, Yang Ye, Shenghai Yuan, Liuhan Chen, et al. Open-sora plan: Open-source large video generation model. arXiv preprint arXiv:2412.00131, 2024.
[17] Shanchuan Lin, Xin Xia, Yuxi Ren, Ceyuan Yang, Xuefeng Xiao, and Lu Jiang. Diffusion adversarial post-training for one-step video generation. arXiv preprint arXiv:2501.08316, 2025.
[18] Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. arXiv preprint arXiv:2210.02747, 2022.
[19] Wei Liu, Ziyu Chen, Zizhang Li, Yue Wang, Hong-Xing Yu, and Jiajun Wu. Realwonder: Real-time physical action-conditioned video generation. arXiv preprint arXiv:2603.05449, 2026.
[20] Yixin Liu, Kai Zhang, Yuan Li, Zhiling Yan, Chujie Gao, Ruoxi Chen, Zhengqing Yuan, Yue Huang, Hanchi Sun, Jianfeng Gao, et al. Sora: A review on background, technology, limitations, and opportunities of large vision models. arXiv preprint arXiv:2402.17177, 2024.
[21] Yunhong Lu, Yanhong Zeng, Haobo Li, Hao Ouyang, Qiuyu Wang, Ka Leong Cheng, Jiapeng Zhu, Hengyuan Cao, Zhipeng Zhang, Xing Zhu, et al. Reward forcing: Efficient streaming video generation with rewarded distribution matching distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 34385–34397, 2026.
[22] Yuhang Ma, Xiaoshi Wu, Keqiang Sun, and Hongsheng Li. Hpsv3: Towards wide-spectrum human preference score. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 15086–15095. IEEE, 2025.
[23] Kepan Nan, Rui Xie, Penghao Zhou, Tiehan Fan, Zhenheng Yang, Zhijie Chen, Xiang Li, Jian Yang, and Ying Tai. Openvid-1m: A large-scale high-quality dataset for text-to-video generation. In International Conference on Learning Representations, volume 2025, pages 1045–1064, 2025.
[24] Jack Parker-Holder, Shlomi Fruchter, et al. Genie 3: A new frontier for world models. Google DeepMind Blog, 2025.
[25] Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas Müller, Joe Penna, and Robin Rombach. Sdxl: Improving latent diffusion models for high-resolution image synthesis. In International Conference on Learning Representations, volume 2024, pages 1862–1874, 2024.
[26] Team Seedance, De Chen, Liyang Chen, Xin Chen, Ying Chen, Zhuo Chen, Zhuowei Chen, Feng Cheng, Tianheng Cheng, Yufeng Cheng, et al. Seedance 2.0: Advancing video generation for world complexity. arXiv preprint arXiv:2604.14148, 2026.
[27] Team Seedream, Yunpeng Chen, Yu Gao, Lixue Gong, Meng Guo, Qiushan Guo, Zhiyao Guo, Xiaoxia Hou, Weilin Huang, Yixuan Huang, et al. Seedream 4.0: Toward next-generation multimodal image generation. arXiv preprint arXiv:2509.20427, 2025.
[28] Shitong Shao, Lichen Bai, Haoyi Xiong, Zeke Xie, et al. Iv-mixed sampler: Leveraging image diffusion models for enhanced video synthesis. In International Conference on Learning Representations, volume 2025, pages 12396–12424, 2025.
[29] Uriel Singer, Adam Polyak, Thomas Hayes, Xi Yin, Jie An, Songyang Zhang, Qiyuan Hu, Harry Yang, Oron Ashual, Oran Gafni, et al. Make-a-video: Text-to-video generation without text-video data. arXiv preprint arXiv:2209.14792, 2022.
[30] Wenqiang Sun, Haiyu Zhang, Haoyuan Wang, Junta Wu, Zehan Wang, Zhenwei Wang, Yunhong Wang, Jun Zhang, Tengfei Wang, and Chunchao Guo. Worldplay: Towards long-term geometric consistency for real-time interactive world modeling. arXiv preprint arXiv:2512.14614, 2025.
[31] Yu Tian, Jian Ren, Menglei Chai, Kyle Olszewski, Xi Peng, Dimitris N Metaxas, and Sergey Tulyakov. A good image generator is what you need for high-resolution video synthesis. arXiv preprint arXiv:2104.15069, 2021.
[32] Team Wan, Ang Wang, Baole Ai, Bin Wen, Chaojie Mao, Chen-Wei Xie, Di Chen, Feiwu Yu, Haiming Zhao, Jianxiao Yang, et al. Wan: Open and advanced large-scale video generative models. arXiv preprint arXiv:2503.20314, 2025.
[33] Wenhao Wang and Yi Yang. Vidprom: A million-scale real prompt-gallery dataset for text-to-video diffusion models. Advances in Neural Information Processing Systems, 37:65618–65642, 2024.
[34] Xiang Wang, Shiwei Zhang, Han Zhang, Yu Liu, Yingya Zhang, Changxin Gao, and Nong Sang. Videolcm: Video latent consistency model. arXiv preprint arXiv:2312.09109, 2023.
[35] Zhengyi Wang, Cheng Lu, Yikai Wang, Fan Bao, Chongxuan Li, Hang Su, and Jun Zhu. Prolificdreamer: High-fidelity and diverse text-to-3d generation with variational score distillation. Advances in neural information processing systems, 36:8406–8441, 2023.
[36] Thaddäus Wiedemer, Yuxuan Li, Paul Vicol, Shixiang Shane Gu, Nick Matarese, Kevin Swersky, Been Kim, Priyank Jaini, and Robert Geirhos. Video models are zero-shot learners and reasoners. arXiv preprint arXiv:2509.20328, 2025.
[37] Chenfei Wu, Jiahao Li, Jingren Zhou, Junyang Lin, Kaiyuan Gao, Kun Yan, Sheng-ming Yin, Shuai Bai, Xiao Xu, Yilei Chen, et al. Qwen-image technical report. arXiv preprint arXiv:2508.02324, 2025.
[38] Haoning Wu, Zicheng Zhang, Weixia Zhang, Chaofeng Chen, Liang Liao, Chunyi Li, Yixuan Gao, Annan Wang, Erli Zhang, Wenxiu Sun, et al. Q-align: Teaching lmms for visual scoring via discrete text-defined levels. arXiv preprint arXiv:2312.17090, 2023.
[39] Yicheng Xiao, Wenxun Dai, Xinran Qin, Lin Song, Maoquan Zhang, Hang Xu, Yukang Chen, Yitong Li, Guohui Zhang, Yuan Zhang, et al. Joyai-video-edit: Real-time open-ended video editing with autoregressive diffusion. arXiv preprint arXiv:2608.03974, 2026.
[40] Shuai Yang, Wei Huang, Ruihang Chu, Yicheng Xiao, Yuyang Zhao, Xianbang Wang, Muyang Li, Enze Xie, Yingcong Chen, Yao Lu, et al. Longlive: Real-time interactive long video generation. arXiv preprint arXiv:2509.22622, 2025.
[41] Zhuoyi Yang, Jiayan Teng, Wendi Zheng, Ming Ding, Shiyu Huang, Jiazheng Xu, Yuanming Yang, Wenyi Hong, Xiaohan Zhang, Guanyu Feng, et al. Cogvideox: Text-to-video diffusion models with an expert transformer. In International Conference on Learning Representations, volume 2025, pages 83048–83077, 2025.
[42] Tianwei Yin, Michaël Gharbi, Taesung Park, Richard Zhang, Eli Shechtman, Fredo Durand, and William T Freeman. Improved distribution matching distillation for fast image synthesis. Advances in neural information processing systems, 37:47455–47487, 2024.
[43] Tianwei Yin, Michaël Gharbi, Richard Zhang, Eli Shechtman, Fredo Durand, William T Freeman, and Taesung Park. One-step diffusion with distribution matching distillation. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 6613–6623. IEEE, 2024.
[44] Tianwei Yin, Qiang Zhang, Richard Zhang, William T Freeman, Fredo Durand, Eli Shechtman, and Xun Huang. From slow bidirectional to fast autoregressive video diffusion models. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 22963–22974. IEEE, 2025.
[45] Yuanhao Zhai, Kevin Lin, Zhengyuan Yang, Linjie Li, Jianfeng Wang, Chung-Ching Lin, David Doermann, Junsong Yuan, and Lijuan Wang. Motion consistency model: Accelerating video diffusion with disentangled motion-appearance distillation. arXiv preprint arXiv:2406.06890, 2024.
[46] Yabo Zhang, Yuxiang Wei, Xianhui Lin, Zheng Hui, Peiran Ren, Xuansong Xie, and Wangmeng Zuo. Videoelevator: Elevating video generation quality with versatile text-to-image diffusion models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 10266–10274, 2025.
[47] Min Zhao, Hongzhou Zhu, Kaiwen Zheng, Zihan Zhou, Bokai Yan, Xinyuan Li, Xiao Yang, Chongxuan Li, and Jun Zhu. Causal forcing++: Scalable few-step autoregressive diffusion distillation for real-time interactive video generation. arXiv preprint arXiv:2605.15141, 2026.
[48] Sijie Zhao, Yong Zhang, Xiaodong Cun, Shaoshu Yang, Muyao Niu, Xiaoyu Li, Wenbo Hu, and Ying Shan. Cv-vae: A compatible video vae for latent generative video models. Advances in Neural Information Processing Systems, 37:12847–12871, 2024.
[49] Yuyang Zhao, Yicheng Pan, Qiyuan He, Jincheng Yu, Junsong Chen, Tian Ye, Haozhe Liu, Enze Xie, and Song Han. Sana-streaming: Real-time streaming video editing with hybrid diffusion transformer. arXiv preprint arXiv:2605.30409, 2026.
[50] Hongzhou Zhu, Min Zhao, Guande He, Hang Su, Chongxuan Li, and Jun Zhu. Causal forcing: Autoregressive diffusion distillation done right for high-quality real-time interactive video generation. arXiv preprint arXiv:2602.02214, 2026.
[51] Yuanzhi Zhu, Hanshu Yan, Huan Yang, Kai Zhang, and Junnan Li. Accelerating video diffusion models via distribution matching. arXiv preprint arXiv:2412.05899, 2024.
A Hyperparameter ablations for DuoMatching.
We examine the effect of the marginal DMD loss weight . As shown in Table 6, increasing from 0.1 to 0.4 improves semantic alignment and imaging quality while maintaining a similar Dynamic score. Further increasing to 0.8 reduces both metrics and substantially lowers the Dynamic score, suggesting that excessive marginal supervision compromises the balance between visual quality and video dynamics. Among the tested settings, achieves the highest scores across all reported metrics, and we adopt it as the default.
Table 6 Ablation of the marginal DMD loss weight .
| Metric | |||
|---|---|---|---|
| Semantic | 69.60 | 72.84 | 71.49 |
| Imaging | 70.79 | 73.48 | 71.74 |
| Dynamic | 93.61 | 93.61 | 87.78 |
| Total | 81.03 | 83.53 | 81.57 |
B Additional Qualitative Comparisons
Figure 5 presents additional qualitative comparisons with Reward Forcing, One-Forcing, and CausVid. Compared with Reward Forcing, DuoMatching renders the ice dragon with more clearly defined structures and finer details, while better preserving the boxer's appearance during rapid motion. In the pianist example, it also produces a more plausible spatial relationship between the pianist, keyboard, and piano, better reflecting the intended interaction. Compared with One-Forcing and CausVid, DuoMatching alleviates overexposure and produces more realistic results, with more natural lighting and richer details in animal fur, feathers, clothing, and surrounding environments. In particular, under the setting, DuoMatching substantially improves motion stability over One-Forcing, reducing abrupt changes in subject appearance and position across frames. Together, these examples illustrate improvements in generation quality across different video distillation baselines.
C Proof of the Marginal Fitting Comparison
Using the notation of the main text, let denote the real video distribution, the video reference, and the image reference. Using the same frame-sampling operator , define and . Let be a feasible family of video distributions and let . For this idealized comparison, assume matched marginal capacity: is also the feasible family of image distributions. We assess reference fitting using forward KL.
For any , construct the joint distributions of a video and a sampled frame using the same sampling kernel . The KL chain rule gives
where
The conditional distributions are defined by this video-and-frame sampling procedure. Thus, joint fitting accounts for both marginal and conditional distribution discrepancies.
In this idealized comparison, assume that and attain the following finite minima:
Since , there exists a video distribution whose frame-level marginal satisfies . We assume that such a distribution can be chosen with . This auxiliary distribution allows us to compare joint fitting under with fitting the image reference as the marginal.
Reward Forcing

DuoMatching (Ours)
Prompt: A dreamlike coastal scene of a pianist playing a grand piano half-buried in sand at low tide, rendered in polished 8K. Rich textures and mirrored tide pools create a poetic, cinematic atmosphere.
One-Forcing

DuoMatching (Ours)
CausVid
DuoMatching (Ours)

Figure 5 Additional qualitative comparisons of DuoMatching with Reward Forcing, One-Forcing, and CausVid. DuoMatching improves visual details, semantic alignment, and composition while preserving video dynamics.
The marginal optimality of gives
The joint optimality of , together with the KL decomposition, gives
Combining these inequalities yields
Thus, under matched marginal capacity, marginal-only fitting achieves no greater marginal error than joint fitting, and this advantage is bounded by the additional conditional fitting error of relative to .
D Proof of Joint-Marginal Improvement
Using the same frame-sampling operator , define and . Assume that the image reference has no greater marginal approximation error than the video-teacher marginal, measured by forward KL, and that the two distributions differ:
Consider the ideal distribution-space optimum
where the minimization is over all video distributions. We assume that the reference and optimal distributions have positive densities on common supports and that all displayed KL divergences are finite. We further assume that the optimal density path exists for all sufficiently small , is right-differentiable at , and permits interchanging the differentiations below with integration and the sampling operator. We use the same symbols for distributions and their densities. At , the unique minimizer is . To establish local improvement, we show that has a strictly negative right derivative at .
Since is linear, the first variations of the two KL terms with respect to are and , respectively.
Imposing the normalization constraint and absorbing terms independent of x into a constant gives
Define
Taking the right derivative of the optimality condition at , with dots denoting these derivatives, yields
(21)
Differentiating gives . Therefore, integrating the preceding equality against gives
(22)
Let . Substituting the expression for gives
(23)
The last equality follows by expanding the two forward KL divergences. Their difference is nonpositive by assumption, while because . Hence, .
By right differentiability, as . Since and , there exists such that
Thus, there exists a positive marginal weight for which the ideal joint-marginal optimum is closer to than in forward KL.
E Efficiency and Reconstruction Quality of LatentBridge
LatentBridge provides a lightweight mapping between video and image latent spaces. LatentBridge consists of eight FiLM residual blocks with 256 hidden channels, totaling only 10.75M trainable parameters. It is trained on 29,400 videos at 480p resolution with an effective batch size of 32. Training for 3,000 iterations takes approximately 15 minutes on eight 80-GB GPUs. Despite its compact size and short training time, LatentBridge produces reconstructions that closely match the targets in scene structure and visual details, as shown in Figure 6. The examples across Qwen-Image, FLUX, and SDXL further illustrate its applicability to different image latent spaces.
F Transferring Loss Improvement through LatentBridge
We establish a sufficient condition under which a loss reduction measured through LatentBridge also holds for the corresponding decoded video frames. Let , where is the generator noise and is the text condition. For a sampled latent slice and local frame index , let denote the corresponding RGB frame index. Define the predicted and image-latent representations as
where is the video VAE decoder, is the image VAE encoder, and is frozen. Both representations use the same generated video and sampled frame position.
Wan → Qwen-Image
Wan → FLUX
Wan → SDXL
Target
LatentBridge

Figure 6 Qualitative evaluation of LatentBridge across image latent spaces. Top: target latents obtained by encoding the corresponding RGB frames with each image VAE. Bottom: reconstructions from latents predicted by LatentBridge from video latents of Wan2.1. Both rows use the corresponding image VAE decoder.

Figure 7 Latent reconstruction error of LatentBridge at different stages of generator training. Given a generated video latent slice , with and the local frame index i as conditioning, LatentBridge predicts the corresponding image latent. We measure its error against the target obtained through Decode-Encode over 100 samples.
Let be a fixed scalar frame-level loss, with lower values indicating better performance under this loss. Assume that, on a domain containing the representations considered below, it satisfies
for a finite constant . Define the two objectives
and assume that these expectations are finite. Consider generator parameters and before and after an update or a sequence of updates. Suppose the expected mapping errors at these parameters satisfy
The Lipschitz condition then gives, at each endpoint,
(29)
Suppose the objective evaluated through LatentBridge decreases by . Adding and subtracting the two bridge objectives yields
(30)
Consequently, if , the same loss evaluated on image latents encoded from the actual decoded video frames strictly decreases. In particular, when , a decrease exceeding is sufficient.
As shown in Figure 7, the mapping errors remain consistent across training steps. Thus, when these errors remain bounded, a decrease in the fixed frame-level loss through LatentBridge exceeding guarantees a decrease in the same loss evaluated through Decode–Encode.
G Training Procedure
Algorithm 1 summarizes the training procedure of DuoMatching. The generator is optimized with joint DMD and marginal DMD, while both fake estimators are updated on freshly generated samples. The teachers and LatentBridge remain frozen, with gradients propagated through LatentBridge during generator updates.
Algorithm 1 Training of DuoMatching
Require: Generator ; frozen LatentBridge Require: Frozen teachers Require: Trainable fake estimators Require: Marginal weight ; sampling budget ; update interval ; warmup length ; training iterations 1: for do 2: if then Generator update 3: Sample text condition and noise 4: 5: 6: for do 7: Sample local frame index 8: 9: end for 10: 11: Sample image timestep and 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: Update using 22: end if 23: Fake estimator updates 24: Sample fresh text condition and noise 25: 26: 27: for do 28: Sample local frame index 29: 30: end for 31: 32: Sample fresh image timestep and 33: 34: Update with flow-matching target 35: Update using the video flow-matching loss on 36: end for