On the Guidance of Flow Matching

Ruiqi Feng, Tailin Wu, Chenglei Yu, Wenhao Deng, Peiyan Hu
2/14/2026

No official code found. Best implementation: AI4Science-WestlakeU/flow_guidance (107 stars, MIT, last commit 2026-04-13).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

[ICML 2025] The official implementation of the paper "On the Guidance of Flow Matching"

10710Shell, PythonFeb 4, 20256 months agoMIT

Similar Papers

Cite this paper

@article{feng2026guidance,
  title  = {On the Guidance of Flow Matching},
  author = {Ruiqi Feng and Tailin Wu and Chenglei Yu and Wenhao Deng and Peiyan Hu},
  year   = {2026},
  eprint = {2502.02150},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.02150},
  journal = {ICML 2025 2025}
}

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

Discussion