Abstract
Flow models have rapidly become the go-to method for training and deploying large-scale generators, owing their success to inference-time flexibility via adjustable integration steps. A crucial ingredient in flow training is the choice of coupling measure for sampling noise/data pairs that define the flow matching (FM) regression loss. While FM training defaults usually to independent coupling, recent works show that adaptive couplings informed by noise/data distributions (e.g., via optimal transport, OT) improve both model training and inference. We radicalize this insight by shifting the paradigm: rather than computing adaptive couplings directly, we use distilled couplings from a different, pretrained model capable of placing noise and data spaces in bijection -- a property intrinsic to normalizing flows (NF) through their maximum likelihood and invertibility requirements. Leveraging recent advances in NF image generation via auto-regressive (AR) blocks, we propose Normalized Flow Matching (NFM), a new method that distills the quasi-deterministic coupling of pretrained NF models to train student flow models. These students achieve the best of both worlds: significantly outperforming flow models trained with independent or even OT couplings, while also improving on the teacher AR-NF model.
Introduction
Generative modeling has seen a shift towards flow-based methods, which offer flexibility during inference. However, the performance of these models heavily depends on the "coupling"—the strategy used to pair noise samples with data points during training. While independent coupling is standard, it often results in complex, curved paths that necessitate many integration steps. This paper introduces Normalized Flow Matching (NFM), a paradigm shift that leverages the inherent bijective mappings of pretrained Normalizing Flows (NF) to provide a superior, data-informed coupling for training student flow models.
Methodology: Distilling the Bijection
The core of NFM is a two-stage distillation process designed to simplify the learning task for a student model.
- Teacher Training: A Normalizing Flow (NF) model, such as an auto-regressive TarFlow, is trained to maximize likelihood. Due to their invertible nature, NFs establish a precise bijection between the data distribution and a Gaussian noise space.
- Student Distillation: A standard Flow Matching student is then trained. Instead of random noise, the student is provided with the specific noise vector associated with a given data point, as determined by the teacher.
Unlike the teacher, the student model can use efficient, non-invertible architectures like U-Nets or Transformers, allowing for parallelized generation and significant speedups in sampling latency.
Experimental Results
The authors evaluated NFM on ImageNet64 and ImageNet256. A key finding is that NFM paths are significantly straighter than those in standard FM or even Optimal Transport-based variants (SD-FM). This reduced curvature directly translates to higher efficiency.
Efficiency and Quality
NFM demonstrates remarkable sample efficiency. On ImageNet64, a student model using only 7 sampling steps (NFE=7) can outperform a standard FM model using 31 steps, particularly in early training stages. This allows for massive speedups in sampling latency without sacrificing image quality.
On ImageNet256, NFM achieved an FID of 2.29, surpassing both the baseline FM (2.30) and even its own teacher (3.96). This "student surpassing the teacher" phenomenon suggests that the Flow Matching objective can effectively smooth out or improve upon the distribution learned by the NF teacher.
Conclusion
Normalized Flow Matching radicalizes the concept of adaptive coupling by distilling the deterministic mappings of normalizing flows. By creating straighter paths from noise to data, NFM enables high-quality image generation with significantly fewer steps and lower latency than its predecessors. Future work remains to explore the enigmatic structure of the NF noise space and scale this approach to larger foundation models.
Summary updated