Flow Map Matching

Nicholas M. Boffi, Michael S. Albergo, Eric Vanden-Eijnden · DOI

Abstract

Generative models such as Diffusion and Flow Matching have set new standards for data synthesis but suffer from slow sampling speeds due to the iterative nature of solving Ordinary Differential Equations (ODEs). We present Flow Map Matching (FMM), a principled mathematical framework that unifies and extends consistency models. By learning a "two-time flow map" $X_{s,t}$ rather than instantaneous velocity fields, FMM enables high-quality image generation in as few as 1–4 steps. This approach achieves a 10–20x speedup over standard diffusion models while maintaining competitive sample quality.

Introduction

The primary bottleneck in modern generative modeling is the "speed limit" imposed by numerical ODE solvers. To generate a single sample, these models typically require dozens or hundreds of evaluation steps. While "consistency models" were introduced to map noise directly to data in a single step, they often lacked a rigorous mathematical foundation, making them difficult to train and sensitive to hyperparameters. Flow Map Matching addresses these challenges by providing a theoretical blueprint for designing and optimizing fast generative models.

Methodology: The Two-Time Flow Map

The core innovation of FMM is the transition from learning velocity fields (Eulerian perspective) to learning two-time flow maps (Lagrangian perspective). A flow map $X_{s,t}$ is a function that takes a sample at any time $s$ and "jumps" it to any other time $t$ along the probability flow trajectory.

Extracted figure from page 2 of Flow Map Matching

Training Objectives

FMM supports two primary training paradigms:

  1. Lagrangian Map Distillation (LMD): A "student" flow map is trained to mimic the long-range jumps of a pre-trained "teacher" model.
  2. Direct Flow Map Matching: The flow map is learned from scratch using stochastic interpolants, eliminating the need for a teacher model.

A key contribution is the introduction of a Lagrangian objective. Unlike previous Eulerian losses that require calculating spatial gradients—which can become singular or "explode" near data boundaries—the Lagrangian approach follows the particle's trajectory. This leads to significantly more stable training and faster convergence.

Experimental Results

The FMM framework was evaluated on standard benchmarks including CIFAR-10 and ImageNet-32.

Sampling Efficiency and Quality

FMM demonstrates a massive speedup, requiring 10–20x fewer steps than standard flow matching for comparable quality. On CIFAR-10, Lagrangian Map Distillation achieved a 2-step FID score of 7.13, significantly outperforming standard stochastic interpolants (FID 112.42) at the same step count.

Training Stability

The Lagrangian loss allows for much faster convergence than the Eulerian losses used in earlier consistency models. It reaches lower error rates in fewer iterations, making the training process more efficient and less sensitive to tuning.

Zero-Shot Applications

Because the learned maps are bidirectional and consistent, FMM can perform tasks like consistency style transfer. By pushing an image "backwards" to a latent noisy state and then "forward" with a different class conditioning, the model can transform images across domains without explicit retraining.

Conclusion and Future Work

Flow Map Matching provides a robust mathematical foundation for fast generative models. By shifting the focus to two-time flow maps and Lagrangian objectives, it overcomes the stability and efficiency hurdles of previous consistency-based methods. While direct training of one-step maps in high dimensions remains a challenge, FMM's success in distillation and progressive training opens new avenues for real-time generative applications in video and high-resolution imaging.

Summary updated

BibTeX
@article{boffi2025flow,
  author = {Nicholas M. Boffi and Michael S. Albergo and Eric Vanden-Eijnden},
  title = {{Flow Map Matching}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure