pi-Flow: Policy-Based Few-Step Generation via Imitation Distillation

Hansheng Chen, Kai Zhang, Hao Tan, Leonidas Guibas, Gordon Wetzstein +1 more
10/16/2025
cs.LGcs.AIcs.CV

No official code found. Best implementation: Lakonik/piFlow (450 stars, Apache-2.0, PyTorch, last commit 2026-02-23).

Abstract

Few-step diffusion or flow-based generative models typically distill a velocity-predicting teacher into a student that predicts a shortcut towards denoised data. This format mismatch has led to complex distillation procedures that often suffer from a quality-diversity trade-off. To address this, we propose policy-based flow models ($π$-Flow). $π$-Flow modifies the output layer of a student flow model to predict a network-free policy at one timestep. The policy then produces dynamic flow velocities at future substeps with negligible overhead, enabling fast and accurate ODE integration on these substeps without extra network evaluations. To match the policy's ODE trajectory to the teacher's, we introduce a novel imitation distillation approach, which matches the policy's velocity to the teacher's along the policy's trajectory using a standard $\ell_2$ flow matching loss. By simply mimicking the teacher's behavior, $π$-Flow enables stable and scalable training and avoids the quality-diversity trade-off. On ImageNet 256$^2$, it attains a 1-NFE FID of 2.85, outperforming previous 1-NFE models of the same DiT architecture. On FLUX.1-12B and Qwen-Image-20B at 4 NFEs, $π$-Flow achieves substantially better diversity than state-of-the-art DMD models, while maintaining teacher-level quality.

View on arXivView PDF

Code Implementations(1)

Lakonik/piFlowCommunity78%
PyTorchApache-2.0

[ICLR 2026] pi-Flow: Policy-Based Few-Step Generation via Imitation Distillation

45025C, C++Oct 16, 20258 months agoApache-2.0
diffusion-modelsdistillationflow-matchinggenerative-aigenerative-model+3 more

Similar Papers

Cite this paper

@article{chen2025piflow,
  title  = {pi-Flow: Policy-Based Few-Step Generation via Imitation Distillation},
  author = {Hansheng Chen and Kai Zhang and Hao Tan and Leonidas Guibas and Gordon Wetzstein and Sai Bi},
  year   = {2025},
  eprint = {2510.14974},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.14974v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.14974.svg)](https://codeofpaper.com/paper/2510.14974)

Discussion