Reflected Flow Matching

Tianyu Xie, Yu Zhu, Longlin Yu, Tong Yang, Ziheng Cheng +3 more
5/26/2024
stat.MLcs.LG

No official code found. Best implementation: tyuxie/RFM (24 stars, MIT, last commit 2024-06-19).

Abstract

Continuous normalizing flows (CNFs) learn an ordinary differential equation to transform prior samples into data. Flow matching (FM) has recently emerged as a simulation-free approach for training CNFs by regressing a velocity model towards the conditional velocity field. However, on constrained domains, the learned velocity model may lead to undesirable flows that result in highly unnatural samples, e.g., oversaturated images, due to both flow matching error and simulation error. To address this, we add a boundary constraint term to CNFs, which leads to reflected CNFs that keep trajectories within the constrained domains. We propose reflected flow matching (RFM) to train the velocity model in reflected CNFs by matching the conditional velocity fields in a simulation-free manner, similar to the vanilla FM. Moreover, the analytical form of conditional velocity fields in RFM avoids potentially biased approximations, making it superior to existing score-based generative models on constrained domains. We demonstrate that RFM achieves comparable or better results on standard image benchmarks and produces high-quality class-conditioned samples under high guidance weight.

View on arXivView PDF

Code Implementations(1)

tyuxie/RFMCommunity100%
MIT

The official codebase for Reflected Flow Matching (ICML 2024)

242Shell, PythonMay 17, 20242 years agoMIT

Similar Papers

Cite this paper

@article{xie2024reflected,
  title  = {Reflected Flow Matching},
  author = {Tianyu Xie and Yu Zhu and Longlin Yu and Tong Yang and Ziheng Cheng and Shiyue Zhang and Xiangyu Zhang and Cheng Zhang},
  year   = {2024},
  eprint = {2405.16577},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.16577v1},
  journal = {ICML 2024 2024}
}

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/2405.16577.svg)](https://codeofpaper.com/paper/2405.16577)

Discussion