AnyFlow 2.0 distills image and video diffusion models into few-step generators
Single-stage distillation needs no training data and aims to curb the loss of sample diversity
If you run a large diffusion model and need it to sample in a handful of steps, AnyFlow 2.0 offers a single-stage distillation recipe that needs no training data. What you do need is the teacher model, since the student learns from its trajectories and its distribution. Yuchao Gu and coauthors posted the paper to arXiv on December 3.
The work targets a flaw in the original AnyFlow and similar joint methods that mix trajectory and distribution supervision: samples lose diversity. The authors trace it to two causes. Long transitions get too little guidance, and each kind of supervision lands on a different state.
Their fix is distributional trajectory regression (DTR), covered in items 1 and 2, plus a separate addition in item 3:
- The student's output trajectory is parameterized as a continuous path inside each long transition.
- Both supervision signals act on the same intermediate states along that path, produced by the student itself.
- A parameterized fake score, the estimate behind distribution supervision, reduces distribution mixing.
According to the authors, AnyFlow 2.0 beats trajectory-only, distribution-only and earlier joint baselines on text-to-image, text-to-video and omnimodal models from 5.6B to 33B parameters. Before planning a distillation run, check the project page linked from the arXiv listing for code and checkpoints.