Manuscript Offprint
arXiv:2610.28858DualHeads: Reward-tilted few-step diffusion made simple
ABSTRACT
Distilled diffusion models generate high-quality images in a few sampling steps, but aligning them with task requirements and human preferences is difficult. Methods developed for multi-step diffusion models rely on differentiable rewards, or on score fields and stochastic trajectories that distilled generators may lack. We ask whether a few-step generator can be adapted using only external reward evaluations and reference samples, and show that two binary classifiers suffice. Our method, DualHeads, implements them as lightweight heads on a frozen diffusion backbone. The reward head learns which samples of the same prompt score higher, the reference head separates reference images from generated ones, and the generator maximizes a weighted sum of their logits. When the heads are optimal, this objective is KL-regularized maximization of the learned reward, and the ratio of head weights sets the regularization strength. Empirically, with both rule-based and model-based rewards, a few-step DualHeads generator reaches task rewards close to those of 40-step reinforcement learning methods while preserving image quality, at no extra inference cost. We hope that this simple and elegant dual-head formulation will help advance few-step reward-tilted generation.
Equal contribution.
1 INTRODUCTION
Diffusion distillation (Song et al., 2023; Yin et al., 2024b; Sauer et al., 2024a; Zhou et al., 2024) turns powerful diffusion models (Song et al., 2021; Ho et al., 2020; Rombach et al., 2022; Liu et al., 2023; Lipman et al., 2023) into few-step generators that produce high-quality samples in a handful of network evaluations, bringing applications such as real-time interactive video generation within reach (Yin et al., 2025; Huang et al., 2025).
Speed alone, however, does not make a sample correct: a distilled student inherits the teacher's failures, and may still misspell the prompted text, miscount objects, or ignore the requested style. Such failures are readily caught by external evaluators, such as text recognizers, object detectors, or preference models. Using these external evaluators as rewards to post-train a generator is now standard practice for diffusion models (Lee et al., 2023; Xu et al., 2023; Prabhudesai et al., 2024).
Existing methods fall into two families, each typically addressing only one side of this setting. First, reinforcement learning (RL) with black-box rewards has succeeded for multi-step diffusion models, through policy gradients that reinforce high-reward denoising steps (Black et al., 2024; Fan et al., 2023; Liu et al., 2025; Xue et al., 2025) or forward-process objectives (Zheng et al., 2026; Xue et al., 2026; Choi et al., 2026a; Lee et al., 2026). These, however, rely on what distillation removes: policy gradients estimate updates from stochastic multi-step rollouts, which become high-variance with only a few steps, and forward-process objectives need a score or velocity field that a distilled generator need not preserve. Second, methods designed for few-step generators pay for the step constraint elsewhere: they backpropagate through a differentiable reward (Luo, 2025) which may not always be feasible, match the generator to the original multi-step model (the teacher) using its score and a second diffusion model fitted to the generator's samples (e.g., Luo et al., 2026a; Jiang et al., 2026; Huang et al., 2026a), or adapt multi-step RL specifically to flow-map generators such as consistency models and MeanFlow (Li et al., 2026c; Huang et al., 2026b). Methods from both families rely on something beyond samples and black-box scores: trajectory likelihoods, a score field, reward gradients, or the teacher's score.
In practice, however, the only thing any few-step generator is guaranteed to provide is samples. This leads to our central question: given only its own samples, black-box reward evaluations, and examples of high-quality images from a reference model, can we tilt a few-step generator toward higher reward regions while keeping it close to those images?
We show that this can be done with only one backbone network and two binary classifiers. We begin with the standard reference-regularized RL objective (Levine, 2018), which maximizes the expected reward while penalizing the reverse KL divergence to the reference distribution to prevent reward hacking. Its optimum is the reference distribution reweighted by the exponentiated reward. The two terms are, however, hard to optimize directly in our setting, since we treat the reward as a black box and the KL term depends on the density ratio between the generator and the reference. Our key observation is that both can be replaced by quantities learned through classification.
This leads to DualHeads, a simple framework consisting of two identical lightweight heads on a shared frozen diffusion backbone. A reward head learns which samples are better from their black-box rewards: for multiple generations of the same prompt, rewards are normalized within the group and converted into soft optimality labels. A reference head distinguishes noised reference images from noised generator predictions. Both heads are trained with the same binary cross-entropy objective and updated online as the generator updates. To update the generator, we evaluate the two heads on a noised generator prediction and maximize a weighted sum of their logits. Gradients pass through both heads and a single generator forward pass; the sampled trajectory and the head parameters remain fixed. The heads are discarded at inference. We note that at the optimum of the reference head, maximizing this weighted sum is equivalent to the reference-regularized objective from above, with the reward-head logit in place of the reward and the ratio of head weights setting the regularization strength.
We evaluate DualHeads at a four-step setup on complementary modern reward functions, including visual text rendering (OCR), compositional generation (GenEval), and human preference (HPS, PickScore, etc.). Compared with existing methods, DualHeads achieves on-par performance in the few-step regime while preserving generation quality. It raises OCR accuracy from 0.59 to 0.92 and GenEval from 0.63 to 0.90 over the base model, and gives the best HPSv3 on Z-Image (Fig. 1).
Our contributions are:
• We introduce DualHeads, a simple framework that adapts few-step generators from reward evaluations and reference samples alone, using two classifier heads on a frozen backbone.
• We show that, with optimal heads, the weighted-logit generator objective is a reverse-KL-regularized reward objective whose temperature is set by the head-weight ratio.
• We provide empirical results with both rule-based and model-based rewards, showing that a four-step student reaches task rewards close to 40-step RL methods while preserving quality.
Reward optimization of diffusion models. Methods for optimizing a reward differ mainly in how the reward signal reaches the generator. Differentiable rewards can be backpropagated through directly (Xu et al., 2023; Clark et al., 2024; Prabhudesai et al., 2023), but black-box rewards cannot. Reinforcement learning (RL) removes this requirement: DDPO (Black et al., 2024) and DPOK (Fan et al., 2023) use policy gradients, and Flow-GRPO (Liu et al., 2025) and DanceGRPO (Xue et al., 2025) adapt group-relative policy optimization (Shao et al., 2024) to flow models. These methods need transition likelihoods along stochastic multi-step rollouts, which recent work avoids by training on the forward process. DiffusionNFT (Zheng et al., 2026) contrasts positive and negative samples under clipped group-relative optimality labels, CRD (Zhu et al., 2026) matches prompt-centered rewards to cancel an intractable normalizer, and AWM (Xue et al., 2026), RAM (Bergmeister et al., 2026), RVM (Choi et al., 2026a), and DGPO (Luo et al., 2026b) use related advantage- or reward-weighted targets. In all of them, the reward serves only as a sample weight or a regression target, and no explicit reward model is learned. DualHeads uses labels of the same form as DiffusionNFT, but fits them with an explicit classifier and guides the student through that classifier's input gradient.
Reward optimization coupled with distillation. Other methods optimize the reward inside a distillation pipeline and differ mainly in what keeps the generator close to good images while the reward is optimized. Most rely on a teacher. Some combine a reward objective with distribution matching (Jiang et al., 2026; Chen et al., 2026; Dong et al., 2026; Wang et al., 2026; Fan et al., 2026); for example, RTDMD (Huang et al., 2026a) minimizes a KL divergence to a reward-tilted teacher. Closest to our setting, TDM-R1 (Luo et al., 2026a) post-trains a few-step student with non-differentiable rewards by learning a diffusion-model surrogate reward, and regularizes it with trajectory distribution matching, which requires the teacher and an online fake score. Flow-OPD (Fang et al., 2026) and DiffusionOPD (Li et al., 2026a) first train task-specific teachers with RL and then distill them into one student, without reducing the step count. REST (Li et al., 2026b) co-trains an eight-step student with an evolving teacher. Others do without a teacher. MeanFlowNFT (Huang et al., 2026b) applies forward-process RL to a distilled four-step generator, anchored to a frozen EMA of itself, and Self-OPD (Zhang et al., 2026) scores branched student rollouts against the student's own deterministic trajectory. Reward Lightning (Cheng et al., 2026) is closest in architecture: it jointly distills a video teacher into a few-step generator with discriminator and reward heads on one frozen backbone, but its reward head is pretrained on preference pairs and kept frozen. DualHeads instead post-trains a distilled generator and refits its reward head online, on pointwise group-relative labels from black-box rewards, while its reference head keeps the generator close to the reference pool.

