Diffusion and flow-based models have achieved remarkable success in generation, yet their samples often remain suboptimal in fidelity and text alignment. Two lines of inference-time methods address this: extrapolation guidance, such as classifier-free guidance (CFG) and its variants, and reward guidance, which aligns samples with reward models of human preference. Extrapolation guidance needs only forward passes, but it builds its reference by heuristic rules unrelated to the reward and therefore cannot steer sampling toward a given reward. Gradient-based reward guidance steers sampling directly toward a higher reward, but backpropagates through the entire generator at every step. This trade-off raises the question of whether extrapolation guidance can steer sampling toward a higher reward without a full backward pass. To answer this, we introduce Reward-Adversarial Attention Guidance (RadAG), which constructs the reference by perturbing the attention logits of a single block against their reward gradient and extrapolates away from it. We prove that this update increases the reward of the clean estimate to first order, while its backward pass stops at the perturbed block instead of traversing the entire generator. On FLUX.2-klein-4B and 9B with PickScore and aesthetic rewards, RadAG achieves the highest target reward in every setting with 30-65% less time than gradient-based and candidate-based baselines.
Figures & tables
Figure 2: Comparison of RadAG with existing methods. (a) Gradient-based guidance backpropagates the reward through the entire generator, (b) candidate-based search selects among K samples, and (c) perturbation-based attention guidance modifies attention by a heuristic rule. (d) RadAG stops the reward gradient at the attention logits of block ℓ and moves them against it.
Method
No extra training
No candidate branching
Reward- guided
No full backward
CFG [ 25 ]
✗
✓
✗
✓
DPS [ 12 ] , NoiseTilt [ 30 ]
✓
✓
✓
✗
SVDD-PM [ 43 ]
✓
✗
✓
✓
PAG [ 1 ] , SEG [ 27 ]
✓
✓
✗
✓
RadAG (Ours)
✓
✓
✓
✓
Table 1: Comparison of inference-time guidance methods.
Figure 3: Reward–time trade-off of reward-based methods. Target reward versus generation time for Table 2 , with batch size 4 (4B) and 2 (9B) on one NVIDIA RTX A6000; upper left is better.
Figure 4: Attention of the references and reward sensitivity. Attention of an image query (circle) over the image keys in the base model, PAG, and SEG, and its reward sensitivity ∣gSℓ∣ .
Figure 6: Efficient computation of RadAG. (a) Partial backward: the reward gradient stops at Sℓ . (b) Forward reuse: the reference pass reruns only fℓ,…,fL from the cached hℓ with Sadv .
Table 2: Reward alignment across model scales. Mean scores over 5,000 COCO prompts; ✓ marks the target reward. Bold and underline mark the best and second-best guided results, ranked on unrounded scores.
Figure 7: Time per image of reward-based methods by stage. PickScore guidance, 1,000 prompts, one NVIDIA RTX A6000, summed over four steps. Forward includes the generator, decoder, and reward model.
Blocks
Pick ↑
CLIP ↑
IR ↑
HPSv2 ↑
Time ↓
Vanilla
22.891
26.416
1.059
0.296
0.611
Without reuse
\vbox\vruleheight=0.0pt,width=0.0pt{
13 (early)
24.508
26.692
1.146
0.315
2.690
7 (middle)
24.996
26.857
1.179
0.320
2.410
4 (late)
25.280
26.759
1.182
0.321
2.256
With reuse
\vbox\vruleheight=0.0pt,width=0.0pt{
13 (early)
24.508
26.723
1.136
0.315
2.445
7 (middle)
24.998
26.849
1.183
0.320
2.045
Table 3: Block depth and forward reuse. Blocks counts block ℓ and the later ones out of 25; time is seconds per image.
Location
Pick ↑
CLIP ↑
IR ↑
HPSv2 ↑
Time ↓
Vanilla
22.891
26.420
1.059
0.296
0.611
Value Vℓ
25.066
26.902
1.194
0.315
1.768
Map Aℓ
25.356
26.840
1.175
0.323
1.848
Output Attnℓ
25.425
26.862
1.161
0.321
1.761
Block output
24.490
26.632
1.118
0.308
1.736
Logits Sℓ
25.290
26.770
1.186
0.321
1.864
Table 4: Modification location. Each location uses its own tuned strength and guidance scale; time is seconds per image.
Region
Pick ↑
CLIP ↑
IR ↑
HPSv2 ↑
Vanilla
22.891
26.420
1.059
0.296
II
25.167
26.760
1.180
0.321
TI
23.361
26.490
1.076
0.300
IT
22.673
27.020
1.055
0.293
TT
23.143
26.550
1.063
0.297
II+TI
25.290
26.770
1.186
0.321
Table 5: Attention region. Letters give the query and key modalities, image (I) or text (T).
(a) FLUX.2-klein-4B, PickScore guidance
Attn.
Noise
Pick ↑
CLIP ↑
IR ↑
HPSv2 ↑
Δ Time
25.282
26.772
1.184
0.321
–
✓
25.420
26.773
1.186
0.321
− 1%
✓
25.547
26.690
1.175
0.322
+6%
✓
✓
25.746
26.641
1.188
0.324
+5%
(b) FLUX.2-klein-9B, aesthetic guidance
Table 6: Components of RadAG+. Attention-output extrapolation (Attn.) and separate noise estimate (Noise). Δ Time is relative to RadAG; all four settings are in Table 8 .
Figure 8: Looped video generation on Wan2.1-T2V-1.3B. ∣Last−First∣ is the per-pixel difference of the last and first frames; darker means a more seamless loop. FG: Frame Guidance [ 33 ] .
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
FLUX.2-klein-4B
FLUX.2-klein-9B
Double-stream + single-stream blocks
5 + 20
8 + 24
Heads × head dimension
24×128
32×128
Block ℓ (single-stream index / overall index)
16 / 21
19 / 27
Blocks recomputed for vadv
4 of 25
5 of 32
Logit regions
image and text queries to image keys
image and text queries to image keys
Perturbation strength α
5
10
Appendix
Table 7: Generator structure and settings of RadAG. Block indices start at 0.
FLUX.2-klein-4B
FLUX.2-klein-9B
(a) PickScore guidance
Attn.
Noise
Pick ↑
CLIP ↑
IR ↑
HPSv2 ↑
Time ↓
Pick ↑
CLIP ↑
IR ↑
HPSv2 ↑
Time ↓
25.282
26.772
1.184
0.321
1.93
25.456
26.794
1.311
0.324
2.78
✓
25.420
26.773
1.186
0.321
1.92
25.635
26.778
1.319
0.325
2.77
✓
25.547
26.690
1.175
0.322
2.04
25.725
26.811
1.321
0.327
2.97
✓
✓
25.746
26.641
1.188
0.324
2.03
25.919
26.870
1.327
0.329
2.98
Appendix
Table 8: Components of RadAG+. Mean scores over 1,000 COCO prompts. Attn. and Noise denote the two refinements of Sec. 4.3 . Time in s/image; bold marks the best per block.
Table 9: Looped video generation on Wan2.1-T2V-1.3B (100 VBench prompts, seed 42). Time in seconds per video, averaged over the eight prompts above. ✓ marks the metric that the reward optimizes, and bold marks the best value for each metric except Motion.
Backward
Method
Forward
Ref.
D+R
Generator
Other
Vanilla
94
–
–
–
6
Frame Guidance [ 33 ]
38
–
0.4
60
2
RadAG (Ours)
61
15
0.4
12
11
Appendix
Table 10: Share of the time per video by stage (%, Wan2.1-T2V-1.3B), measured in a separate run on eight prompts. Ref.: reference pass; D+R: decoder and reward. Other includes the chunked pass that computes the RMS for RadAG.
Figure 9: Endpoints of looped videos on Wan2.1-T2V-1.3B. Selected samples from the 100 VBench prompts; ∣Last−First∣ uses the same color scale as Fig. 8 , and darker means a more seamless loop. FG: Frame Guidance [ 33 ] .
Table 13: Direction of the modification (PickScore guidance, 1,000 prompts, same hyperparameters for both directions). Bold marks the better direction for each model. ✓ marks the target reward; the other scores are held-out rewards.
Forward
Backward
Model
Method
Generator
Ref.
D+R
Generator
D+R
Whitening
Other
Total
Memory
FLUX.2-klein-4B
DPS [ 12 ]
0.520
–
0.500
1.133
0.480
–
0.120
2.753
35.140
NoiseTilt [ 30 ]
0.509
–
0.472
1.129
0.452
0.609
0.120
3.291
35.130
SVDD-PM [ 43 ]
2.394
–
2.413
–
–
–
0.125
4.932
13.210
RadAG (Ours)
0.528
0.102
0.496
0.186
0.466
–
0.135
1.913
35.810
FLUX.2-klein-9B
DPS [ 12 ]
1.107
–
0.598
2.357
0.464
–
0.132
4.658
32.290
Appendix
Table 14: Time per image by stage (seconds, PickScore guidance, 1,000 prompts, RTX A6000). D+R: decoder and reward model, Ref.: reference pass of block ℓ and the later blocks. Other includes the initial setup, the construction of Sadv , the update, and the final decoding. Memory is the peak memory allocated (GiB), with batch size 4 (4B) and 2 (9B). Bold marks the lowest time.
Figure 10: Qualitative comparison on FLUX.2-klein-4B ( 5122 , four steps, PickScore guidance). Each row shares the prompt and the seed, and RadAG is outlined in green.
Figure 11: Qualitative comparison on FLUX.2-klein-9B ( 5122 , four steps, PickScore guidance). Each row shares the prompt and the seed, and RadAG is outlined in green.
Figure 12: Qualitative comparison on SD3 Medium ( 5122 , 25 steps, PickScore guidance). Each row shares the prompt and the seed, and RadAG is outlined in green.
Figure 13: Qualitative comparison on SDXL ( 10242 , 25 steps, PickScore guidance). Each row shares the prompt and the seed, and RadAG is outlined in green.