PromptSMC: Enabling Particle Exploration in Flow Matching via LLM-Based Prompt Rejuvenation
Organizations: Linköping University
Abstract
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
| 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 |
| 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 |
| 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 |
| 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 |
| Method | ImageReward | GenEval | Sec/prompt | Memory (GB) |
|---|---|---|---|---|
| Best-of- | 1.3703 | 0.7702 | 14.10 | 36.81 |
| Best-of- (w/ rewriting) | 1.3860 | 0.7837 | 16.13 | 52.55 |
| PromptSMC (Ours) | 1.4068 | 0.8022 | 23.29 | 54.34 |
| 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 |
| Method | 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 |
| 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 |
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 |
| 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 |
| 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 |
| 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 |
| 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 |
| Method | ImageReward † | GenEval | Sec/prompt | Memory (GB) | |
|---|---|---|---|---|---|
| Best-of- | 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 |
| Window | ImageReward | GenEval | B-CLIP | VQAScore | LPIPS |
|---|---|---|---|---|---|
| 1.3152 | 0.7842 | 0.8012 | 0.9008 | 0.1752 | |
| 1.3180 | 0.7824 | 0.8015 | 0.9065 | 0.1681 | |
| 1.3331 | 0.7899 | 0.8026 | 0.9038 | 0.2437 | |
| 1.3188 | 0.7720 | 0.8029 | 0.8983 | 0.3221 | |
| 1.3244 | 0.7743 | 0.8008 | 0.9059 | 0.3403 | |
| 1.3205 | 0.7819 | 0.8023 | 0.8970 | 0.1769 |
| 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 |
| 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 |
| 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 |
Text-Image Alignment
Text-image alignment measures and improves how accurately visual content matches language, from image retrieval and caption checking to text-guided generation.
See all 31 papers