Figure 2: Generator update of DualHeads. The generator first rolls out N steps from noise without gradient; the endpoint is re-noised to , from which predicts in one differentiable step. The prediction is noised to and sent to a frozen feature extractor followed by a reference head and a reward head ; the generator ascends the utility through , while the backbone and both heads stay fixed during its update.
3 METHOD
DualHeads adapts a few-step generator so that its samples score higher under an external reward while staying close to a reference distribution. For this, we use two binary classifiers on a shared frozen backbone: one learns reference fidelity, the other reward optimality. Section 3.1 describes the few-step generation setting and the corresponding reward-tilted target. Section 3.2 defines the two classifier objectives and Section 3.3 gives the single utility the generator maximizes.
3.1 BACKGROUND
Setup of few-step generator. Let denote the parameters of a neural network few-step generator ; the frozen prompt embeddings and an image sample. We write time in the flow-matching convention, with data at . For a clean sample and noise , the interpolant at time and the generator's clean-data prediction are:
where is the velocity representation of the model output. Starting from Gaussian noise , the N-step stochastic sampler follows a timestep grid . At each step, the model predicts the clean endpoint and re-noises it to the next timestep:
where are independent Gaussian noise. The noising operator satisfies , so the final step adds no noise and returns . We write for the distribution of the sampler's output .
Goal: a reward-tilted reference distribution. We are given a black-box image reward and prompt-paired reference samples from a conditional distribution . Our goal is to train a few-step generator whose output distribution achieves high expected reward while remaining close to the reference distribution. For a fixed prompt , a standard formulation for KL-regularized RL training is:
where controls the strength of reference regularization relative to reward, is the optimal solution to Eq. (3), and is the normalizing constant. Indeed, , so minimizing is equivalent to fitting the reward-tilted target in reverse KL.
3.2 DUALHEADS
Since the KL term requires unavailable density ratios and the black-box reward can be non-differentiable, neither term in Eq. (3) is directly tractable. To address this, we propose to learn a classifier surrogate for each: a reference head and a reward head on a shared frozen backbone.
Two heads on one frozen backbone. A pretrained frozen network serves as a feature extractor for two lightweight heads with identical architecture: The reference head distinguishes reference images from online generator predictions. The reward head instead predicts how good a sample is based on some external evaluation score. Its target is a soft label , computed from the reward of the rollout endpoint. Both heads are trained with the same binary cross-entropy loss, . For brevity, we use for and likewise for .
The generator prediction is formed in two steps: a rollout endpoint , sampled using Eq. (2), is re-noised to a rollout grid timestep , yielding , and the generator is then applied in one differentiable step, yielding .
The reference head uses hard targets: 1 for noised reference images, 0 for noised generator predictions, and its training objective is (Goodfellow et al., 2014):
The reward head uses soft label targets y, which express reward preference relative to the other samples drawn for the same prompt; we take y as given here and show our construction of it at the end of this section. The loss is identical in form to Eq. (5) :
The label admits a probabilistic explanation: it defines a binary optimality variable through , where denotes that is optimal among the samples for its prompt (Levine, 2018). In both objectives, noises the head's input at time , drawn independently of the training example and of the used to form .
The optimal heads under binary cross-entropy loss read:
where and denote the noisy distributions of reference images and of generator predictions after noising by , and is the probability that the rollout endpoint noised into is optimal. For , the target is 1 on references and 0 on predictions, so its conditional mean at is the share of the density at contributed by references; the corresponding log-odds is the log density ratio. For , the target is itself, so . In practice, both heads only approximate these targets, limited by the frozen backbone features and by optimization error.
Optimality reward labels. Following DiffusionNFT (Zheng et al., 2026), we build from rewards normalized within each prompt group. For each prompt we draw a group of endpoints from the current generator, evaluate , and define
where and are the group mean and standard deviation, stabilizes the normalization, and controls the labels' sharpness. For the -th sample of , the optimality variable from above therefore satisfies . The labels average to when no advantage is clipped.
3.3 GENERATOR OBJECTIVE
With both heads fixed, we train the generator to maximize their weighted logits:
(9)
where , and is sampled as in head training. The expectation averages over prompts, generator predictions, and noising randomness. During each generator update, the head parameters and sampled rollout inputs remain fixed, while gradients propagate through the heads and frozen backbone to the prediction .
Pairwise preference data can be incorporated directly by assigning target 1 to the winner and 0 to the loser, yielding the same binary classification loss form as the reference head.
Algorithm 1 DualHeads
Require: prompts with paired reference images; frozen backbone ; generator ; heads ; reward ; , group size
1: For each prompt , run the sampler Eq. (2) times; score the endpoints with
2: Form soft labels from group-relative advantages Eq. (8)
3: Re-noise each to a grid time ; recompute
4: Update on with against , and on with and Eqs. (5) and (6)
5: Update by ascending through , heads fixed Eq. (9)
Reverse-KL interpretation. Given an optimal reference head, Eq. (9) reduces to a standard KL-regularized reward objective. Fix a prompt , a noise level and the reward head. Since in Eq. (7) is a log density ratio, , and substituting it into Eq. (9) gives
The first reference term penalizes the reverse KL to the reference distribution, while the second reward term favors large reward-head logits.
Connection to reward tilting. For , Eq. (10) is the standard KL-regularized objective (Schulman et al., 2017; Ziegler et al., 2019; Ouyang et al., 2022), whose minimizer is
which has the same form as Eq. (4), with in place of and in place of . The ratio of the head weights therefore sets the regularization strength. Note that Eq. (11) holds for the noised predictions at each , and that is fitted on samples from the current generator, so is a fixed point of training. For unclipped labels close to , , which gives the equivalent temperature on the scale of the normalized advantage in Eq. (8).
Training and inference. Training alternates between classifier and generator updates at each iteration (Algorithm 1). For each prompt in the batch, we sample K few-step rollouts and evaluate their black-box rewards. The resulting rewards are used to calculate the soft label and then supervise the reward head. The same rollouts are re-noised to intermediate generator timesteps and passed once through to obtain predictions ; the reference head is trained to distinguish these predictions from the prompt-paired reference images. After updating both heads, we freeze them and update the generator through the weighted classifier logits (Fig. 2). After training, we discard both heads; hence, at inference, we only use the fine-tuned few-step generator, at no extra inference cost.
4 EXPERIMENTS
4.1 EXPERIMENTAL SETUP
Models and rewards. We use SD3.5 Medium (SD3.5-M) and Z-Image as base models, trained at a resolution of . With SD3.5-M, we study two non-differentiable rewards, OCR and GenEval, trained separately, and one multi-reward setting, PickScore + CLIPScore + HPSv2.1. For Z-Image, we use HPSv3 as reward. The generators are initialized as few-step distilled diffusion models.
Prompt dataset. For OCR and GenEval, we use the corresponding training and test sets from Flow-GRPO. For all other rewards, we train on Pick-a-Pic (Kirstain et al., 2023) and evaluate on DrawBench (Saharia et al., 2022). Regardless of the training reward, we additionally evaluate every trained model on the OCR and GenEval test sets using their respective rewards.
Reference pools. For OCR and GenEval, we generate reference pools with the base model using training-set prompts and 20 steps of sampling. For OCR, we generate eight candidates for each of 5,000 prompts and retain the highest-scoring candidate for each prompt only if its OCR reward is at least 0.6. For GenEval, we construct a separate pool using 10,000 rows sampled from the GenEval
Table 1: Comparison on compositional image generation (GenEval), visual text rendering (OCR), and human preference metrics. Image quality and preference scores are computed on DrawBench (Saharia et al., 2022) prompts. Baseline numbers are from Flow-GRPO (Liu et al., 2025) where reported, and from our reimplementation otherwise. Abbreviations: Aes. (Aesthetics), ImgRwd (ImageReward), Pick (PickScore), CLIP (CLIPScore), HPS (HPSv2.1). NFE: number of function evaluations. Few-step RL baselines are quoted from their papers; RTDMD reports only GenEval for its GenEval-only run.
| Method | NFE | GenEval↑ | OCR↑ | Aes.↑ | ImgRwd↑ | Pick↑ | CLIP↑ | HPS↑ | |
|---|---|---|---|---|---|---|---|---|---|
| Task Metric | Held-out Metric | ||||||||
| SD3.5-M (base) | 80 | 0.63 | 0.59 | 5.39 | 0.87 | 22.34 | 27.99 | 0.279 | |
| SD3.5-M TDM (Luo et al., 2025) | 4 | 0.62 | 0.51 | 5.58 | 0.86 | 22.14 | 27.18 | 0.290 | |
| Compositional image generation | |||||||||
| Multi-step RL | Flow-GRPO (Liu et al., 2025) w/o KL | 80 | 0.95 | — | 4.93 | 0.44 | 21.16 | — | — |
| Flow-GRPO (Liu et al., 2025) w/ KL | 80 | 0.95 | — | 5.25 | 1.03 | 22.37 | 29.25 | 0.274 | |
| AWM (Xue et al., 2026) w/ CFG | 80 | 0.86 | — | 5.25 | 1.06 | 22.12 | 28.86 | 0.278 | |
| AWM (Xue et al., 2026) w/o CFG | 40 | 0.91 | — | 5.10 | 0.39 | 21.76 | 26.99 | 0.235 | |
| DiffusionNFT (Zheng et al., 2026) | 40 | 0.92 | — | 5.30 | 0.63 | 22.07 | 27.25 | 0.253 | |
| CRD (Zhu et al., 2026) | 40 | 0.93 | — | 5.44 | 0.98 | 22.48 | 28.44 | 0.284 | |
| RSM (Lee et al., 2026) | 40 | 0.97 | — | — | — | 22.28 | 31.60 | — | |
| Few-step RL | TDM-R1 (Luo et al., 2026a) | 4 | 0.92 | — | 5.42 | 1.11 | 22.39 | — | — |
| RTDMD (Huang et al., 2026a) | 4 | 0.94 | — | — | — | — | — | — | |
| REST (Li et al., 2026b)‡ | 8 | 0.94 | — | 5.67 | 1.05 | 22.79 | — | 0.300 | |
| DualHeads | 2 | 0.89 | — | 5.53 | 1.01 | 22.42 | 28.56 | 0.281 | |
| DualHeads | 4 | 0.90 | — | 5.50 | 1.01 | 22.45 | 28.51 | 0.285 | |
| Visual text rendering | |||||||||
| Multi-step RL | Flow-GRPO (Liu et al., 2025) w/o KL | 80 | — | 0.93 | 5.13 | 0.58 | 21.79 | — | — |
| Flow-GRPO (Liu et al., 2025) w/ KL | 80 | — | 0.92 | 5.32 | 0.95 | 22.44 | 28.86 | 0.282 | |
| AWM (Xue et al., 2026) w/ CFG | 80 | — | 0.96 | 5.35 | 0.96 | 22.36 | 28.70 | 0.283 | |
| AWM (Xue et al., 2026) w/o CFG | 40 | — | 0.97 | 5.22 | -0.64 | 20.82 | 24.54 | 0.203 | |
| DiffusionNFT (Zheng et al., 2026) | 40 | — | 0.97 | 4.89 | -0.81 | 20.53 | 24.08 | 0.196 | |
| CRD (Zhu et al., 2026) | 40 | — | 0.92 | 5.33 | 0.87 | 22.40 | 28.48 | 0.281 | |
| Few-step RL | TDM-R1 (Luo et al., 2026a) | 4 | — | 0.95 | 5.45 | 1.09 | 22.62 | — | — |
| DMSampler (Liu et al., 2026) | 4 | — | 0.83 | — | — | — | — | — | |
| REST (Li et al., 2026b)‡ | 8 | — | 0.96 | 5.65 | 1.00 | 22.83 | — | 0.300 | |
| DualHeads | 2 | — | 0.91 | 5.41 | 1.06 | 22.50 | 29.06 | 0.293 | |
| DualHeads | 4 | — | 0.92 | 5.46 | 1.10 | 22.65 | 28.75 | 0.300 | |
| DualHeads + Nano Banana pool | 4 | — | 0.92 | 5.62 | 1.08 | 22.59 | 26.86 | 0.298 | |
REST is trained jointly on the task reward and PickScore.
training set. For all other rewards, we use the existing Pick-a-Pic images as the reference pool. Alternatively, an external model can generate the reference pool from the same training prompts: we use Nano Banana, Google's proprietary image-generation model (Google DeepMind, 2026).
Training and evaluation. Following prior work, we fine-tune the student generator using LoRA (Hu et al., 2022) with rank 32 and . Each epoch consists of 48 prompt groups, with group size for the main results and for all ablations. By default, the reward head is warmed up on samples from the reference distribution with scores from the reward, so that the generator does not receive noisy gradients early in training. This warm-up uses 1000 steps, a very small training budget compared with a full run (Section 4.3). Both training and evaluation use four sampling steps, unless stated otherwise, with the LCM sampler (Luo et al., 2023) and no classifier-free guidance (CFG scale 1). We also evaluate the trained models using Aesthetic and ImageReward on the same evaluation set. Details in Section B.
4.2 TASK PERFORMANCE
Text rendering. With four steps, DualHeads raises OCR accuracy from 0.59 to 0.92 (0.91 with two), on par with Flow-GRPO with KL and CRD (Table 1). AWM without CFG and DiffusionNFT reach 0.97 but lose image quality (negative ImageReward; HPS 0.20 vs. 0.279 for the base model). DualHeads instead improves all quality and preference scores over the base model, with the highest ImageReward (1.10) and HPS (0.300, tied with REST) among OCR-trained models. Among few-step methods, only TDM-R1 (0.95) and REST (0.96) score higher, using the teacher's score and 8 NFE with an extra PickScore reward, respectively.

