NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Flow-based Generative Models (FGMs), including Flow Matching and Rectified Flow, have emerged as powerful tools for transforming simple Gaussian noise into complex data distributions like high-resolution images. However, a major bottleneck in training these models is the "straightness" of the generative trajectories. When noise points are randomly paired with data points during training, the resulting vector fields are often highly curved and tangled. These curved paths are computationally expensive to navigate during inference, requiring a high Number of Function Evaluations (NFEs) to produce clean samples.

While previous research has attempted to use Optimal Transport (OT) to straighten these paths, existing methods rely heavily on mini-batch OT. This approach is fundamentally limited: it is computationally expensive, biased by small batch sizes, and suffers from the "curse of dimensionality," failing to find a truly optimal global mapping in high-dimensional spaces.

Comparison of AlignFlow against existing coupling algorithms.

The AlignFlow Approach: Semi-Discrete Optimal Transport

To overcome these limitations, researchers introduce AlignFlow, a "plug-and-play" enhancement that shifts the focus from mini-batch OT to Semi-Discrete Optimal Transport (SDOT). AlignFlow establishes a deterministic, optimal mapping before training begins, creating straighter generative trajectories that lead to significantly higher image quality and faster sampling.

The core methodology relies on a two-stage training process:

  1. SDOT Alignment: Before training the generative model, AlignFlow computes a mapping between the continuous noise distribution and the discrete, finite set of training data points. This process partitions the noise space into Laguerre cells—mathematical regions where every noise point within a specific cell is optimally assigned to one specific data point.
  2. FGM Training: The generative model is then trained using these fixed, deterministic pairs. Because the mapping is optimal and pre-calculated, the neural network learns a much straighter vector field from the very first iteration.
Visualization of the continuous noise distribution and its partitioning into discrete Laguerre cells.

Crucially, this method is deterministic. Unlike previous approaches where a noise sample might be paired with different data points across different training iterations, AlignFlow ensures a consistent, straight-line target for the model to learn.

Key Insights and Advantages

AlignFlow introduces several critical advantages over traditional FGM training:

  • Bypassing the Curse of Dimensionality: By treating the dataset as a fixed empirical distribution rather than attempting to estimate a continuous-to-continuous mapping, SDOT avoids the exponential sample requirements that plague other OT methods.
  • Batch Invariance: Because the noise-to-data mapping is pre-computed (or computed via a fixed dual weight), alignment quality does not depend on the training batch size. This enables stable training even on hardware with limited memory.
  • Negligible Overhead: Computing the SDOT map is highly efficient, adding less than 1% to the total training time.
  • The "Rebalance" Trick: To prevent mode collapse or bias, the authors introduce a rebalancing operation. This ensures that even if the SDOT map isn't perfectly converged, every data point in the dataset receives an equal amount of "exposure" during training.

Performance and Results

AlignFlow was evaluated across standard benchmarks, including a Synthetic Checkerboard, CIFAR-10, and the large-scale ImageNet-256 dataset, utilizing modern architectures like Diffusion Transformers (DiT) and Scalable Interpolant Transformers (SiT). The results demonstrated consistent improvements across all metrics:

  • Faster Sampling: On ImageNet-256 using the "Shortcut" model, AlignFlow achieved a Fréchet Inception Distance (FID) of 30.31 in just 4 steps, outperforming the baseline's 33.11.
  • State-of-the-Art One-Step Generation: When combined with the "MeanFlow" algorithm on ImageNet using the SiT-XL/2 backbone, AlignFlow achieved an impressive FID of 3.23 with only a single step (NFE=1).
  • Rapid Convergence: Models utilizing AlignFlow consistently reached lower FID scores faster than those using standard mini-batch OT or random coupling.
  • Qualitative Straightness: Visualizations on the 2D checkerboard dataset confirmed that AlignFlow produces the straightest, least-tangled trajectories among all compared methods.

Limitations and Future Directions

While highly effective, AlignFlow has some limitations. The SDOT map is a perfect mapping for the training set but cannot generate new data on its own; the neural network is still required to learn the underlying structure to generalize. Additionally, handling complex label structures (like unique, high-dimensional prompts in text-to-image tasks) remains challenging. Future work may explore clustering text embeddings to create "pseudo-classes" for SDOT partitioning. Finally, incorporating complex data augmentations directly into the SDOT map is difficult, currently requiring augmented images to be treated as additional discrete points in the dataset.

Summary updated

BibTeX
@inproceedings{kong2026alignflow,
  author = {Lingkai Kong and Molei Tao and Yang Liu and Bryan Wang and Jinmiao Fu and Chien-Chih Wang and Huidong Liu},
  title = {{AlignFlow: Improving Flow-based Generative Models with Semi-Discrete Optimal Transport}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=nTCF3QNsIN},
}
Figure