CoCA: Step-level Reward for Free in RL-based T2I Diffusion Model Fine-tuning

Xinyao Liao, Wei Wei, Xiaoye Qu, Qiyuan He, Angela Yao +1 more
5/25/2025
cs.CV
diffusion-flowrl

No confident code implementation found for this paper.

Abstract

Recent advances in text-to-image (T2I) diffusion model fine-tuning leverage reinforcement learning (RL) to align generated images with learnable reward functions. The existing approaches reformulate denoising as a Markov decision process for RL-driven optimization.

Show full abstract

However, they suffer from reward sparsity, receiving only a single delayed reward per generated trajectory. This flaw hinders precise step-level attribution of denoising actions, undermines training efficiency. To address this, we propose a simple yet effective credit assignment framework that dynamically distributes dense rewards across denoising steps. Specifically, we track changes in cosine similarity between intermediate and final images to quantify each step's contribution on progressively reducing the distance to the final image. Our approach avoids additional auxiliary neural networks for step-level preference modeling and instead uses reward shaping to highlight denoising phases that have a greater impact on image quality. Our method achieves 1.25 to 2 times higher sample efficiency and better generalization across four human preference reward functions, without compromising the original optimal policy.

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{liao2025coca,
  title  = {CoCA: Step-level Reward for Free in RL-based T2I Diffusion Model Fine-tuning},
  author = {Xinyao Liao and Wei Wei and Xiaoye Qu and Qiyuan He and Angela Yao and Yu Cheng},
  year   = {2025},
  eprint = {2505.19196},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.19196v2}
}

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

Discussion