Manuscript Offprint
arXiv:2610.25139Reflection-Guided Dynamics Rectification for Text-to-Image Generation
Shuo Xu , Hanrui Ying , Debin Liu , Jianjun Li , Zhiyuan Ma
Huazhong University of Science and Technology Sorbonne University 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.

Base

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

Base

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

Base

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

Base
Fixed input

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 that of TIR prompt refinement and 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

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

Extra arms; the woman's right-hand shaka is missing
— Noise Sampling
— Prompt Refinement

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.
2.1 FLOW-BASED GENERATION
We formulate trajectory rectification in flow models as an intervention on the sampling velocity field. Flow models describe continuous transformations between noise and data distributions through time-dependent velocity fields. Flow matching (Lipman et al., 2023) and rectified flow (Liu et al., 2023) learn these fields and generate samples using numerical ordinary differential equation (ODE) solvers. Under the time convention from the noise endpoint T to the data endpoint 0, a sampling trajectory conditioned on c satisfies
Here, is the generative state, is the sampling horizon, is the -dimensional identity matrix, and is the velocity field incorporating the chosen guidance configuration. The states and denote the initial noise and generated endpoint, respectively. In latent-space models, a decoder maps to the final image (Rombach et al., 2022). This framework supports both text-to-image generation and image editing. For example, FLUX.1 Kontext (Black Forest Labs et al., 2025) unifies image generation and conditional editing within a flow-matching model.
2.2 SEMANTIC GUIDANCE AND ADDITIVE VELOCITY FIELDS
Semantic guidance combines or modifies model predictions to change state updates during sampling, thereby steering generation trajectories. Classifier-free guidance (CFG) (Ho & Salimans, 2022) combines conditional and unconditional predictions and scales their difference. SEGA (Brack et al., 2023) introduces independently adjustable concept directions alongside the original prompt guidance, allowing additional semantics to influence sampling updates.
RGDR constructs reflection-guided trajectory corrections using the additive velocity-field formulation
where is the base velocity field, is an additional semantic direction field, and is a scaling coefficient. Both fields are evaluated at the same time and current state.

Figure 3: Stepwise visualization with RGDR. Reflections on the completed reference provide fixed Target–Reference conditions for constructing the correction field. Heatmaps show the spatial distribution of the correction signal along the generation trajectory.
2.3 TEST-TIME OPTIMIZATION FOR IMAGE GENERATION
Test-time optimization improves image generation through additional sampling, search, and feedback-driven refinement (Wan et al., 2026). BoN (Ma et al., 2025) selects candidates generated from different noise initializations, while TIR (Khan et al., 2025) refines prompts using the current image and accumulated feedback. ReflectionFlow (Zhuo et al., 2025) and Reflect-DiT (Li et al., 2025) train models to revise outputs using existing images and textual reflections, whereas RAISE (Jiang et al., 2026) coordinates prompt rewriting, noise resampling, and image editing without additional training. These methods use candidate selection or feedback-driven correction to organize subsequent generation and editing around existing outputs.
Trajectory-Level Scaling. Related work uses evaluations and diagnoses of intermediate states to adjust generation trajectories. Search over Paths (Ma et al., 2025) evaluates denoised predictions to select subsequent branches, while Dynamic CFG (Papalampidi et al., 2025) uses latent-space evaluators to select guidance scales at each step. PPAD (Lv et al., 2025) diagnoses intermediate previews and revises subsequent denoising through corrective conditions and rollback. T2S2 (Sakurai et al., 2026) detects prohibited concepts in intermediate clean-image estimates, optimizes a low-rank conditioning residual, and restarts sampling.
3 METHOD
3.1 CONTROLLED SUPERPOSITION OF THE CORRECTION FIELD
Continuity and bounded deviation of the candidate family. Starting from Eq. (2) in Section 2.2, fix the base field, correction field, and initial noise, and consider
We omit the dependence of the trajectory state on and denote the endpoint of a complete generation by . A strength range defines the candidate family , with reference endpoint .
Theorem 3.1 (Continuity and bounded deviation of the candidate family). Fix . Suppose that the dynamics admit a unique solution for every . On a common region containing the relevant trajectories, assume that and are continuous in time and uniformly Lipschitz in the state, and that is bounded. Then there exists a finite constant , independent of , , such that, for all ,
The two bounds describe continuous dependence of the endpoint on strength and its deviation from the reference, respectively. Candidates converge to the reference endpoint as . The proof is provided in Appendix B.1.
Relative reparameterization of the intervention strength. The theorem characterizes endpoint variation for a fixed direction field, but the relative effect of the raw coefficient still depends on the norms of the correction and base fields. We therefore reparameterize the additional term relative to the base velocity norm,
(5)
Here, sets the overall relative strength and is a fixed, bounded temporal schedule. By construction,
The correction at each sampling step is thus scaled relative to the current base velocity, with bounding its relative norm. This gives a dimensionless interpretation as a relative intervention parameter, rather than merely a multiplier of the raw direction.
Temporal scheduling. The schedule distributes the correction strength along the generation trajectory. Under the convention , gives constant intervention, places greater strength early in sampling, and places greater strength later. Other nonnegative bounded schedules can also be used. Model-specific schedules and scheduling experiments are provided in Appendices C.2, D.1, and D.2.
With the direction field and schedule fixed, let denote the endpoint of a complete generation under . Applying Theorem 3.1 with direction field and strength , under the corresponding regularity conditions, shows that candidate endpoints vary continuously with , have bounded deviations from the reference, and converge to the reference endpoint as . Figure 4 illustrates this candidate space continuously parameterized by relative strength.
3.2 SEMANTIC CONSTRUCTION OF THE CORRECTION FIELD
Corrective progress and accompanying interference. Fix the task , feedback , and the base field, initial noise, and schedule from Section 3.1. We write for the direction field constructed from , and retain for the endpoint under relative reparameterization. Let be a fixed task representation used for analysis, where is its dimension. For latent-space generation, this mapping includes image decoding. Define
In this representation space, let the unit vector specify the desired correction direction, and let be the orthogonal projector onto the local subspace sensitive to properties already satisfied by the reference, with . Let weight the interference term. These analytical objects remain fixed for the current correction and are assumed to capture the progress and interference of interest. Define the net corrective progress
The first term measures signed progress along the desired direction; the second measures the magnitude of changes in the subspace associated with already satisfied properties. A positive means that corrective progress outweighs weighted accompanying interference. This quantity is used for local task-representation analysis and does not directly imply a higher discrete checklist score; projected changes need not indicate damage to existing properties.

