Image captioning

Image captioning is the task of automatically generating a natural-language description of an image, used for accessibility and to label the training data for other AI models.

A captioning model looks at a picture and writes a sentence about it, such as "a brown dog catching a frisbee on a beach". It has two halves: a vision component that turns the pixels into a numerical description of what is in the image, and a language component that turns that description into words. The Show and Tell paper of November 2014 set the pattern, training one network end to end to produce the most likely description of an image. On one benchmark it raised the BLEU-1 score from 25 for the previous best system to 59, against roughly 69 for human-written captions.

Captioning is now one task among many for vision-language models and multimodal chat assistants. The same model that captions a photo can answer questions about it, read text in it and describe it at any length. Meta's Chameleon models, published in May 2024, reported state-of-the-art captioning in a model that also generates images.

The most direct use is accessibility. The W3C's web accessibility guidance says informative images need a text alternative, which screen readers read aloud or render as Braille. In 2023 Be My Eyes introduced Be My AI, a GPT-4 powered assistant first announced as Virtual Volunteer, which describes photos taken by blind and low-vision users and answers follow-up questions about them.

Captioning is also used to clean training data. Web text paired with images is often noisy, short or unrelated to the picture. The BLIP framework, published in January 2022, used a captioner to write synthetic captions for web images and a filter to discard poor ones, and its authors reported state-of-the-art results on captioning, retrieval and question answering. Image generators use the same idea: for DALL·E 3, OpenAI trained a dedicated captioner to rewrite the descriptions of its training images, and found that training on these detailed captions reliably improved how well the model followed prompts.

In practice, an automatic caption is a draft. Models can miss what matters, invent details or describe the obvious. The W3C guidance points out that the right text alternative depends on why an image is there: a decorative image should be skipped, and a button icon should describe its action, not its appearance. A captioning model cannot know that context unless someone tells it.

Common questions

What is image captioning in AI?

It is the task of generating a written description of an image. A model analyses the visual content and produces a sentence or paragraph describing the objects, people, actions and setting it sees.

Can AI write alt text for images?

Yes, and many tools now offer AI-generated alt text. It is a useful starting point, especially for large photo libraries, but it should be checked. Good alt text depends on the image's purpose on the page, and a model may describe the wrong details or get facts wrong.

How accurate is AI image captioning?

Modern multimodal models describe everyday photos well, but they can miss context, misread text, misidentify people or objects and occasionally describe things that are not there.

How is image captioning used to train image generators?

Image generators learn from huge sets of images paired with text. Captioning models are used to write clearer, more detailed descriptions for those images than the original web text, which helps the generator learn how words relate to visual details.

Finding more

Search for "image captioning model", "AI alt text accessibility" or "synthetic captions training data" to see how captioning is built and used. Reliable sources include research papers on arXiv, accessibility guidance from the W3C Web Accessibility Initiative, and documentation from assistive technology organisations. Treat claims that AI alt text makes images fully accessible with care, since accessibility guidance stresses context that models do not have.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.