Introduction
Text-to-image (T2I) generation has seen remarkable progress, yet a significant "language gap" persists between casual users and state-of-the-art models. While models like Stable Diffusion excel when provided with highly specific, technical "system language" (e.g., including artist names, lighting styles, and resolution keywords), average users typically provide short, ambiguous "user language" prompts. Bridging this gap usually requires expensive, manually annotated parallel corpora of simple and expert-refined prompts.
This paper introduces Prompt Refinement with Image Pivot (PRIP), a novel framework that automates this translation by using latent image representations as an intermediate bridge, bypassing the need for direct text-to-text supervision.
The PRIP Framework
PRIP is inspired by pivot-based machine translation. Instead of mapping user text directly to system text, the task is decomposed into two distinct stages connected by a latent visual representation.
- Preference Encoder ($E$): Based on FLAN-T5-Large, this module takes the user's simple prompt and predicts the latent representation of an image the user is likely to prefer. It essentially "imagines" the visual features of the intended output.
- Prompt Decoder ($D$): Based on Llama2-7B, this module takes the predicted latent representation and decodes it into a detailed system prompt. This prompt is designed to guide a T2I model to render an image matching those specific visual features.
By anchoring the refinement process in visual reality rather than abstract word-to-word mapping, PRIP ensures that the generated keywords remain semantically grounded in the user's original intent.
Training Methodology
The training process involves a two-phase strategy to ensure both module-specific accuracy and end-to-end coherence.
Disentangled Supervised Training
Initially, both modules are "warmed up" using abundant, non-parallel data. The Preference Encoder is trained on user-image preference data (such as click logs), while the Prompt Decoder is trained to reconstruct high-quality prompts from their corresponding image representations using existing galleries of expert-level prompts.
End-to-End Reinforcement Learning
To bridge the gap between the encoder and decoder, the authors employ Proximal Policy Optimization (PPO). In this stage, the reward signal is derived from automated preference models like ImageReward or HPSv2. The system compares the quality of an image generated from the original user prompt against one generated from the PRIP-refined prompt, rewarding the model when the refined prompt leads to a more aesthetically pleasing or accurate image.
Key Results and Insights
PRIP demonstrates significant improvements over both unrefined prompts and existing baselines like GPT-4 or Promptist:
- Human Preference: In evaluations using Stable Diffusion 1.4, PRIP-refined prompts were preferred over original user prompts approximately 73% of the time.
- Zero-Shot Generalization: One of PRIP's strongest features is its ability to generalize to models it was never trained on. When tested with SDXL, PRIP achieved an 82% win ratio against unrefined prompts, proving that the learned relationship between visual features and descriptive keywords is model-agnostic.
- Qualitative Enrichment: PRIP successfully injects professional terminology (e.g., "volumetric lighting," "8k resolution") and specific artistic styles (e.g., "Thomas Kinkade") that align with the user's original intent while dramatically increasing the aesthetic quality of the output.
Discussion and Limitations
While PRIP effectively bypasses the annotation bottleneck, it is not without challenges. Because the Prompt Decoder relies on the image pivot rather than the original text, there is a risk of "hallucination"—adding details the user did not request. The authors mitigate this by prepending the original prompt to the decoder's input, but further research into robust grounding is required. Additionally, the performance of the Preference Encoder remains dependent on the availability of high-quality user preference data.
Despite these limitations, PRIP represents a major step toward making high-quality AI image generation accessible to non-expert users by leveraging the universal language of visual representations.
Summary updated