Faster Inference of Flow-Based Generative Models via Improved Data-Noise Coupling

Aram Davtyan, Leello Tadesse Dadi, Volkan Cevher, Paolo Favaro

Modern generative models, such as Diffusion models and Conditional Flow Matching (CFM), have revolutionized the creation of high-quality images and videos. These models work by gradually transforming a sample of random noise into a structured data point. However, this "iterative denoising" process is notoriously slow, often requiring dozens or hundreds of neural network evaluations to produce a single high-quality sample.

The speed of this generation process heavily depends on the curvature of the sampling trajectory. If the path from noise to data is a straight line, the model can take large, efficient steps. Conversely, if the path is highly curved, the model must take many tiny steps to avoid diverging from the target distribution.

The Challenge of Curved Trajectories

Standard training methods often pair noise and data points randomly (independent coupling). This forces the model to learn "confused" average directions, resulting in inefficient, highly curved paths.

Coupling Methods Comparison

While previous work has attempted to use "minibatch optimal transport" (OT) to pair noise with the closest possible data points, these optimizations are inherently "forgetful." They only optimize within one small batch at a time and discard the results, severely limiting their effectiveness on large-scale datasets.

Introducing LOOM-CFM

To address this limitation, researchers introduce LOOM-CFM (Looking Out Of Minibatch-CFM). The core innovation is treating the noise-data assignment as a global optimization problem that evolves continuously alongside the neural network's training.

Iterative Refinement in LOOM-CFM

LOOM-CFM achieves this through three primary mechanisms:

  1. Persistent Assignments: Unlike prior methods that re-solve optimal transport for every new batch from scratch, LOOM-CFM stores the assignments. In each training step, it takes the current noise-data pairs, performs a local OT swap to make them more efficient, and then saves those new assignments back to a global "loom."
  2. Global Communication: Because these assignments are saved and reused, local improvements made in one minibatch eventually propagate across the entire dataset. This effectively approximates a global optimal transport plan that would otherwise be computationally impossible to calculate.
  3. Multiple Noise Caches: To prevent the model from overfitting to a single noise-to-image mapping, LOOM-CFM stores multiple noise samples for each image (e.g., 4 noise "caches"). During training, the model randomly selects one of these pre-assigned noise samples, improving its ability to generalize to new noise during inference.

The process closely resembles weaving on a loom. By constantly swapping and refining connections between the "warp" (noise) and "weft" (data) across different batches, the model eventually creates a globally coherent and "straight" mapping.

Key Results and Performance

The researchers evaluated LOOM-CFM across several standard computer vision benchmarks, including CIFAR-10, ImageNet-32, ImageNet-64, and high-resolution human faces (FFHQ-256). The method demonstrated consistent, significant improvements:

  • Drastic FID Improvements: On CIFAR-10, LOOM-CFM reduced the Fréchet Inception Distance (FID)—a key metric for image quality where lower is better—by 41% at 12 sampling steps compared to standard minibatch OT. On ImageNet-64, the improvement was an even more dramatic 54%.
  • Faster Convergence: The model achieves high-quality results in significantly fewer training epochs. For instance, on ImageNet-32, it required only 200 epochs compared to the 350 epochs needed by competing methods.
  • Enhanced Distillation: When used as a starting point for "model distillation" (compressing a multi-step model into a single-step model), LOOM-CFM provided a superior initialization, leading to higher-quality single-step generations.
  • Negligible Overhead: Remarkably, this method requires almost no extra computation compared to standard minibatch OT. The memory overhead for storing assignments is also minimal (e.g., roughly 4MB for a dataset of one million images).

Limitations and Future Directions

While LOOM-CFM represents a significant leap forward for unconditional generation, adapting it to conditional setups (like text-to-image generation) presents new challenges. If not handled carefully, the persistent noise-data coupling could introduce "sampling bias," where certain text labels become disproportionately aligned with specific regions of the noise space.

Furthermore, while the method is strictly better than standard minibatch OT, it is not mathematically guaranteed to find the absolute global optimal transport plan for the entire dataset. Future work will likely explore how to adapt these persistent couplings for complex conditional signals, such as classifier-free guidance, to bring these inference speedups to the largest text-to-image models.

Summary updated

BibTeX
@inproceedings{davtyan2025faster,
  author = {Aram Davtyan and Leello Tadesse Dadi and Volkan Cevher and Paolo Favaro},
  title = {{Faster Inference of Flow-Based Generative Models via Improved Data-Noise Coupling}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=rsGPrJDIhh},
}
Figure