Figure 3: Qualitative comparison on OCR and GenEval test prompts. DualHeads + NB signifies training with the Nano Banana image pool.
Table 2: Reinforcing Z-Image (Z-Image Team et al., 2025) with HPSv3 (Ma et al., 2025) as the training reward (*). Z-Image-Turbo and TDM-R1 (Luo et al., 2026a) are evaluated at , except the entries marked , which are reported in Table 3 of TDM-R1 (at , with Z-Image-Turbo at 4 NFE); the DualHeads rows are EMA weights of one run (reward weight 25) after 120 training iterations, sampled with two and four steps. NFE: number of function evaluations; GenEval: official overall accuracy; OCR: mean OCR score; ImgRwd: ImageReward; CLIP: CLIPScore. The best entry per column is in bold; shaded rows denote our method.
| Model | Verifiable metrics | Model-based metrics | |||||||
|---|---|---|---|---|---|---|---|---|---|
| NFE | GenEval↑ | OCR↑ | HPSv3* ↑ | Aes.↑ | ImgRwd↑ | Pick↑ | CLIP↑ | HPSv2.1↑ | |
| Z-Image (base; Z-Image Team et al., 2025) | 100 | 9.93 | 5.36 | 0.92 | 22.39 | 28.47 | 0.285 | ||
| Z-Image-Turbo (DMDR; Jiang et al., 2026) | 4 | 11.23 | 5.42 | 0.96 | 22.86 | 27.42 | 0.296 | ||
| TDM-R1 (Luo et al., 2026a) | 4 | 12.67 | 5.39 | 1.16 | 22.82 | 28.52 | 0.307 | ||
| DualHeads | 2 | 0.76 | 0.64 | 12.91 | 5.27 | 1.10 | 22.77 | 27.31 | 0.307 |
| DualHeads | 4 | 0.74 | 0.75 | 13.93 | 5.36 | 1.07 | 23.03 | 27.12 | 0.314 |
Compositional generation. On GenEval, DualHeads raises the overall score from 0.63 to 0.90, within the range of multi-step methods (0.86–0.97) and slightly below the few-step baselines (0.92–0.94), which again use the teacher's score or 8 NFE. Position (0.24 → 0.90) and counting (0.50 → 0.91) gain the most; attribute binding remains the weakest (0.76; Table 5 in Section C.2). DualHeads again improves all quality and preference scores over the base model, whereas Flow-GRPO without KL, AWM without CFG and DiffusionNFT lower ImageReward (0.39–0.63) and PickScore.
Qualitative comparison. In Fig. 3, DualHeads renders all five OCR texts correctly and blends them into the scene (neon signs, a trail sign, a mural, an envelope). MeanFlowNFT prints the text on flat black plates and misspells “Upgrades Available”, RTDMD mirrors or misspells words (“Propety”, “Reading”), and TDM-R1 adds a word (“Clup”). On GenEval, the baselines draw isolated objects on plain backgrounds (RSM also misses the TV), while DualHeads often places them in context, e.g., a ski in snow or a zebra beside a bed. The Nano Banana pool makes samples more photographic; it keeps OCR at 0.92 but lowers GenEval to 0.73 (Section 4.3).
Model-based reward on image quality. On Z-Image-Turbo with HPSv3 as the reward (Table 2), four-step DualHeads raises HPSv3 from 11.23 to 13.93, above TDM-R1 (12.67) and the 100-NFE base model (9.93). The gain carries over to held-out preference models, with the best PickScore (23.03) and HPSv2.1 (0.314) and a higher ImageReward (0.96 → 1.07), while GenEval and OCR stay close to Z-Image-Turbo. Aesthetic and CLIPScore drop slightly, and TDM-R1 keeps a higher ImageReward and CLIPScore (samples in Fig. 8). With a PickScore + CLIPScore + HPSv2.1 reward on SD3.5-M, DualHeads improves all five metrics over the base model but trails MeanFlowNFT and RTDMD on most (Table 4 in Section C.1).

