This paper is concerned with prompt-image alignment at inference time through exploration of generative trajectories and dynamical prompt rejuvenation. We leverage sequential Monte Carlo (SMC), to offer a gradient-free and principled framework for this purpose through reward-guided trajectory selection. More specifically, we introduce LLM-based prompt rejuvenation, allowing for efficient particle exploration in SMC samplers along the diffusion time in flow matching models. The proposed method, PromptSMC, retains the selected latent states and uses a pretrained LLM to dynamically revise the prompts of duplicated particles under semantic-preservation constraints. These revised prompts induce alternative conditional velocity fields, allowing particles to explore different continuations from a shared intermediate state. The method further uses a reward model to evaluate each particle's alignment with the original prompt, and the resulting scores guide particles through resampling. PromptSMC thus integrates prompt-based exploration with reward-guided sampling, achieving faithful prompt-image alignment without additional noise injection, model training, or reward gradients. Our experiments and ablation studies across multiple benchmarks and backbones demonstrate the effectiveness of the method for text-to-image flow matching. Code is available at https://github.com/shermanlian/PromptSMC.
Figures & tables
Figure 2: Prompt perturbation leads to different results. Each row represents images generated from the same latent noise. The same pretrained LLM [ 1 ] is used for prompt rewriting.
Figure 3: Overview of our framework. Left: Reward-guided resampling selects promising particles, while LLM-based prompt rejuvenation enables duplicated particles to explore distinct continuations from the same latent state. Latent propagation follows a deterministic flow conditioned on each particle’s revised prompt. Right: The rewriting model produces alternative phrasings under instructions to preserve object identities, counts, colors, and spatial relationships, introducing diversity through textual conditioning.
Figure 4: LLM-based prompt rejuvenation for flow matching. Revising the prompt changes the conditional velocity field, enabling alternative trajectories without perturbing the state.
SD3 [ 7 ]
FLUX.1-dev [ 21 ]
Z-Image [ 3 ]
Method
ImageReward †
GenEval
B-CLIP
VQAScore
ImageReward †
GenEval
B-CLIP
VQAScore
ImageReward †
GenEval
B-CLIP
VQAScore
Vanilla
1.0674
0.7214
0.7885
0.8886
0.9588
0.6526
0.7797
0.8105
1.0790
0.7534
0.7957
0.9089
FK (flow-adapted) [ 37 ]
1.0906
0.6258
0.7846
0.7310
0.9423
0.4764
0.7722
0.6036
0.9690
0.6081
0.7860
0.7941
DATE [ 31 ]
1.1397
0.7365
0.7872
0.8868
0.9863
0.6490
0.7805
0.7912
1.0892
0.7538
0.7934
0.9104
SMC [ 37 ]
1.2896
0.7568
0.7943
0.8988
1.2367
0.6983
0.7876
0.8379
1.2688
0.7673
0.7975
0.9270
VP-SDE+RBF [ 17 ]
1.0984
0.6539
0.7849
0.8627
1.1051
0.6608
0.7822
0.8039
1.1445
0.6855
0.7885
0.8946
Table 1: Quantitative comparison on the GenEval [ 9 ] benchmark across different backbones. † denotes the reward used for particle guidance. GenEval is the main comparison metric. Best and second-best results are shown in bold and underline , respectively.
SD3 [ 7 ]
FLUX.1-dev [ 21 ]
Z-Image [ 3 ]
Method
ImageReward †
B-VQA
B-CLIP
VQAScore
ImageReward †
B-VQA
B-CLIP
VQAScore
ImageReward †
B-VQA
B-CLIP
VQAScore
Vanilla
1.1785
0.7111
0.7704
0.8673
0.9664
0.6300
0.7582
0.8227
1.1344
0.7292
0.7747
0.8766
FK (flow-adapted) [ 37 ]
1.0626
0.6793
0.7519
0.8524
0.7797
0.5445
0.7386
0.7907
0.8937
0.6455
0.7491
0.8558
DATE [ 31 ]
1.2259
0.7153
0.7691
0.8619
1.0489
0.6380
0.7550
0.8279
1.1575
0.7310
0.7746
0.8804
SMC [ 37 ]
1.3784
0.7346
0.7735
0.8803
1.2653
0.6723
0.7646
0.8560
1.3305
0.7431
0.7812
0.8931
VP-SDE+RBF [ 17 ]
1.1596
0.6902
0.7630
0.8410
1.0536
0.6386
0.7558
0.8236
1.1787
0.7201
0.7610
0.8606
Table 2: Quantitative comparison on the T2I-CompBench [ 13 ] benchmark across different backbones. † denotes the reward used for particle guidance. B-VQA is the main comparison metric. Best and second-best results are shown in bold and underline , respectively.
Figure 5: Left: Task-wise accuracy gains (in percentage points) of SMC-based approaches over vanilla FLUX.1-dev on GenEval. Right: Example of the position task.
Figure 6: Visual comparison of our method with other state-of-the-art inference-time scaling approaches on GenEval (top three rows) and T2I-CompBench (bottom three rows). For each benchmark, the three rows show results from SD3, FLUX.1-dev, and Z-Image, respectively.
Figure 7: Comparison of standard SMC and PromptSMC using different reward functions. Higher GenEval scores indicate better prompt-image alignment, while higher LPIPS indicates greater diversity among generated images per prompt.
Figure 8: Effect of reward guidance strength ( left ) and prompt rewriting interval ( right ) on GenEval using SD3.
Method
ImageReward
GenEval
Sec/prompt
Memory (GB)
Vanilla
1.0674
0.7214
14.10
35.01
Vanilla (w/ rewriting)
1.0686
0.7381
21.31
52.55
SMC
1.2896
0.7568
18.35
36.81
SMC (w/ rewriting)
1.3064
0.7590
21.91
54.34
PromptSMC (Ours)
1.3331
0.7899
23.29
54.34
Table 3: Ablation study of prompt rejuvenation on GenEval using SD3. Vanilla (w/ rewriting) and SMC (w/ rewriting) apply prompt rewriting at initialization, using the same LLM as PromptSMC.
Method
ImageReward
GenEval
Sec/prompt
Memory (GB)
Vanilla
1.0674
0.7214
14.10
35.01
SMC (w/o rewriting)
1.2896
0.7568
18.35
36.81
Ours (Gemma-3-4B-IT [ 41 ] )
1.3165
0.7686
31.60
51.26
Ours (Qwen3-VL-4B [ 1 ] )
1.3184
0.7625
24.02
45.69
Ours (Llama-3.1-8B [ 10 ] )
1.3185
0.7744
23.43
52.90
Ours (Qwen3-VL-8B [ 1 ] )
1.3331
0.7899
23.29
54.34
Table 4: Comparison of different pretrained LLMs as prompt rewriters in PromptSMC on GenEval using SD3. Vanilla generation and SMC without prompt rewriting are included as references.
Method
ImageReward
GenEval
Sec/prompt
Memory (GB)
Best-of- N
1.3703
0.7702
14.10
36.81
Best-of- N (w/ rewriting)
1.3860
0.7837
16.13
52.55
PromptSMC (Ours)
1.4068
0.8022
23.29
54.34
Table 5: Comparison with Best-of- N and its prompt rewriting variant on GenEval using SD3. All methods use N=4 particles and ImageReward-based top-1 selection for evaluation.
Rewriting Strategy
ImageReward
GenEval
Duplicate Rate
Length
No Rewrite
1.2998
0.7271
100%
7.95
Minimal Rewrite
1.3469
0.7313
67.9%
9.99
Extensive Rewrite
1.3598
0.7583
0.52%
45.48
Constrained (Ours)
1.3684
0.7875
5.12%
21.40
Table 6: Effect of prompt-rewriting instructions on a 120-prompt GenEval subset (20 prompts for each task). ‘ Duplicate Rate ’ is the percentage of resulting prompts that are duplicates, and ‘ Length ’ represents the average prompt length in words.
Figure 9: Scaling the number of particles. All methods use ImageReward as guidance for particle selection.
Method
N
Steps
ImageReward
GenEval
Sec/prompt
Memory (GB)
Vanilla
4
50
1.0674
0.7214
14.10
35.01
Vanilla-long
4
200
1.0951
0.7355
56.02
35.01
SMC
4
50
1.2896
0.7568
18.35
36.81
PromptSMC
10
20
1.3370
0.7830
41.49
54.47
PromptSMC
20
10
1.3025
0.7840
82.63
54.99
PromptSMC
4
50
1.3331
0.7899
23.29
54.34
Table 7: Comparison of different particle counts and sampling steps on GenEval using SD3. All methods use 200 model function evaluations, i.e., N×Steps , except for the Vanilla-long baseline.
Method
ImageReward
GenEval
Sec/prompt
Memory (GB)
Vanilla
1.0674
0.7214
14.10
35.01
FK (flow-adapted) [ 37 ]
1.0906
0.6258
18.28
36.81
DATE [ 31 ]
1.1397
0.7365
106.7
44.98
SMC [ 37 ]
1.2896
0.7568
18.35
36.81
VP-SDE+RBF [ 17 ]
1.0984
0.6539
56.05
36.81
VP-SDE+SMC [ 17 ]
1.2802
0.7552
18.72
36.81
Table 8: Performance and computational efficiency comparison on GenEval using SD3.
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
Backbone
Checkpoint
Params.
Variant
SD3 Medium
stabilityai/stable-diffusion-3-medium-diffusers
2B
Medium
FLUX
black-forest-labs/FLUX.1-dev
12B
Guidance-distilled
Z-Image
Tongyi-MAI/Z-Image
6B
Undistilled base
Appendix
Table 9: Backbones used in our experiments. Parameter counts exclude auxiliary text encoders.
Model
Checkpoint
Qwen3-VL-4B
Qwen/Qwen3-VL-4B-Instruct
Gemma-3-4B-IT
google/gemma-3-4b-it
Qwen3-VL-8B (default)
Qwen/Qwen3-VL-8B-Instruct
Llama-3.1-8B
meta-llama/Llama-3.1-8B-Instruct
Appendix
Table 10: Overview of the LLMs used for prompt rewriting. All models are only used for text-to-text rewriting.
Backbone
Method
ImageReward † ↑
GenEval ↑
B-CLIP ↑
VQAScore ↑
SD3
Vanilla
1.0674
0.7214
0.7885
0.8886
SMC
1.2896
0.7568
0.7943
0.8988
Ours (Template)
1.2902
0.7653
0.7953
0.9011
Ours (LLM)
1.3331
0.7899
0.8026
0.9038
FLUX.1-dev
Vanilla
0.9588
0.6526
0.7797
0.8105
SMC
1.2367
0.6983
0.7876
0.8379
Appendix
Table 11: Comparison of our method using template-based and LLM-based prompt rewriting on GenEval.
Method
ImageReward ↑
GenEval ↑
NFE
Sec/prompt ↓
LPIPS ↑
DTS
1.1878
0.7415
228
17.17
0.4026
+ Prompt Rejuven.
1.2087
0.7613
228
21.31
0.4329
Appendix
Table 12: Generalization of prompt rejuvenation to DTS on SD3. LPIPS measures the average pairwise diversity. NFE and runtime are reported per prompt. Best values are shown in bold.
Table 21
SD3 [ 7 ]
FLUX.1-dev [ 21 ]
Z-Image [ 3 ]
Method
Overall
Color
Shape
Texture
Overall
Color
Shape
Texture
Overall
Color
Shape
Texture
Vanilla
0.7111
0.8069
0.5986
0.7278
0.6300
0.7609
0.5038
0.6253
0.7292
0.8124
0.6141
0.7610
FK (flow-adapted) [ 37 ]
0.6793
0.7441
0.6036
0.6901
0.5445
0.6283
0.4998
0.5054
0.6455
0.6961
0.5926
0.6478
DATE [ 31 ]
0.7153
0.8173
0.5986
0.7300
0.6380
0.7686
0.5169
0.6284
0.7310
0.8114
0.6155
0.7660
SMC [ 37 ]
0.7346
0.8282
0.6218
0.7540
0.6723
0.7884
0.5534
0.6753
0.7431
0.8252
0.6438
0.7603
VP-SDE+RBF [ 17 ]
0.6902
0.7990
0.5690
0.7026
0.6386
0.7633
0.5126
0.6398
0.7201
0.8014
0.6136
0.7452
Appendix
Table 16: Results on T2I-CompBench across three flow matching backbones. Overall is the arithmetic mean of the Color, Shape, and Texture B-VQA scores. The best and second-best results within each backbone are shown in bold and underline , respectively.
Method
N
ImageReward † ↑
GenEval ↑
Sec/prompt ↓
Memory (GB) ↓
Best-of- N
2
1.2588
0.7531
7.17
28.19
4
1.3703
0.7702
14.10
36.81
8
1.4434
0.7914
27.80
36.91
16
1.4827
0.7729
53.89
37.11
32
1.5261
0.7836
107.36
37.51
SMC
2
1.2373
0.7442
9.56
28.19
Appendix
Table 17: Particle scaling results on GenEval using SD3. All quality results use ImageReward-based Top-1 selection.
Window
ImageReward ↑
GenEval ↑
B-CLIP ↑
VQAScore ↑
LPIPS ↑
[0,30)
1.3152
0.7842
0.8012
0.9008
0.1752
[5,35)
1.3180
0.7824
0.8015
0.9065
0.1681
[10,40)
1.3331
0.7899
0.8026
0.9038
0.2437
[15,45)
1.3188
0.7720
0.8029
0.8983
0.3221
[20,50)
1.3244
0.7743
0.8008
0.9059
0.3403
[0,50)
1.3205
0.7819
0.8023
0.8970
0.1769
Appendix
Table 18: Effect of the prompt-rewriting window on GenEval using SD3. The shaded row denotes our default setting.
Interval
ImageReward ↑
GenEval ↑
LPIPS ↑
Time (s/prompt) ↓
1
1.3132
0.7713
0.2282
37.53
5
1.3331
0.7899
0.2437
23.29
10
1.3195
0.7836
0.2506
21.70
15
1.3120
0.7844
0.2671
21.61
Appendix
Table 19: Effect of the prompt-rewriting interval f on GenEval using SD3. The shaded row denotes our default setting.
λ
ImageReward ↑
GenEval ↑
B-CLIP ↑
VQAScore ↑
LPIPS ↑
0
1.0912
0.7375
0.7907
0.8953
0.6665
5
1.2562
0.7572
0.8000
0.9039
0.4068
10
1.3331
0.7899
0.8026
0.9038
0.2437
20
1.3405
0.8004
0.8008
0.9036
0.1341
30
1.3478
0.7933
0.8007
0.9078
0.0926
Appendix
Table 20: Effect of the guidance strength λ on GenEval using SD3. The shaded row denotes our default setting.
Method
ImageReward
GenEval
B-CLIP
VQAScore
NFE
Time (s)
Memory (GB)
Vanilla
1.0674
0.7214
0.7885
0.8886
200
14.10
35.01
DATE (10%)
1.0676
0.7243
0.7871
0.8878
210
21.55
44.98
DATE (20%)
1.0794
0.7189
0.7881
0.8912
220
30.60
44.98
DATE (50%)
1.1000
0.7191
0.7879
0.8888
250
58.31
44.98
DATE (100%)
1.1397
0.7365
0.7872
0.8868
300
106.72
44.98
PromptSMC (Ours)
1.3331
0.7899
0.8026
0.9038
200
23.29
54.34
Appendix
Table 21: Compute–performance comparison of DATE and PromptSMC on GenEval with SD3. NFE, runtime, and peak GPU memory are reported per prompt.
Figure 10: Effect of prompt paraphrasing on image generation. Each row corresponds to a fixed backbone and initial latent. Each column represents a different paraphrase of the same prompt. Within each row, the initial latent and sampling settings are fixed, but different prompt paraphrases can still produce noticeably different images.
Figure 11: Visual comparison of our method with other state-of-the-art inference-time scaling approaches on GenEval and T2I-CompBench. Key requirements in each prompt are highlighted in red. Please zoom in to view the details.
Figure 12: Qualitative comparison of vanilla generation, standard SMC, and PromptSMC on prompts involving complex counting using the FLUX.1-dev backbone. Key prompt requirements are highlighted in red. Zoom in for details.
Figure 13: Qualitative comparison of vanilla generation, standard SMC, and PromptSMC on prompts involving logical constraints using the FLUX.1-dev backbone. Key prompt requirements are highlighted in red. Zoom in for details.
Figure 14: Qualitative comparison of vanilla generation, standard SMC, and PromptSMC on challenging attribute-binding prompts using the FLUX.1-dev backbone. Key prompt requirements are highlighted in red. Zoom in for details.
Figure 15: Qualitative comparison of vanilla generation, standard SMC, and PromptSMC on prompts involving unusual spatial relationships using the FLUX.1-dev backbone. Key prompt requirements are highlighted in red. Zoom in for details.
Figure 16: Failure cases of our method involving lexical ambiguity, unrealistic attribute combinations, scene-level constraints and complex geometry. Key prompt requirements are highlighted in red.
Text-image alignment measures and improves how accurately visual content matches language, from image retrieval and caption checking to text-guided generation.