Saved in:
Bibliographic Details
Main Authors: Wang, Feng, Yu, Zihao
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2509.05952
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911305853566976
author Wang, Feng
Yu, Zihao
author_facet Wang, Feng
Yu, Zihao
contents Reinforcement Learning (RL) has recently emerged as a powerful technique for improving image and video generation in Diffusion and Flow Matching models, specifically for enhancing output quality and alignment with prompts. A critical step for applying online RL methods on Flow Matching is the introduction of stochasticity into the deterministic framework, commonly realized by Stochastic Differential Equation (SDE). Our investigation reveals a significant drawback to this approach: SDE-based sampling introduces pronounced noise artifacts in the generated images, which we found to be detrimental to the reward learning process. A rigorous theoretical analysis traces the origin of this noise to an excess of stochasticity injected during inference. To address this, we draw inspiration from Denoising Diffusion Implicit Models (DDIM) to reformulate the sampling process. Our proposed method, Coefficients-Preserving Sampling (CPS), eliminates these noise artifacts. This leads to more accurate reward modeling, ultimately enabling faster and more stable convergence for reinforcement learning-based optimizers like Flow-GRPO and Dance-GRPO. Code will be released at https://github.com/IamCreateAI/FlowCPS
format Preprint
id arxiv_https___arxiv_org_abs_2509_05952
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Coefficients-Preserving Sampling for Reinforcement Learning with Flow Matching
Wang, Feng
Yu, Zihao
Computer Vision and Pattern Recognition
Reinforcement Learning (RL) has recently emerged as a powerful technique for improving image and video generation in Diffusion and Flow Matching models, specifically for enhancing output quality and alignment with prompts. A critical step for applying online RL methods on Flow Matching is the introduction of stochasticity into the deterministic framework, commonly realized by Stochastic Differential Equation (SDE). Our investigation reveals a significant drawback to this approach: SDE-based sampling introduces pronounced noise artifacts in the generated images, which we found to be detrimental to the reward learning process. A rigorous theoretical analysis traces the origin of this noise to an excess of stochasticity injected during inference. To address this, we draw inspiration from Denoising Diffusion Implicit Models (DDIM) to reformulate the sampling process. Our proposed method, Coefficients-Preserving Sampling (CPS), eliminates these noise artifacts. This leads to more accurate reward modeling, ultimately enabling faster and more stable convergence for reinforcement learning-based optimizers like Flow-GRPO and Dance-GRPO. Code will be released at https://github.com/IamCreateAI/FlowCPS
title Coefficients-Preserving Sampling for Reinforcement Learning with Flow Matching
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2509.05952