Figure 4: Continuously controlled candidate space. The blue and purple curves represent candidate endpoints parameterized by the CFG scale w and RGDR relative strength .
Theorem 3.2 (Dominance of corrective progress induced by the feedback direction). Let . Suppose that is twice continuously differentiable on , with
If the task response induced by satisfies
where is the right derivative at zero strength, then, for every ,
Consequently, when M > 0, we have for all strengths satisfying
When M = 0, the same conclusion holds for all .
The result permits accompanying interference, provided that first-order corrective progress at the reference exceeds its weighted contribution. The second-order response bound determines the strength interval over which this advantage holds. The proof and the dynamical expansion of the first-order response are provided in Appendices B.2 and B.3.
Target–Reference semantic construction. To emphasize the requested change and reduce unrelated intervention, we extract from feedback F two conditions describing the desired state, , and the current erroneous state, . Using the frozen model’s conditional velocity predictions , we construct
Both conditions focus on the attributes, objects, or relations to be corrected and retain the necessary context without restating unrelated requirements that are already satisfied. This construction aims to increase the first-order margin between corrective progress and interference in the first-order direction condition; it does not automatically satisfy that sufficient condition, and its effect is examined through generative responses and experiments.
(a) Base and reflection

(b) Trajectory rectification
RGDR sampler
Fixed reflection
Candidates
Figure 5: RGDR pipeline overview.
3.3 RGDR ALGORITHM
Combining the controlled superposition in Section 3.1 with the semantic construction in Section 3.2, RGDR derives Target and Reference conditions from reflections on a completed reference output. These describe the desired and observed states of the elements requiring correction, respectively, retaining relevant context without requesting changes to already-correct content. At each sampling step, RGDR recomputes the difference between the corresponding conditional velocity predictions, applies relative reparameterization, and adds the resulting correction to the base velocity field. With the generation configuration, feedback, and schedule fixed, candidates at different relative strengths are sampled separately from the same initial noise and evaluated alongside the reference for final selection. Model parameters remain fixed throughout. Algorithm 1 details the procedure, and Figure 5 illustrates the pipeline.
Algorithm 1 Reflection-Guided Dynamics Rectification (RGDR)
Input Task ; reference endpoint ; fixed initial noise ; base field ; frozen conditional field ; feedback ; schedule ; relative strength set ; stabilizer ; evaluator scoring the image corresponding to endpoint
Output Selected endpoint
1: Extract Target and Reference conditions from
2: Evaluate both terms at the same
3:
4:
5: for all do
6: Restart from the fixed initial noise
7: Integrate over the full interval from to Recompute the fields at each current state
8:
9: end for
10:
11: return
Table 1: Comparison of follow-up rectification on PRISM-Bench and SciIR-Bench tasks. Budget denotes the number of additional complete images per reference requiring correction. Bold indicates the best value in each column for a given model.
| Method | Budget(Budget(images)) | Task performance | |||||
|---|---|---|---|---|---|---|---|
| Final ↑(0-100) | Gain ↑(points) | Rel. gain ↑(%) | Improved ↑(%) | Repair ↑(%) | Preserve ↑(%) | ||
| Stable Diffusion 3.5 Medium | Base = 56.90 | ||||||
| BoN | 10 | 58.25 | +1.35 | 2.38 | 12.0 | 4.11 | 96.14 |
| TIR | 10 | 58.14 | +1.24 | 2.18 | 13.5 | 6.04 | 98.39 |
| Dynamic CFG | 10 | 59.05 | +2.15 | 3.79 | 23.0 | 6.99 | 97.87 |
| RGDR (Ours) | 10 | 60.64 | +3.74 | 6.58 | 28.0 | 12.96 | 96.44 |
| SANA-1.5 1.6B | Base = 46.55 | ||||||
| BoN | 10 | 48.09 | +1.54 | 3.31 | 13.0 | 3.40 | 99.08 |
| TIR | 10 | 49.96 | +3.41 | 7.32 | 25.0 | 9.71 | 96.61 |
| Dynamic CFG | 10 | 48.97 | +2.42 | 5.19 | 22.5 | 6.55 | 99.07 |
| RGDR (Ours) | 10 | 50.92 | +4.37 | 9.38 | 31.5 | 13.07 | 94.46 |
| FLUX.1-dev | Base = 70.30 | ||||||
| BoN | 10 | 71.57 | +1.27 | 1.80 | 11.5 | 7.92 | 97.65 |
| TIR | 10 | 73.29 | +2.99 | 4.25 | 15.5 | 10.23 | 97.86 |
| Dynamic CFG | 10 | 71.93 | +1.63 | 2.32 | 16.5 | 8.78 | 97.65 |
| RGDR (Ours) | 10 | 74.67 | +4.36 | 6.21 | 26.5 | 19.15 | 96.78 |
| Qwen-Image-Edit-2511 | Base = 72.77 | ||||||
| BoN | 5 | 74.84 | +2.07 | 2.85 | 24.55 | 13.99 | 97.53 |
| TIR | 5 | 76.17 | +3.41 | 4.68 | 30.91 | 20.32 | 97.25 |
| Dynamic CFG | 5 | 75.79 | +3.03 | 4.17 | 29.09 | 16.27 | 97.95 |
| RGDR (Ours) | 5 | 76.99 | +4.23 | 5.81 | 33.64 | 23.58 | 96.48 |
4 EXPERIMENTS
4.1 SETUP
To evaluate fine-grained rectification of verifiable residual errors, we build an evaluation set from PRISM-Bench and SciIR-Bench, covering compositional requirements and scientific image reasoning (Fang et al., 2025; Ma et al., 2026). References are generated by Stable Diffusion 3.5 Medium, SANA-1.5 1.6B, and FLUX.1-dev, or edited from SD3.5 Medium outputs by Qwen-Image-Edit-2511. All parameters remain frozen. Doubao Seed-2.1 Pro supplies feedback and scores outputs against fixed checklists on a 0–100 scale. We report Final, Gain, Rel. gain, and Improved for overall fulfillment and follow-up improvement, and Repair and Preserve for error correction and retention. Details are provided in Appendices C.1, C.2, and C.3.
4.2 MAIN EXPERIMENTS
Comparison of follow-up rectification methods. Following the evaluation protocol in Appendix C.3, we first perform BoN sampling under an initial image-generation budget for each task and model and select the highest-scoring candidate as the reference. Starting from these references, we compare continued BoN sampling (Ma et al., 2025), TIR prompt refinement (Khan et al., 2025), a guidance-scale baseline adapted from Dynamic CFG (Papalampidi et al., 2025), and RGDR across three text-to-image models and one image-editing model. All methods share the same reference and receive the matched additional-image budgets in Table 1. Reference construction and comparison protocols are detailed in Appendix C.4.
Table 1 shows that RGDR achieves the highest Final, Gain, Improved, and Repair across all four models. Averaged equally across models, its Gain exceeds that of BoN and TIR by 2.62 and 1.41 points, respectively. Under matched additional-image budgets, stepwise corrections along generation trajectories therefore realize more residual requirements than further noise or prompt adjustments. Figure 1 shows how targeted corrections can preserve the structure of existing scenes. In the bridal cycling example, RGDR adds the bicycle and riding action while retaining the side-view figure, wedding dress, and golden field, whereas TIR changes the subject's orientation and composition. In the text examples, modifications concentrate on the text region while retaining the
Table 2: Correction direction ablation averaged across four models. Gain is measured in score points and Repair in percent. Bold indicates the best value in each column.
| Direction | Category-wise Gain ↑ | Overall | |||
|---|---|---|---|---|---|
| Human | Open | Scientific & Text | Gain ↑ | Repair (%) ↑ | |
| TR Correct | 7.56 | 5.71 | 3.18 | 4.34 | 15.28 |
| Operation | 2.09 | 2.75 | 2.65 | 2.60 | 7.95 |
| TR Wrong | 3.87 | 1.56 | 0.45 | 1.15 | 4.36 |
| Gaussian | 0.37 | 0.43 | 1.82 | 1.31 | 4.16 |
(a) Base image

