VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis

Shiyu Wu, Mingzhen Sun, Weining Wang, Yequan Wang, Jing Liu
6/29/2025
9 citations
cs.CV

Official code: teheperinko541/VisualPrompter (3 stars, Python, last commit 2026-02-26).

Abstract

The notable gap between user-provided and model-preferred prompts poses a significant challenge for generating high-quality images with text-to-image models, compelling the need for prompt engineering. Current studies on prompt engineering can effectively enhance the style and aesthetics of generated images.

Show full abstract

However, they often neglect the semantic alignment between generated images and user descriptions, resulting in visually appealing but content-wise unsatisfying outputs. In this work, we propose VisualPrompter, a novel training-free prompt engineering framework that refines user inputs to model-preferred sentences. VisualPrompter utilizes an automatic self-reflection module that identifies absent concepts in the generated images, followed by a target-specific prompt optimization mechanism that revises the prompts in a fine-grained manner. By deconstructing prompts, introducing new elements at the atomic semantic level, and then reassembling them, our framework is able to maintain semantic consistency and integrity throughout the optimization process. Extensive experiments demonstrate the effectiveness of VisualPrompter, which achieves new state-of-the-art performance on multiple benchmarks for text-image alignment evaluation. Additionally, our framework features a plug-and-play design, making it highly adaptable to various generative models. Our code is available at https://github.com/teheperinko541/VisualPrompter.

View on arXivView PDF

Code Implementations(1)

[ICLR 2026] VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis

30Python, ShellFeb 26, 20269 months ago

Similar Papers

Cite this paper

@article{wu2025visualprompter,
  title  = {VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis},
  author = {Shiyu Wu and Mingzhen Sun and Weining Wang and Yequan Wang and Jing Liu},
  year   = {2025},
  eprint = {2506.23138},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.23138v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.23138.svg)](https://codeofpaper.com/paper/2506.23138)

Discussion