Text-to-image (T2I) prompt optimization rewrites user prompts to improve the quality of generated images under a target reward. Existing methods typically assume a known reward, relying on reward-specific training or handcrafted instructions. We instead study prompt optimization for unseen rewards, which are unknown at design time and accessible only through scores at test time. We observe that removing reward-specific guidance substantially reduces the search efficiency of LLM-based optimizers, even though their optimization histories contain evidence of what the reward favors. To address this challenge, we introduce RATTPO (Reward-Adaptive Test-Time Prompt Optimization), a reward-generic method that turns this implicit evidence into explicit search guidance. At each round, RATTPO contrasts high- and low-scoring prompts to infer competing hypotheses about promising rewriting directions, then generates and evaluates candidates under each hypothesis. Across four reward families, RATTPO consistently outperforms reward-generic baselines at equal budgets and achieves performance comparable to reward-tailored optimizers without any reward-specific adjustment.
翻译:暂无翻译