How do multimodal models actually combine text and images?

Originally published on Medium on November 5, 2026. Read the original at medium.com/@chindahel1.

Show a modern model a photo of a kitchen and ask what is on the counter, and it will answer. It feels like the model can see. It cannot, at least not the way you do. What it can do is convert an image into the same kind of representation it already uses for text, and then let the two representations interact inside one system. The trick is not vision. The trick is translation.

Here is the whole pipeline in one picture. Everything in this post is a zoomed-in view of one of these boxes.

The standard multimodal pipeline, from pixels to words
From pixels to words: the standard multimodal pipeline

To understand how that works, start with a basic problem. Text and images live in completely different worlds. Text arrives as a sequence of discrete tokens, each one a word or word fragment with a fixed identity. An image arrives as a grid of pixels, continuous numbers with no built in meaning. A language model knows what to do with tokens. It has no idea what to do with a grid of pixels. So before any reasoning can happen, the image has to be turned into something token shaped.

From pixels to patches

The first step is to break the image into pieces. Most vision encoders cut the image into a grid of small square patches, often 14 by 14 or 16 by 16 pixels, and treat each patch as a unit. Each patch is flattened into a vector of numbers, projected into the model’s working space, and given a position marker so the model knows where it came from:

Patch projection with position embedding
Patch projection: each image patch is flattened, projected, and given a position embedding

Here E is the learned projection, and p_i is the position embedding for patch i. The result is passed through a neural network, usually a vision transformer, that produces a vector representation for every patch. These vectors are sometimes called visual tokens, and the name is deliberate: they are meant to play the same role that word tokens play for text.

A patch on its own means almost nothing. A 16 by 16 square of brown pixels could be a table, a dog, or a shadow. Meaning comes from context, and the vision encoder builds that context the same way a language model builds context for words: self attention. Each patch representation is updated based on the patches around it, using the same operation that powers language models:

Self-attention over image patches
Self-attention over patches: each patch is updated based on the patches around it

Each patch asks every other patch how relevant it is (the QK term), weights the answers, and mixes them together. So a patch next to other brown patches in a horizontal line starts to look like a table edge. After several layers of this, the patch vectors carry information about what is in the image and where it is, at least in rough form.

This is the first thing to notice about multimodal models. The model never sees the image. It sees a set of vectors that summarize the image at patch resolution. Anything smaller than a patch, or any detail the encoder failed to capture, is simply not available to the rest of the system. That limitation explains a surprising amount of what these models get wrong.

The bridge between two worlds

Once the image is a set of vectors, the next problem is alignment. The language model was trained on text, so its internal space is organized around words and their relationships. The vision encoder was trained on images, so its space is organized around visual patterns. These two spaces do not match by default. A vector that means “dog” to the vision encoder is just an arbitrary point to the language model.

The bridge is usually a small learned module, often just a linear projection or a small multilayer network, that maps visual vectors into the language model’s space. After this mapping, the image patches are concatenated with the text tokens into a single sequence, and the language model processes the whole thing together. From the language model’s point of view, it is just reading a longer sequence, where some of the tokens came from an image instead of from text.

How does the bridge learn the right mapping? The most common answer is contrastive pretraining, the approach behind CLIP. Take millions of image and caption pairs from the internet, and train the vision encoder and a text encoder so that the vector for an image ends up close to the vector for its caption, and far from the vectors for unrelated captions. The training objective is a contrastive loss over a batch of pairs:

Contrastive loss over image-caption pairs
The contrastive loss: matching images with their captions, and pushing apart the rest

For each image I, the loss rewards high similarity with its true caption T and penalizes similarity with every other caption T_j in the batch. After enough of this, the two spaces line up: images and text that mean similar things sit near each other.

This shapes what these models are good at and what they are not. Alignment by caption matching teaches the model to connect images with the kinds of things people write in captions. Captions tend to name the main subject, the setting, and the action. They rarely mention how many windows are in the background, whether the dog is to the left or the right of the chair, or the exact shade of the wall. So the alignment is strong for the gist of an image and weak for the details.

Three ways to put the pieces together

Not every multimodal model combines text and images the same way, and the choice is a real design decision with tradeoffs.

Early fusion, cross-attention, and late fusion
Three ways to combine text and images: early fusion, cross-attention, and late fusion

The first approach is early fusion. The projected image vectors are fed into the language model together with the text tokens from the very start, and a single transformer processes the combined sequence. Its strength is flexibility: any token can attend to any other token, so the model can relate a specific word to a specific image region. Its cost is compute. Images produce many tokens, often hundreds per image, and attention cost grows with the square of the sequence length, so a single image can dominate the model’s budget.

The second approach is cross attention. The language model keeps its own sequence of text tokens, and at certain layers it is allowed to attend to the image vectors through a separate attention mechanism. The image is consulted, rather than merged in. This is cheaper and more modular, since you can swap in a different vision encoder without retraining the whole language model. The tradeoff is that the interaction is more limited: the text can look at the image, but the image representations are not updated by the text.

