TL;DR
Modern text-to-image (T2I) systems are shifting from one-shot image generators into multi-step "agents" that tweak prompts and resample outputs—but their control loops usually rely on rigid heuristics or naively trust past memories. T2I-SEH introduces a self-evolving runtime "harness" that treats past experience like scientific evidence: weighing similarity, sample support, and statistical uncertainty before deciding whether to apply a fix, run a diagnostic test, or simply leave the image alone. The result is higher-quality images across five diverse generators at a tiny fraction of the extra compute cost.
What Problem Does This Paper Address?
When an image generator misses the mark—say, rendering a green cube instead of a blue one—an agentic harness (the wrapper system orchestrating the frozen model) can step in to rewrite the prompt, plan the layout, or roll the dice again. Recently, researchers have tried making these harnesses "self-evolving" by saving past successes and failures into memory so the agent gets smarter over time.
Here is the catch: visual generation is notoriously context-dependent. An intervention that worked wonders on one prompt might actively ruin another, and automated vision-language observers can easily misread the current image state. If an agent blindly trusts retrieved memories, it wastes compute or degrades the output. The core question the authors tackle is: How can a T2I harness dynamically know when to trust its past experience, how heavily to weigh it, and when it’s worth paying for extra generations to be sure?
Methods
Instead of retraining the image generator or inventing new tools, T2I-SEH upgrades the decision-making brain of the harness using Effect-Conditioned Harness Learning (ECHL). For any request, the frozen generator first creates a baseline Raw image, which an internal vision-language observer (Qwen2.5-VL-3B) scores. The harness then chooses among Raw (cost 0) and three corrective actions: Prompt Strengthening (PS, cost 1), Structured Planning (SP, cost 1), or Extra Resampling (ER, cost 2).
What is novel is how ECHL learns and decides:
- Paired Improvement Effects: Raw image scores can be misleading—easy prompts score high regardless of what you do, while hard prompts score low even after a helpful fix. ECHL instead stores paired effects: the exact score delta ($\delta$) between an intervention and the baseline
Rawimage under matched random seeds. - Precision-Weighted Beliefs: When a new failure occurs, ECHL retrieves similar past cases (requiring $\ge 10$ observations and similarity $\ge 0.75$) and fuses them with a default prior. Memories with higher contextual similarity and tighter confidence intervals get more say; if no reliable memory exists, the prior stays untouched.
- Cost-Aware Sequential Diagnosis: Before committing, ECHL checks its Gaussian belief bounds. If no action looks promising, it keeps
Raw. If one action is clearly superior, it commits early. If uncertainty lingers, it uses Monte Carlo simulations to estimate the Value of Information (VOI) per unit cost—running a "diagnostic" generation only if reducing uncertainty is worth the compute budget. Afterward, observed deltas update the persistent memory for future requests.
Datasets
Because the underlying T2I models are kept frozen, datasets are used strictly for online runtime evolution and evaluation:
- Controlled Compositional Dataset (Newly Introduced): 360 test instances built from predefined templates and structured targets across six compositional capabilities, allowing rigorous checking of both complete task success and atomic-level constraints.
- GenEval 2: An established compositional-generation benchmark aligned with the harness's intervention tools.
- CoReBench & DPG-Bench: Benchmarks targeting complex reasoning and dense long-prompt following, respectively—used here to test what happens when the harness faces tasks its tools weren't built for.
Key Insights and Ideas
- No single fix rules them all: Fixed strategies often backfire. For example, applying Structured Planning (
SP) to Janus-Pro-7B crashes its Task Success Rate from 46.11% down to 5.28%! Routing interventions conditionally based on learned effects avoids these landmines. - Imperfect internal critics still drive real gains: Sometimes the internal 3B-parameter observer loves an intervention that external benchmarks hate (on SDXL,
PSboosts internal success by +22% while dropping official GenEval 2 scores). Yet because ECHL anchors on paired comparisons, uncertainty bounds, and cost penalties, its choices consistently translate into higher external benchmark scores. - Knowing when to do nothing is a superpower: When tested on DPG-Bench—where compositional prompt tweaks offer almost zero help—ECHL quickly recognizes the lack of transferable utility and defaults to
Raw, spending near-zero extra compute (0.002–0.014 actions per prompt) while preserving baseline quality.
Key Results
Tested across five diverse generators—diffusion/flow models (SDXL, SD3.5M, FLUX.2 Klein, Z-Image-Turbo) and an autoregressive model (Janus-Pro-7B)—under diagnostic budgets $B \in \{1, 2, 4\}$:
- Higher Accuracy, ~6–15x Lower Cost: On the 360-instance controlled dataset (at $B=4$), ECHL beats every fixed baseline across all five models in Task Success Rate (e.g., lifting SDXL from 23.06%
Rawand 28.06%ERup to 30.83%, and Z-Image-Turbo from 70.56% to 75.00%). Crucially, whereasERalways costs 2.00 extra generations, ECHL spends just 0.13 to 0.35 on average. - GenEval 2 Gains: ECHL improves Soft-TIFA scores over
Rawacross every generator and budget (e.g., FLUX.2 Klein rises from 25.48 to 26.84 at an average action cost of just 0.10). - Mismatch Robustness: On CoReBench, ECHL squeezes out +0.11 average (+0.31 max) score gains at tiny costs (0.011–0.058), while safely abstaining on DPG-Bench.
Limitations and Future Work
Rather than inventing new skills on the fly, T2I-SEH operates over a fixed, predefined registry of interventions (PS, SP, ER) and relies on an imperfect frozen VLM observer as a proxy signal during runtime. When tasks diverge heavily from what those fixed operators can fix (as seen in DPG-Bench), the harness can protect you from wasting compute, but it cannot boost quality. For future work, the authors suggest extending effect-conditioned harness learning to more complex, multi-stage generation and design workflows where safely reusing experience across stages could unlock even bigger payoffs.
Summary updated