(a) sweep, warmed-up reward head.
(b) Warmed-up vs. fresh reward head.
Figure 4: Ablations on OCR. Evaluation OCR score during training, (a) for several values of with a warmed-up reward head, and (b) for a warmed-up versus a freshly initialized reward head.
4.3 ABLATIONS
Reward strength: Sensitivity to . Since with fixed, sweeping is exactly sweeping the reward-to-reference weight ratio, smaller meaning a more reward-weighted objective. OCR reward improves monotonically as falls (Fig. 4a): over the final four checkpoints, 0.907 at , 0.888 at 0.25 and 0.862 at 1, against a confidence interval. The ratio being the right parameter is confirmed by the two runs, which halve the absolute weights from to and still agree to 0.015 across all sixteen checkpoints. We see no collapse even at , so the optimum may lie lower still.
Warming up the reward head buys speed, not quality. At two points of the sweep we initialize the reward head either from the warmed-up head used by default (Section 4.1) or from scratch, holding everything else fixed (Fig. 4b). A fresh head starts far behind: 0.497 and 0.459 below its warmed-up twin at the first checkpoint, as the generator receives noisy scoring signals before the reward head is well-trained. It recovers by step 3000, some 8 of the 20 wall-clock hours per run, and converges to within 0.003 and 0.004 of the warmed-up runs, far inside the 0.029 and 0.038 intervals. As this holds at both weight settings, the reward head warm-up only speeds up training, at a very small cost, and does not change the final result.
Choice of data source for the reference pool. For the same training prompts, we compare a base-model pool, sampled from the base model, with a Nano Banana pool generated through its API. The two differ well beyond their scores: base-model samples keep SD3.5-M's flat lighting, sparse layouts and misspelled words, whereas Nano Banana images are photographic, correctly lettered and set in fuller scenes. On OCR, the generator adopts the pool's style without losing the text (last two rows of Fig. 3; more samples in Fig. 7): OCR stays at 0.92 (Table 1), the aesthetic score rises from 5.46 to 5.62, ImageReward, PickScore and HPS barely change, and CLIPScore drops from 28.75 to 26.86. GenEval, however, falls from 0.90 to 0.73, showing that the pool can also affect compositional accuracy. The two heads thus largely divide the work: the reward head governs what the reward measures, and the reference head governs everything the reward leaves unspecified, which is set by the reference pool.
5 CONCLUSION
We presented DualHeads, a simple method for adapting few-step diffusion generators using only external reward evaluations and reference samples. It turns KL-regularized reward maximization into two binary classification problems, solved by lightweight heads on a frozen diffusion backbone. With four steps, it reaches OCR and GenEval scores of 0.92 and 0.90, comparable to RL methods with 40–80 NFE, while improving all quality and preference scores over the base model, and gives the best HPSv3 on Z-Image-Turbo. The two heads divide the work: the reward head sets what the reward measures, and the reference pool largely sets the rest, such as style. Section A discusses limitations and future directions.
AI USE STATEMENT
Generative AI tools were used in several parts of this work: to help structure the paper and draft and edit its text and equations, to search and summarize related literature, to inspect implementation and experiment records, and to suggest experimental controls and interpretations of results. The authors reviewed all of this material before using it; in particular, citations and literature summaries were checked against the original papers, and all reported numbers were checked against the experiment logs. The authors take responsibility for the final content of this work, including text, claims, and artifacts produced with the aid of generative AI.
REPRODUCIBILITY STATEMENT
Section 3 specifies the method, and Algorithm 1 summarizes one training iteration. Section 4.1 describes the base models, rewards, prompt sets, reference pools, and evaluation protocol, and Section B gives the training cycle, head architecture, update schedule, and hyperparameters. The base models, prompt sets, and reward models we use are publicly available, and we will release the code, configuration files, and reference pools upon publication.
ACKNOWLEDGMENTS
This work was supported by Hi! Paris (grant and fellowship), the ANR/France 2030 program (ANR-23-IACL-0005), ANR JCJC “REEL-WORLD”, and a Google DeepMind academic gift. Computing resources were provided by GENCI through access to the IDRIS HPC facilities under allocations 2026-AD011014300R3, 2025-A0190616899, 2026-AD011015894R1, and by Google Gemini. The authors would especially like to thank Julie Mordacq and David Loiseau for their help.
REFERENCES
Andreas Bergmeister, Stefanie Jegelka, Nikolas Nüsken, Carles Domingo-Enrich, and Jakiw Pidstrigach. Reinforce adjoint matching: Scaling RL post-training of diffusion and flow-matching models. arXiv preprint arXiv:2605.10759, 2026.
Kevin Black, Michael Janner, Yilun Du, Ilya Kostrikov, and Sergey Levine. Training diffusion models with reinforcement learning. In ICLR, 2024.
Black Forest Labs. Flux. https://bfl.ai/blog/24-08-01-bfl, August 2024.
Guanjie Chen, Shirui Huang, Yifu Sun, Kai Liu, Jianchen Zhu, Xiaoye Qu, Yu Cheng, and Peng Chen. Flash-DMD: Towards high-fidelity few-step image generation with efficient distillation and joint reinforcement learning. In CVPR, 2026.
Bowen Cheng, Ishan Misra, Alexander G. Schwing, Alexander Kirillov, and Rohit Girdhar. Masked-attention mask transformer for universal image segmentation. In CVPR, 2022.
Jiaxiang Cheng, Bing Ma, Xuhua Ren, Kai Yu, Peng Zhang, Tianxiang Zheng, and Qinglin Lu. Reward lightning: Fast video generation via homologous preference distillation. In ECCV, 2026.
Jaemoo Choi, Wei Guo, Yuchen Zhu, Arash Vahdat, Molei Tao, Julius Berner, and Yongxin Chen. Scaling reinforcement learning for diffusion models via velocity matching. arXiv preprint arXiv:2608.23664, 2026a.
Jaemoo Choi, Yuchen Zhu, Wei Guo, Petr Molodyk, Bo Yuan, Jinbin Bai, Yi Xin, Molei Tao, and Yongxin Chen. Rethinking the design space of reinforcement learning for diffusion models: On the importance of likelihood estimation beyond loss design. In ICML, 2026b.
Kevin Clark, Paul Vicol, Kevin Swersky, and David Fleet. Directly fine-tuning diffusion models on differentiable rewards. In ICLR, 2024.
Cheng Cui, Ting Sun, Manhui Lin, Tingquan Gao, Yubo Zhang, Jiaxuan Liu, Xueqing Wang, Zelun Zhang, Changda Zhou, Hongen Liu, et al. PaddleOCR 3.0 technical report. arXiv preprint arXiv:2507.05595, 2025.
Linwei Dong, Ruoyu Guo, Ge Bai, Zehuan Yuan, Yawei Luo, and Changqing Zou. Guiding distribution matching distillation with gradient-based reinforcement learning. arXiv preprint arXiv:2604.19009, 2026.
Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, et al. Scaling rectified flow transformers for high-resolution image synthesis. In ICML, 2024.
Linqian Fan, Peiqin Sun, Tiancheng Wen, Shun Lu, and Chengru Song. : Re-conceptualizing distribution matching as a reward for diffusion distillation. In ECCV, 2026.
Ying Fan, Olivia Watkins, Yuqing Du, Hao Liu, Moonkyung Ryu, Craig Boutilier, Pieter Abbeel, Mohammad Ghavamzadeh, Kangwook Lee, and Kimin Lee. DPOK: Reinforcement learning for fine-tuning text-to-image diffusion models. In NeurIPS, 2023.
Zhen Fang, Wenxuan Huang, Yu Zeng, Yiming Zhao, Shuang Chen, Kaituo Feng, Yunlong Lin, Lin Chen, Zehui Chen, Shaosheng Cao, et al. Flow-OPD: On-policy distillation for flow matching models. arXiv preprint arXiv:2605.08063, 2026.
Dhruba Ghosh, Hannaneh Hajishirzi, and Ludwig Schmidt. GenEval: An object-focused framework for evaluating text-to-image alignment. In NeurIPS, 2023.
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, 2014.
Google DeepMind. Gemini 3.1 Flash Image model card. https://deepmind.google/models/model-cards/gemini-3-1-flash-image/, 2026.
Jack Hessel, Ari Holtzman, Maxwell Forbes, Ronan Le Bras, and Yejin Choi. CLIPScore: A reference-free evaluation metric for image captioning. In EMNLP, 2021.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In NeurIPS, 2020.
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In ICLR, 2022.
Xun Huang, Zhengqi Li, Guande He, Mingyuan Zhou, and Eli Shechtman. Self forcing: Bridging the train-test gap in autoregressive video diffusion. In NeurIPS, 2025.
Yushi Huang, Xiangxin Zhou, Ruoyu Wang, Chi Zhang, Jun Zhang, and Tianyu Pang. Reinforcing few-step generators via reward-tilted distribution matching. arXiv preprint arXiv:2605.26108, 2026a.
Yushi Huang, Xiangxin Zhou, Jun Zhang, Liefeng Bo, and Tianyu Pang. MeanFlowNFT: Bringing forward-process RL to average-velocity generators. arXiv preprint arXiv:2607.15273, 2026b.
Dengyang Jiang, Dongyang Liu, Zanyi Wang, Qilong Wu, Liuzhuozheng Li, Hengzhuang Li, Xin Jin, Changsheng Lu, Zhen Li, Mengmeng Wang, et al. Distribution matching distillation meets reinforcement learning. In ECCV, 2026.
Yuval Kirstain, Adam Polyak, Uriel Singer, Shahbuland Matiana, Joe Penna, and Omer Levy. Pick-a-Pic: An open dataset of user preferences for text-to-image generation. In NeurIPS, 2023.
Jeongjae Lee, Jinho Chang, Jeongsol Kim, and Jong Chul Ye. Reward score matching: Unifying reward-based fine-tuning for flow and diffusion models. arXiv preprint arXiv:2604.17415, 2026.
Kimin Lee, Hao Liu, Moonkyung Ryu, Olivia Watkins, Yuqing Du, Craig Boutilier, Pieter Abbeel, Mohammad Ghavamzadeh, and Shixiang Shane Gu. Aligning text-to-image models using human feedback. arXiv preprint arXiv:2302.12192, 2023.
Sergey Levine. Reinforcement learning and control as probabilistic inference: Tutorial and review. arXiv preprint arXiv:1805.00909, 2018.
Quanhao Li, Junqiu Yu, Kaixun Jiang, Yujie Wei, Zhen Xing, Pandeng Li, Ruihang Chu, Shiwei Zhang, Yu Liu, and Zuxuan Wu. DiffusionOPD: A unified perspective of on-policy distillation in diffusion models. arXiv preprint arXiv:2605.15055, 2026a.
Yuhan Li, Fangao Zeng, Sicong Kang, Mengfei Xu, Hao Zhou, Wenxiang Shang, Wei Li, Pipei Huang, Bo Zheng, and Bingbing Ni. RL-native distillation: Exploiting scored trajectories for few-step image generation. arXiv preprint arXiv:2608.09226, 2026b.
Zhiqi Li, Wen Zhang, and Bo Zhu. Flow-Map GRPO: Reinforcement learning for few-step flow-map generators via anchored stochastic composition. arXiv preprint arXiv:2607.00535, 2026c.
Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. In ICLR, 2023.
Jie Liu, Gongye Liu, Jiajun Liang, Yangguang Li, Jiaheng Liu, Xintao Wang, Pengfei Wan, Di Zhang, and Wanli Ouyang. Flow-GRPO: Training flow matching models via online RL. In NeurIPS, 2025.
Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In ICLR, 2023.
Zunxu Liu, Aiqiu Wu, Zhaofan Qiu, Yingwei Pan, Ting Yao, and Tao Mei. Distillation models are good samplers for diffusion reinforcement learning. In ICML, 2026.
Simian Luo, Yiqin Tan, Longbo Huang, Jian Li, and Hang Zhao. Latent consistency models: Synthesizing high-resolution images with few-step inference. arXiv preprint arXiv:2310.04378, 2023.
Weijian Luo. Diff-Instruct++: Training one-step text-to-image generator model to align with human preferences. Transactions on Machine Learning Research, 2025.
Yihong Luo, Tianyang Hu, Jiacheng Sun, Yujun Cai, and Jing Tang. Learning few-step diffusion models by trajectory distribution matching. In ICCV, 2025.
Yihong Luo, Tianyang Hu, Weijian Luo, and Jing Tang. TDM-R1: Reinforcing few-step diffusion models with non-differentiable reward. arXiv preprint arXiv:2603.07700, 2026a.
Yihong Luo, Tianyang Hu, and Jing Tang. Reinforcing diffusion models by direct group preference optimization. In ICLR, 2026b.
Yuhang Ma, Xiaoshi Wu, Keqiang Sun, and Hongsheng Li. HPSv3: Towards wide-spectrum human preference score. In ICCV, 2025.
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. In NeurIPS, 2022.
Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas Müller, Joe Penna, and Robin Rombach. SDXL: Improving latent diffusion models for high-resolution image synthesis. In ICLR, 2024.
Mihir Prabhudesai, Anirudh Goyal, Deepak Pathak, and Katerina Fragkiadaki. Aligning text-to-image diffusion models with reward backpropagation. arXiv preprint arXiv:2310.03739, 2023.
Mihir Prabhudesai, Russell Mendonca, Zheyang Qin, Katerina Fragkiadaki, and Deepak Pathak. Video diffusion alignment via reward gradients. arXiv preprint arXiv:2407.08737, 2024.
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In ICML, 2021.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In CVPR, 2022.
Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily L Denton, Kamyar Ghasemipour, Raphael Gontijo Lopes, Burcu Karagol Ayan, Tim Salimans, et al. Photorealistic text-to-image diffusion models with deep language understanding. In NeurIPS, 2022.
Tim Salimans and Jonathan Ho. Progressive distillation for fast sampling of diffusion models. In ICLR, 2022.
Axel Sauer, Frederic Boesel, Tim Dockhorn, Andreas Blattmann, Patrick Esser, and Robin Rombach. Fast high-resolution image synthesis with latent adversarial diffusion distillation. In SIGGRAPH Asia, 2024a.
Axel Sauer, Dominik Lorenz, Andreas Blattmann, and Robin Rombach. Adversarial diffusion distillation. In ECCV, 2024b.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In ICLR, 2021.
Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever. Consistency models. In ICML, 2023.
Xu Wang, Zexian Li, Litong Gong, Tiezheng Ge, and Zhijie Deng. AdvDMD: Adversarial reward meets DMD for high-quality few-step generation. arXiv preprint arXiv:2604.28126, 2026.
Xiaoshi Wu, Yiming Hao, Keqiang Sun, Yixiong Chen, Feng Zhu, Rui Zhao, and Hongsheng Li. Human preference score v2: A solid benchmark for evaluating human preferences of text-to-image synthesis. arXiv preprint arXiv:2306.09341, 2023.
Jiazheng Xu, Xiao Liu, Yuchen Wu, Yuxuan Tong, Qinkai Li, Ming Ding, Jie Tang, and Yuxiao Dong. ImageReward: Learning and evaluating human preferences for text-to-image generation. In NeurIPS, 2023.
Shuchen Xue, Chongjian Ge, Shilong Zhang, Yichen Li, and Zhi-Ming Ma. Advantage weighted matching: Aligning RL with pretraining in diffusion models. In ICML, 2026.
Zeyue Xue, Jie Wu, Yu Gao, Fangyuan Kong, Lingting Zhu, Mengzhao Chen, Zhiheng Liu, Wei Liu, Qiushan Guo, Weilin Huang, et al. DanceGRPO: Unleashing GRPO on visual generation. arXiv preprint arXiv:2505.07818, 2025.
Tianwei Yin, Michaël Gharbi, Taesung Park, Richard Zhang, Eli Shechtman, Fredo Durand, and William T Freeman. Improved distribution matching distillation for fast image synthesis. In NeurIPS, 2024a.
Tianwei Yin, Michaël Gharbi, Richard Zhang, Eli Shechtman, Fredo Durand, William T Freeman, and Taesung Park. One-step diffusion with distribution matching distillation. In CVPR, 2024b.
Tianwei Yin, Qiang Zhang, Richard Zhang, William T Freeman, Fredo Durand, Eli Shechtman, and Xun Huang. From slow bidirectional to fast autoregressive video diffusion models. In CVPR, 2025.
Z-Image Team, Huanqia Cai, Sihan Cao, Ruoyi Du, Peng Gao, Aiming Hao, Steven Hoi, Zhaohui Hou, Shijie Huang, Dengyang Jiang, Yuming Jiang, Xin Jin, Liangchen Li, Zhen Li, Zhong-Yu Li, David Liu, Dongyang Liu, Qilong Wu, Feng Yu, Zechao Zhan, Chi Zhang, Shifeng Zhang, Ruikai Zhou, and Shilin Zhou. Z-Image: An efficient image generation foundation model with single-stream diffusion transformer. arXiv preprint arXiv:2511.22699, 2025.
Shiyi Zhang, Mushui Liu, Yunze Tong, Wanggui He, Siyu Zou, Jinlong Liu, Yunlong Yu, Jian Song, Hao Jiang, Pipei Huang, et al. Self-OPD: On-policy distillation for flow matching models without teacher. arXiv preprint arXiv:2608.26872, 2026.
Kaiwen Zheng, Huayu Chen, Haotian Ye, Haoxiang Wang, Qinsheng Zhang, Kai Jiang, Hang Su, Stefano Ermon, Jun Zhu, and Ming-Yu Liu. DiffusionNFT: Online diffusion reinforcement with forward process. In ICLR, 2026.
Mingyuan Zhou, Huangjie Zheng, Zhendong Wang, Mingzhang Yin, and Hai Huang. Score identity distillation: Exponentially fast distillation of pretrained diffusion models for one-step generation. In ICML, 2024.
Yuanzhi Zhu, Xi Wang, Stéphane Lathuilière, and Vicky Kalogeiton. Diffusion reinforcement learning via centered reward distillation. arXiv preprint arXiv:2603.14128, 2026.
Daniel M Ziegler, Nisan Stiennon, Jeffrey Wu, Tom B Brown, Alec Radford, Dario Amodei, Paul Christiano, and Geoffrey Irving. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593, 2019.
Appendix for DualHeads
This appendix is organized as follows:
• Section A: Limitations and future work.
• Section B: Experimental details.
• Section C: Additional results and visualizations.
A LIMITATIONS AND FUTURE WORK
We see three main limitations. Idealized analysis. Our analysis in Section 3.3 assumes optimal heads and a fixed reward head. In practice, the heads are only approximately optimal, and the reward head is refit on samples from the current generator, so the target moves during training. We also have no convergence guarantee for the alternating updates. Learned reward. The generator is trained against the reward head, not the reward itself, so it inherits both the errors of the head and the flaws of the external reward. The reference head keeps samples close to the reference pool, but it cannot tell when the generator is exploiting the reward. Reference pool. Fidelity is measured against the pool, so the generator also picks up properties that the reward ignores, such as style and composition (Section 4.3).
Several directions remain open. A convergence analysis of the alternating updates would put the method on firmer ground. The reward head also deserves a wider study, covering its architecture design, its backbone features analysis, the noise levels it sees, and so on. Richer reference pools, with several references per prompt or with real images, are another natural extension. Practically, DualHeads could be applied during distillation, at higher resolutions, and to few-step video generators.
B EXPERIMENTAL DETAILS
This section describes one training cycle, the head architecture, the update schedule, the rewards, and the reference pools; Section 4.1 lists the base models and prompt sets. Values in the text are those of the SD3.5-M OCR configuration; Table 3 lists the configuration for each reward. We use the EMA model for inference across the experiments. The ablations use one NVIDIA H100 GPU and the main runs use four.
B.1 TRAINING CYCLE
Scored rollout endpoints. For each prompt the generator runs the sampler Eq. (2) without gradient, with steps on the shifted time grid . The endpoints are decoded, scored with the reward , and assigned the labels of Eq. (8) with . The reward head is trained on re-noised to noise level , that is, , with the image-level label repeated over the patch map.
Selected reference images. Each prompt is paired with at most one reference latent from the pool (Section 4.1), repeated for every sample in its group. The reference image is the positive example of the reference head and is re-noised over the same range .
Recomputed generator predictions. An endpoint is re-noised to one rollout grid timestep , drawn once per group, giving , and a single generator evaluation gives . A no-gradient copy of , re-noised to , is the negative example of the reference head. The gradient copy, re-noised to an independent , is scored by both heads to form the utility , and the generator update is the pathwise gradient of through this single evaluation.
B.2 HEADS DETAILS
For SD3.5-M, for example, both heads read the hidden states of four blocks, with zero-based indices , of the frozen teacher transformer, reshaped to the latent-patch grid at
Table 3: Training configuration of the main runs for each reward.
| OCR | GenEval | Multi-reward | HPSv3 | ||
|---|---|---|---|---|---|
| Model | Base modelLoRA rank / | SD3.5-M | SD3.5-M | SD3.5-M32 / 64 | Z-Image |
| Sampling | ResolutionSampler; steps; CFGTime grid | LCM; 4; 1 | |||
| Rollouts | Group size Prompt groups per epochLabel sharpness Head noise level | 2.5 | 2.5 | 2448 | 2.5 |
| Reference pool | Source | 5k OCR rows | 10k GenEval rows | Pick-a-Pic images | Pick-a-Pic images |
| Heads | Levels; widthsParameters (both heads) | {6, 12, 18, 22}; 92.5M | 208.3M | ||
| Optimization | GeneratorHeadsEMA decay | AdamW, lr , , weight decay , grad. clip 1AdamW, lr , , weight decay , no grad. clip | |||
| Utility | (1,10) | (1,50) | (1,25) | (1,25) | |
| Precision | BF16 autocast; FP32 parameters, optimizer states, and VAE | ||||
resolution. Each level has its own convolutional head: convolutions of widths with GroupNorm and FiLM modulation (Sauer et al., 2024a) for conditions , followed by a zero-initialized output projection. The level logits are summed,
and analogously for , where is the feature map of block . The reward head is an independent copy of the reference head's architecture with its own optimizer. Each head outputs a map of patch logits; both BCE losses and the utility average over patches.
B.3 OPTIMIZATION AND HYPERPARAMETERS
Table 3 lists the training configuration for each reward. The generator keeps an EMA ; training rollouts use the raw weights. The utility weights are set through (Section 3.3), which Section 4.3 sweeps, for instance with and .
B.4 REWARDS
OCR. Text is recognized with PaddleOCR (Cui et al., 2025). The target string is the first double-quoted span of the prompt; prompts without a non-empty target are excluded before scoring. Recognized segments with positive confidence are concatenated, in the order returned by the OCR engine, into a string . Both strings are lowercased and ASCII spaces are removed; other whitespace, punctuation, and Unicode forms are left unchanged. The reward is
where is the Levenshtein distance and the target length; recognition failures receive zero. The reward therefore tolerates extra text and ignores case and spacing.
GenEval. The generator is trained on the GenEval training prompts from Flow-GRPO, with a reference pool of 10,000 rows sampled from the GenEval training set (Section 4.1). We score images with the GenEval evaluator (Ghosh et al., 2023), as implemented in the Flow-GRPO reward server (Liu et al., 2025): Mask2Former (Cheng et al., 2022) (Swin-S, trained on COCO) detects objects with confidence above 0.3 (0.9 for counting), CLIP ViT-L/14 (Radford et al., 2021) classifies their colors, and relative positions are read from box centroids. A requested object with count and detections earns the credit and, only if , a further credit for its color or position. The dense training reward is the mean of these credits, while the strict score is 1 only if every requirement is met exactly. Tables 1 and 5 report the official GenEval accuracy, averaged over its six task categories.
Table 4: Comparison on multi-reward training with PickScore, CLIPScore and HPSv2.1 as training rewards (*). Image quality and preference scores are computed on DrawBench (Saharia et al., 2022) prompts. Rows marked are quoted from Table 1 of MeanFlowNFT (Huang et al., 2026b), and the row marked from Choi et al. (2026b); the other rows are our evaluations. Abbreviations: Aes. (Aesthetics), ImgRwd (ImageReward), Pick (PickScore), CLIP (CLIPScore), HPS (HPSv2.1).
| Method | NFE | Aes.↑ | ImgRwd↑ | Pick* ↑ | CLIP* ↑ | HPS* ↑ | |
|---|---|---|---|---|---|---|---|
| SD3.5-M (base) | 80 | 5.39 | 0.87 | 22.34 | 27.99 | 0.279 | |
| Multi-step | SD3.5-M w/o CFG | 80 | 5.15 | -0.48 | 20.66 | 23.91 | 0.211 |
| SD3.5-M w/ CFG | 80 | 5.38 | 0.93 | 22.46 | 28.80 | 0.282 | |
| Flow-GRPO (Liu et al., 2025) w/ CFG | 80 | 5.28 | 1.02 | 22.48 | 29.12 | 0.266 | |
| DiffusionNFT (Zheng et al., 2026) w/o CFG | 40 | 5.96 | 1.41 | 23.64 | 28.89 | 0.324 | |
| Choi et al. (2026b) | 40 | 6.06 | 1.45 | 23.68 | 29.60 | 0.325 | |
| CRD (Zhu et al., 2026) | 40 | 5.70 | 1.35 | 23.27 | 29.63 | 0.321 | |
| Few-step | DMD (Yin et al., 2024b) | 4 | 5.51 | 0.92 | 22.28 | 28.41 | 0.287 |
| RTDMD (Huang et al., 2026a) | 4 | 6.13 | 1.23 | 23.28 | 27.75 | 0.327 | |
| (Fan et al., 2026) | 4 | 5.75 | 0.72 | 22.07 | 27.20 | 0.276 | |
| DMD + DiffusionNFT | 4 | 5.38 | 0.72 | 21.96 | 28.43 | 0.271 | |
| CDM + DiffusionNFT | 4 | 4.83 | 0.15 | 21.38 | 27.45 | 0.214 | |
| AnyFlow + DiffusionNFT | 4 | 5.95 | 1.24 | 23.09 | 29.15 | 0.292 | |
| MeanFlowNFT (Huang et al., 2026b) | 4 | 5.93 | 1.45 | 23.50 | 29.67 | 0.327 | |
| DualHeads | 4 | 5.74 | 1.22 | 22.76 | 28.18 | 0.320 | |
Multi-reward (PickScore + CLIPScore + HPSv2.1). The generator is trained on Pick-a-Pic prompts, with the existing Pick-a-Pic images as the reference pool (Section 4.1). The three scores are PickScore (Kirstain et al., 2023) (the PickScore_v1 checkpoint, on a CLIP ViT-H/14 backbone), CLIPScore (Hessel et al., 2021) with OpenAI CLIP ViT-L/14 (Radford et al., 2021), and HPSv2.1 (Wu et al., 2023) (on a CLIP ViT-H/14 backbone). Following DiffusionNFT (Zheng et al., 2026), the training reward is the sum of the three scores with equal weights, and the labels of Eq. (8) are computed from this sum.
HPSv3 (Z-Image). The generator is initialized from Z-Image-Turbo (Jiang et al., 2026), the few-step distilled version of Z-Image (Z-Image Team et al., 2025), and fine-tuned with the same LoRA configuration as SD3.5-M (Section 4.1). The reward is HPSv3 (Ma et al., 2025), with the released checkpoint built on Qwen2-VL. As in the multi-reward setting, we train on Pick-a-Pic prompts with the Pick-a-Pic images as the reference pool, and evaluate on DrawBench prompts. The reward weight is , and Table 2 reports EMA weights after 120 training iterations, sampled with two and four steps; all other settings follow Table 3.
C ADDITIONAL RESULTS
C.1 MULTI-REWARD TRAINING
We train SD3.5-M jointly on PickScore, CLIPScore and HPSv2.1 with Pick-a-Pic prompts, using the Pick-a-Pic images as the reference pool (Section 4.1), and evaluate on DrawBench prompts; Table 4 reports the results.
C.2 PER-CATEGORY GENEVAL RESULTS
Table 5 breaks down the GenEval scores of Table 1 by category.
C.3 QUALITATIVE RESULTS
Effect of the reward weight. Fig. 5 shows samples from the reward-weight sweep of Fig. 4a, with , , and from top to bottom; each column is one OCR test prompt. At the text is often small or misspelled, for example "pona" and "Hyddrate
Table 5: GenEval results by category. Baseline numbers are taken from Flow-GRPO (Liu et al., 2025) or the original papers, and reimplemented where unavailable. Among the RL-tuned models, the best score per column is in bold and the second best is underlined; the shaded row is our method. Obj.: object; Attr. Bind.: attribute binding.
| Model | Single Obj. | Two Obj. | Counting | Colors | Position | Attr. Bind. | Overall |
|---|---|---|---|---|---|---|---|
| Diffusion and flow-matching models | |||||||
| SD-XL (Podell et al., 2024) | 0.98 | 0.74 | 0.39 | 0.85 | 0.15 | 0.23 | 0.55 |
| FLUX.1 Dev (Black Forest Labs, 2024) | 0.98 | 0.81 | 0.74 | 0.79 | 0.22 | 0.45 | 0.66 |
| SD3.5-M (Esser et al., 2024) | 0.98 | 0.78 | 0.50 | 0.81 | 0.24 | 0.52 | 0.63 |
| TDM-SD3.5-M (Luo et al., 2025) (4 NFE) | 0.99 | 0.77 | 0.49 | 0.79 | 0.23 | 0.44 | 0.61 |
| Multi-step RL (SD3.5-M backbone) | |||||||
| Flow-GRPO (Liu et al., 2025) | 1.00 | 0.99 | 0.95 | 0.92 | 0.99 | 0.86 | 0.95 |
| AWM (Xue et al., 2026) (w/o CFG) | 1.00 | 0.98 | 0.95 | 0.77 | 0.78 | 0.65 | 0.91 |
| DiffusionNFT (Zheng et al., 2026) | 1.00 | 0.99 | 0.96 | 0.82 | 0.78 | 0.73 | 0.92 |
| CRD (Zhu et al., 2026) | 1.00 | 0.98 | 0.92 | 0.88 | 0.90 | 0.73 | 0.93 |
| DMSampler (Liu et al., 2026) | 1.00 | 1.00 | 0.98 | 0.90 | 0.99 | 0.86 | 0.96 |
| Few-step RL (SD3.5-M backbone) | |||||||
| TDM-R1 (Luo et al., 2026a) | 1.00 | 0.96 | 0.88 | 0.85 | 0.93 | 0.91 | 0.92 |
| RTDMD (Huang et al., 2026a) | 1.00 | 0.98 | 0.95 | 0.90 | 0.87 | 0.94 | 0.94 |
| DualHeads | 1.00 | 0.98 | 0.91 | 0.85 | 0.90 | 0.76 | 0.90 |

