M/Visual Library
  1. Visual Library
  2. Gen AI
  3. Captions: The Hidden Language of Image Models

Gen AI

Captions: The Hidden Language of Image Models

Image models learned what words look like from billions of captions and alt texts scraped from the web. How that language shaped them, why it was poor, how recaptioning changed things, and what it means for prompts.

Also known as: image captions and AI training, alt text training data, LAION dataset, recaptioning, why AI images look like stock photos

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

Alt text

Descriptions written for screen readers and search engines, of very uneven quality.

Web scale

Billions of image-text pairs, filtered automatically, with little human review.

Stock and commerce

Product and stock-photo sites contributed huge numbers of polished, generic images with keyword captions.

Missing descriptions

Many images had no useful text at all, or text unrelated to the image.

What it did to models

Stock-photo look

Generic prompts drift toward the polished commercial images that dominate captioned data.

Keyword prompting

Because many captions were keyword lists, older models responded to tag-style prompts.

Reporting bias

Captions mention what is unusual, so ordinary details were under-described.

Bias and gaps

Who and what was photographed, captioned and in which language shapes every default.

Recaptioning

Synthetic captions

A vision-language model writes long, detailed descriptions for training images.

Better prompt following

Training on descriptive captions made models follow detailed prompts much more closely.

Prompt rewriting

Some tools expand your short prompt into a long caption-like description before generating.

New defaults

Recaptioned models respond best to natural, descriptive sentences, like good alt text.

What it means for prompts

Write like a good caption

Describe what is visible, in order, plainly: subject, setting, light, style.

Avoid keyword stuffing

With modern models, tag lists are a habit from older systems, not a strength.

Expect the average

If a description is generic, the result will be the average of matching captions.

Your descriptions matter

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 description to start from

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.

Try this

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).

Keep looking