arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.22076cs.LG
收藏

文本到图像模型的测试时提示词优化

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

Florida Institute of Technology(佛罗里达理工学院);Microsoft Research(微软研究院)

Mohammad Abdul Hafeez Khan, Yash Jain, Siddhartha Bhattacharyya, Vibhav Vineet

AI总结:

提出TIR框架,利用多模态大语言模型在测试时迭代优化提示词,无需训练T2I模型,提升生成图像与提示词的对齐性和视觉连贯性。

摘要:

文本到图像(T2I)生成模型取得了显著进展,但仍然面临提示词敏感性的问题:即使提示词措辞的微小变化也可能导致不一致或不准确的输出。为了解决这一挑战,我们引入了一个闭环的测试时提示词优化框架,该框架无需对底层T2I模型进行额外训练,称为TIR。在我们的方法中,每个生成步骤之后都跟随一个优化步骤,其中预训练的多模态大语言模型(MLLM)分析输出图像和用户的提示词。MLLM检测不对齐之处(例如,缺失对象、错误属性),并为下一轮图像生成生成一个优化且物理上合理的提示词。通过迭代优化提示词并验证提示词与图像之间的对齐,TIR纠正错误,模仿人类艺术家的迭代优化过程。我们证明,这种闭环策略在多个基准数据集上提高了对齐性和视觉连贯性,同时保持与黑盒T2I模型的即插即用集成。代码可在以下网址获取:https URL。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