A model's teacher was the web's captions
Text-to-image models learn from pairs of images and text. For many models, that text came from the web: alt text written for accessibility or search, filenames, product titles and social media captions. Open datasets like LAION-5B, released in 2022, gathered billions of such pairs. The model's sense of what any word looks like is an average over how people happened to caption images online.
That language was often thin: 'image', 'photo of product', a brand name, a keyword list. In 2023 OpenAI reported that training on detailed, synthetic captions written by a captioning model greatly improved how well images followed prompts. Recaptioning is now common. For prompt writers, this history explains a lot: models respond best to the kind of language their captions used.
Where the text came from
Descriptions written for screen readers and search engines, of very uneven quality.
Billions of image-text pairs, filtered automatically, with little human review.
Product and stock-photo sites contributed huge numbers of polished, generic images with keyword captions.
Many images had no useful text at all, or text unrelated to the image.
What it did to models
Generic prompts drift toward the polished commercial images that dominate captioned data.
Because many captions were keyword lists, older models responded to tag-style prompts.
Captions mention what is unusual, so ordinary details were under-described.
Who and what was photographed, captioned and in which language shapes every default.
Recaptioning
A vision-language model writes long, detailed descriptions for training images.
Training on descriptive captions made models follow detailed prompts much more closely.
Some tools expand your short prompt into a long caption-like description before generating.
Recaptioned models respond best to natural, descriptive sentences, like good alt text.
What it means for prompts
Describe what is visible, in order, plainly: subject, setting, light, style.
With modern models, tag lists are a habit from older systems, not a strength.
If a description is generic, the result will be the average of matching captions.
Alt text you write today may become training data tomorrow; clear, accurate descriptions improve the commons.
The words to describe it
Precise words for the qualities above. Combine a few of them instead of naming the style or artist alone.
- image-text pairs
- alt text
- web-scale dataset
- LAION-5B
- caption quality
- synthetic captions
- recaptioning
- prompt rewriting
- stock-photo look
- descriptive caption style
A prompt written like a good caption: 'A middle-aged man in a grey apron arranges oranges in a pyramid at an open-air market stall, early morning, soft overcast light, plastic crates stacked behind him.'
How to put it into words
- Write prompts the way a careful alt text describes an image.
- Expect generic wording to return the most common captioned image.
- Prefer descriptive sentences to keyword lists with modern models.
Where we usually get it wrong
Thinking of prompts as magic spells. They work because they resemble the captions a model learned from. Once you see a prompt as a caption for an image that doesn't exist yet, writing a good one becomes the familiar task of describing an image well.
Take one of your own photographs and write two captions: a short keyword caption like a stock site, and a detailed descriptive one like good alt text. Use each as a prompt and compare which result is closer to the original photograph.
Sources and further reading
- Schuhmann et al., 'LAION-5B: An open large-scale dataset for training next generation image-text models' (NeurIPS 2022).
- Betker et al., 'Improving Image Generation with Better Captions' (OpenAI, 2023).
- Birhane, Prabhu and Kahembwe, 'Multimodal datasets: misogyny, pornography, and malignant stereotypes' (2021).