Figure 5: Visualization of samples from the ablation in Fig. 4a.
Now". As grows, the text becomes larger and easier to read and these errors disappear, in line with the higher held-out OCR reward in Fig. 4a. At the text also tends to dominate the image, often as a bold sign or sticker, while the layout of each scene stays similar across rows.
Two-step sampling. The generators are trained with four sampling steps, but they can also be sampled with two. Fig. 6 shows four-step and two-step samples on the same prompts, for the OCR generator (top) and the GenEval generator (bottom). With two steps, the generator still reaches a reward close to that of four steps (Table 1).
Effect of the reference pool. Fig. 7 shows that the reference pool sets the style of the generator but not the content it renders.
Comparison of Z-Image-based models. Fig. 8 shows samples from the Z-Image base model alongside its distilled and RL-trained variants.
Uncurated samples. Figs. 9 to 11 show DualHeads samples only, taken from the evaluation runs. Prompts are drawn uniformly without replacement.

Figure 6: Visual comparison of four-step and two-step generation from the four-step generators trained with the OCR reward (top) and the GenEval reward (bottom).

Figure 7: Effect of the reference pool. Same prompts with base-model (top) and Nano Banana (bottom) references: the style changes, the content does not.

Figure 8: Qualitative comparison for Z-Image-based models.

