Flow Generator Matching
Zemin Huang, Zhengyang Geng, Weijian Luo, Guo-jun Qi
TL;DR
This work introduces Flow Generator Matching (FGM), a principled approach to distill flow-matching models into one-step generators, drastically speeding up sampling while preserving fidelity. By formulating an equivalent, tractable training objective that aligns the implicit generator flow with a pre-trained FM flow, and proving key flow-product identities, FGM provides theoretical guarantees for one-step performance. Empirically, FGM yields state-of-the-art one-step results on CIFAR10 and strong GenEval performance for one-step text-to-image generation from MM-DiT-SD3, illustrating both sample quality and efficiency gains. The method avoids explicit density modeling, distinguishing it from diffusion distillation, and outperforms existing flow-distillation techniques like CFM in several benchmarks. While effective, FGM relies on an auxiliary online flow model and remains data-free, suggesting future work to integrate data and further reduce memory requirements.
Abstract
In the realm of Artificial Intelligence Generated Content (AIGC), flow-matching models have emerged as a powerhouse, achieving success due to their robust theoretical underpinnings and solid ability for large-scale generative modeling. These models have demonstrated state-of-the-art performance, but their brilliance comes at a cost. The process of sampling from these models is notoriously demanding on computational resources, as it necessitates the use of multi-step numerical ordinary differential equations (ODEs). Against this backdrop, this paper presents a novel solution with theoretical guarantees in the form of Flow Generator Matching (FGM), an innovative approach designed to accelerate the sampling of flow-matching models into a one-step generation, while maintaining the original performance. On the CIFAR10 unconditional generation benchmark, our one-step FGM model achieves a new record Fréchet Inception Distance (FID) score of 3.08 among few-step flow-matching-based models, outperforming original 50-step flow-matching models. Furthermore, we use the FGM to distill the Stable Diffusion 3, a leading text-to-image flow-matching model based on the MM-DiT architecture. The resulting MM-DiT-FGM one-step text-to-image model demonstrates outstanding industry-level performance. When evaluated on the GenEval benchmark, MM-DiT-FGM has delivered remarkable generating qualities, rivaling other multi-step models in light of the efficiency of a single generation step.
