Abstract
This paper introduces Flow Map Matching (FMM), a rigorous mathematical framework that unifies and improves upon consistency models—the current state-of-the-art for fast, few-step image generation. By providing a first-principles foundation using stochastic interpolants, the authors introduce a novel "Lagrangian" training objective that is significantly more stable than previous methods, enabling high-quality image generation in 1–4 steps and offering a 10–20x speedup over traditional diffusion models.
Introduction
Generative models like Stable Diffusion or Flow Matching are famous for their quality but infamous for their "sampling tax." To generate one image, they must numerically solve an Ordinary Differential Equation (ODE), which requires dozens or hundreds of neural network evaluations. Consistency models were recently introduced to solve this by learning a function that maps any point on a trajectory directly to the end of the path (the data). While successful in practice, these models were often designed heuristically. FMM addresses this by providing a unified framework to explain how to best train them and how they relate to other distillation methods.
Methods
The core innovation is shifting the focus from the velocity field (how a point moves right now) to the flow map (where a point at time $s$ will be at time $t$).
- Stochastic Interpolants: Used to define the paths between noise and data, providing a flexible way to construct ground truth trajectories.
- Lagrangian vs. Eulerian Distillation:
- Eulerian (EMD): The continuous-time limit of standard consistency distillation. It requires calculating spatial gradients (Jacobians), which is computationally expensive and numerically unstable.
- Lagrangian (LMD): The paper's "secret sauce." It follows particles along their paths, avoiding spatial gradients entirely, making it faster and more robust.
- Progressive Distillation (PFMM): A strategy to iteratively "collapse" a multi-step map into a high-performing one-step map.
Key Insights and Ideas
The most significant finding is that the Lagrangian objective (LMD) is vastly superior to the Eulerian one (EMD). Because LMD doesn't rely on spatial derivatives, it doesn't "break" when the flow map becomes nearly singular or sharp at the edges of the data distribution.
Furthermore, the paper shows that consistency models, consistency trajectory models, and progressive distillation are all specific cases of this broader Flow Map Matching framework. Because the model learns a "two-time" map ($X_{s,t}$), users can decide after training how many steps to use—taking 1 giant leap for speed or 4 smaller steps for higher quality. This also enables Consistency Style Transfer, where an image can be pushed backward to a noisy state and then forward again with a different class label while preserving the original style.
Key Results
The researchers evaluated FMM on CIFAR-10, ImageNet-32, and 2D toy datasets.
- Speedup: FMM achieves sample quality comparable to standard flow matching while reducing generation time by a factor of 10–20x.
- Quantitative Performance: On CIFAR-10, the LMD method achieved a 2-step FID of 7.13, coming very close to the teacher model's baseline of 5.53.
- Efficiency: In the few-step regime (1–4 steps), FMM significantly outperformed standard DDPM and was competitive with specialized methods like BatchOT.
Conclusion
Flow Map Matching provides a robust mathematical foundation for fast generative models. While direct training without a teacher remains more challenging than distillation, FMM offers a path toward more efficient and flexible image synthesis. Future work will focus on scaling to higher resolutions and optimizing architectures for two-time map inputs.
Summary updated