TIPO: Text to Image with Text Pre-sampling for Prompt Optimization

Shih-Ying Yeh, Yi Li, SangHyun Park, Giyeong Oh, Xuehai Wang, Min Song, Youngjae Yu, Shang-Hong LaiICLR 2026

Introduction

Modern Text-to-Image (T2I) models like SDXL, Stable Diffusion 3.5, and Flux are incredibly powerful, but they are "power-hungry" when it comes to text. To produce masterpiece-level results, they require long, descriptive, and structured prompts. However, most users provide "primitive" inputs (e.g., "a cat in a cafe").

TIPO (Text-to-Image Prompt Optimization) is a lightweight, efficient framework designed to bridge this gap. It automatically expands simple user prompts into detailed, high-quality descriptions by aligning user inputs with the specific text distributions that modern image generators were trained on.

The Challenge: Distribution Mismatch

The core issue in T2I generation is a distribution mismatch: the simple, natural language users employ doesn't match the complex, detailed, and often tag-heavy captions the models saw during training.

Existing solutions attempt to solve this but often fall short:

  1. Direct LLM Rewriting: General-purpose LLMs (like GPT-4) lack an understanding of the specific "tag" structures or stylistic cues T2I models prefer.
  2. User-Prompt Databases: Relying on curated prompt galleries limits variety and reflects the inconsistent expertise of the original users.
  3. Reinforcement Learning (RL): Methods that train models to maximize aesthetic scores using T2I outputs are computationally expensive and usually locked to one specific T2I model.
Comparison of prompt optimization methods

The TIPO Approach: Text Pre-sampling

To address these limitations, the authors introduce TIPO, a framework centered on the concept of Text Pre-sampling. Instead of merely "rewriting" a prompt using a general LLM, TIPO treats prompt optimization as sampling from a targeted sub-distribution of the T2I model's original training data.

Key Technical Components: * Lightweight Architecture: TIPO utilizes a 200M-parameter LLaMA-based model. This makes it small enough to run alongside image generation without significant computational overhead. * Multi-Task Training: The model is trained on a suite of "pretext tasks" (e.g., short_to_tag, tag_to_long, short_to_long). This allows it to handle various inputs—from comma-separated tags to short natural sentences—and expand them into a unified, rich format. * Prefix-Based Dropout: To ensure the model preserves the user's original intent, the training strategy ensures the user input remains a "prefix" or core part of the expanded prompt, rather than being completely overwritten. * Structured Metadata: TIPO automatically appends useful metadata (such as style, aspect ratio, and quality tags) that provides strong guidance to the downstream image generator.

Datasets and Training

TIPO's effectiveness stems from its training on a massive, curated corpus of approximately 30 million image-text pairs (totaling 40 billion tokens). This includes:

  • Danbooru2023: A large-scale dataset of images with granular, community-curated tags.
  • GBC10M (Graph-Based Captioning): A dataset providing detailed structural information about object relations.
  • CoyoHD11M: High-resolution images paired with synthetic, high-concept-density captions.

Key Insights: Alignment is King

The defining insight of TIPO is that a "good" prompt isn't necessarily one that sounds poetic to a human; it is one that matches the statistical patterns the T2I model learned during its own training.

Distribution mismatch and alignment in T2I models

By framing the problem as sampling from a sub-distribution, TIPO maintains the "semantic soul" of the user's request while filling in the "visual blanks" (lighting, background, texture) that the T2I model needs to perform well. Furthermore, efficiency matters: a specialized 200M parameter model can outperform massive models like GPT-4o-mini in this specific domain because it is explicitly "distribution-aligned" with the image generator.

Results and Performance

Experimental evaluations demonstrate that TIPO significantly boosts visual quality and intent alignment:

  • Human Preference: In over 1,400 pairwise comparisons, TIPO achieved a 62.8% win rate against strong baselines.
  • Speed: TIPO provides a 29.4% runtime efficiency improvement over existing methods like Promptist and is significantly faster than multi-turn LLM approaches.
  • Visual Fidelity: Using the Frechet DINO Distance (FDD) metric, TIPO showed superior alignment with target distributions compared to GPT-4o-mini and MagicPrompt, significantly reducing visual artifacts.
  • Generalization: While optimized for models like SDXL, TIPO demonstrated robust compatibility with models it wasn't specifically trained for, including FLUX.1-dev and Gemini-2.0-Flash.

Limitations and Future Work

While highly effective, TIPO's performance is inherently tied to the quality of its training corpus. If a T2I model is trained on a completely different, proprietary distribution, TIPO’s effectiveness might decrease. Additionally, TIPO currently operates purely in the text domain. Future iterations could incorporate Image-Aware Refinement, utilizing vision-language models to analyze a generated image and suggest further prompt tweaks. Finally, while the 200M model is efficient, scaling to 500M parameters continued to yield gains, suggesting that larger specialized models might unlock even higher quality generation.

Summary updated

BibTeX
@inproceedings{yeh2026tipo,
  author = {Shih-Ying Yeh and YI LI and SangHyun Park and Giyeong Oh and Xuehai Wang and Min Song and Youngjae Yu and Shang-Hong Lai},
  title = {{TIPO: Text to Image with Text Pre-sampling for Prompt Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=dDnw3Pp70x},
}
Figure