Abstract
This paper presents the first large-scale query log analysis for text-to-image (T2I) systems, examining millions of prompts from platforms such as Midjourney and Stable Diffusion. While traditional Information Retrieval (IR) has long relied on query logs to understand user intent, the unique behaviors of users in generative AI spaces remain under-explored. Our analysis reveals that T2I prompting is fundamentally different from web search: prompts are significantly longer, more structured, and part of highly iterative, exploratory sessions. Furthermore, we identify a critical "training gap" between the descriptive image captions used to train these models (e.g., LAION-400M) and the complex "meta-language" of stylistic modifiers that users actually employ. These findings suggest a need for new model alignment strategies and interface designs that support the iterative "sculpting" of generative content.
Introduction
In recent years, generative models like Stable Diffusion, Midjourney, and DALL-E have revolutionized content creation. However, research has primarily focused on improving the generative capabilities of these models rather than understanding the human-AI interaction patterns that drive them. In traditional web search, decades of query log analysis have informed everything from ranking algorithms to user interface design. This study applies those established IR methodologies to the world of Generative AI to bridge the gap between model training and real-world usage.
Methodology
The study treats T2I systems as a novel form of search engine where the model generates an output rather than retrieving an existing document. To analyze this interaction, the researchers employed several analytical frameworks:
- Structural Decomposition: Prompts were categorized into a triad of Subject (the core entity), Form (style, lighting, or technical constraints), and Intent (qualitative goals like "masterpiece" or "trending on ArtStation").
- Statistical Benchmarking: Prompt statistics, including term frequency and length, were compared against classic web search benchmarks.
- Session Analysis: Interactions were grouped into 30-minute windows to track how users iterate on a single concept over time.
- Aesthetic Correlation: Using the Simulacra Aesthetic Captions (SAC) dataset, the researchers correlated specific prompt features with human-assigned quality ratings.
- Embedding Visualization: BERT embeddings and UMAP were utilized to visualize the semantic distance between user prompts and standard training datasets.
Datasets
The analysis was conducted across three primary prompt log datasets, using a fourth as a baseline for training data:
- Midjourney Discord Dataset: Approximately 250,000 records crawled from public Discord channels.
- DiffusionDB: A massive repository of 14 million prompts and images generated via Stable Diffusion.
- Simulacra Aesthetic Captions (SAC): 238,000 prompts for Latent Diffusion Models, including aesthetic ratings (1-10).
- LAION-400M (Baseline): A representative sample of the web-scraped image-caption pairs used to train most modern T2I models.
Key Insights and Results
Prompts as "Recipes," Not Queries
Unlike web search queries, which average 2.35 terms, T2I prompts are remarkably verbose, averaging approximately 30 terms. Users do not simply describe a scene; they provide a "recipe." A typical successful prompt includes a subject followed by a string of "Form" constraints (e.g., "octane render," "volumetric lighting") and "Intent" modifiers. This suggests that users are "sculpting" an image through specific technical and stylistic anchors.
The Exploratory Session
T2I sessions are significantly more intense than traditional search sessions. While a web search user might submit two queries to find an answer, T2I users submit an average of 10 to 13 prompts per session. These sessions are characterized by iterative refinement, with users changing a median of 3 to 5 terms between consecutive prompts. This behavior indicates an exploratory information need—users often swap variables (e.g., changing colors or subjects) simply to observe how the model's latent space reacts.
The Training Gap
A significant finding is the vocabulary mismatch between users and models. Only 26% of the terms found in Midjourney prompt logs appear in the LAION-400M training set. This indicates that users have developed a "meta-language" of modifiers and artist names (e.g., "shinjuku," "afremov") to steer models, even though the models were not explicitly trained on these terms as part of their primary descriptive captions. Interestingly, artist names were found to be among the highest-rated terms in terms of aesthetic quality, acting as powerful style anchors.
Correlation with Quality
The study found a positive correlation (Pearson 0.197) between prompt length and aesthetic rating. In the generative context, more detail generally leads to higher-rated outputs, rewarding the user's effort in crafting complex, modifier-heavy strings.
Discussion and Future Work
The findings suggest that current T2I models are misaligned with user behavior. Models are trained on descriptive captions but are prompted with stylistic recipes. To close this gap, the authors propose several future directions:
- Prompt Bundling and Macros: Since long, complex prompts are more effective but difficult to write, systems should allow users to share and "bundle" successful prompt structures.
- Creativity Glossaries: AI interfaces could benefit from tools that suggest "Subject, Form, and Intent" terms to help novice users navigate the model's latent space.
- Log-Based Training: Future models should be fine-tuned on actual prompt logs and user feedback loops rather than relying solely on static, web-scraped image captions.
By understanding the unique "information need" of the generative AI user, developers can create more intuitive interfaces and models that better reflect the creative intent of their human collaborators.
Summary updated