What is image captioning?
Image captioning produces a written description of an image, such as "a dog catching a frisbee on a beach." It requires both recognizing what is in the scene and expressing it in fluent, relevant language, which is why it sits at the intersection of visual understanding and text generation.
Modern captioning is handled by vision-language models that process the image and generate the sentence end to end.
Key takeaways
- Image captioning generates a language description of an image.
- It combines visual understanding with text generation.
- It is powered by vision-language models.
How it works
A vision-language model encodes the image into a representation the language component can condition on, then generates a caption word by word. These models are typically pretrained on large collections of image-text pairs, which teaches them to associate visual content with language. The same backbone often supports related tasks like visual question answering.
Why it matters
Captioning makes visual content searchable, accessible, and describable at scale, from alt text for accessibility to indexing large media libraries. It also serves as a building block for multimodal understanding, and captions can enrich datasets with text that powers semantic search over images.
Frequently asked questions
How is image captioning different from classification?
Classification assigns a label from a fixed set, while captioning generates free-form natural language describing the whole scene.
What models perform image captioning?
Vision-language models, which combine a visual encoder with a language generator trained on large image-text datasets.
Related terms