a photo of a purple backpack and a white umbrella
a photo of a brown computer keyboard
a photo of a tie and a bracelet
a photo of a brown chair
a photo of a chair left of a sofa
a photo of a black vase
a photo of four glasses
a photo of a red apple

a photo of a white teddy bear
a photo of a stop sign above a parking meter
a photo of an orange handbag and a red car
a photo of three giraffes
a photo of a hot dog
a photo of a person and an apple
a photo of a bench
a photo of three kites
a photo of three skis
a photo of a pink handbag and a black scooter
a photo of three suitcases
a photo of a pizza and a book
a photo of a red cake and a purple cake
a photo of a parking meter above a
bronco
a photo of a white fire hydrant
a photo of a teddy bear

a photo of a tie right of a
maternity
a photo of a brown skis
a photo of four bracelets
a photo of a green surfboard and
an orange even
a photo of aebra right of a
parking meter
a photo of a broccoli and a
parking meter
a photo of a computer keyboard
a photo of a purple pizza
Figure 9: Uncurated samples on GenEval test prompts.

An instrument used for cutting
dome, measuring the size of the
box one on top of the other and
Paying for a quartered pizza
with a 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
An agent of the
New York City on a
An
An
A tube made of
A baby female

A 1960s poster warning against
disease change.
A black colored car.
A
An instrument used for cutting
a
A
A
A
An

