Alignment of Diffusion Model and Flow Matching for Text-to-Image Generation

Yidong Ouyang, Liyan Xie, Hongyuan Zha, Guang Cheng
1/31/2026
stat.MLcs.LG
diffusion-flow

No confident code implementation found for this paper.

Abstract

Diffusion models and flow matching have demonstrated remarkable success in text-to-image generation. While many existing alignment methods primarily focus on fine-tuning pre-trained generative models to maximize a given reward function, these approaches require extensive computational resources and may not generalize well across different objectives.

Show full abstract

In this work, we propose a novel alignment framework by leveraging the underlying nature of the alignment problem -- sampling from reward-weighted distributions -- and show that it applies to both diffusion models (via score guidance) and flow matching models (via velocity guidance). The score function (velocity field) required for the reward-weighted distribution can be decomposed into the pre-trained score (velocity field) plus a conditional expectation of the reward. For the alignment on the diffusion model, we identify a fundamental challenge: the adversarial nature of the guidance term can introduce undesirable artifacts in the generated images. Therefore, we propose a finetuning-free framework that trains a guidance network to estimate the conditional expectation of the reward. We achieve comparable performance to finetuning-based models with one-step generation with at least a 60% reduction in computational cost. For the alignment on flow matching, we propose a training-free framework that improves the generation quality without additional computational cost.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ouyang2026alignment,
  title  = {Alignment of Diffusion Model and Flow Matching for Text-to-Image Generation},
  author = {Yidong Ouyang and Liyan Xie and Hongyuan Zha and Guang Cheng},
  year   = {2026},
  eprint = {2602.00413},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.00413v1}
}

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

Discussion