Test-time Prompt Refinement for Text-to-Image Models
Not on the map. Why?
Abstract (arXiv)
Text-to-image (T2I) generation models have made significant strides but still struggle with prompt sensitivity: even minor changes in prompt wording can yield inconsistent or inaccurate outputs. To address this challenge, we introduce a closed-loop, test-time prompt refinement framework that requires no additional training of the underlying T2I model, termed TIR. In our approach, each generation step is followed by a refinement step, where a pretrained multimodal large language model (MLLM) analyzes the output image and the user's prompt. The MLLM detects misalignments (e.g., missing objects, incorrect attributes) and produces a refined and physically grounded prompt for the next round of image generation. By iteratively refining the prompt and verifying alignment between the prompt and the image, TIR corrects errors, mirroring the iterative refinement process of human artists. We demonstrate that this closed-loop strategy improves alignment and visual coherence across multiple benchmark datasets, all while maintaining plug-and-play integration with black-box T2I models. Code is available at https://github.com/hafeezkhan909/Test-time-Image-Refinement.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 45 of its 54 references that are in the map. First posted on arXiv 22 Jul 2025.
Builds on
45 of 54 references.
References · 45
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
- 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
- 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,466
- 2024GPT-4o System Cardcited by 4,467
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
- 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,229
33 more
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
- 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,338
- 2024Qwen2 Technical Reportcited by 2,076
- 2023GenEval: An Object-Focused Framework for Evaluating Text-to-Image Alignmentcited by 946
- 2022eDiff-I: Text-to-Image Diffusion Models with an Ensemble of Expert Denoiserscited by 921
- 2023GLIGEN: Open-Set Grounded Text-to-Image Generationcited by 774
- 2016Generative Adversarial Text to Image Synthesiscited by 735
- 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 691
- 2023Visual ChatGPT: Talking, Drawing and Editing with Visual Foundation Modelscited by 659
- 2016StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networkscited by 575
- 2023MultiDiffusion: Fusing Diffusion Paths for Controlled Image Generationcited by 529
- 2022Paint by Example: Exemplar-based Image Editing with Diffusion Modelscited by 489
- 2023DPOK: Reinforcement Learning for Fine-tuning Text-to-Image Diffusion Modelscited by 431
- 2022Blended Latent Diffusioncited by 430
- 2023Aligning Text-to-Image Models using Human Feedbackcited by 418
- 2023LayoutGPT: Compositional Visual Planning and Generation with Large Language Modelscited by 337
- 2023Training-Free Layout Control with Cross-Attention Guidancecited by 312
- 2019DM-GAN: Dynamic Memory Generative Adversarial Networks for Text-to-Image Synthesiscited by 308
- 2023BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusioncited by 280
- 2023Generating Images with Multimodal Language Modelscited by 259
- 2023LLM-grounded Diffusion: Enhancing Prompt Understanding of Text-to-Image Diffusion Models with Large Language Modelscited by 242
- 2025Inference-Time Scaling for Diffusion Models beyond Scaling Denoising Stepscited by 225
- 2022ReCo: Region-Controlled Text-to-Image Generationcited by 177
- 2020DF-GAN: A Simple and Effective Baseline for Text-to-Image Synthesiscited by 161
- 2023Localizing Object-level Shape Variations with Text-to-Image Diffusion Modelscited by 142
- 2023VideoDirectorGPT: Consistent Multi-scene Video Generation via LLM-Guided Planningcited by 138
- 2023Self-correcting LLM-controlled Diffusion Modelscited by 112
- 2023LayoutLLM-T2I: Eliciting Layout Guidance from LLM for Text-to-Image Generationcited by 92
- 2023Controllable Text-to-Image Generation with GPT-4cited by 58
- 2023LLM Blueprint: Enabling Text-to-Image Generation with Complex and Detailed Promptscited by 53
- 2024ALINA: Advanced Line Identification and Notation Algorithmcited by 4
- 2024Zero-shot Text-guided Infinite Image Synthesis with LLM guidancecited by 4
- 2025Few-Shot Classification and Anatomical Localization of Tissues in SPECT Imagingcited by 3
Built on by
Citing papers per year: 2025: 4; 2026: 12.
16 papers.
Sort:
By area:
- 2025WoW: Towards a World omniscient World model Through Embodied Interactioncited by 66
- 2026Show, Don't Tell: Morphing Latent Reasoning into Image Generationcited by 7
- 2026RAISE: Requirement-Adaptive Evolutionary Refinement for Training-Free Text-to-Image Alignmentcited by 6
- 2025World-To-Image: Grounding Text-to-Image Generation with Agent-Driven World Knowledgecited by 4
- 2025Guiding What Not to Generate: Automated Negative Prompting for Text-Image Alignmentcited by 4
- 2026EPIC: Efficient Predicate-Guided Inference-Time Control for Compositional Text-to-Image Generationcited by 2
- 2026Generative AI for Visualizing Highway Construction Hazards Through Synthetic Images and Temporal Sequencescited by 1
- 2026DuET: Dual Expert Trajectories for Diffusion Image Editingcited by 1
- 2026Don't Settle at the Mode! Mitigating Diversity Collapse in Pretrained Flow Models via Feature Self-Guidancecited by 1
- 2025No Concept Left Behind: Test-Time Optimization for Compositional Text-to-Image Generationcited by 0
- 2026Evolutionary Token-Level Prompt Optimization for Diffusion Modelscited by 0
- 2026UniRect-CoT: Enhancing Generation in Unified Multimodal Models via Reflective Rectification with Inherent Understandingcited by 0
4 more
- 2026WarpI2I: Image Warping for Image-to-Image Translationcited by 0
- 2026Agentic Visual Generation: From Generative Models to Agentic Controlcited by 0
- 2026Reasoning with Image Generationcited by 0
- 2026PreviewDiff: Multimodal Critic-Guided Search over Diffusion Latentscited by 0
- 2026PreviewDiff: Multimodal Critic-Guided Search over Diffusion Latents28 Sep 2026
- 2026Reasoning with Image Generation14 Sep 2026
- 2026Agentic Visual Generation: From Generative Models to Agentic Control6 Sep 2026
- 2026WarpI2I: Image Warping for Image-to-Image Translation30 Jun 2026
- 2026Don't Settle at the Mode! Mitigating Diversity Collapse in Pretrained Flow Models via Feature Self-Guidance25 Jun 2026
- 2026DuET: Dual Expert Trajectories for Diffusion Image Editing11 Jun 2026
- 2026EPIC: Efficient Predicate-Guided Inference-Time Control for Compositional Text-to-Image Generation12 May 2026
- 2026Generative AI for Visualizing Highway Construction Hazards Through Synthetic Images and Temporal Sequences11 May 2026
- 2026UniRect-CoT: Enhancing Generation in Unified Multimodal Models via Reflective Rectification with Inherent Understanding15 Apr 2026
- 2026Evolutionary Token-Level Prompt Optimization for Diffusion Models10 Apr 2026
- 2026RAISE: Requirement-Adaptive Evolutionary Refinement for Training-Free Text-to-Image Alignment28 Feb 2026
- 2026Show, Don't Tell: Morphing Latent Reasoning into Image Generation2 Feb 2026
4 more
- 2025Guiding What Not to Generate: Automated Negative Prompting for Text-Image Alignment8 Dec 2025
- 2025World-To-Image: Grounding Text-to-Image Generation with Agent-Driven World Knowledge5 Oct 2025
- 2025No Concept Left Behind: Test-Time Optimization for Compositional Text-to-Image Generation27 Sep 2025
- 2025WoW: Towards a World omniscient World model Through Embodied Interaction26 Sep 2025
- 2026RAISE: Requirement-Adaptive Evolutionary Refinement for Training-Free Text-to-Image Alignmentcited by 6
- 2026Evolutionary Token-Level Prompt Optimization for Diffusion Modelscited by 0
- 2026WarpI2I: Image Warping for Image-to-Image Translationcited by 0
- 2026PreviewDiff: Multimodal Critic-Guided Search over Diffusion Latentscited by 0
- 2026PreviewDiff: Multimodal Critic-Guided Search over Diffusion Latents28 Sep 2026
- 2026WarpI2I: Image Warping for Image-to-Image Translation30 Jun 2026
- 2026Evolutionary Token-Level Prompt Optimization for Diffusion Models10 Apr 2026
- 2026RAISE: Requirement-Adaptive Evolutionary Refinement for Training-Free Text-to-Image Alignment28 Feb 2026
- 2026Reasoning with Image Generationcited by 0
- 2026Reasoning with Image Generation14 Sep 2026
- 2026Show, Don't Tell: Morphing Latent Reasoning into Image Generationcited by 7
- 2025World-To-Image: Grounding Text-to-Image Generation with Agent-Driven World Knowledgecited by 4
- 2025Guiding What Not to Generate: Automated Negative Prompting for Text-Image Alignmentcited by 4
- 2026EPIC: Efficient Predicate-Guided Inference-Time Control for Compositional Text-to-Image Generationcited by 2
- 2026Generative AI for Visualizing Highway Construction Hazards Through Synthetic Images and Temporal Sequencescited by 1
- 2026DuET: Dual Expert Trajectories for Diffusion Image Editingcited by 1
- 2026Don't Settle at the Mode! Mitigating Diversity Collapse in Pretrained Flow Models via Feature Self-Guidancecited by 1
- 2025No Concept Left Behind: Test-Time Optimization for Compositional Text-to-Image Generationcited by 0
- 2026UniRect-CoT: Enhancing Generation in Unified Multimodal Models via Reflective Rectification with Inherent Understandingcited by 0
- 2026Don't Settle at the Mode! Mitigating Diversity Collapse in Pretrained Flow Models via Feature Self-Guidance25 Jun 2026
- 2026DuET: Dual Expert Trajectories for Diffusion Image Editing11 Jun 2026
- 2026EPIC: Efficient Predicate-Guided Inference-Time Control for Compositional Text-to-Image Generation12 May 2026
- 2026Generative AI for Visualizing Highway Construction Hazards Through Synthetic Images and Temporal Sequences11 May 2026
- 2026UniRect-CoT: Enhancing Generation in Unified Multimodal Models via Reflective Rectification with Inherent Understanding15 Apr 2026
- 2026Show, Don't Tell: Morphing Latent Reasoning into Image Generation2 Feb 2026
- 2025Guiding What Not to Generate: Automated Negative Prompting for Text-Image Alignment8 Dec 2025
- 2025World-To-Image: Grounding Text-to-Image Generation with Agent-Driven World Knowledge5 Oct 2025
- 2025No Concept Left Behind: Test-Time Optimization for Compositional Text-to-Image Generation27 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2025Iterative Prompt Refinement for Safer Text-to-Image Generation
- 2025POET: Preference Optimization for Enhanced Text-to-Image Generation
- 2026Iterative Refinement Improves Compositional Image Generation
- 2025TIT-Score: Evaluating Long-Prompt Based Text-to-Image Alignment via Text-to-Image-to-Text Consistency
- 2026Seeing is Believing: Aligning Prompt Rewriting with Visual Anchors for Text-to-Image Generation
- 2025PromptEnhancer: A Simple Approach to Enhance Text-to-Image Models via Chain-of-Thought Prompt Rewriting
- 2025M3T2IBench: A Large-Scale Multi-Category, Multi-Instance, Multi-Relation Text-to-Image Benchmark
- 2025FineGRAIN: Evaluating Failure Modes of Text-to-Image Models with Vision Language Model Judges