Relies on what distillation removes.
- Stochastic multi-step rolloutsDDPO, Flow-GRPO
- A score or velocity fieldDiffusionNFT, AWM, CRD
Reward-tilted few-step diffusion made simple
Both need more than samples and black-box scores.
Raise the reward, stay close to the reference.
The objective for a prompt
Its minimizer: the reference, tilted by the reward
From any black-box reward .
Prompt-paired images from .
Its logit is a log density ratio: the KL term.
Its logit is the log-odds of being optimal: a reward with gradients.
The utility the generator maximizes
With optimal heads, its optimum: the reference, tilted by the learned reward
Draw images per prompt with the few-step sampler.
No gradients yet.
Score every image with the black box, then turn the scores into soft labels within each prompt's group.
Re-noise each image to a grid time and predict it back in
one differentiable call. Gradients enter only here.
Both heads are refit online: same loss, different targets.
The reference head separates references from predictions;
the reward head fits the soft labels.
Freeze both heads and ascend their weighted logits.
Only changes.
Only the fine-tuned generator runs, at no extra inference cost.
The reference logit is a log density ratio
so the generator minimizes a KL-regularized reward objective
The generator update is exactly the gradient of this objective.
A pathwise gradient through one generator call.
No trajectory likelihood, no policy-gradient estimator.
SD3.5‑M and Z‑Image, from their few‑step students.
OCR, GenEval, HPSv3, and a three‑score preference mix.
Curated base‑model or Nano Banana samples, or Pick‑a‑Pic images.
LoRA rank 32, 24 samples per prompt, four steps, no CFG.
From each run's distilled starting student to four‑step DualHeads.
HPSv3 on 200 DrawBench prompts. It is also the training reward. Z-Image-Turbo is scored with its native 8-step sampler; the sample pages show it at four steps.
OCR test prompts. NB pool: Nano Banana references.
GenEval test prompts. NB pool: Nano Banana references.
DrawBench prompts, trained on HPSv3.
Trained with four steps. Sampling with two costs 0.01 on OCR and on GenEval.
Reference, reward, or both.
, reward against reference.
Where the references come from.
The generator we fine-tune.
Held-out OCR accuracy on SD3.5-M, same budget in every row.
Held-out OCR accuracy on SD3.5-M.
Optimal heads and a fixed reward head are assumed. Convergence is not guaranteed.
The generator follows the reward head, errors included.
It sets the style, and can shift reward-relevant content.
One frozen backbone, one utility.
No likelihoods, score field, reward gradients or teacher score.
OCR 0.92, GenEval 0.90, the best HPSv3 on Z-Image.
The heads are discarded after training.
@article{zhu2026dualheads,
title = {DualHeads: Reward-tilted few-step diffusion made simple},
author = {Zhu, Yuanzhi and Tsonis, Eleftherios and Alami Chehboune, Simo
and Wang, Xi and Lathuili{\`e}re, St{\'e}phane and Kalogeiton, Vicky},
journal = {arXiv preprint arXiv:2610.28858},
year = {2026}
}
Supported by Hi! Paris, ANR/France 2030 (ANR-23-IACL-0005), ANR JCJC “REEL-WORLD” and a Google DeepMind academic gift. Computing by GENCI–IDRIS (2026-AD011014300R3, 2025-A0190616899, 2026-AD011015894R1) and Google Gemini. Thanks to Julie Mordacq and David Loiseaux.
| Family | Needs from the generator | Reward | Teacher or extra model | Learned reward model |
|---|---|---|---|---|
| Policy-gradient RL DDPO, Flow-GRPO, DanceGRPO | trajectory likelihoods | black-box | – | – |
| Forward-process RL DiffusionNFT, AWM, CRD, MeanFlowNFT | score or velocity field | black-box | – | – |
| Reward backpropagation e.g. Luo (2025) | – | differentiable | – | – |
| Reward with distribution matching RTDMD, DMDR | – | – | teacher score, fake score | – |
| TDM-R1 | – | black-box | teacher score, fake score | online |
| REST | – | black-box | RL-trained 40-step teacher | – |
| Reward Lightning | – | preference pairs | teacher | pretrained, frozen |
| Classifier guidance | score, multi-step sampler | differentiable classifier | – | – |
| DualHeads | – | black-box | – | online |
DualHeads also needs reference samples and a frozen backbone. Only classifier guidance adds network evaluations at inference.
| Variant | OCR [95% CI] | ΔHPSv3 | ΔImgRwd | ΔAes. | Diversity |
|---|---|---|---|---|---|
| Starting student (TDM-SD3.5-M, 4 NFE) | 0.511 [0.488, 0.534] | – | – | – | 0.700 |
| DualHeads (two runs) | 0.903 / 0.914 | +0.49 / +1.04 | −0.02 / +0.03 | −0.13 / −0.03 | 0.617 / 0.615 |
| Reference head only (reward weight 0) | 0.711 [0.697, 0.726] | +1.14 | +0.14 | −0.13 | 0.641 |
| Reference head only, unfiltered pool | 0.574 [0.557, 0.590] | +1.13 | +0.16 | −0.13 | 0.673 |
| DualHeads, unfiltered pool | 0.899 [0.892, 0.905] | +0.50 | +0.07 | −0.10 | 0.594 |
| Reward head frozen after warm-up | 0.916 [0.910, 0.921] | +0.44 | +0.06 | −0.09 | 0.664 |
| Reward head frozen after a short warm-up (100 updates) | 0.722 [0.708, 0.735] | +0.62 | +0.16 | −0.10 | 0.670 |
| Reward head only (reference weight 0) | 0.000 (0.847 at step 500) | collapsed: the same output for every prompt | |||
| SFT on the same references | 0.102 [0.091, 0.114] | −16.32 | −1.60 | −0.76 | n/a |
| Curated pool itself | 0.976 | – | – | – | – |
OCR on 1,018 held-out prompts, mean of the last four EMA checkpoints. Δ: paired difference to the starting student on DrawBench. Diversity: mean pairwise LPIPS over 8 samples per prompt.
| OCR | ΔHPSv3 | ΔImgRwd | ΔAes. | LPIPS | |
|---|---|---|---|---|---|
| Starting student | 0.511 | – | – | – | 0.700 |
| (1, 2.5) | 0.855 | +1.27 | +0.115 | −0.12 | 0.665 |
| (1, 5) | 0.855 | +1.20 | +0.141 | −0.12 | 0.688 |
| (1, 10) | 0.891 | +1.41 | +0.126 | −0.09 | 0.664 |
| (0.5, 5) | 0.881 | +1.23 | +0.127 | −0.13 | 0.646 |
| (1, 25), run 1 | 0.903 | +0.49 | −0.015 | −0.13 | 0.617 |
| (1, 25), run 2 | 0.914 | +1.04 | +0.027 | −0.03 | 0.615 |
| (1, 100) | 0.474 | −3.67 | −0.993 | −0.28 | 0.604 |
| , reward head | Step 500 | 1,000 | 1,500 | 2,000 | 2,500 | 3,000 | ΔHPSv3 range |
|---|---|---|---|---|---|---|---|
| (1, 25), warmed up | 0.872 | 0.898 | 0.908 | 0.898 | 0.896 | 0.912 | +0.58 to +1.99 |
| (1, 25), fresh | 0.408 | 0.600 | 0.749 | 0.813 | 0.867 | 0.889 | +0.57 to +2.61 |
| (1, 2.5), warmed up | 0.806 | 0.800 | 0.825 | 0.815 | 0.854 | 0.852 | +1.37 to +2.44 |
| (1, 2.5), fresh | 0.346 | 0.469 | 0.563 | 0.701 | 0.762 | 0.814 | +1.58 to +2.01 |
Held-out OCR on SD3.5-M. Top: final checkpoints. Bottom: the first 3,000 generator steps.
| Starting point (OCR at start) | OCR [95% CI] | ΔHPSv3 | ΔImgRwd | ΔAes. | LPIPS, start → end | |
|---|---|---|---|---|---|---|
| TDM-SD3.5-M (0.511) | (1, 25), run 1 | 0.903 [0.897, 0.910] | +0.49 | −0.015 | −0.13 | 0.700 → 0.617 |
| (1, 25), run 2 | 0.914 [0.908, 0.920] | +1.04 | +0.027 | −0.03 | 0.700 → 0.615 | |
| TensorArt SD3.5-M Turbo (0.341) | (1, 25) | 0.929 [0.924, 0.934] | +2.33 | +0.263 | −0.07 | 0.660 → 0.673 |
| Random LoRA, i.e. the base model (0.006) | (1, 10) | 0.885 [0.878, 0.893] | +1.45* | +0.116* | −0.09* | – → 0.654 |
| (1, 25) | 0.924 [0.918, 0.929] | +1.05* | +0.048* | −0.12* | – → 0.637 |
Δ: paired DrawBench difference to the run's own starting point; * against the TDM student.
Its objective is defined on recomputed predictions, not on deployed samples. That gap can be measured.
Also assumed: optimal heads, and a reward head that stays fixed.
| Checkpoint | FD ratio of recomputed from | OCR of deployed and of from | |||||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 0.1 | 0.25 | 0.5 | 0 | 0.1 | 0.25 | 0.5 | ||
| Starting student | 7.88 | 2.20 | 1.23 | 1.02 | 0.511 | 0.002 | 0.263 | 0.522 | 0.527 |
| DualHeads, step 1,000 | 3.99 | 1.83 | 1.13 | 1.03 | 0.898 | 0.846 | 0.882 | 0.914 | 0.889 |
| DualHeads run 1, final | 2.78 | 1.53 | 1.06 | 1.04 | 0.891 | 0.830 | 0.876 | 0.900 | 0.886 |
| DualHeads run 2, final | 3.25 | 1.49 | 1.06 | 1.04 | 0.922 | 0.836 | 0.894 | 0.924 | 0.924 |
FD ratio: Fréchet DINOv2 distance of to independent deployed samples, over that between two deployed sets (1 = no gap). 1,018 OCR test prompts.
| Phase, per generator step | Time (s) | Share | Peak GiB |
|---|---|---|---|
| Rollouts (4 steps, 64 images per cycle) | 1.15 | 14% | 22.9 |
| Reward scoring (PaddleOCR) | 2.88 | 34% | 23.4 |
| Reward-head update | 0.59 | 7% | 23.2 |
| Reference-head update | 1.14 | 14% | 23.5 |
| Generator update (through both heads) | 2.61 | 31% | 72.5 |
| Total (wall time 9.16 s) | 8.37 | 100% | 72.5 |
| Complete run, 8,000 updates | H100-hours | Peak GiB |
|---|---|---|
| DualHeads | 19.8 | 72.5 |
| Frozen reward head | 18.3 | 72.2 |
| Reward head only | 13.2 | 71.7 |
| SFT (no heads) | 10.4 | 53.4 |
OCR configuration on SD3.5-M, one H100. The Z-Image run took 124 H100-hours on four GPUs. Reference pools are built once: about 7.6 H100-hours for OCR, 15 for GenEval.
A GAN discriminator on frozen diffusion features, as in LADD.
DiffusionNFT's labels, fit by a classifier that is trained online.
Classifier guidance acts at every sampling step. The heads act only in training.
No 40-step teacher trained by RL, and no trajectory likelihoods.
PaddleOCR against the quoted target .
Mask2Former detections, CLIP colors, positions from box centroids. Dense credits in training, official accuracy in tables.
Four transformer blocks on the 32 × 32 patch grid; 3 × 3 convolutions with FiLM on ; patch logits averaged.
Time grid (0, 0.1, 0.25, 0.5), . : (1, 10) OCR, (1, 50) GenEval, (1, 25) otherwise.
| Source | All samples | References | ||||||
|---|---|---|---|---|---|---|---|---|
| Prompts | Samples | 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 (SD3.5-M, 8 draws per prompt) | 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 (SD3.5-M, 8 draws per prompt) | 10,000 | 80,000 | 0.48 | 28.8% | 18.5% | 92.7% | 0.90 | 71.2% |
A prompt's highest-reward sample is its reference if that reward is at least 0.6 (OCR) or 0.5 (GenEval). The teacher covers 93 to 97% of the prompts, Nano Banana 62 to 63%.