Improving Text-to-Image Generation with Input-Side Inference-Time Scaling
Ruibo Chen, Jiacheng Pan, Heng Huang, Zhenheng Yang
TL;DR
The paper addresses suboptimal outputs in text-to-image generation caused by underspecified prompts by introducing input-side inference-time scaling: an LLM-based prompt rewriter trained entirely with iterative Direct Preference Optimization (DPO) while keeping T2I backbones frozen. The method uses a multimodal LLM judge to provide pairwise preferences across four rewards—image quality, general alignment, physical alignment, and aesthetics—and builds two rewriters (general and aesthetics) that optimize different objectives. Empirical results demonstrate consistent improvements in image-text alignment, image quality, and aesthetics across multiple backbones and benchmarks, with clear scalability as LLM size grows and strong transferability across T2I models. The approach is practical, model-agnostic, and data-efficient (no SFT), and the authors plan to release code and trained rewrites to facilitate adoption.
Abstract
Recent advances in text-to-image (T2I) generation have achieved impressive results, yet existing models often struggle with simple or underspecified prompts, leading to suboptimal image-text alignment, aesthetics, and quality. We propose a prompt rewriting framework that leverages large language models (LLMs) to refine user inputs before feeding them into T2I backbones. Our approach introduces a carefully designed reward system and an iterative direct preference optimization (DPO) training pipeline, enabling the rewriter to enhance prompts without requiring supervised fine-tuning data. We evaluate our method across diverse T2I models and benchmarks. Results show that our prompt rewriter consistently improves image-text alignment, visual quality, and aesthetics, outperforming strong baselines. Furthermore, we demonstrate strong transferability by showing that a prompt rewriter trained on one T2I backbone generalizes effectively to others without needing to be retrained. We also systematically study scalability, evaluating how performance gains scale with the capacity of the large LLM used as the rewriter. These findings highlight that prompt rewriting is an effective, scalable, and practical model-agnostic strategy for improving T2I systems. We plan to release the code and trained prompt rewriters soon.
