mlsanityData to 7 Oct 2026

Test-time Prompt Refinement for Text-to-Image Models

arXiv 2507.22076 ↗First posted 22 Jul 2025cs.LGcited by 16

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

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  3. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  4. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
  5. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
  6. 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,466
  7. 2024GPT-4o System Cardcited by 4,467
  8. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  9. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
  10. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  11. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
  12. 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,229
33 more
  1. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
  2. 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,338
  3. 2024Qwen2 Technical Reportcited by 2,076
  4. 2023GenEval: An Object-Focused Framework for Evaluating Text-to-Image Alignmentcited by 946
  5. 2022eDiff-I: Text-to-Image Diffusion Models with an Ensemble of Expert Denoiserscited by 921
  6. 2023GLIGEN: Open-Set Grounded Text-to-Image Generationcited by 774
  7. 2016Generative Adversarial Text to Image Synthesiscited by 735
  8. 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 691
  9. 2023Visual ChatGPT: Talking, Drawing and Editing with Visual Foundation Modelscited by 659
  10. 2016StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networkscited by 575
  11. 2023MultiDiffusion: Fusing Diffusion Paths for Controlled Image Generationcited by 529
  12. 2022Paint by Example: Exemplar-based Image Editing with Diffusion Modelscited by 489
  13. 2023DPOK: Reinforcement Learning for Fine-tuning Text-to-Image Diffusion Modelscited by 431
  14. 2022Blended Latent Diffusioncited by 430
  15. 2023Aligning Text-to-Image Models using Human Feedbackcited by 418
  16. 2023LayoutGPT: Compositional Visual Planning and Generation with Large Language Modelscited by 337
  17. 2023Training-Free Layout Control with Cross-Attention Guidancecited by 312
  18. 2019DM-GAN: Dynamic Memory Generative Adversarial Networks for Text-to-Image Synthesiscited by 308
  19. 2023BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusioncited by 280
  20. 2023Generating Images with Multimodal Language Modelscited by 259
  21. 2023LLM-grounded Diffusion: Enhancing Prompt Understanding of Text-to-Image Diffusion Models with Large Language Modelscited by 242
  22. 2025Inference-Time Scaling for Diffusion Models beyond Scaling Denoising Stepscited by 225
  23. 2022ReCo: Region-Controlled Text-to-Image Generationcited by 177
  24. 2020DF-GAN: A Simple and Effective Baseline for Text-to-Image Synthesiscited by 161
  25. 2023Localizing Object-level Shape Variations with Text-to-Image Diffusion Modelscited by 142
  26. 2023VideoDirectorGPT: Consistent Multi-scene Video Generation via LLM-Guided Planningcited by 138
  27. 2023Self-correcting LLM-controlled Diffusion Modelscited by 112
  28. 2023LayoutLLM-T2I: Eliciting Layout Guidance from LLM for Text-to-Image Generationcited by 92
  29. 2023Controllable Text-to-Image Generation with GPT-4cited by 58
  30. 2023LLM Blueprint: Enabling Text-to-Image Generation with Complex and Detailed Promptscited by 53
  31. 2024ALINA: Advanced Line Identification and Notation Algorithmcited by 4
  32. 2024Zero-shot Text-guided Infinite Image Synthesis with LLM guidancecited by 4
  33. 2025Few-Shot Classification and Anatomical Localization of Tissues in SPECT Imagingcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 12.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025Iterative Prompt Refinement for Safer Text-to-Image Generation
  2. 2025POET: Preference Optimization for Enhanced Text-to-Image Generation
  3. 2026Iterative Refinement Improves Compositional Image Generation
  4. 2025TIT-Score: Evaluating Long-Prompt Based Text-to-Image Alignment via Text-to-Image-to-Text Consistency
  5. 2026Seeing is Believing: Aligning Prompt Rewriting with Visual Anchors for Text-to-Image Generation
  6. 2025PromptEnhancer: A Simple Approach to Enhance Text-to-Image Models via Chain-of-Thought Prompt Rewriting
  7. 2025M3T2IBench: A Large-Scale Multi-Category, Multi-Instance, Multi-Relation Text-to-Image Benchmark
  8. 2025FineGRAIN: Evaluating Failure Modes of Text-to-Image Models with Vision Language Model Judges