AlignFlow: Improving Flow-based Generative Models with Semi-Discrete Optimal Transport
Lingkai Kong, Molei Tao, Yang Liu, Bryan Wang, Jinmiao Fu, Chien-Chih Wang, Huidong Liu
TL;DR
AlignFlow addresses the scalability and convergence challenges of coupling noise and data in Flow-based Generative Models by adopting Semi-Discrete Optimal Transport (SDOT) to construct a deterministic Noise–Data Alignment (NDA). The method computes an SDOT map in a Stage 1 offline step, partitioning the noise space into Laguerre cells and linking each cell to a data point, then uses this fixed NDA to train FGMs in Stage 2 with negligible overhead. This setup provides convergence guarantees for the coupling and avoids the dimensionality curse associated with discrete OT on minibatches. Empirically, AlignFlow improves performance and accelerates training across CIFAR-10, ImageNet256 with DiT, and ImageNet256 with SiT MeanFlow, while remaining plug-and-play and scalable to large architectures; code is available at the provided repository.
Abstract
Flow-based Generative Models (FGMs) effectively transform noise into complex data distributions. Incorporating Optimal Transport (OT) to couple noise and data during FGM training has been shown to improve the straightness of flow trajectories, enabling more effective inference. However, existing OT-based methods estimate the OT plan using (mini-)batches of sampled noise and data points, which limits their scalability to large and high-dimensional datasets in FGMs. This paper introduces AlignFlow, a novel approach that leverages Semi-Discrete Optimal Transport (SDOT) to enhance the training of FGMs by establishing an explicit, optimal alignment between noise distribution and data points with guaranteed convergence. SDOT computes a transport map by partitioning the noise space into Laguerre cells, each mapped to a corresponding data point. During FGM training, i.i.d. noise samples are paired with data points via the SDOT map. AlignFlow scales well to large datasets and model architectures with negligible computational overhead. Experimental results show that AlignFlow improves the performance of a wide range of state-of-the-art FGM algorithms and can be integrated as a plug-and-play component. Code is available at: https://github.com/konglk1203/AlignFlow.
