PromptSMC: Enabling Particle Exploration in Flow Matching via LLM-Based Prompt Rejuvenation

Wenyi Lian, Zheng Zhao, Thomas B. SchönarXiv 2026

TL;DR

Modern text-to-image generators produce stunning visuals, yet still stumble over tricky details like exact counts, spatial layouts, or odd color combinations. PromptSMC fixes this at inference time by running multiple image-generation paths in parallel, discarding the duds, and—here is the clever twist—using a Large Language Model (LLM) to dynamically rephrase the prompt mid-generation. This linguistic nudge steers cloned image trajectories onto fresh, diverse paths without retraining the model or injecting artificial noise into the image itself.

Standard FLUX.1-dev (left) struggles with specific counts and colors—producing pink moons instead of blue—whereas PromptSMC (right) nails the prompt "A woman on a bridge of books over a pink river beneath two blue moons."

What Problem Does This Paper Address?

State-of-the-art image models like Stable Diffusion 3 and FLUX rely on flow matching. Think of flow matching as placing a drop of random noise into a river and letting a learned current—an Ordinary Differential Equation (ODE)—carry it smoothly to a final image. Even with great currents, models frequently miss compositional instructions, such as "a girl in white flying a pink kite and a blue kite."

Figure 1. We introduce PromptSMC, an inference-time scaling approach merging sequential Monte Carlo (SMC) and LLM-based prompt rejuvenation for text-to-image flow matching. By revising prompts during generation, the prompt-image alignment is improved. This is achieved by enabling particle exploration under deterministic ODE sampling. Each pair compares standard FLUX.1-dev [21] generation (left) with PromptSMC (right) using the same backbone. Prompts are shown below each pair, with key requirements highlighted in red.

To fix this without retraining, researchers use inference-time scaling—specifically, Sequential Monte Carlo (SMC). In SMC, you launch several candidate images ("particles") in parallel. Periodically, a reward model scores how well they match the prompt; bad ones are culled, and promising ones are cloned to explore further.

Here is the catch: flow matching ODEs are completely deterministic. If you clone a promising intermediate image state and keep the text prompt identical, both clones ride the exact same current to the exact same destination. You haven't explored anything; you've just wasted compute making photocopies. Previous work forced clones apart by injecting random mathematical noise into the image latents, turning smooth ODEs into jittery Stochastic Differential Equations (SDEs). The authors ask: Can we get clones to explore new paths while keeping the smooth, deterministic flow intact?

Methods

The authors' core realization is that the river's current (the velocity field) is shaped by the text prompt. If you slightly reword the prompt while keeping its meaning identical, the current shifts!

PromptSMC combines standard reward-guided SMC with a novel mechanism called LLM-based prompt rejuvenation:

  1. Parallel Start: Launch $N$ particles (typically $N=4$) from random noise, all conditioned on the user's original prompt.
  2. Peek Ahead & Score: Every few steps along the 50-step generation timeline, fast-forward each particle to estimate what its finished image looks like. Score these previews using an off-the-shelf reward model (like ImageReward)—crucially, always judging against the original user prompt.
  3. Resample & Rejuvenate: Clone the high-scoring particles and drop the low-scoring ones. Whenever a particle is duplicated, an LLM (Qwen3-VL-8B-Instruct) rewrites the prompt for the clones under strict instructions: preserve all objects, counts, colors, and spatial relationships, varying only the phrasing.
  4. Propagate: Each clone continues smoothly from its shared intermediate image state, but now follows a newly angled velocity field induced by its freshly phrased prompt.

No model weights are updated, no reward gradients are backpropagated, and no Gaussian noise corrupts the latent state.

Datasets

PromptSMC requires no training data. For evaluation, the authors test across two established compositional benchmarks (no new datasets are introduced):

  • GenEval: 553 prompts testing six specific skills: single object, two objects, counting, colors, spatial position, and color attribution.
  • T2I-CompBench: Evaluated specifically on its attribute-binding tasks (color, shape, and texture), comprising 300 prompts per category.

Key Insights and Ideas

  • Stochasticity via language, not latent noise: Instead of shaking the image pixels with random math to force exploration, PromptSMC injects randomness through natural language synonyms and syntax shifts. It turns prompt sensitivity—usually seen as a frustrating quirk of generative AI—into a mathematically useful exploration tool.
  • Goldilocks prompt rewriting: How much freedom should the LLM have? Too little ("minimal rewrite") yields 67.9% duplicate prompts, stalling exploration. Too much ("extensive rewrite") balloons prompts from ~8 words to ~45 words, hallucinating details that distract from the goal. Strict semantic constraints (~21 words, 5.1% duplicates) hit the sweet spot.
  • Dynamic beats static: Simply rewriting prompts once at the very beginning helps, and picking the "Best-of-$N$" finished images helps. However, dynamically revising prompts mid-flight at intermediate checkpoints (every 5 steps works better than every single step) consistently beats both, proving that branching out from an already-good visual layout is key.

Key Results

Tested across three flow-matching backbones (Stable Diffusion 3, FLUX.1-dev, and Z-Image), PromptSMC consistently outperforms vanilla generation and six inference-time scaling baselines (including SDE-based and noise-rejuvenation methods):

  • GenEval Gains: PromptSMC boosts accuracy on SD3 from 0.7214 to 0.7899, on FLUX.1-dev from 0.6526 to 0.7699 (+11.7 percentage points, with massive jumps in spatial positioning and counting), and on Z-Image from 0.7534 to 0.8358.
  • T2I-CompBench: Achieves the highest BLIP-VQA scores on SD3 (0.7407 vs. 0.7111 vanilla) and FLUX.1-dev (0.6887 vs. 0.6300 vanilla), and second-best on Z-Image (0.7503).
  • Visual Precision: Qualitatively, it untangles tricky attribute bindings where baselines fail—like generating a black sandwich on a pink table rather than a standard burger on a black plate.
PromptSMC (right) faithfully renders "a pink dining table and a black sandwich," whereas standard FLUX.1-dev (left) swaps the black attribute onto a plate.

Limitations and Future Work

While the paper does not feature a dedicated limitations section, the authors' ablation studies candidly highlight a few practical trade-offs:

  • Compute and Memory Overhead: Keeping an 8B-parameter LLM in memory alongside the image generator increases VRAM usage on SD3 from 35.01 GB to 54.34 GB, and increases generation time from 14.10s to 23.29s per prompt (though it remains much faster than gradient/embedding-optimization baselines like DATE at 106.7s).
  • Alignment vs. Diversity Trade-off: Cranking up the reward-guidance strength ($\lambda$) pushes alignment scores higher, edit-by-edit, but causes the $N$ output images to collapse toward looking nearly identical (measured via dropping LPIPS diversity scores).
  • Scaling Saturation: Increasing particle counts from $N=2$ up to $N=16$ steadily improves GenEval accuracy, outscaling standard SMC, before saturating and dipping slightly at $N=32$.

Summary updated

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.
BibTeX
@misc{lian2026promptsmc,
  author = {Wenyi Lian and Zheng Zhao and Thomas B. Schön},
  title = {{PromptSMC: Enabling Particle Exploration in Flow Matching via LLM-Based Prompt Rejuvenation}},
  year = {2026},
  eprint = {2611.31471},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31471},
}
Figure