Three chimneys
Correction target:
Exactly two chimneys
(b) Direction ablation
TR Correct

Two chimneys
Gaussian
Unrelated objects
Operation

Three chimneys remain
Blurred structure
(c) Improved selections (0–8%)
TR Correct

Selected strength η
(d) η uniformity and gain

Figure 6: Qualitative comparison of correction directions and strength analysis on SD3.5 Medium. Panels (a,b) show a qualitative example under different correction directions. Panels (c,d) report the selected-strength distributions of improved outputs, selected-strength uniformity, and mean gain on a separate paired visualization set.
surrounding border or sign setting. These comparisons address the difficulty of realizing requested changes while controlling visual variation illustrated in Figure 2. RGDR also achieves 1.81 times the mean Gain of the adapted Dynamic CFG baseline, supporting the error-specific additional direction illustrated in Figure 4. Reflection-guided trajectory correction thus provides greater rectification gains 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.
4.3 ABLATION STUDIES
Correction direction construction. Why use Target–Reference to construct the correction direction in RGDR? Motivated by the analysis of corrective progress and accompanying interference in Theorem 3.2, we compare TR Correct, Operation, TR Wrong, and Gaussian on the rectification subsets of all four models. All configurations share references, relative reparameterization, and the evaluation protocol. The constructions of these four methods are detailed in Appendix C.5.
TR Correct achieves the highest Gain in all three task categories in Table 2, with an overall Gain of 4.34 points and Repair of . The SD3.5 Medium chimney example in Figure 6 illustrates the semantic effects of different directions. TR Correct changes three chimneys to two; Gaussian mainly alters minor details while leaving the incorrect count unchanged; and TR Wrong introduces unrelated objects. On the separate paired visualization set for SD3.5 Medium in Figure 6(c,d), improved selections for TR Correct span multiple strengths from weak interventions up to , while achieving the highest mean Gain. Gaussian also has broadly distributed selected strengths, but its mean Gain is only about one-third of that of TR Correct. Improved selections for Operation concentrate at small strengths, whereas TR Wrong yields none above . These results show that the value of a direction lies not in larger perturbations alone, but in producing useful, target-specific corrections at different intervention strengths. TR Correct provides improved candidates across a broad range of strengths while achieving higher rectification gains, empirically supporting the Target–Reference design motivated by Theorem 3.2.
5 CONCLUSION
We introduce Reflection-Guided Dynamics Rectification (RGDR), a training-free method that translates reflections on existing images into corrections along sampling trajectories to address residual errors in generated outputs. Under suitable conditions, we prove that candidate outputs vary continuously with correction strength and that their deviation from the original output is bounded. We also establish a sufficient condition under which local corrective progress outweighs weighted interference. Experiments show that reflection-guided interventions along sampling trajectories reduce residual errors in generated images. In our ablations, the Target–Reference construction is more effective when modification requests are limited to erroneous content, consistent with the sufficient condition established above. This framework could be extended to a broader range of models and generation tasks.
AI Use STATEMENT
We used generative AI tools to assist with manuscript polishing, the writing of mathematical proofs, the refinement of existing hypotheses, code development, and figure generation. We did not use these tools to originate the core research ideas or claims. The use of generative AI tools to generate synthetic datasets is not applicable to this work, In particular, AI-assisted proofs and hypothesis refinements were checked for logical consistency, code was reviewed and verified for correctness, and figures were inspected for accuracy and scientific plausibility. We take responsibility for the final content of this work, including all text, claims, code, and figures produced with the assistance of generative AI tools.
REPRODUCIBILITY STATEMENT
To make our results reproducible, we provide relevant details in the appendix, including theoretical proofs, task and checklist construction, model and sampling configurations, evaluation protocols, and implementation details of the proposed method.
REFERENCES
Black Forest Labs, Stephen Batifol, Andreas Blattmann, Frederic Boesel, Saksham Consul, Cyril Diagne, Tim Dockhorn, Jack English, Zion English, Patrick Esser, Sumith Kulal, Kyle Lacey, Yam Levi, Cheng Li, Dominik Lorenz, Jonas Müller, Dustin Podell, Robin Rombach, Harry Saini, Axel Sauer, and Luke Smith. FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Space. arXiv preprint arXiv:2506.15742, 2025. URL https://arxiv.org/abs/2506.15742.
Manuel Brack, Felix Friedrich, Dominik Hintersdorf, Lukas Struppek, Patrick Schramowski, and Kristian Kersting. SEGA: Instructing text-to-image models using semantic guidance. In Advances in Neural Information Processing Systems, volume 36, 2023. doi: 10.52202/075280-1102.
Luca Eyring, Shyamgopal Karthik, Karsten Roth, Alexey Dosovitskiy, and Zeynep Akata. ReNO: Enhancing one-step text-to-image models through reward-based noise optimization. In Advances in Neural Information Processing Systems, volume 37, pp. 125487–125519, 2024. doi: 10.52202/079017-3987.
Rongyao Fang, Aldrich Yu, Chengqi Duan, Linjiang Huang, Shuai Bai, Yuxuan Cai, Kun Wang, Si Liu, Xihui Liu, and Hongsheng Li. FLUX-Reason-6M & PRISM-Bench: A million-scale text-to-image reasoning dataset and comprehensive benchmark. arXiv preprint arXiv:2509.09680, 2025. doi: 10.48550/arXiv.2509.09680. URL https://arxiv.org/abs/2509.09680.
Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022. doi: 10.48550/arXiv.2207.12598. URL https://arxiv.org/abs/2207.12598.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. arXiv preprint arXiv:2006.11239, 2020. doi: 10.48550/arXiv.2006.11239. URL https://arxiv.org/abs/2006.11239.
Liyao Jiang, Ruichen Chen, Chao Gao, and Di Niu. RAISE: Requirement-adaptive evolutionary refinement for training-free text-to-image alignment. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, June 2026.
Mohammed Abdul Hafeez Khan, Yash Jain, Siddhartha Bhattacharyya, and Vibhav Vineet. Test-time prompt refinement for text-to-image models. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops, pp. 6565–6575, October 2025.
Subin Kim, Sangwoo Mo, Mamshad Nayeem Rizve, Yiran Xu, Difan Liu, Jinwoo Shin, and Tobias Hinz. Rethinking prompt design for inference-time scaling in text-to-visual generation. arXiv preprint arXiv:2512.03534, 2025. doi: 10.48550/arXiv.2512.03534. URL https://arxiv.org/abs/2512.03534.
Anthony W. Knapp. Basic Real Analysis. Published by the author, East Setauket, NY, digital second edition, 2016. URL https://www.math.stonybrook.edu/~aknapp/download/b2-realanal-inside.pdf.
Shufan Li, Konstantinos Kallidromitis, Akash Gokul, Arsh Koneru, Yusuke Kato, Kazuki Kozuka, and Aditya Grover. Reflect-DiT: Inference-time scaling for text-to-image diffusion transformers via in-context reflection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 15657–15668, October 2025.
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=PqvMRDCJT9t.
Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=XVjTT1nw5z.
Zheqi Lv, Junhao Chen, Qi Tian, Keting Yin, Shengyu Zhang, and Fei Wu. Multimodal LLM-guided semantic correction in text-to-image diffusion. arXiv preprint arXiv:2505.20053, 2025.
Nanye Ma, Shangyuan Tong, Haolin Jia, Hexiang Hu, Yu-Chuan Su, Mingda Zhang, Xuan Yang, Yandong Li, Tommi Jaakkola, Xuhui Jia, and Saining Xie. Scaling inference time compute for diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2523–2534, June 2025.
Zhiyuan Ma, Zhengfeng Shi, Yuning An, Peize Li, Jiabao Wei, Ruijie Li, Junhao Xiao, Jianjun Li, and Bowen Zhou. SciIR: A large-scale training dataset and benchmark for scientific image reasoning generation. In European Conference on Computer Vision, 2026. URL https://arxiv.org/abs/2606.30124.
Jiadong Pan, Zhiyuan Ma, Kaiyan Zhang, Ning Ding, and Bowen Zhou. Self-Reflective Reinforcement Learning for Diffusion-based Image Reasoning Generation. arXiv preprint arXiv:2505.22407, 2025. URL https://arxiv.org/abs/2505.22407.
Pinelopi Papalampidi, Olivia Wiles, Ira Ktena, Aleksandar Shtedritski, Emanuele Bugliarello, Ivana Kajic, Isabela Albuquerque, and Aida Nematzadeh. Dynamic classifier-free diffusion guidance via online feedback. arXiv preprint arXiv:2509.16131, 2025.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 10684–10695, June 2022.
Jinya Sakurai, Shueicheng Yan, and Xun Xu. Test-Time Scaling for Safe Text-Guided Image Generation via Intermediate Clean Estimates. arXiv preprint arXiv:2608.03284, 2026. URL https://arxiv.org/abs/2608.03284.
Raghav Singhal, Zachary Horvitz, Ryan Teehan, Mengye Ren, Zhou Yu, Kathleen McKeown, and Rajesh Ranganath. A general framework for inference-time scaling and steering of diffusion models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 55810–55827, 2025.
Gerald Teschl. Ordinary Differential Equations and Dynamical Systems, volume 140 of Graduate Studies in Mathematics. American Mathematical Society, Providence, RI, 2012. ISBN 9780821883280.
Cong Wan, Ying He, Zhongzhan Huang, and Hefeng Wu. Test-time scaling in multimodal foundation models: A comprehensive survey of generation and reasoning. In Maria Liakata, Viviane P. Moreira, Jiajun Zhang, and David Jurgens (eds.), Findings of the Association for Computational Linguistics: ACL 2026, pp. 7751–7767, San Diego, California, United States, July 2026. Association for Computational Linguistics. ISBN 979-8-89176-395-1. doi: 10.18653/v1/2026.findings-acl.383. URL https://aclanthology.org/2026.findings-acl.383/.
Hanyang Wang, Yiyang Liu, Jiawei Chi, Fangfu Liu, Ran Xue, and Yueqi Duan. CFG-Ctrl: Control-based classifier-free diffusion guidance. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11437–11447, June 2026a.
Tianyu Wang, Zhiyuan Ma, Qian Wang, Xinyi Zhang, Xinwei Long, and Bowen Zhou. RL-RIG: A Generative Spatial Reasoner via Intrinsic Reflection. arXiv preprint arXiv:2602.19974, 2026b. URL https://arxiv.org/abs/2602.19974.
Zhengyuan Yang, Jianfeng Wang, Linjie Li, Kevin Lin, Chung-Ching Lin, Zicheng Liu, and Lijuan Wang. Idea2Img: Iterative Self-Refinement with GPT-4V(ision) for Automatic Image Design and Generation. arXiv preprint arXiv:2310.08541, 2023. URL https://arxiv.org/abs/2310.08541. First released in 2023.
Xiangcheng Zhang, Haowei Lin, Haotian Ye, James Zou, Jianzhu Ma, Yitao Liang, and Yilun Du. Inference-time scaling of diffusion models through classical search, 2025. URL https://arxiv.org/abs/2505.23614.
Le Zhuo, Liangbing Zhao, Sayak Paul, Yue Liao, Renrui Zhang, Yi Xin, Peng Gao, Mohamed Elhoseiny, and Hongsheng Li. From reflection to perfection: Scaling inference-time optimization for text-to-image diffusion models via reflection tuning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 15329–15339, October 2025.
A EXTENDED RELATED WORK
Noise optimization and multi-round reflection. Beyond the noise sampling and prompt refinement methods discussed in the main text, ReNO (Eyring et al., 2024) optimizes initial noise using reward gradients. Idea2Img (Yang et al., 2023) iteratively updates prompts based on diagnoses of generated images, while PRIS (Kim et al., 2025) aggregates recurring errors across candidates to guide prompt redesign. Other work enhances multi-round reflection through training. SRRL (Pan et al., 2025) and RL-RIG (Wang et al., 2026b) use reinforcement learning to improve multi-round image generation and reflection-based editing, respectively.
Particle and tree search along generation trajectories. Feynman–Kac Steering (Singhal et al., 2025) explores generation trajectories through particle resampling, whereas Classical Search (Zhang et al., 2025) combines local and tree search to expand sampling paths. These methods complement the trajectory selection, guidance-scale adjustment, and semantic diagnostic interventions discussed in the main text.
B MATHEMATICAL PROOFS
We retain the definitions and assumptions of the main text. Vector norms are Euclidean, and matrix norms are the corresponding induced operator norms.
B.1 PROOF OF THEOREM 3.1
Let be the uniform state-Lipschitz constants of the base and direction fields, respectively, and choose a finite such that . For , let be the solution trajectories starting from the same initial noise , and write . Their integral equations and the Lipschitz assumptions give
Set . Applying Grönwall's inequality (Teschl, 2012, Lemma 2.7) after the change of time variable yields
Taking and defining , we obtain
Setting and using then gives . This completes the proof. The integral expression for also covers and .
Application after relative reparameterization. Suppose additionally that on the common trajectory region. The reverse triangle inequality and the -Lipschitz bound for imply that the reparameterized direction in the main text satisfies
(B.4)
Thus, for a fixed continuous bounded schedule s, the field satisfies the same types of boundedness and state-Lipschitz conditions, and the preceding comparison applies to . The same integral estimate also holds for bounded piecewise-continuous schedules, provided the corresponding solutions exist.
B.2 PROOF OF THEOREM 3.2
Let . Applying Taylor's formula with an integral remainder componentwise to (Knapp, 2016, Theorem 1.36) gives
Using , , and the triangle inequality,
(B.6)
When and , the right-hand side is strictly positive for
When , we have , so for every . This completes the proof.
B.3 DYNAMICAL EXPRESSION OF THE FIRST-ORDER RESPONSE
To expand in the main text, additionally assume that and are continuously differentiable in the state, with state derivatives bounded in a neighborhood of the relevant trajectories, and that is differentiable at . The fields and their state derivatives are continuous in time. Under these conditions, differentiable dependence on parameters (Teschl, 2012, Theorem 9.16) justifies differentiating the integral equation with respect to . Let denote the reference trajectory and define
Differentiating the sampling dynamics with respect to and evaluating at yields
The condition follows from using the same initial noise at every strength. Let the state-transition matrix satisfy and . The variation-of-constants formula (Teschl, 2012, Theorem 3.12), followed by the chain rule, yields
(B.10)
This expression propagates each step’s correction through the subsequent dynamics to the generated endpoint and then maps it into the task representation. The integration direction agrees with the convention in the main text. The additional smoothness assumptions in this subsection are used for this dynamical expansion, not for the preceding proof stated directly in terms of z.
C EXPERIMENTAL DETAILS
C.1 EVALUATION SET AND TASK LIBRARY
We organize a task library from PRISM-Bench and SciIR-Bench. To describe its content coverage, we organize tasks into three groups.
-
Human. This group covers human-centered images and requirements concerning pose, hand gestures, and interactions.
-
Open. This group covers general scenes and requirements concerning objects, attributes, spatial relations, and environmental conditions.
-
Scientific & Text. This group combines scientific diagrams with text-containing images, including scientific structures and relations, diagram labels, and specified rendered text.
The task library contains 1,500 entries, comprising 700 from PRISM-Bench and 800 from SciIR-Bench. Following the three groups defined above, it includes 176 Human tasks, 384 Open tasks, and 940 Scientific & Text tasks. Each entry includes the original prompt, source information, and its associated checklist. For PRISM-Bench, we construct and review task-specific checklists from the original prompts to assess the requested visual content. For SciIR-Bench, we retain the officially provided checklist questions and categories.
From this library, we curate a 300-task evaluation set containing 100 Human tasks, 100 Open tasks, and 100 Scientific & Text tasks. The main experiments, direction ablations, and temporal-scheduling experiments use their respective task subsets from the library, whose sizes need not match this evaluation set. Within each comparison, methods share the same tasks, reference outputs, and checklists. The reported results use the task subsets and checklist versions of the original evaluation runs.
C.2 MODEL CONFIGURATION
Table S1 lists the sampling configurations. Inference uses BF16 precision and a resolution of . The three text-to-image models use their native guidance scales, whereas Qwen-Image-Edit-2511 uses true CFG scale. RGDR uses for SD3.5 Medium and for the other three models.
Table S1: Sampling and guidance configurations. indexes the executed sampling steps.
| Model | Steps N | Guidance scale | RGDR schedule |
|---|---|---|---|
| SD3.5 Medium | 40 | 4.5 | j/39 |
| SANA-1.5 1.6B | 20 | 4.5 | 1 |
| FLUX.1-dev | 50 | 3.5 | 1 |
| Qwen-Image-Edit-2511 | 40 | 4.0 | 1 |
C.3 EVALUATION, SELECTION, AND AGGREGATION
We evaluate images against fixed task-specific checklists and select final outputs under the same evaluation protocol. Let task have checklist items, and let be the numerical score of image on item . The task score is
Let denote the scores of the shared reference and selected output, respectively, and let be the number of tasks in the aggregate. We report
The recorded protocols for the three generative models use an improvement tolerance of on the scale, equivalent to on the 0–100 scale. Rel. gain is the ratio of mean gain to mean reference score, not the mean of per-task relative percentages.
Repair and Preserve use paired pass/fail judgments. For task , let count items with reference judgment and output judgment , where denotes fail and denotes pass. Items marked uncertain at either endpoint are excluded. Define and . Then
Each metric is macro-averaged over tasks with a nonzero denominator. Numerical scores and binary judgments are recorded separately. An uncertain item can contribute its numerical score to , but not to Repair or Preserve. Results are pooled across sources using the relevant valid-task sets; cross-model comparisons assign equal weight to each model.
C.4 MAIN-EXPERIMENT COMPARISON PROTOCOL
For Stable Diffusion 3.5 Medium, SANA-1.5 1.6B, and FLUX.1-dev, we generate 20 candidate images under the original prompt using different noise initializations. We score these candidates according to Appendix C.3 and select the highest-scoring image as the Best@20 reference. For Qwen-Image-Edit-2511, we use an SD3.5 Medium output as the fixed source image, generate five editing candidates, and select the highest-scoring candidate as the Best@5 reference using the same scoring protocol.
Starting from these references, we compare continued BoN sampling, TIR, the guidance-scale baseline adapted from Dynamic CFG, and RGDR. Each method receives an additional budget of ten complete images for each text-to-image model and five for the image-editing model. Tasks and checklists remain fixed across methods. For each method, we score the additional candidates using the same protocol and select the highest-scoring image from the reference and all additional candidates as the final output.
BoN. Following BoN candidate generation and selection(Ma et al., 2025), we retain the original prompt or editing instruction, generate candidates from different initial noise, and select by checklist score.
TIR. The prompt or editing instruction is revised iteratively using the current image and its evaluation feedback(Khan et al., 2025). The reference seed remains fixed. Each round produces a complete candidate under the revised condition, which informs the next reflection.
Dynamic CFG. We use a constant-schedule adaptation within the guidance-schedule space of Dynamic CFG(Papalampidi et al., 2025), imposing the same guidance scale at every step of a trajectory, . With the prompt and reference noise fixed, complete candidates are generated for different values of and then evaluated for selection. SD3.5 Medium and SANA use ten uniformly spaced guidance values in [2.5, 6.5]; FLUX uses ten uniformly spaced native guidance-parameter values in [2.1, 4.9]. For Qwen-Image-Edit-2511, we use , generating one complete candidate per value from the same fixed original input image.
RGDR. Target–Reference conditions and reference noise remain fixed, and complete candidates are generated independently at different relative strengths. The text-to-image models use and the schedules in Table S1. The additional correction field is recomputed at each sampling step. For Qwen-Image-Edit-2511, we use with constant scheduling, generating one complete candidate per value from the same fixed original input image.
C.5 ABLATION DIRECTIONS AND CONDITIONING TEXTS
We construct conditioning texts and correction directions based on the task requirements and residual errors in the reference image. Target and Reference describe contrasting states associated with the same correction, whereas Operation expresses the correction as a direct instruction.
Target. The Target describes the desired state after the specified error is corrected. It identifies the required attributes, objects, or relations, retaining the context needed to locate the change without restating unrelated requirements already satisfied.
Reference. The Reference describes the current erroneous state associated with the same correction target. It contrasts with the Target around the same objects, attributes, or relations.
Operation. The same correction request is expressed as a direct operation-style instruction, including the content to preserve. This ablation directly uses the model prediction conditioned on that instruction as the additional direction, without a Target–Reference prediction difference.
Gaussian. This ablation uses a random direction without task semantics.
TR Correct is constructed by subtracting the conditional velocity prediction under Reference from that under Target, with both descriptions conditioning the frozen model. Within each rectification attempt, the two texts remain fixed, while their conditional velocity predictions are recomputed at the current state and time. TR Wrong retains the Target–Reference difference formulation but uses mismatched feedback to construct the correction direction. All directions use relative reparameterization.
D TEMPORAL SCHEDULING EXPERIMENTS
D.1 SCHEDULE FUNCTIONS AND COMPARISON SETTING
We compare constant, increasing, and decreasing correction-strength schedules on three text-to-image models, Stable Diffusion 3.5 Medium, SANA-1.5 1.6B, and FLUX.1-dev. Let denote the number of sampling steps and the execution-step index. For relative strength , the coefficient applied at step is , where
For each model, the three schedules are compared on the same task subset using shared Best@20 references, initial noise, and Target–Reference conditions. We generate candidates using the same peak-strength grid and evaluate and select outputs according to Appendix C.3. Model configurations follow Appendix C.2.
D.2 RESULTS AND ANALYSIS
Table S2 shows that all three schedules yield positive rectification gains, but their ranking differs across models. For SD3.5 Medium, the increasing schedule achieves a Final score of 62.65 and a Gain of 3.69, compared with gains of 2.81 for decreasing and 2.32 for constant scheduling. Increasing the correction strength throughout sampling therefore improves Gain over constant scheduling by 1.37 points on this task subset.
SANA and FLUX show a different ordering, with constant scheduling performing best, followed by decreasing and then increasing scheduling. For SANA, constant scheduling achieves a Gain of 5.33, exceeding increasing scheduling by 1.93 points. For FLUX, the corresponding gains are 4.68 and 2.99, a difference of 1.69 points. Decreasing scheduling remains effective on both models, yielding gains of 4.81 and 3.79, respectively. Thus, no single schedule is best across all three models. These comparisons show that the temporal distribution of correction strength affects rectification performance, supporting model-specific scheduling choices.
Table S2: Temporal-scheduling results. Reference is the mean reference score. Final and Gain are reported in score points. Const., Inc., and Dec. denote constant, increasing, and decreasing schedules. Each row compares schedules on the same tasks. Bold indicates the best value within each row and metric.
| Model | Reference | Final | Gain | ||||
|---|---|---|---|---|---|---|---|
| Const. | Inc. | Dec. | Const. | Inc. | Dec. | ||
| SD3.5 Medium | 58.96 | 61.28 | 62.65 | 61.77 | 2.32 | 3.69 | 2.81 |
| SANA-1.5 1.6B | 50.39 | 55.72 | 53.79 | 55.20 | 5.33 | 3.40 | 4.81 |
| FLUX.1-dev | 68.07 | 72.75 | 71.06 | 71.86 | 4.68 | 2.99 | 3.79 |
E SUPPLEMENTARY QUALITATIVE RESULTS
This appendix presents 24 additional qualitative examples in four categories: Human, Open, Text, and Scientific. Each pair compares the reference output (Base, left) with a selected RGDR result (right); the description below identifies the correction target for the corresponding pair.
Human

