Flow Straighter and Faster: Efficient One-Step Generative Modeling via MeanFlow on Rectified Trajectories
Xinxi Zhang, Shiwei Tan, Quang Nguyen, Quan Dao, Ligong Han, Xiaoxiao He, Tunyu Zhang, Alen Mrdovic, Dimitris Metaxas
TL;DR
This work tackles the inefficiency of sampling in flow-based generative models by merging trajectory rectification with mean-velocity learning. It introduces Re-MeanFlow, which trains a MeanFlow model on rectified trajectories produced by a single reflow, augmented with a simple distance truncation to reduce extreme curvature. Across ImageNet variants, Re-MeanFlow delivers superior one-step sample quality (FID) and substantially improved training efficiency compared to prior one-step methods. The approach shifts most compute to the inference-inspired reflow stage, improving accessibility and scalability of high-quality one-step generation. The method is architecture-agnostic and paves the way for broader applications, including potential real-data integration and extensions beyond image synthesis.
Abstract
Flow-based generative models have recently demonstrated strong performance, yet sampling typically relies on expensive numerical integration of ordinary differential equations (ODEs). Rectified Flow enables one-step sampling by learning nearly straight probability paths, but achieving such straightness requires multiple computationally intensive reflow iterations. MeanFlow achieves one-step generation by directly modeling the average velocity over time; however, when trained on highly curved flows, it suffers from slow convergence and noisy supervision. To address these limitations, we propose Rectified MeanFlow, a framework that models the mean velocity field along the rectified trajectory using only a single reflow step. This eliminates the need for perfectly straightened trajectories while enabling efficient training. Furthermore, we introduce a simple yet effective truncation heuristic that aims to reduce residual curvature and further improve performance. Extensive experiments on ImageNet at 64, 256, and 512 resolutions show that Re-MeanFlow consistently outperforms prior one-step flow distillation and Rectified Flow methods in both sample quality and training efficiency. Code is available at https://github.com/Xinxi-Zhang/Re-MeanFlow.