A stack of 3 cubes. A red cube is on
the top, sitting on a red cube. The
green cube is
A painting by Grant Wood of an
A donkey and an octopus are playing
a game. The donkey is holding a
A stop sign on the right of a
A photograph of a photograph of a
Three cats and one dog sitting on
the grass.
A red colored dog.
A sign that says Google Research
Pizza Café.
Figure 10: Uncurated Z-Image samples after HPSv3 training.

An instrument used for cutting
dome, measuring the size of
the
Paying for a quartered pizza
with a 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
An agent of a
New York City on a
An
An
A tube made of
A baby female

A 1960s poster warning against
disease change.
A black colored car.
A moving cow abstracting
An instrument used for cutting
a
A
A
A brown colored
An

A stack of 3 cubes. A red cube is on
the top, sitting on a red cube. The
red cube is in the middle, sitting
on a green cube. The green cube is
A painting by Grant Wood of an
A donkey and an octopus are playing
a game. The donkey is holding a
A stop sign on the right of a
A photograph of a photograph of a
Three cats and one dog sitting on
the grass.
A red colored dog.
A sign that says Google Research
Pizza Café.
Figure 11: Uncurated samples on DrawBench prompts after multi-reward training (PickScore + CLIPScore + HPSv2.1).
Table 6: Reward statistics of the reference data. All samples: every generated image (for the teacher, the first eight draws per prompt). References: each prompt's highest-reward sample with (OCR) or (GenEval); Kept is the share of prompts that have one.
| Source | Prompts | Samples | All samples | References | ||||
|---|---|---|---|---|---|---|---|---|
| Mean r | r = 1 | r ≤ 0 | Kept | Mean r | r = 1 | |||
| OCR | ||||||||
| Nano Banana | 19,621 | 19,625 | 0.63 | 51.9% | 28.8% | 61.6% | 0.97 | 84.3% |
| Teacher | 5,000 | 40,000 | 0.57 | 21.2% | 20.5% | 96.8% | 0.98 | 81.1% |
| GenEval | ||||||||
| Nano Banana | 33,199 | 50,000 | 0.47 | 58.0% | 20.2% | 63.3% | 0.93 | 81.9% |
| Teacher | 10,000 | 80,000 | 0.48 | 28.8% | 18.5% | 92.7% | 0.90 | 71.2% |
C.4 SAMPLES FROM THE REFERENCE DATASET
We consider two sources of reference data for each task: images generated with Nano Banana, and teacher-simulated images sampled from the base model SD3.5-M at with 20 steps and guidance scale 4.5. For the teacher, we draw eight samples for each of the 5,000 OCR and 10,000 GenEval training prompts, and 24 more for the 1,931 OCR prompts whose first eight contain no good score. For both sources, each prompt's highest-reward sample serves as its reference if that reward is at least 0.6 (OCR) or 0.5 (GenEval).
Table 6 shows that the kept references score far above these thresholds (mean of 0.90–0.98), because Nano Banana's rewards are mostly all-or-nothing and the teacher keeps the best of several draws. The two sources thus differ mainly in coverage: the teacher provides a reference for 93–97% of the prompts and Nano Banana for 62–63%.
Figures 12 and 13 show random samples from the two sources, annotated with their reward . Figures 14 and 15 show the lowest-reward samples, many of which are correct but misjudged by the reward: stylized text that the OCR model fails to read, and cluttered scenes (broccoli on a pizza, books on a shelf) whose extra detections drive the dense GenEval score far below zero. The teacher's lowest-reward samples also include genuine failures, such as missing or illegible text.

