ArticleslgStudy

computer science

Vision-language model

Vision-language model is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Vision-language model rather than just read about it. In short: A vision–language model (VLM) is a type of artificial intelligence system that can jointly interpret and generate information from both images and text, extending the capabilities of large language models (LLMs), which are limited to text. It is an example of multimodal learning.

Vision-language model — main illustration
Vision-language model — illustration

Key takeaways

  • Vision-language model belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Vision-language model to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Vision-language model from memory before moving on to harder problems.

Reference excerpt

A vision–language model (VLM) is a type of artificial intelligence system that can jointly interpret and generate information from both images and text, extending the capabilities of large language models (LLMs), which are limited to text. It is an example of multimodal learning. Many widely used commercial applications now rely on this ability. OpenAI introduced computer vision capabilities to its GPT-4V variant of the GPT-4 model, enabling users to incorporate uploaded photographs or diagrams into their discussions with ChatGPT. It has since become an integral part of ChatGPT's standard offering. Similar capabilities were added to Google’s Gemini, Anthropic’s Claude 3 Opus, and Microsoft’s Copilot with Vision. Alongside these models, several open-source vision–language models—such as LLaVA, InstructBLIP, and MiniGPT-4—have been released by the research community, offering smaller-scale alternatives for experimentation and academic study.

History Vision language models evolved from image captioning systems. Such systems were designed to take images alone (without accompanying instructions), and produce descriptions. Most image captioning systems used an encoder-decoder architecture, where an encoder summarized images into feature vectors, which were fed to a decoder to generate the associated description. Early methods (early 2010s), combined handcrafted visual features to encode images, and n-gram or rule-based text templates to generate descriptions. With the rise of deep learning, neural networks became dominant in image captioning. In 2015, methods emerged that used variations of convolutional neural networks (CNN) to encode images, and recurrent neural networks (RNN) to generate the captions. By 2018, transformer networks replaced RNNs in the role of language decoders. Importantly, training of network parameters was based on datasets of image-text pairs, like MS COCO (Common Objects in Context). The scope of applications was also broadened, to include visual question answering (VQA), phrase grounding and others. In 2021, OpenAI's release of CLIP (Contrastive Language–Image Pretraining) was a major step towards the later evolution of VLMs. Rather than focus on a specific task like image captioning, CLIP is a general-purpose foundation model which can be extended to a broad range of downstream tasks. Importantly, CLIP's components were trained on a vast dataset of 400 million image-text pairs, producing powerful models. CLIP's general-purpose structure also places this powerful capability at the disposal of systems with far smaller computational budgets. Starting in 2022, many VLM architectures have been proposed, based on similar design philosophies (elaborated below). These included Google DeepMind's proprietary Flamingo and an open-source variant, LLaVA, SalesForce's InstructBLIP, Microsoft's Kosmos, KAUST's MiniGPT-4 and others. All these merged a separately trained CLIP-like image encoder, an off-the-shelf large language model (LLM) for text encoding, stitched together using specialized components. The resulting joint system was trained on curated datasets. The release of GPT-4V in 2023 marked the emergence of highly-impactful commercial applications. This was quickly followed by other systems mentioned above (including Google’s Gemini, Anthropic’s Claude 3 Opus, and Microsoft’s Copilot with Vision). These applications are substantially more powerful for general-purpose assignments, typically containing substantially more parameters, trained on massive datasets, requiring enormous compute power. Their architectures have not been disclosed.

Architecture The input to VLMs consists of vision elements (images and videos) and text. The output is typically corresponding text. Generative models, which also generate vision elements (e.g., DALL-E), are beyond the scope of this article. Below is a description of a few representative models, for whom the architecture is known. Commercial VLMs like GPT-4V, whose designs were not publicly disclosed, are likely based on similar concepts.

LLaVA 1.0 LLaVA (Large Language and Vision Assistant) 1.0 is a simple model which captures some of the main concepts of open-source VLMs. The input to the model is an image and an accompanying textual language instruction.

Language model backbone Conceptually, the design is built around an off-the-shelf foundation LLM (a fine-tuned variant of Llama called Vicuna), with components patched on to support the image inputs. LLaVA borrows the tokenizer and the transformer modules (including their weights) from Vicuna, and uses them to handle the accompanying text. Recall that in a legacy (non-VLM) application of Vicuna, the tokenizer converts text into a stream of tokens, which are transferred into the transformer module, which in turn produces a stream of response tokens. These are then converted back to text using the tokenizer.

Vision encoding To this, LLaVA adds two components, to support image inputs:

… excerpt ends here. Continue reading the full article.

Illustrations

Vision-language model: Architecture of the Flamingo VLM
Architecture of the Flamingo VLM
Vision-language model: Gated cross-attention and dense block
Gated cross-attention and dense block

Worked examples

Example 1 — a first encounter with Vision-language model

Start with the simplest possible case. Write down what Vision-language model claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Vision-language model before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Vision-language model ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Vision-language model

In research
Vision-language model appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Vision-language model in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Vision-language model is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer vision, Language modeling, Natural language processing, so understanding it makes those chapters shorter.
In everyday life
Look for Vision-language model outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Vision-language model” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Vision-language model in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Vision-language model means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Vision-language model out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Vision-language model in simple terms?

A vision–language model (VLM) is a type of artificial intelligence system that can jointly interpret and generate information from both images and text, extending the capabilities of large language models (LLMs), which are limited to text. It is an example of multimodal learning.

Why does Vision-language model matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Vision-language model?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Vision-language model.

Tags

  • Computer vision
  • Language modeling
  • Natural language processing

Keep exploring