Skip to content
AI News HubLIVE
Original source3 min read

From Euler to Dormand-Prince: ODE Solvers for Flow Matching Generative Models

Summary

A paper derives and benchmarks four classical ODE solvers (Euler, Midpoint, RK4, Dormand-Prince) for Flow Matching generative models. It finds RK4 at 80 function evaluations matches Euler at 200, and observes stiffness near t=1 and greater solver gap for undertrained models.

SourcearXiv Machine LearningAuthor: Hao Xiao
From Euler to Dormand-Prince: ODE Solvers for Flow Matching Generative Models
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

[2605.00836] From Euler to Dormand-Prince: ODE Solvers for Flow Matching Generative Models

Skip to main content

Learn about arXiv becoming an independent nonprofit.

We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate

> cs > arXiv:2605.00836

Help | Advanced Search

All fields Title Author Abstract Comments Journal reference ACM classification MSC classification Report number arXiv identifier DOI ORCID arXiv author ID Help pages Full text

Search

GO

quick links

Login

Help Pages

About

-->

Computer Science > Machine Learning

arXiv:2605.00836 (cs)

[Submitted on 4 Apr 2026]

Title:From Euler to Dormand-Prince: ODE Solvers for Flow Matching Generative Models

Authors:Hao Xiao

View a PDF of the paper titled From Euler to Dormand-Prince: ODE Solvers for Flow Matching Generative Models, by Hao Xiao

View PDF HTML (experimental)

Abstract: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.

Comments: 14 pages, 10 figures, code at this http URL

Subjects:

Machine Learning (cs.LG)

Cite as: arXiv:2605.00836 [cs.LG]

(or arXiv:2605.00836v1 [cs.LG] for this version)

https://doi.org/10.48550/arXiv.2605.00836

Focus to learn more

arXiv-issued DOI via DataCite

Submission history

From: Hao Xiao [view email] [v1] Sat, 4 Apr 2026 15:59:58 UTC (1,975 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled From Euler to Dormand-Prince: ODE Solvers for Flow Matching Generative Models, by Hao Xiao

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.LG

new | recent | 2026-05

Change to browse by:

cs

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

export BibTeX citation Loading...

BibTeX formatted citation

×

loading...

Data provided by:

Bookmark

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

IArxiv recommender toggle

IArxiv Recommender (What is IArxiv?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

About

Help

contact arXivClick here to contact arXiv Contact

subscribe to arXiv mailingsClick here to subscribe Subscribe

Copyright

Privacy Policy

Web Accessibility Assistance

arXiv Operational Status

Key points and analysis

Article intelligence

EngineersAdvanced

Key points

  • Four ODE solvers derived and implemented from scratch in PyTorch.
  • RK4 achieves comparable sample quality to Euler with 2.5x fewer function evaluations.
  • Jacobian eigenvalue spectrum stiffens near t=1, explaining adaptive solver behavior.
  • Solver choice matters most for imperfect models.

Highlights and analysis are generated automatically and may contain errors. Check the original source.