arXiv:2610.25139cs.CVOct 2026

Manuscript Offprint

arXiv:2610.25139

Reflection-Guided Dynamics Rectification for Text-to-Image Generation

Shuo Xu, Hanrui Ying, Debin Liu, Jianjun Li, Zhiyuan Ma

Shuo Xu 1,2∗^{1,2*}, Hanrui Ying 1^{1}, Debin Liu 3^{3}, Jianjun Li 1^{1}, Zhiyuan Ma 1†^{1\dagger}

1^{1}Huazhong University of Science and Technology 2^{2}Sorbonne University 3^{3}Zhengzhou University

*Project leader and first author. †Corresponding author.

Preprint.

Stable Diffusion 3.5

Medium

Left target: Both "Happy Birthday" and "Mandy Ringe Photography" clearly legible. Right target: Exactly three river-spanning stone arches.

Figure

Base

Figure

BoN

TIR

Dynamic CFG

RGDR (Ours)

Left target: An open-air bar on the Eiffel Tower; no Eiffel Tower in the background. Right target: Ions pass through DA18C6-nitrate crystals but are blocked by zinc hydroxide nitrate.

FLUX-1-dev

Figure

Base

Figure

BoN

TIR

Dynamic CFG

RGDR (Ours)

Left target: Render "ANTHER FOUR".

Right target: A bride in a wedding dress riding a bicycle through a golden field.

SANA-1.5 1.6B

Figure

Base

Figure

BoN

TIR

Dynamic CFG

RGDR (Ours)

Left target: Four characters: LinaBell, a brown bear, a pink bear, and a purple rabbit. Right target: Surreal tree roots and glowing fruit rising into the mouths of floating stone-like beings.

Owen-Image-Edit-2511

Figure

Base

Fixed input

Figure

BoN

TIR

Dynamic CFG

RGDR (Ours)

Figure 1: Reflection-guided Dynamics Rectification (RGDR). RGDR turns reflections on existing outputs into stepwise corrections along sampling trajectories. Qualitative comparisons with BoN, TIR, and Dynamic CFG across one image-editing model and three text-to-image models illustrate how different methods address residual errors and affect existing content during rectification.

ABSTRACT

Fine-grained rectification of existing generations under a limited additional budget remains a key problem in test-time optimization (TTO) for image generation. As for prior approaches, they could identify residual errors, but could not directly ensure that the model acts on the feedback during reasoning. Such errors stem from multiple sources, such as the initial noise or text prompt, and ultimately induce an execution gap of failing to handle potential deviations along the trajectory generating. However, classic models generally cannot remedy this gap. To narrow it, we propose Reflection-Guided Dynamics Rectification (RGDR), which turns reflections on completed outputs into corrective interventions on the process.

Interactive demos, dataset, and code for this paper are available at: https://mair-lab-hust.github.io/RGDR/.

of sampling dynamics at the trajectory level. Specifically, RGDR could impact every sampling step by adapting to instantaneous intervention. Moreover, RGDR generates flexible candidates while adjudicating between them and the reference. As experiments show, rectification from RGDR starts from the existing base trajectory and reflection, and RGDR is substantially more effective than former trajectory exploration. Under matched budgets for additional image generation, RGDR's gain in the cross-model average final checklist score over the reference is 1.51×1.51 \times that of TIR prompt refinement and 1.81×1.81 \times that of Dynamic CFG.

1 INTRODUCTION

Research on text-to-image generation is increasingly directed toward achieving superior quality and better alignment with prompts. Specifically, as inference costs accumulate, test-time optimization (TTO) demonstrates its superiority without updating the parameters of a pretrained model. As for prior methods, they have made progress through sampling, search, and feedback-driven refinement, using generative models to produce additional candidates or image-editing models to revise the output (Wan et al., 2026; Jiang et al., 2026). However, a challenge has arisen in optimizing outputs under a limited additional budget, correcting residual errors while preserving prior progress.