Figure 12: Random Nano Banana samples. Images for the OCR (top) and GenEval (bottom) training prompts, drawn at random. Above each image is its reward , the OCR reward or the dense GenEval score; below is the target text (OCR) or the prompt (GenEval).
C.5 ABLATIONS OF THE HEADS AND OF THE GENERATOR LOSS TYPE
Figure 16 plots the OCR reward of the rollout samples during training. Without the reference head , the reward first rises as with the full method, then drops to zero after about 900 steps: the training collapses. Without the reward head , samples stay natural, but the reference head alone does not work as well. The training reward rises only slightly, likely due to the high-quality data from the reference pool. In addition, we show results with three classic generator training loss types.

Figure 13: Random teacher-simulated samples. SD3.5-M samples for the OCR (top) and GenEval (bottom) training prompts, drawn at random; annotations as in Fig. 12.

Figure 14: Lowest-reward Nano Banana samples. OCR (top): eight images drawn at random among those with r = 0, the minimum, which about 29% of images reach. GenEval (bottom): the eight images with the lowest dense GenEval score.

Figure 15: Lowest-reward teacher-simulated samples. OCR (top): eight samples drawn at random among those with r = 0, which about 20% of samples reach. GenEval (bottom): the eight lowest dense GenEval scores, at most one sample per prompt.
(a) Removing a head

(b) Generator loss
Figure 16: Ablations of the heads and of the generator loss type on OCR.