Replace the shoulder bag with an off-white canvas tote.
Move the bar onto the Eiffel Tower; remove the tower in the background.

Reveal the large amber earrings.
Dress the speaker in a black leather jacket.

Bring the marble figures to life.
Give the singer a short haircut.
Figure 7: Human. Base (left) and RGDR (right).
Open
Base
RGDR

Change the four-tier cake to three tiers.
Base
RGDR
RGDR
Turn the tree trunks into mirrors reflecting a dreamlike forest.
Base
RGDR

Render the still life with cubist facets and multiple viewpoints.
Base
RGDR
RGDR
Turn the icy creature into a flowing form with swirling musical notes.
Base
RGDR

Give the tomato slices a soft, flowing watercolor texture.
Base
RGDR

Give the temple its distinctive pointed spires.
Figure 8: Open. Base (left) and RGDR (right).
Text
Base
RGDR

Set the cover headline to "The New NEW DEAL".
Base
RGDR
RGDR
Complete the green lettering as "ANTHER FOUR".
Base
RGDR

Correct the poster title to "Planet Zoo".
Base
RGDR
Clarify "Happy Birthday" and "Mandy Ringe Photography".
Base

RGDR
Add "Midnight Moon" and the artist's name, "David Forks".
Base
RGDR
Correct the nameplate text from "OFFRION" to "OFFERION".
Figure 9: Text. Base (left) and RGDR (right).
Scientific
Base

RGDR
Clarify the subducting slab and the layers above it.
Base
RGDR

Mark the gap between the two levels with a vertical double-headed arrow.
Base
RGDR
Show selective ion paths through the porous crystal.
Base
RGDR
Replace the final dish in the sequencing workflow with a microfluidic chip.
Base
RGDR

Point the capillary-flow arrows upward inside the reservoir.
Base
RGDR
Direct both signaling pathways toward the same DNA target.
Figure 10: Scientific. Base (left) and RGDR (right).