We classify the methods commonly into two types. One is the noise-level scaling, and the other is the prompt-level scaling. These are two common approaches that improve the quality of image generation by searching for noise initialization and using the text prompt respectively. (Zhuo et al., 2025). Although the previous approaches are still effective, it is no longer possible to continuously achieve higher gains by further adjusting the noise or prompts when the budget is limited. Figure 2 contrasts the behavior of Noise Sampling and Prompt Refinement. The former produces substantial visual variation, whereas the latter repeatedly produces similar outputs, yet key requirements remain unmet in the illustrated examples. Across the evaluated settings, the mean score gain per additional image also generally decreases as the budget grows. Therefore, we believe that the quality of noise initialization and text guidance do indeed affect the correction effect, but the real bottleneck lies in the fact that the way the model transforms the guidance into images through continuous state updates along the generation trajectory is rather fragile. (Ho et al., 2020). If the intended correction does not succeed through updates, residual errors can persist, leaving an execution gap between the intention of the correction and the generative response. This motivates trajectory-level methods, which intervene in the sampling process rather than only searching over its initial conditions.

In terms of prior work, they have explored TTO along generation trajectories, using evaluations or diagnoses of intermediate states to guide subsequent sampling (Ma et al., 2025; Papalampidi et al., 2025; Lv et al., 2025). However, these trajectory-level TTO methods do not fully exploit the information available in follow-up rectification, such as the completed reference revealing residual errors. Therefore, we consider converting the residual-error diagnosis of a completed output into guidance that steers a new trajectory while retaining the reference configuration. Related work provides a conceptual basis for such interventions, as SEGA (Brack et al., 2023) introduces additional semantic guidance, while CFG-Ctrl (Wang et al., 2026a) interprets velocity-field modulation from a control-theoretic perspective.

Given the above analysis, proposing a trajectory-level test-time scaling method for rectifying existing generations is crucial. Therefore, we introduce RGDR, which adds a reflection-guided correction field to the base velocity field at each sampling step and generates complete candidates by controlling the correction strength. The correction field is the difference between velocity predictions conditioned on the desired state (Target) and the current erroneous state (Reference). Under suitable regularity conditions, we establish continuity and bounded deviation of candidates and derive sufficient conditions for corrective progress to outweigh accompanying interference. Figure 3 illustrates how feedback correction acts throughout generation by comparing trajectories from the same initial noise.

To show the superiority in reasoning tasks, we evaluate RGDR on tasks drawn from PRISM-Bench (Fang et al., 2025) and SciIR-Bench (Ma et al., 2026) using three text-to-image models, Stable Diffusion 3.5 Medium, SANA-1.5 1.6B, and FLUX.1-dev, and the image-editing model Qwen-Image-Edit-2511. For each task and model, all methods continue from the same reference selected by preceding optimization. Under matched budgets for additional image generation, we

Prompt: A tandem skydiving selfie: the man behind extends his left arm for the photo, while the woman in front makes a right-hand shaka.

Noise Sampling

Figure

Distorted fingers; the woman's right-hand shaka is missing

Prompt Refinement

Figure

Extra arms; the woman's right-hand shaka is missing

— Noise Sampling

— Prompt Refinement

Figure

Additional images

Figure 2: Limitations of noise sampling and prompt refinement in follow-up rectification. The left panel shows qualitative results from noise sampling (top) and prompt refinement (bottom). The right panel reports mean score gain per additional image across generation budgets.

compare RGDR with BoN, TIR, and Dynamic CFG, which respectively resample the noise, refine the prompt, and tune the guidance scale. RGDR achieves the highest average final checklist score and repair rate across all four models, providing greater rectification gains than further noise or prompt adjustments and than adjusting native guidance strength alone. The same advantage on previously edited outputs shows that RGDR can serve as an additional rectification mechanism within existing generation and editing workflows. Direction ablations show the advantage of the Target–Reference construction over the tested alternatives, while strength analysis shows that effective correction depends on intervention direction and magnitude, rather than larger perturbations alone.