On the Guidance of Flow Matching

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Feng, Ruiqi, Yu, Chenglei, Deng, Wenhao, Hu, Peiyan, Wu, Tailin
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915304519499776
author Feng, Ruiqi
Yu, Chenglei
Deng, Wenhao
Hu, Peiyan
Wu, Tailin
author_facet Feng, Ruiqi
Yu, Chenglei
Deng, Wenhao
Hu, Peiyan
Wu, Tailin
contents Flow matching has shown state-of-the-art performance in various generative tasks, ranging from image generation to decision-making, where generation under energy guidance (abbreviated as guidance in the following) is pivotal. However, the guidance of flow matching is more general than and thus substantially different from that of its predecessor, diffusion models. Therefore, the challenge in guidance for general flow matching remains largely underexplored. In this paper, we propose the first framework of general guidance for flow matching. From this framework, we derive a family of guidance techniques that can be applied to general flow matching. These include a new training-free asymptotically exact guidance, novel training losses for training-based guidance, and two classes of approximate guidance that cover classical gradient guidance methods as special cases. We theoretically investigate these different methods to give a practical guideline for choosing suitable methods in different scenarios. Experiments on synthetic datasets, image inverse problems, and offline reinforcement learning demonstrate the effectiveness of our proposed guidance methods and verify the correctness of our flow matching guidance framework. Code to reproduce the experiments can be found at https://github.com/AI4Science-WestlakeU/flow_guidance.
format Preprint
id arxiv_https___arxiv_org_abs_2502_02150
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle On the Guidance of Flow Matching
Feng, Ruiqi
Yu, Chenglei
Deng, Wenhao
Hu, Peiyan
Wu, Tailin
Machine Learning
Flow matching has shown state-of-the-art performance in various generative tasks, ranging from image generation to decision-making, where generation under energy guidance (abbreviated as guidance in the following) is pivotal. However, the guidance of flow matching is more general than and thus substantially different from that of its predecessor, diffusion models. Therefore, the challenge in guidance for general flow matching remains largely underexplored. In this paper, we propose the first framework of general guidance for flow matching. From this framework, we derive a family of guidance techniques that can be applied to general flow matching. These include a new training-free asymptotically exact guidance, novel training losses for training-based guidance, and two classes of approximate guidance that cover classical gradient guidance methods as special cases. We theoretically investigate these different methods to give a practical guideline for choosing suitable methods in different scenarios. Experiments on synthetic datasets, image inverse problems, and offline reinforcement learning demonstrate the effectiveness of our proposed guidance methods and verify the correctness of our flow matching guidance framework. Code to reproduce the experiments can be found at https://github.com/AI4Science-WestlakeU/flow_guidance.
title On the Guidance of Flow Matching
topic Machine Learning
url https://arxiv.org/abs/2502.02150