From Euler to Dormand-Prince: ODE Solvers for Flow Matching Generative Models
On the map: Diffusion models → Flow matching, time series and science
Abstract (arXiv)
Sampling from Flow Matching generative models requires solving an ordinary differential equation (ODE) whose computational cost is dominated by neural network forward passes. We derive four classical ODE solvers -- Euler, Explicit Midpoint, Classical Runge-Kutta (RK4), and Dormand-Prince 5(4) -- from first principles via Taylor expansion, implement them from scratch in PyTorch, and systematically benchmark their efficiency on Conditional Flow Matching tasks ranging from 2D toy distributions to MNIST digits. On the quantitative side, we use sliced Wasserstein distance to construct NFE-quality Pareto frontiers,finding that RK4 at 80 function evaluations achieves sample quality comparable to Euler at 200. Beyond reproducing known convergence rates, we report two empirical observations: (1) the Jacobian eigenvalue spectrum of the learned velocity field stiffens sharply near t=1, explaining why the adaptive Dormand-Prince solver automatically concentrates its step budget at the end of the trajectory; (2) the quality gap between low-order and high-order solvers widens for undertrained and smaller models, indicating that solver choice matters most when the model is imperfect. Code and all experiment scripts are publicly available.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 18 of its 21 references that are in the map. First posted on arXiv 4 Apr 2026.
Builds on
18 of 21 references.
Closest ancestors · 3
Same direction, newest first
- 2023Improving and generalizing flow-based generative models with minibatch optimal transport1 Feb
- 2022Flow Matching for Generative Modeling6 Oct
- 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow7 Sep
Other references · 15
- 2017Attention Is All You Needcited by 59,932
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2020Denoising Diffusion Implicit Modelscited by 9,655
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2016Layer Normalizationcited by 5,579
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,094
- 2018Neural Ordinary Differential Equationscited by 3,733
- 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 2,994
- 2022DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Stepscited by 1,961
- 2022Building Normalizing Flows with Stochastic Interpolantscited by 964
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
- 2022DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Modelscited by 924
3 more
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Convergence Analysis of Flow Matching in Latent Space with Transformers
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flows
- 2025Generative Modeling with Continuous Flows: Sample Complexity of Flow Matching
- 2026ODE-free Neural Flow Matching for One-Step Generative Modeling
- 2024Explicit Flow Matching: On The Theory of Flow Matching Algorithms with Applications
- 2026Learning to Solve Generative ODEs Beyond the Linear Span
- 2026Isokinetic Flow Matching for Pathwise Straightening of Generative Flows
- 2026Improving Flow Matching by Aligning Flow Divergence