Improving Flow Matching by Aligning Flow Divergence

Yuhao Huang, Taos Transue, Shih-Hsin Wang, William Feldman, Hong Zhang +1 more
1/31/2026
cs.LGcs.AImath.NA

Official code: Utah-Math-Data-Science/Flow_Div_Matching (8 stars, MIT, last commit 2025-06-13).

Abstract

Conditional flow matching (CFM) stands out as an efficient, simulation-free approach for training flow-based generative models, achieving remarkable performance for data generation. However, CFM is insufficient to ensure accuracy in learning probability paths. In this paper, we introduce a new partial differential equation characterization for the error between the learned and exact probability paths, along with its solution. We show that the total variation gap between the two probability paths is bounded above by a combination of the CFM loss and an associated divergence loss. This theoretical insight leads to the design of a new objective function that simultaneously matches the flow and its divergence. Our new approach improves the performance of the flow-based generative model by a noticeable margin without sacrificing generation efficiency. We showcase the advantages of this enhanced training approach over CFM on several important benchmark tasks, including generative modeling for dynamical systems, DNA sequences, and videos. Code is available at \href{https://github.com/Utah-Math-Data-Science/Flow_Div_Matching}{Utah-Math-Data-Science}.

View on arXivView PDF

Code Implementations(1)

MIT

Improving Flow Matching by Aligning Flow Divergence, ICML 2025

82PythonMay 28, 20251 years agoMIT

Similar Papers

Cite this paper

@article{huang2026improving,
  title  = {Improving Flow Matching by Aligning Flow Divergence},
  author = {Yuhao Huang and Taos Transue and Shih-Hsin Wang and William Feldman and Hong Zhang and Bao Wang},
  year   = {2026},
  eprint = {2602.00869},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.00869v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.00869.svg)](https://codeofpaper.com/paper/2602.00869)

Discussion