Vision-language model (VLM)

A vision-language model is an AI model that takes images and text as input and produces text, so it can describe pictures, answer questions about them and read documents.

Hugging Face, in an April 2024 explainer, describes vision-language models as multimodal generative models that take image and text inputs and produce text outputs. They can chat about an image, answer questions about it, write captions and understand documents, and some can also point to objects by outputting bounding boxes or outlines.

Most are built from three parts. An image encoder turns the picture into a set of feature vectors. A projector maps those features into the same representation space the language model uses for words. A language model then reads the projected image features alongside the text prompt and writes the answer. LLaVA, a widely copied open design, combined a CLIP image encoder, a projector and the Vicuna language model. A common recipe trains the projector first with the other two parts frozen, then unfreezes the language model and trains both together.

Three papers mark the path. CLIP, posted in February 2021, trained an image model and a text model on 400 million image and caption pairs from the internet so that matching pairs line up; without using any of ImageNet's 1.28 million training images, it matched the accuracy of the original ResNet-50 on that benchmark. Flamingo, posted in April 2022, connected separately pretrained vision and language models and handled text with images in any order, learning new tasks from a few examples. LLaVA, posted in April 2023, used text-only GPT-4 to generate image-based instruction data and released its data, model and code openly.

A practical example: photograph a restaurant receipt and ask how much the tip was. The model has to read the printed text, find the right line and answer in words. The same skills let these models summarise charts, extract fields from scanned forms or describe a photo for someone who cannot see it. Like text-only models they can state things that are not there, so answers about documents and figures are worth checking against the source.

The terms overlap. Many current AI assistants are multimodal large language models that accept images as one of several inputs, and the vision-language label describes that capability. Robotics extends the idea further: vision-language-action models add physical actions as an output.

Common questions

What is a vision-language model?

A vision-language model, or VLM, is an AI model that accepts images together with text and responds in text. It can describe images, answer questions about them, read text in documents and screenshots, and in some cases locate objects. Most combine an image encoder with a large language model.

What is the difference between a VLM and an LLM?

A large language model works with text only. A vision-language model adds an image encoder and a connecting layer so the language model can take pictures as input. Many VLMs are in fact built on top of an existing LLM.

Is a vision-language model the same as a multimodal model?

A vision-language model is one kind of multimodal model, covering images and text. Multimodal models more broadly can also handle audio, video or other inputs and outputs. In news coverage the terms are often used loosely for the same assistant products.

What are some examples of vision-language models?

Hugging Face's April 2024 overview listed open models including LLaVA, Qwen-VL, KOSMOS-2, Fuyu-8B, CogVLM, DeepSeek-VL and moondream2. Flamingo, described in 2022, was an influential early research model.

Finding more

Search for "vision language model", "visual question answering", "LLaVA" or "multimodal LLM architecture" to see how these models are built and tested. Hugging Face's documentation and blog, model cards from developers and the original papers on arXiv are reliable starting points. Benchmark scores for document and chart reading vary widely by test, so look at results on tasks close to your own use.

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.