The third approach is late fusion, where separate models process each modality and their outputs are combined only at the end. This works for classifying an image with a text label, but it is a poor fit for open ended generation, because the language model never gets to reason jointly over the image and the text. Most modern systems have moved away from it.

These are not abstract options. Flamingo used cross-attention, keeping the language model frozen and letting it consult the image through gated layers. BLIP-2 used a small querying transformer as the bridge, distilling the image into a handful of tokens for a frozen language model. LLaVA took the simplest route, a single linear projection from CLIP features into the language model’s space, and showed that a small amount of instruction tuning on top was enough to get a working visual chatbot. Same problem, three different answers about where the two modalities should meet.

In practice, early fusion has become the dominant choice for general purpose multimodal models, because it gives the strongest joint reasoning. But the tradeoff is real, and it is one reason these models are expensive to run: every image costs hundreds of tokens of attention.

What the model actually sees, and what it misses

Once you know the mechanics, the characteristic failures of multimodal models start to make sense. They are not random. They follow directly from how the image is represented.

Counting is a good example. Ask a model how many apples are in a bowl, and it will often get the number wrong. Counting requires keeping track of individual instances, but the image has been compressed into patch vectors, and nearby apples may fall into the same patch or blur together. The model has a rough sense of “several apples” but no reliable count, because the representation it works with does not preserve that information cleanly.

Spatial relations fail for a similar reason. “Is the cup to the left of the plate?” is a hard question for a model that represents the image as patch vectors with only approximate position information. Small objects, fine text, and subtle differences between similar objects suffer most. A model can tell you a photo shows a street scene, but it may miss the small sign in the background or misread a number on a jersey.

There is also a subtler bias. Because the language model is far larger than the vision encoder, and because text dominates its training, the model often leans on language priors instead of looking carefully at the image. Ask it about a photo of a blue banana, and it may answer as if the banana were yellow, because “banana” is so strongly associated with yellow in text that the prior overrides the visual evidence. Researchers call this language bias, and it is one of the main reasons multimodal models can seem to ignore what is right in front of them.

Two views of what is happening

There is a genuine debate about whether this architecture amounts to understanding, and it is worth stating both sides plainly.

One view says that aligning image and text vectors in a shared space is a real form of grounding. The model is learning a representation where visual and linguistic information about the same concept coincide, and that shared representation lets it answer questions, describe scenes, and reason about images in ways that transfer to new examples. On this view, the failures are engineering problems: better encoders, higher resolution, more careful training, and the model will keep getting closer to genuinely seeing.

The other view says the model is matching patterns across modalities without building the kind of structured understanding that vision requires. It can tell you what is in a photo because it has learned statistical associations between image features and words, not because it has a model of the scene with objects, positions, and relationships. On this view, the counting and spatial failures are not bugs to be patched. They are symptoms of an architecture designed for language that had vision bolted on, and real progress may require representing spatial structure explicitly rather than squeezing it into token vectors.

Both views have evidence. Multimodal models are genuinely useful, and they keep improving on benchmarks that test visual understanding. At the same time, their failures cluster exactly where a structured scene representation would help, and where a bag of patch vectors would struggle. The honest summary is that current models are very good at recognizing and describing, and much weaker at the kind of precise, structured perception that humans do without thinking.

Why this matters

Multimodality matters because the world is not text. Most of the information humans use to reason comes through vision: diagrams, charts, photographs, handwriting, the layout of a page. A model that can only read text is cut off from most of that. Bringing images into the same reasoning system is what lets a model read a graph, check a screenshot, or help with a problem written on a whiteboard.

It also matters for the research direction that follows. If the failures come from how images are compressed into tokens, then the interesting questions are about representation: how much detail should survive, how should position be encoded, and when should the model be allowed to look again at the raw image instead of relying on a compressed summary. Some of the most active work in the field is exactly here, giving models tools to zoom in, to attend to regions, or to reason over images in multiple passes rather than a single forward sweep. A multimodal model does not see a photo. It reads a sequence of vectors that a vision encoder produced from a photo, translated by a learned bridge into a space built for words. Everything it can do with an image, and everything it cannot, follows from that fact.

References

  • Dosovitskiy, A., et al. (2020). An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. arXiv:2010.11929. The vision transformer: images as sequences of patch tokens.
  • Radford, A., et al. (2021). Learning Transferable Visual Models From Natural Language Supervision. arXiv:2103.00020. CLIP and the contrastive alignment behind the bridge.
  • Alayrac, J.-B., et al. (2022). Flamingo: A Visual Language Model for Few-Shot Learning. arXiv:2204.14198. The cross-attention design.
  • Li, J., et al. (2023). BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models. arXiv:2301.12597. The querying transformer bridge.
  • Liu, H., et al. (2023). Visual Instruction Tuning. arXiv:2304.08485. LLaVA, the simple projection plus instruction tuning recipe.