CAST: Causal Advantage-Structured Training with Spatially Grounded Compositional Rewards for Diffusion Models

Shu Yu, Chaochao Lu
9/30/2026
cs.CVcs.AIcs.LG
diffusion-flowrl

No official code found. Best implementation: OpenCausaLab/CAST (0 stars, HTML, Apache-2.0, last commit 2026-10-01).

Abstract

Online reinforcement learning has been extended to flow matching for diffusion model (DM) image generation. However, this paradigm faces three limitations: (1) Window selection.

Show full abstract

Existing methods manually set the stochastic differential equation (SDE) sampling window, i.e., the denoising steps where exploration noise is injected. We instead determine it from each model's denoising trajectory. (2) Reward saturation. Current methods rely on scoring models trained on human annotations; we find that such scores are extremely high and nearly indistinguishable on the latest SOTA open-source DMs, making advantage estimation largely ineffective. (3) Sample inefficiency. A single scalar reward collapses different failure modes into almost identical scores, leaving minimal gradient guidance for targeted improvement. To address these issues, we propose CAST (Causal Advantage-Structured Training), an RL fine-tuning method for pretrained DMs, which (1) identifies the denoising step at which each model fixes the objects and their spatial arrangement in the image and uses that timing to set the SDE window, (2) decomposes each prompt via Causal Scene Graphs (CSG) into verifiable-atoms, i.e., minimal semantic units such as an object, count, attribute, or spatial relation that can each be checked independently, and rewards each atom separately, and (3) projects the signed atom-level advantages into pixel space through teacher-forced attention and uses them to spatially weight the SDE policy objective. We fine-tune two of the strongest open-source DMs, FLUX.2-dev and Qwen-Image-2512, with CAST, and evaluate them on GenEval 2, a compositional benchmark, and on Qwen-Image-Bench for overall quality. Within almost the same training budget, CAST's improvement over the base model on the most challenging GenEval 2 prompts is up to 3.07x that of Flow-GRPO, while overall generation quality also improves.

View on arXivView PDF

Code Implementations(1)

OpenCausaLab/CASTCommunity25%
Apache-2.0

CAST: Causal Advantage-Structured Training with Spatially Grounded Compositional Rewards for Diffusion Models

00HTML, CSSSep 30, 20262 months agoApache-2.0

Similar Papers

Cite this paper

@article{yu2026cast,
  title  = {CAST: Causal Advantage-Structured Training with Spatially Grounded Compositional Rewards for Diffusion Models},
  author = {Shu Yu and Chaochao Lu},
  year   = {2026},
  eprint = {2609.39441},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.39441v1}
}

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

Discussion