Preference-Guided Prompt Optimization for Text-to-Image Generation

Zhipeng Li, Yi-Chi Liao, Christian Holz · DOI

Abstract

Generative models are increasingly powerful, yet users struggle to guide them through prompts. The generative process is difficult to control and unpredictable, and user instructions may be ambiguous or under-specified. Prior prompt refinement tools heavily rely on human effort, while prompt optimization methods focus on numerical functions and are not designed for human-centered generative tasks, where feedback is better expressed as binary preferences and demands convergence within few iterations. We present APPO, a preference-guided prompt optimization algorithm. Instead of iterating prompts, users only provide binary preferential feedback. APPO adaptively balances its strategies between exploiting user feedback and exploring new directions, yielding effective and efficient optimization. We evaluate APPO on image generation, and the results show APPO enables achieving satisfactory outcomes in fewer iterations with lower cognitive load than manual prompt editing. We anticipate APPO will advance human-AI collaboration in generative tasks by leveraging user preferences to guide complex content creation.

Introduction: The Prompting Bottleneck

Generative AI has reached a level of sophistication where it can produce stunning visuals from simple text. However, "prompt engineering" remains a significant hurdle for most users. While a person might have a clear implicit intention—a specific mood, lighting, or artistic style—they often lack the technical vocabulary required to trigger these nuances in black-box models like Stable Diffusion.

Existing solutions typically fall into two categories: manual refinement and automatic optimization. Manual tools require high cognitive effort and constant trial-and-error. Automatic methods often rely on rigid numerical reward functions (like aesthetic scores) that fail to capture the subjective, diverse tastes of individual users. APPO (Adaptive Preferential Prompt Optimization) addresses this gap by creating an optimizer that works with minimal, sparse human feedback—simple binary selections—to converge on a satisfying result in just a few iterations.

The APPO Framework

The core of this research is the APPO algorithm, which manages a "budget" of candidate prompts across three distinct strategies in every iteration to ensure both quality and variety:

  1. Retain: The system keeps prompts that produced images the user previously liked, ensuring that the optimization process never regresses.
  2. Align (Exploitation): Using a Large Language Model (LLM), the system compares preferred prompts against non-preferred ones to estimate a "textual gradient." It then "nudges" unsuccessful prompts toward the semantic space of the successful ones.
  3. Expand (Exploration): An Evolutionary Algorithm (EA) performs crossover (mixing elements of two successful prompts) and mutation (introducing entirely new descriptors).
Figure 3: Examples of non-preferred styles that the APPO algorithm learns to avoid by contrasting them with user-selected images.

To prevent the system from getting stuck in a "local optimum"—where it generates the same style repeatedly—APPO employs an Adaptive Expansion Policy. By monitoring the semantic similarity of candidates using CLIP (Contrastive Language-Image Pre-training), the system automatically increases mutation intensity if the pool becomes too homogeneous. Finally, a consistency check ensures that while the style evolves, the core subject matter (the "essential information") remains intact.

Key Insights: Binary Preferences as Signals

A central finding of the study is that binary preference is a sufficient signal for complex optimization. Users do not need to provide detailed natural language feedback or numerical ratings; simply knowing "I like Image A more than Image B" provides enough directional data for the LLM to derive a path forward.

Interestingly, the researchers found that hiding the underlying prompts from users actually improved the experience. By removing the need to read and edit text, the cognitive load was significantly reduced. Users felt more like "creative directors" selecting from a gallery rather than "coders" debugging a string of text.

Results and Performance

APPO was evaluated using the TIFA160 dataset and a custom user study involving both close-ended (matching a target) and open-ended (creative) tasks.

Figure 5: The iterative evolution of image generations, showing how APPO converges toward a high-quality, stylistically consistent result.
  • Efficiency: APPO reached satisfactory outcomes in fewer than 4 iterations on average.
  • Reduced Workload: Compared to state-of-the-art tools like PromptCharm or DSPy, users reported significantly lower mental demand and physical effort via NASA-TLX metrics.
  • Superior Convergence: In synthetic tests, APPO consistently outperformed other optimization methods like TextGrad, achieving higher similarity to target goals in fewer steps.

Conclusion and Future Work

APPO demonstrates that preference-guided optimization can bridge the gap between human intent and AI execution. While highly effective, the system currently assumes the user can specify the primary subject at the start. Future iterations may explore "forgetting" older preferences if a user's taste shifts mid-session and incorporating multi-modal inputs like sketches or reference images to further refine the starting point of the optimization loop.

Summary updated

BibTeX
@misc{li2026preference,
  author = {Zhipeng Li and Yi-Chi Liao and Christian Holz},
  title = {{Preference-Guided Prompt Optimization for Text-to-Image Generation}},
  year = {2026},
  eprint = {2602.13131},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.13131},
}
Figure