Self-Rewarding Large Vision-Language Models for Optimizing Prompts in Text-to-Image Generation

Hongji Yang, Yucheng Zhou, Wencheng Han, Jianbing Shen

Abstract

While text-to-image (T2I) models have reached high levels of sophistication, a "usability gap" remains between simple user queries and the complex, technical prompts required for high-quality artistic output. This paper introduces a self-rewarding framework for Large Vision-Language Models (LVLMs) that unifies prompt rewriting and aesthetic judgment into a single model. By employing an iterative self-play loop, the model improves its ability to generate optimized prompts without the need for extensive human-annotated datasets. Our results demonstrate that this approach significantly enhances image aesthetics and prompt alignment, outperforming existing state-of-the-art methods and human-engineered prompts.

Introduction

Modern text-to-image models like Stable Diffusion often require highly specific descriptors—such as "octane render" or "35mm lens"—to produce professional-grade results. Most casual users, however, provide brief, underspecified prompts. To bridge this gap, researchers typically train "rewriter" models to expand simple text into detailed instructions.

Existing solutions face two primary challenges: a heavy reliance on expensive human-annotated prompt pairs and the use of static reward models. Static rewards often lead to a performance ceiling where the rewriter learns to "game" the scorer without improving visual quality. To overcome these hurdles, we propose a self-rewarding LVLM framework that allows the model to act as its own critic, iteratively refining its prompt generation capabilities.

Methodology: The Self-Rewarding Framework

The core of our approach is the unification of the "solver" (the prompt rewriter) and the "judge" (the reward model) within a single LVLM, specifically VILA-v1.5-8b. This dual-role capability enables a five-step iterative pipeline:

  1. Initialization (SFT): The model undergoes initial Supervised Fine-Tuning on a baseline of human-annotated prompt pairs to establish a foundation for text expansion.
  2. Prompt Generation: For a given simple user input, the model generates multiple candidate optimized prompts.
  3. Image Generation: These candidates are processed by a standard T2I model (e.g., Stable Diffusion 1.5) to produce corresponding images.
  4. LVLM Rewarding: The model transitions into an Image Evaluator role. It analyzes the generated images and assigns scores based on aesthetics, human preference (PickScore), and alignment with the original intent using a 6-level judging system.
  5. Optimization (DPO): Using Direct Preference Optimization (DPO), the model is updated to favor prompts that resulted in high-scoring images and avoid those that led to poor results.

This loop includes a "Response Judge" phase where the model evaluates its own reasoning, ensuring that its critical faculties improve alongside its creative ones.

Experimental Setup and Datasets

The study utilized several key datasets for training and evaluation:

  • Beautiful-Prompt: 156k samples for the initial SFT phase and 40k samples for the RL phase.
  • DiffusionDB: A large-scale prompt gallery used to test the model's generalization capabilities.
  • Pickapic-v1: Used to construct judgment data to align the model with human aesthetic preferences.
  • Promptist: Served as a comparative baseline for training performance.

Key Insights and Results

Aesthetic and Alignment Superiority

Our self-rewarding model achieved an aesthetic score of 6.59 on the Beautiful-Prompt test set, surpassing ChatGPT-expanded prompts (5.92) and the previous state-of-the-art (6.52). On the DiffusionDB dataset, the model demonstrated strong generalization, reaching a score of 6.57 compared to 6.26 for other AI-based rewriters.

Efficiency and Human Preference

Unlike previous methods requiring millions of samples, our framework achieved state-of-the-art results using only 20k self-generated preference pairs. In a blind study, human volunteers preferred images generated by our model's prompts 60.9% of the time over the original user prompts. Furthermore, the DPO-trained model achieved a ~55% win rate over its own SFT baseline, confirming that the self-rewarding iterations provide substantial value beyond the initial training data.

Prompt Engineering Nuances

Our analysis revealed a "sweet spot" for prompt length; aesthetic gains typically plateau between 30 and 40 words, suggesting that excessive detail can be counterproductive. Additionally, the model demonstrated an ability to correct user intent. For instance, it successfully modified ambiguous prompts like "Astronaut rides horse" to more explicit phrasing that ensured the T2I model correctly depicted the astronaut mounted on the horse rather than standing beside it.

Limitations and Future Work

While effective, the framework is computationally intensive. Training models with billions of parameters requires significant GPU resources. We also observed that performance gains begin to stabilize after three iterations, suggesting a risk of "model collapse" if the model is not grounded by external feedback over long periods. Future research will explore scaling this framework to larger models, such as VILA-40B, to further push the boundaries of automated prompt engineering.

Summary updated

BibTeX
@inproceedings{yang2025self,
  author = {Hongji Yang and Yucheng Zhou and Wencheng Han and Jianbing Shen},
  title = {{Self-Rewarding Large Vision-Language Models for Optimizing Prompts in Text-to-Image Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure