TL;DR
Image generators are notoriously picky about wording, and traditional "prompt enhancers" rely on expensive model fine-tuning or vague numerical rewards that don't explain why an image failed. PEvolve flips the script: instead of updating neural network weights, it keeps all models frozen and iteratively evolves an explicit, human-readable library of "rewriting skills" by critiquing generated images. It’s essentially an automated scientist that hypotheses, stress-tests, and refines prompt engineering rules tailored to whatever generator it’s talking to.
What Problem Does This Paper Address?
If you ask a text-to-image model for "seven guinea pigs in a row, only the second and fifth wear blue bows," there is a high chance you’ll get six guinea pigs, all wearing hats. Image generators are brittle when it comes to counting, spatial relationships, and text rendering.
To bridge the gap between terse human requests and needy image models, we use Prompt Enhancement (PE)—having an LLM rewrite the user’s prompt before generating the image. Currently, we train these LLM rewriters in two ways:
- Supervised Fine-Tuning (SFT): Training on human-written "good" prompts. Unfortunately, the LLM often memorizes superficial stylistic quirks that hallucinate unwanted details or confuse a different target generator.
- Reinforcement Learning (RL): Grading the final image with a single scalar reward (like a 4/10). The catch? A "4/10" doesn't tell the LLM why the image failed—was the wording ambiguous, did it forget a constraint, or is the image generator simply incapable of drawing that concept?
How do we extract explicit, generalizable rewriting strategies directly from visual failures without touching a single model weight?
Methods
PEvolve treats prompt engineering as an evolving playbook—a Skill Library of explicit text rules. During inference, a router picks up to six relevant skills from the library, and a frozen LLM uses them to rewrite the user's request.
To evolve this library, PEvolve runs a self-improving loop powered by a frozen LLM "optimizer" and a Vision-Language Model (VLM) "judge":
- Visual Inspection Decoupling: Because VLMs get overwhelmed looking at dozens of images at once, PEvolve inspects each generated image individually, translating visual flaws into crisp textual summaries before batch-level reflection begins.
- Hierarchical Comparative Reflection: For every training request, PEvolve generates multiple prompt variations and images. It then looks in two directions: within-group comparison (Why did rewrite A1 beat A2 for the exact same user request?) and cross-group induction (Across 20 similar tasks, what recurring blind spots does this image generator have?). From this, it drafts candidate edits to the skill library.
- Weakness Exploration: Rules inferred from a few examples are often brittle or overly narrow. Before accepting a new rule (e.g., "list product grids in reading order"), the optimizer acts as devil's advocate, inventing 20 out-of-distribution "probe" requests (like bookshelves or infographics) to stress-test and generalize the rule's wording (refining it to "write a complete slot inventory binding each slot to attributes").
- Relaxed Validation Gate: Because image generation is noisy, demanding every update strictly beat the all-time high validation score kills good incremental ideas. PEvolve accepts a library update if it beats the average of the best and second-best historical scores.
Datasets
PEvolve is trained and evaluated across three distinct task splits—infographic generation, general-object generation, and knowledge reasoning—each comprising 200 training, 200 validation, and 600 test requests (exact data construction details are deferred to Appendix A, which is not included in the main text). Additionally, the authors evaluate generalization using an Out-of-Domain (OOD) set of 400 prompts approximating real-world user requests outside the training domains.
Key Insights and Ideas
- Different generators learn different dialects: This is the coolest finding in the paper. When PEvolve evolves skills for Seedream 5.0 Pro to handle exact counting, it learns to enumerate every single object individually (
slot 1 is..., slot 2 is...). When evolving the exact same initial library for Qwen-Image-2.0, it discovers Qwen prefers partitioning objects into smaller subgroups and stating group subtotals! PEvolve empirically discovers the cognitive quirks of black-box generators. - Explicit rules transfer across domains: When the authors merged the trained skill libraries from the three tasks and tested them on unseen, real-world OOD prompts, human evaluators preferred PEvolve's images 56% of the time vs. 30% for the initial skills (with 14% ties).
- Even built-in enhancers leave room on the table: Running PEvolve on top of an image generator that already has its own proprietary built-in prompt enhancer turned on still yields measurable gains.
Key Results
Using frozen GLM-5.3-Flash (rewriter) and Hy-Image-3.5-preview (generator), PEvolve consistently beats both raw prompts ("No PE") and the baseline "Initial Skills" library across 600 test prompts per task:
- Infographics: Jumps from 80.71 (Initial Skills) to 88.76 (+8.05), driven by a massive +21.08 point surge in information richness (eliminating fake placeholder text) and +8.86 in text accuracy.
- General Objects: Rises from 71.50 to 75.64 (+4.14), largely by nailing core-constraint correctness (+6.79), such as physical load-bearing physics and exact counts.
- Knowledge Reasoning: Accuracy climbs from 66.67% to 72.17% (+5.50%), learning to describe concrete observable proof of a concept (like a lizard's detached, twitching tail) rather than vague prose ("extreme escape behavior").
- Cross-Model Robustness: Swapping across four different LLM rewriters and four image generators yielded universal improvements across every single configuration.
Limitations and Future Work
Not explicitly discussed in a dedicated section of the main text. However, looking at the mechanics presented, two practical trade-offs stand out:
- Optimization Compute Cost: While model weights stay frozen, evolving the library requires heavy API/inference lifting—generating multiple rollouts per batch, VLM judging, and running 80 extra image generations (20 probes × 4 rollouts) per candidate edit during Weakness Exploration.
- Reliance on Frontier Judges: The evolutionary signal depends on strong proprietary models (
Gemini 3.1 Profor judging andGPT-5.6 Solfor optimization and conflict merging); how well the loop holds up with smaller, open-weight judges remains an open question.
Summary updated