TL;DR
Large-scale video and image diffusion models are slow because they require dozens of sequential denoising steps. AnyFlow 2.0 compresses this process into just 4 steps without sacrificing visual quality or sample diversity. It achieves this by jointly supervising how the model moves (its trajectory) and where it lands (its distribution) at the exact same intermediate states.
What Problem Does This Paper Address?
Diffusion and flow-matching models generate stunning images and videos, but they are computationally expensive, often requiring 32 to 50+ sequential evaluations (NFEs) to turn noise into a clean output. To speed them up into 4-step "student" models, researchers use distillation, which traditionally falls into two camps—each with a classic tradeoff:
- Trajectory-based distillation (like velocity regression) teaches the student to mimic the teacher's exact denoising path. However, a tiny 4-step student lacks the capacity to follow a complex 32-step path perfectly, leading to blurry or degraded visuals.
- Distribution-based distillation (like Distribution Matching Distillation, or DMD) relaxes the path constraint and simply forces the student's final output distribution to match the teacher's. This produces sharp visuals, but suffers from mode collapse—the student plays it safe and loses sample diversity.
Previous attempts to combine both approaches (such as rCM and AnyFlow 1.0) still lost diversity. The authors argue this happens because those methods apply trajectory supervision and distribution supervision to different states, preventing the two objectives from truly complementing each other.
Methods
AnyFlow 2.0 introduces Distributional Trajectory Regression (DTR), a single-stage training framework built on three key ideas:
- Continuous Curvature Head: Instead of treating a large 4-step jump as a rigid straight line, the student decodes a continuous curved trajectory from a single backbone evaluation using learned velocity bases and triangular basis functions. At inference time, these projections can be fused back into a single output head, meaning zero extra runtime cost.
- Aligned Joint Supervision (DTR): At intermediate query points along the student's own predicted trajectory, AnyFlow 2.0 applies both velocity regression (matching the teacher's velocity) and distribution matching (nudging the student's state distribution toward the teacher's) at the exact same states.
- Parameterized Fake Score with Local Re-noising: Standard DMD estimates the student's learned distribution (the "fake score") by extrapolating intermediate states all the way to clean samples and re-noising them across the full noise range. This mixes distributions from different steps and propagates extrapolation errors. AnyFlow 2.0 fixes this by restricting re-noising to the local noise range of the enclosing student step and conditioning the fake score on the source step and query time.
Datasets
For data-free bidirectional distillation (which requires no ground-truth target media or precomputed teacher trajectories), the authors train using only prompts and conditioning inputs:
- Text-to-Image:
t2i-prompts-3m(evaluated on OneIG-Bench, DPG-Bench, and GenEval). - Text-to-Video:
VidProMprompts (evaluated on VBench, V-JEPA 2, and VideoMAEv2). - Omnimodal (Text/Reference-to-Video-Audio):
VidProM(upsampled by Gemini-3.5-Flash) andOmniR2V(evaluated on VBench, Audiobox Aesthetics, ImageBind, DeSync, JavisScore, and OmniVBench).
For autoregressive video post-training, they use SolarWM-Data (evaluated on SANA-WM and Orbia) and SolarRenderer-Data (evaluated on Gemini 3.8 Flash Elo).
Key Insights and Ideas
- Supervision alignment is the missing link: Simply adding distribution matching to trajectory distillation isn't enough. Applying both objectives to the exact same on-policy student states is what allows velocity regression to anchor diversity while distribution matching corrects off-distribution drift.
- Expressiveness needs distributional guardrails: Adding a continuous curvature head under pure velocity regression actually worsened intermediate state alignment ($\text{MMD}^2$ rose from 10.46 to 12.82). Only when paired with DTR did the curvature head shine ($\text{MMD}^2$ dropped to 7.24).
- Stronger causal initialization: Replacing ODE-pair initialization with DTR in autoregressive video post-training gives causal models a much better starting point, and those gains persist even after subsequent bidirectional refinement.
Key Results
Across models ranging from 5.6B to 33B parameters, AnyFlow 2.0 achieves state-of-the-art 4-step (4 NFE) performance:
- Text-to-Image: On FLUX.1-Dev (12B), it beats $\pi$-Flow and SMD across all metrics (e.g., 42.51 vs. 42.09 on OneIG-EN). On FLUX.3-Base (5.6B), it nearly matches the 32-step teacher on OneIG-EN (56.23 vs. 56.46).
- Text-to-Video: On Wan2.1-T2V-14B, it achieves higher visual quality (85.94) and markedly higher diversity (25.41 V-JEPA 2 L2) than both data-free baselines (PDD, SMD) and data-dependent ones (rCM, AnyFlow).
- Omnimodal & Autoregressive: On H3-T2VA-33B, it improves audio-video alignment (JavisScore 0.1980). In video world modeling (SolarWM-H3) and streaming generative rendering (SolarRenderer-H3), it boosts Orbia Overall to 76.37 (vs. 74.30 for Causal Forcing) and Overall Elo from 1312 to 1404.
Limitations and Future Work
- Higher training cost: DTR incurs higher training costs than pure velocity regression because it requires online training of an auxiliary fake-score model.
- Ultra-low step budgets: Experiments focus on 4-NFE generation; preserving quality, diversity, and trajectory fidelity at more restrictive budgets of 1–2 NFEs remains unexplored and is left for future work.
Summary updated