A field guide · Vision-language models

What Happens Inside a VLM

Interpreting how vision-language models use the image: which visual tokens matter, where the picture flows into the answer, and when the model quietly ignores what it was shown.

InterpretabilityVision-language modelsHallucination

The question

Show a vision-language model a photo of a dog next to a red ball. Ask, "What colour is the ball?" It answers, "Red." The answer is right. But did the model look at the ball?

There are at least three ways to produce that answer. The model could have read the pixels of the ball. It could have guessed from language alone, because balls in captions are often red. Or it could have attended to the wrong region and still got lucky. Accuracy cannot tell these apart. All three score the same.

Interpretability asks the question from the inside. For vision-language models (VLMs), it splits into three concrete questions:

These questions are not academic. If most image tokens are unused after a few layers, we can drop them and save compute (the subject of The Cost of a Picture). If hallucinations come from priors overriding visual evidence, we can target that mechanism (see Aligning Vision-Language Models). If a model attends to the right region but still answers wrongly, the fix is not a better vision encoder. And if a benchmark can be passed without the image, its scores mean less than they appear to (see Measuring What a VLM Can Do).

This post builds the toolkit first, then walks through what it has found. Figure 1 is the map. Information can be lost at four places on the way from pixels to the answer, and each section of this post looks at one or more of them.

Figure 1Four places where a VLM can lose the picture

Scroll sideways to see the whole figure.

Figure 1. A decoder-style VLM in four stages: a vision encoder turns pixels into patch vectors, a connector maps them into the language model's input space, the language model routes information between positions across layers, and the last position emits the answer. Each stage is a checkpoint. A probe on the encoder asks whether the information exists. A reconstruction test on the connector asks whether it survives. Attention and patching experiments ask whether it reaches the answer position. A blind baseline asks whether the answer needs the image at all.

What there is to look at

Before choosing tools, it helps to be precise about what is inside. This post focuses on the most common design, where image tokens are placed directly into the language model's input sequence. One Transformer, Two Modalities builds this design from the ground up, and The VLM Architecture Gallery compares it with the alternatives.

The residual stream view

Each position in the sequence holds one vector. Call it the residual stream at that position. Every layer reads this vector and adds something to it. Attention adds information copied from other positions. The MLP transforms the information already at the position. Nothing else moves information between positions.

This gives a simple rule. The answer is predicted from the vector at the last position. So any information from the image must reach the last position through attention edges, at some layer. Either it goes there directly from image positions, or it first goes to question tokens and then on to the last position. "Where does the image flow into the answer?" becomes a question about which attention edges carry it, at which layers. How Attention Moves Information covers this view for text models.

A consequence of the causal mask

Most VLMs put the image before the question. The language model uses a causal mask, so each position sees only earlier positions. Image tokens therefore cannot see the question. Their representations are built without knowing what will be asked.

So the model cannot sharpen image tokens for the question. Only the question tokens and the answer position can select what matters, by reading from the image. That is why many findings below are about text positions "pulling" from image positions. It also explains a finding we will meet later: question tokens end up storing a compressed summary of the image.

Where image tokens come from

Image tokens are not words. A vision encoder, usually a CLIP or SigLIP vision transformer, produces one vector per image patch. A connector, often a two-layer MLP, maps each vector to the language model's width. Inside a Modern Vision Encoder covers this path in detail. For interpretability, three properties matter. Is there one token per patch, so tokens map to image regions? How many tokens are there? How are their positions encoded?

Most published interpretability work studies a small set of open models, which act as "model organisms." Their designs differ in exactly those three properties, so a finding on one does not automatically transfer to another.

Table 1 · The model organisms of VLM interpretability
ModelVision encoderConnectorVisual tokens per imageLanguage modelPositionsWhy it matters for interpretation
LLaVA-1.5CLIP ViT-L/14 at 336 pxTwo-layer MLP576 (a 24 × 24 grid)Vicuna 7B or 13B1D RoPE, raster orderOne token per patch, so token heat maps map cleanly onto the image. Most findings in this post were measured here.
LLaVA-NeXT (1.6)CLIP ViT-L/14 at 336 pxTwo-layer MLPUp to about 2,880 (tiles plus a global view)Vicuna, Mistral and others1D RoPETiles mean one region can appear twice, at two scales and far apart in the sequence.
Qwen2-VLViT trained for native resolutionMLP that merges 2 × 2 neighbouring patchesVaries with image sizeQwen2M-RoPE (separate time, height, width)Position encoding is spatial, so recency effects from 1D RoPE may not apply in the same way.
BLIP-2, InstructBLIPEVA-CLIP ViT-gQ-Former with 32 learned queries32Vicuna or FlanT5Queries have no spatial layoutTokens do not correspond to image regions, so per-token heat maps cannot be read as locations.
ChameleonVQ image tokenizer (no separate encoder)None: images are discrete tokens1,024 for a 512 × 512 imageOne transformer trained from scratch on mixed data1DNative early fusion. Information flow differs sharply from adapter models (see the "narrow gate" below).

How to read this table: the last column says what a finding on that model can and cannot tell you. When a paper reports a result on LLaVA-1.5 only, ask whether it depends on one-token-per-patch layout, on 576 tokens, or on 1D positions. Per-family details are in How the Open VLM Families Were Built.

Tools for looking inside

Interpretability tools fall into two groups. Observational tools read what the model computes without changing it. Interventional tools change something and measure the effect. The first group is cheap and suggestive. The second group is expensive and closer to cause and effect. Most VLM findings combine both.

Attention maps

The simplest tool reads attention weights. At layer ℓ and head h, position i attends to position j with weight

aij = softmaxj( qi · kj / √d ) Take i to be the last position and j to range over the image positions, reshape the weights into the patch grid, and you get a heat map over the image.

These heat maps are easy to produce and often look right. They have three known problems. First, a weight says how much is read, not how much it changes the output. The vector read from position j is aij vj, and its size depends on the norm of vj too (Kobayashi et al., 2020). Second, there are many heads and layers, and they disagree. Third, some tokens soak up attention without carrying content. These are attention sinks, and we will see that VLMs have visual ones. The debate over whether attention is explanation (Jain and Wallace, 2019; Wiegreffe and Pinter, 2019) applies in full.

Attention rollout (Abnar and Zuidema, 2020) tries to account for many layers. It multiplies the attention matrices of all layers, each mixed with the identity to model the residual connection. It is still observational, and it still counts sinks.

Gradients

A gradient asks how the output changes if an input changes a little. Grad-CAM (Selvaraju et al., 2017) weights feature maps by their average gradient. Integrated gradients (Sundararajan et al., 2017) fixes a weakness of raw gradients, which can be near zero where the model is saturated. It averages gradients along a straight path from a baseline x′ to the input x:

IGi(x) = (xi − x′i) · ∫01 ∂F( x′ + α(x − x′) ) / ∂xi dα The attributions add up to F(x) − F(x′). The catch is the baseline: a black image, a blurred image and a mean image give different maps.

Chefer et al. (2021) combine attention with gradients to produce relevancy maps for bi-modal transformers. LVLM-Interpret (Stan et al., 2024) and Token Activation Map (Li et al., 2025) bring this style of map to LLaVA-type models. TAM addresses a problem specific to generation: earlier generated tokens add activations that leak into the explanation of later tokens. A warning comes from Adebayo et al. (2018): some saliency methods produce nearly the same map when the model's weights are randomised. A map that survives that test is not proof, but a map that fails it is not about the model.

Probes

A probe is a small classifier trained on frozen activations (Alain and Bengio, 2016). If a linear probe on layer ℓ can predict "is there a dog in this image?", then that information is linearly decodable at layer ℓ. Probes answer "is it there?" They do not answer "is it used?" A strong probe can also learn the task itself rather than read it out, which is why Hewitt and Liang (2019) recommend control tasks with random labels. Belinkov (2021) reviews both limits.

The logit lens

The language model ends with an unembedding matrix WU that turns the final vector into word scores. The logit lens (nostalgebraist, 2020) applies that same matrix to an intermediate layer:

pℓ( word | position i ) = softmax( WU · LN( hℓ,i ) ) LN is the final layer norm. The lens asks: if the model had to speak from layer ℓ, what word would this position say?

For text, this shows predictions forming over depth. For a VLM there is a new use. Apply the lens at image positions and ask which word each patch "looks like" to the model. The tuned lens (Belrose et al., 2023) learns a small affine map per layer to correct the lens in early layers. Those maps were trained on text positions, so it is an open question whether they transfer to image positions.

Activation patching

Patching is the main interventional tool (Meng et al., 2022 call it causal tracing). Run the model on two inputs that differ in one fact. In a clean run the ball is red. In a corrupted run the ball is blue. Then run the corrupted input again, but copy one activation from the clean run into it. If the answer flips back to "red," that activation carries the colour.

restored(ℓ, i) = ( Ppatched(red) − Pcorrupt(red) ) / ( Pclean(red) − Pcorrupt(red) ) A value near 1 means the activation at layer ℓ and position i is enough to restore the answer. Sweeping ℓ and i gives a map of where the fact lives.

The choice of corruption matters. Early causal tracing added Gaussian noise to the input embeddings. That pushes the model off its normal input distribution, so the map can reflect the model's reaction to noise. Zhang and Nanda (2023) and Heimersheim and Nanda (2024) recommend minimal pairs instead. For VLMs, the NOTICE pipeline (Golovanevsky et al., 2024) builds semantic minimal pairs for images and symmetric token replacement for text. Basu et al. (2024) extend causal tracing to LLaVA and multimodal Phi-2. Palit et al. (2023) built an early causal tracing tool for BLIP.

Figure 2Activation patching on a minimal pair (illustrative)

Scroll sideways to see the whole figure.

Figure 2. The clean image has a red ball. The corrupted image is identical except the ball is blue. Copying one activation from the clean run into the corrupted run, then measuring how much of P("red") returns, tests whether that activation carries the colour. Sweeping every layer and position produces a restoration map. The pattern shown, from ball patches in early layers to the word "ball" and then to the last position, is a schematic of the kind of route the studies below report. It is not data from one model.

Attention knockout

Knockout tests a route directly (Geva et al., 2023). Pick a set of source positions S and a target position t. At a window of layers, set the attention scores from t to S to minus infinity before the softmax. Now t cannot read from S at those layers. Measure how much the probability of the correct answer drops. A large drop means that route, at those layers, carries needed information. Slide the window up the network to see when the route matters.

Ablation

Ablation removes tokens or components. Mean ablation replaces a token's vector with the average vector, so the model sees "nothing special here" rather than an unusual zero. Ablating the image tokens of one object, and checking whether the model can still name the object, is a direct test of where object information lives.

Sparse autoencoders and steering

A single neuron often responds to several unrelated things. Sparse autoencoders (SAEs) try to find cleaner units (Cunningham et al., 2023; Bricken et al., 2023). An SAE rewrites an activation h as a sparse sum of learned directions:

f = ReLU( Wenc (h − b) ) , ĥ = Wdec f + b , loss = ‖h − ĥ‖² + λ ‖f‖1 The L1 term pushes most entries of f to zero, so each activation is explained by a few features. Each feature is a column of Wdec.

Steering goes the other way. Add a direction to the residual stream and watch the output change (Turner et al., 2023; Zou et al., 2023). If adding a "snow" direction makes the caption mention snow, that direction is causally connected to the concept.

Table 2 · Interpretability methods compared along the aspects that matter for VLMs
MethodQuestion it answersCausal?GranularityCostNeeds weights?Main pitfall in VLMs
Attention mapsWhere does position i read from?NoHead, layer, token pairOne forward passYes (attention weights)Visual sinks and value norms distort the picture; heads disagree.
Attention rolloutWhere does information come from across all layers?NoToken to tokenOne pass plus matrix productsYesStill counts sinks; assumes heads mix evenly.
Gradients, IG, Grad-CAMWhich input pixels or tokens is the output sensitive to?Local, first-orderPixel or tokenOne backward pass (IG: tens)Yes (or gradient access)Baseline choice; context leakage across generated tokens; can fail sanity checks.
Linear probesIs a property linearly decodable at this layer?NoLayer, positionTrain a small classifierActivations onlyShows presence, not use; needs labels and control tasks.
Logit lens, tuned lensWhat word does this position resemble at layer ℓ?NoLayer, positionOne passYes (unembedding)Early layers decode poorly; lens maps are trained on text positions.
Activation patchingDoes this activation carry the fact that changes the answer?YesLayer, position, componentOne pass per patched siteYesNoise corruption is off-distribution; image minimal pairs are hard to build.
Attention knockoutDoes this route, at these layers, carry needed information?YesSource set, target, layer windowOne pass per windowYesBlocking changes attention elsewhere too; results depend on window size.
Token ablationAre these tokens needed?YesToken setOne pass per setInput access onlyZero ablation is off-distribution; mean ablation is safer.
Sparse autoencodersWhat interpretable features make up this activation?No (yes when used to steer)FeatureTrain a large dictionaryActivationsFeatures depend on dictionary size, sparsity and seed.
Steering vectorsDoes pushing this direction change the behaviour?YesDirection, layerOne pass per settingYesSide effects on unrelated behaviour; strength must be tuned.

How to read this table: move down the rows and the methods become more causal and more expensive. The robust findings later in this post use one row from the top half to find a candidate, then one row from the bottom half to test it.

What visual tokens encode

Follow one patch vector on its way into the model. It starts in the vision encoder, passes through the connector, and enters the language model. At each stage we can ask what it represents.

In the vision encoder

CLIP's vision tower already holds surprisingly abstract units. Goh et al. (2021) found "multimodal neurons" that respond to a concept whether it appears as a photo, a drawing or written text. One consequence is the typographic attack. Write "iPod" on a piece of paper, stick it on an apple, and CLIP may classify the apple as an iPod. Text in the image is read as evidence about the object.

Gandelsman et al. (2023) decomposed CLIP's image representation into contributions from individual attention heads and image patches. Many heads specialise in a property, such as shape, colour or location, and can be labelled with text. Removing heads tied to spurious cues improved robustness. Summing patch contributions gave a zero-shot segmenter. A follow-up studied the indirect effects of individual neurons (Gandelsman et al., 2024).

Large vision transformers also produce a few odd tokens. Darcet et al. (2023) found high-norm tokens in background patches of models such as DINOv2 and OpenCLIP. These tokens hold global information and little about their own patch. They make attention maps noisy. Adding extra "register" tokens during training removes them. Jiang et al. (2025) traced the effect to a sparse set of "register neurons" and moved their activation into an extra untrained token at test time. The fix carries over to VLMs and gives cleaner text-to-image attribution maps.

After the connector

Even in CLIP's own shared space, image and text embeddings sit in separate regions, a pattern called the modality gap (Liang et al., 2022). The connector adds another step. It maps patch vectors into the language model's input space. A natural guess is that a dog patch lands near the word "dog." It does not. Schwettmann et al. (2023) studied a frozen text-only transformer given images through a single linear projection. The projected vectors were not decodable into words describing the image. The translation into word-like meaning happened deeper, inside the language model, through what they called multimodal neurons in its MLPs.

The projection also distorts the geometry of the image features. Li et al. (2025) compared nearest neighbours of image representations before and after the connector. Across connectors, 40 to 60 percent of k-nearest-neighbour relations changed. The patch-level version of their test, which reconstructs the original features from the projected ones, found that regions with high information loss predicted where the model would fail on visual questions. We return to this in the connector section.

Inside the language model

Neo et al. (2024) followed image tokens through LLaVA-1.5 with the logit lens. Early on, image positions decode to nothing meaningful. With depth they become increasingly interpretable. At the best layer, around layer 26 of 33 on average, about 24 percent of the patches on an object decoded to that object's class name. Decoded words were often more specific than the label, such as "pattern" for a sweater. Qwen2-VL-2B showed the same late rise, with a lower rate of about 6.5 percent.

Figure 3The logit lens applied to image positions (illustrative)

Scroll sideways to see the whole figure.

Figure 3. Each cell is one image token. The word in a cell is the top token when the language model's unembedding is applied to that position at the shown layer. Early layers decode to fragments. Later layers decode to scene words, but only for a minority of patches on each object. The figure is drawn, not measured. The measured rates in LLaVA-1.5 peak at about a quarter of object patches, near layer 26 of 33 (Neo et al., 2024).

The same study asked where object information lives. Removing an object's own tokens, plus a one-token border, broke over 70 percent of correct object identifications in a generative task. Removing a similar number of random tokens almost never did. Removing the roughly three high-norm tokens per image broke about 5 percent. Object information is local. It stays at the object's patches.

Jiang et al. (2024) used the same lens for a practical purpose. When the lens is applied to image positions, real objects get more confident word probabilities than hallucinated ones. That gap can flag hallucinations. The lens probabilities can also locate objects spatially, giving zero-shot segmentation.

Probes add a layer-wise view. Tao et al. (2024) found that intermediate layers of multimodal models hold more global image meaning than the top layers. The top layers focus on local detail for the next token. Basu et al. (2024) found that LLaVA stores visual facts in earlier MLP and attention blocks than text-only models do. A small, consistent subset of visual tokens transfers that information.

How the image reaches the answer

We know image tokens become meaningful with depth. The next question is how that meaning gets to the answer position. Recall the rule from the anatomy section: only attention moves information between positions. So we look at attention, and then test it with knockout.

Attention to the image collapses after the first layers

Chen et al. (2024) measured how much attention the generated tokens give to image tokens in LLaVA-1.5. Image tokens made up about 64 percent of the input. In the first two layers they received a substantial share of attention. After that, the share collapsed. In deep layers, the system prompt at the start of the sequence took about 85 percent of all attention. Per token, an image token received a tiny fraction of what a system-prompt token received.

This led to FastV. After layer 2, drop the half of the image tokens that receive the least attention. On LLaVA-1.5-13B, this cut compute by about 45 percent with an unchanged average score across their benchmarks. Visual Tokens Withdrawal (Lin et al., 2024) went further. It observed that visual information migrates into text tokens within the first few layers, then removed all visual tokens at a chosen depth. A small companion lab did not see pruning by attention help on SmolVLM-256M, which has only 64 image tokens per image. Dropping the 50 percent least-attended tokens after layer 2 left 56.7 percent accuracy, against 70.0 percent for a random drop and 91.7 percent with no drop.

Figure 4Where the answer position looks, layer by layer (illustrative)

Scroll sideways to see the whole figure.

Question
0
Figure 4. The heat map shows how the last position's attention to image tokens is spread over the image at each layer of a 32-layer model. Blue rings mark sink tokens that draw attention whatever the question. The chart on the right shows the share of attention that goes to image tokens at all. The shape follows published measurements on LLaVA-1.5: broad attention in the first two layers, a collapse after, a question-specific focus in middle layers, and sinks in deep layers. The exact values are drawn for illustration. Drag the layer slider or switch the question to compare.

Visual attention sinks

Where does the attention go, if not to the image? Text-only language models dump large amounts of attention on a few tokens, usually the first one. These are attention sinks (Xiao et al., 2023). They coincide with "massive activations," a handful of hidden dimensions with very large values (Sun et al., 2024). The sink acts as a place to park attention when a head has nothing useful to read.

VLMs have visual versions. Kang et al. (2025) found specific image tokens that receive high attention from text regardless of what the text is about. These tokens show the same massive activations in specific dimensions. Removing them did not change performance. Their method, Visual Attention Redistribution, takes that wasted attention and gives it back to the image in "image-centric" heads. It improved results without training.

A route in stages

Attention weights suggest a story. Knockout tests it. Zhang et al. (2024) blocked three routes in LLaVA-1.5-13B on GQA questions, using windows of nine layers in a 40-layer model:

The route is not the same in every model. In a small companion lab on SmolVLM-256M, blocking the direct image-to-last route at layers 18 to 24 cut the probability of the correct colour by 58 percent, the largest image route there. Patching showed the colour moving from image positions straight to the last position, with no restoration through the question tokens.

The logit lens added the final step. The correct answer, in lowercase, rose sharply in the middle layers. The capitalised form that the model actually outputs rose only in the upper layers. Meaning is settled first, and formatting comes later.

Figure 5An attention-knockout experiment, window by window

Scroll sideways to see the whole figure.

Blocked route
Figure 5. Left: the sequence of image tokens, question tokens and the last position, with the layers above it. The orange band is the window of nine layers where the chosen route is blocked. Right: the relative change in the probability of the correct answer as the window moves up. The curves are drawn to match the shape reported by Zhang et al. (2024) for LLaVA-1.5-13B: two drops for image to question (layers 0 to 4, and near 10), a middle-layer drop for question to last, and almost nothing for image to last.

Other studies agree on the broad shape and differ in detail. Kaduri et al. (2024) found that cross-modal flow is concentrated in a middle band, about a quarter of the layers. They also found that query tokens, such as the words "describe the image," come to store a global summary of the image. The model could produce a surprisingly descriptive answer from those tokens alone, with direct access to the image tokens blocked. Fine details were still read directly from the relevant image patches. Yin et al. (2025) describe a shift with depth: in shallow layers, image tokens mainly inject information into instruction tokens. In deep layers, image tokens mostly attend to each other. Jiang et al. (2024), in "Devils in middle layers," split the middle layers into a "visual enrichment" stage that moves visual data to object tokens and a "semantic refinement" stage that interprets it.

Figure 6The flow of image information into the answer

Scroll sideways to see the whole figure.

Figure 6. A summary of the route reported for adapter-style VLMs such as LLaVA. Lower layers move a general summary of the whole image into the question tokens. Middle layers move object-specific information into the question word that names the object. Question tokens then pass the combined meaning to the last position, where the answer is formed and later formatted. Ribbon widths are schematic. The final step shows the very different route in natively multimodal models, where one post-image token carries most of the image.

Heads that look

The flow is carried by a minority of heads. Bi et al. (2024) found a class of attention heads that focus on visual content, across four model families and four scales. Kang et al. (2025) went further for grounding. In frozen VLMs, a few "localization heads" consistently attend to the region a phrase refers to. Using the attention maps of only three heads gave competitive training-free grounding.

Native models have a narrow gate

All of this describes models that bolt a vision encoder onto a pretrained language model. Models trained from scratch on mixed image and text tokens behave differently. Serra et al. (2024) compared Chameleon and Emu3 with LLaVA-OneVision, Pixtral and others. In the native models, most text-to-image attention went to one token: the end-of-image marker. Blocking text from reading that single token cut Chameleon-7B's captioning score by more than 90 percent. In LLaVA, blocking the same token changed almost nothing, because image information was spread over many tokens. Models That See and Draw covers these native models.

Does the model use the image

The flow studies assume the image matters to the answer. Often it does not. The simplest interpretability experiment is to remove the image and see what happens.

Language priors are an old problem

Visual question answering met this early. In the first VQA dataset, a question like "What sport is…" could often be answered as "tennis" without looking. Goyal et al. (2017) balanced VQA v2 by pairing each question with a similar image that has a different answer. Agrawal et al. (2018) went further with VQA-CP, which changes the answer distribution between training and test. Models that learned priors collapsed on it.

Blind baselines for modern VLMs

MMStar (Chen et al., 2024) revived the test for large VLMs. It found two problems. First, many benchmark questions do not need the image. "What is the capital of Nebraska?" can be answered from the question alone, map or no map. GeminiPro scored 42.9 percent on MMMU with no image. Second, some models had memorised benchmark items. Sphinx-X-MoE scored 43.6 percent on MMMU without images, while its base language model scored 17.9 percent. The multimodal training data had leaked the answers.

MMStar turned these observations into two metrics. Let Sv be a VLM's score with images, Swv its score without images, and St the score of its base language model on text alone.

multimodal gain MG = Sv − Swv
multimodal leakage ML = max( 0, Swv − St ) MG measures what the image adds. ML measures how much better the VLM does blind than its own language model, which points to memorised training data.

MMStar then kept 1,500 questions that need the image, checked by people. MMMU-Pro (Yue et al., 2024) did similar filtering on MMMU: it removed text-answerable questions, added more answer options, and added a setting where the question itself is shown inside the image. Scores dropped substantially. Cambrian-1 (Tong et al., 2024) compared benchmarks with vision on and off and found that several knowledge-heavy ones changed little without the image. VLind-Bench (Lee et al., 2024) uses counterfactual images to isolate reliance on language priors, after first checking that the model has the basic skills needed. Almost all models it tested relied heavily on priors.

Figure 7A blind test and the gain it measures
Image
Gain and leakage calculator
MG
ML

Figure 7. Left: six benchmark-style questions. Hide the images to see what a model could answer from language alone. Some questions survive, either because the answer is world knowledge or because the prior happens to match. Others fail, and two fail in a telling way: the prior gives a confident wrong answer. Right: drag the three scores to see how multimodal gain and leakage separate visual skill from blind guessing and memorised items (definitions from Chen et al., 2024).

Measuring reliance inside the model

Blind baselines work at the level of a benchmark. Internal measures work per example. Favero et al. (2024) showed that reliance on the image falls as a VLM generates more tokens, and that this decline tracks the appearance of hallucinations. Liu et al. (2024) describe "text inertia": some models give the same description with or without the image. A simple per-example check follows from these papers. Compare the answer distribution with the image and with a blank or mean image. A small difference means the answer came mostly from language. The choice of baseline matters. In a small companion lab on SmolVLM-256M, a blank grey image and a removed image gave opposite results on "Is there a dog in the image?" (always no): 100 percent correct with the blank image and 0 percent with the image removed.

Priors can also beat the image when both point the same way most of the time. Vo et al. (2025) showed VLMs counterfactual versions of familiar things, such as an Adidas-like logo with four stripes instead of three. Average counting accuracy was about 17 percent. Removing the background, which held the cues that triggered the prior, raised accuracy by about 21 points.

Where simple visual tasks fail

VLMs read charts, solve diagrams and describe scenes. Yet they fail tasks a child can do. The interesting part is not that they fail. It is where in the pipeline the failure lives. Interpretability tools can localise it.

Lines, circles and counting

"Vision language models are blind" (Rahmanzadehgervi et al., 2024) introduced BlindTest: seven very simple tasks. Do two circles overlap? How many times do two lines cross? Which letter is circled? How many rings are in an Olympic-like logo? Four strong VLMs averaged 58.07 percent. The best, Claude 3.5 Sonnet, reached 77.84 percent. When shapes were drawn far apart, accuracy was near perfect. The failures appeared when shapes were close or overlapping.

The key experiment was a linear probe on the vision encoder. It showed the encoder holds enough information to solve the tasks. So the encoder sees the crossing. The language model fails to turn it into the right words.

Images CLIP cannot tell apart

"Eyes Wide Shut" (Tong et al., 2024) found the opposite case. The authors looked for "CLIP-blind pairs": two images whose CLIP embeddings have cosine similarity above 0.95 while a vision-only model, DINOv2, gives similarity below 0.6. The images look clearly different to people, but CLIP encodes them almost identically. From 150 such pairs they built MMVP, 300 questions across nine patterns such as orientation, counting and viewpoint. People scored 95.7 percent. Strong VLMs struggled, and the patterns that confuse CLIP were the ones that confuse the VLMs built on it. Here the information is missing from the encoder. Mixing in DINOv2 features helped.

Binding, space and the right question

Campbell et al. (2024) connect many failures to the binding problem from cognitive science. When several objects share the same representational resources, features can get attached to the wrong object. Counting and searching for a conjunction such as "the red square among red circles and blue squares" then fail, much as fast, parallel human vision fails. Mechanistic work on binding is starting to appear. In text models, Feng and Steinhardt (2023) found "binding ID" vectors that tie an entity to its attributes. In VLMs, Izadi et al. (2025) found that external cues such as grid lines create similar latent identifiers that improve grounding. Kang et al. (2026) report "spatial IDs": object locations are linearly bound to text activations in intermediate layers, and the model reasons over them through language tokens. They find an analogous temporal mechanism in video models (see Seeing in Time).

Spatial relations such as "left of," "on" and "under" are another weak spot (Kamath et al., 2023). Chen et al. (2025) traced attention in intermediate layers and found that correct answers went with attention that lined up with the actual object locations. Sharpening or widening the attention at inference time, depending on confidence, improved spatial benchmarks.

The language model as the bottleneck

Fu et al. (2025) compared VLMs with a direct readout of their own vision encoders on vision-centric tasks such as depth estimation and correspondence. The VLMs did far worse, often near chance. They checked three suspects: the visual representations degrading, sensitivity to the prompt, and the language model. The bottleneck was the language model. The information was available throughout the model, but the VLM did not use it, and it inherited language priors.

Zhang et al. (2024) asked why VLMs underperform CLIP on ImageNet classification even when they use CLIP as their encoder. The information was present in the VLM's latent space. Performance on a class tracked how often that class appeared in training data. Adding classification data closed the gap. The model could see the difference. It had not learned to name it.

Knowing where to look is not enough

Zhang et al. (2025) found VLMs are sensitive to the size of the object asked about, and showed by intervention that the effect is causal. Yet the model's attention went to the right place even when the answer was wrong. Cropping the image around the attended region, a method they call ViCrop, improved accuracy without training. Liu et al. (2025) found the same pattern more broadly and called it "seeing but not believing." Shallow layers attend mostly to text. Deeper layers attend sparsely but reliably to the evidence region, including on wrongly answered questions. Highlighting that region at inference time helped across LLaVA, Qwen, Gemma and InternVL. Liu et al. (2024) report a related case for misleading questions, where models answer wrongly despite seeming to understand the image.

Figure 8Tracing a failure to its stage

Scroll sideways to see the whole figure.

Failure case
Figure 8. Four documented failures, each walked down the same four checks. Line crossings: a probe on the encoder succeeds, so the failure is in the language model's readout (Rahmanzadehgervi et al., 2024). CLIP-blind pair: the encoder gives two different images almost the same embedding, so the failure is upstream of everything else (Tong et al., 2024). Logo stripes: removing background cues nearly doubles accuracy, so a prior overrides the evidence (Vo et al., 2025). Small detail: attention finds the right region but resolution is too low, so cropping where the model looks fixes it (Zhang et al., 2025). Grey nodes were not tested in the cited work.

The connector as a bottleneck

The connector sits between the two places where most failures were traced. It is small, often a two-layer MLP. It is easy to assume it is a neutral translator. The evidence says it is not.

Li et al. (2025) measured two things. First, how much the neighbourhood structure of image features changes after projection. Between 40 and 60 percent of nearest-neighbour relations changed, and the change correlated with worse retrieval. Second, how well the original patch features can be reconstructed from the projected ones. Patches with high reconstruction loss predicted where the model failed on grounded questions. Loss is local. A model can keep the gist of an image and lose the patch that holds the answer.

A small companion lab on SmolVLM-256M found the loss to be local but not predictive for colour questions. The Spearman correlation between an object's reconstruction error and the probability of the correct colour was +0.25. Colour is easy to keep under a linear map, so a test of the claim needs questions about fine detail.

Compressing connectors make this sharper. A Q-Former reduces any image to 32 query tokens. That is efficient, but it decides what to keep before the question is known, because the queries do not see the question in most designs. Pooling and pixel-shuffle connectors make similar trade-offs. Inside a Modern Vision Encoder compares connector designs, and The Cost of a Picture covers the efficiency side.

The connector also explains a safety finding. Xu et al. (2024) found that a language model's text safety mechanism did not transfer to images. Harmful content shown as an image produced hidden states that were semantically shifted from the same content written as text. The layers where safety normally activates did not recognise it. Liu et al. (2024) describe the same gap as "safety alignment degradation," because multimodal inputs move representations away from the text distribution the base model was aligned on.

Hallucination from the inside

Object hallucination means describing something that is not in the image. It is measured with CHAIR (Rohrbach et al., 2018), which counts mentioned objects missing from the annotations, and POPE (Li et al., 2023), which asks yes-or-no questions about object presence. Aligning Vision-Language Models covers training-based fixes. Here the question is mechanical: what happens inside when a model hallucinates? Several mechanisms have been identified.

The prior grows as the image fades

Favero et al. (2024) measured how much each generated token depends on the image. Dependence fell as the response got longer, and hallucinations rose in step. Their decoding method, M3ID, boosts tokens with high mutual information with the image. For LLaVA-13B it reduced hallucinated objects in captions by about 25 percent.

Summary tokens

OPERA (Huang et al., 2024) started from a pattern in the attention matrix. During generation, many tokens attend heavily to a few earlier "summary" tokens, often punctuation, and little to the image. Hallucinations tended to follow this pattern. OPERA penalises it during beam search and can roll back when it appears.

Distance in the sequence

Xing et al. (2024) linked hallucination to rotary position encoding. RoPE weakens attention between distant positions. Image tokens far from the instruction get less attention, and the model hallucinates more when the relevant visual cue is far away. Their Concentric Causal Attention reorders positions to shorten those distances. How Models Know Where They Are explains the decay.

The evidence was there earlier

LURE (Zhou et al., 2023) analysed hallucinations statistically and linked them to three factors: objects that often co-occur, uncertainty during decoding, and position late in the response. Several studies go further and find that the model "knew" better at some point inside. Wang et al. (2024) found that objects which the final layer gets wrong are often recognised correctly in preceding layers, and then suppressed. Their method, DeCo, mixes in those earlier-layer predictions. Jiang et al. (2024) used the logit lens on image positions: real objects decode with more confidence than hallucinated ones. Projecting out the hallucinated object's direction from the image features reduced hallucinations by up to 25.7 percent on COCO2014. Jiang et al. (2024, "Devils in middle layers") found that real objects get more attention than hallucinated ones during the middle-layer "visual enrichment" stage, and that hallucinations come from heads that attend to inconsistent objects.

Contrasting with a worse image

Visual Contrastive Decoding (Leng et al., 2024) takes a different route. Run the model twice, once on the real image and once on a distorted one. Tokens that stay likely even with a distorted image are driven by the prior. Subtract them:

score(y) = (1 + α) · logit( y | v, x ) − α · logit( y | v′, x ) v is the image, v′ the distorted image, x the text so far. Tokens supported by the real image keep their score. Tokens the prior would say anyway are pushed down.

Paying More Attention to Image (Liu et al., 2024) combines two ideas: it amplifies attention to image tokens and subtracts the logits of a text-only pass. Latent space steering (Liu et al., 2024) adds a direction that stabilises the vision features during inference.

Figure 9How a hallucination forms during generation (illustrative)

Scroll sideways to see the whole figure.

Figure 9. The model describes an image of a dog, a ball and a tree. As the caption grows, the share of attention on image tokens falls (Favero et al., 2024) and attention gathers on a summary token (Huang et al., 2024). The model then writes "frisbee," which is not in the image. Visual contrastive decoding compares the next-token distribution under the real image with that under a distorted image. "Frisbee" stays likely under both, so it is the prior talking. "Tree" depends on the image, so the contrast promotes it. Values are illustrative.

Features, neurons and steering

The methods so far ask about positions and routes. A second line of work asks about units of meaning: which neurons or directions represent which concepts, and can we push on them?

Neurons

Labelling single units is an old idea in vision. Network Dissection (Bau et al., 2017) matched CNN units to visual concepts. The multimodal neurons of CLIP (Goh et al., 2021) were the first striking example in vision-language models. Schwettmann et al. (2023) found neurons inside a text-only transformer that convert projected image features into text concepts, with a measurable causal effect on captions. Pan et al. (2023) proposed a cheaper way to find multimodal neurons in VLMs and used them to edit outputs, for example to remove sensitive words.

Sparse autoencoders

Neurons are often polysemantic. SAEs give cleaner features. In language models, dictionary features scaled up to large production models, and some responded to images of a concept as well as to its name (Templeton et al., 2024). For VLMs, the work has moved quickly.

Figure 10A sparse autoencoder, and steering with one feature (illustrative)

Scroll sideways to see the whole figure.

0.0
Figure 10. An image token's dense activation is rewritten as a sparse combination of dictionary features. Only a few are active. Each feature gets a label from the images that activate it most. Clamping one feature to a higher value and decoding again changes what the language model says. Pach et al. (2025) did this on CLIP's encoder and changed LLaVA's output. The features, labels and captions here are drawn for illustration. Use the slider to raise the feature strength.

Steering vectors

Steering does not need an SAE. Gan et al. (2025) built steering vectors from the text-only language model inside a VLM, using simple methods such as the mean difference between activations for two kinds of prompts. Applied to images, the vectors improved spatial-relation accuracy on CV-Bench by up to 7.3 points and counting by up to 3.3 points, more than prompting did. Liu et al. (2024) steer the vision features to reduce hallucination.

SAE features also work as a data tool. SAE-V (Lou et al., 2025) scores image-text pairs by how consistently their features match across modalities. Filtering alignment data by that score gave better results than the full data while using less than half of it.

Putting interpretability to work

Interpretability results have already turned into methods. Each use below comes from one of the findings above.

Pruning visual tokens

The collapse of attention to the image after early layers led directly to FastV, Visual Tokens Withdrawal, PyramidDrop (Xing et al., 2024), VisionZip (Yang et al., 2024) and HiMAP (Yin et al., 2025), which reports about 65 percent less compute without loss. Two cautions came from interpretability too. VisPruner (Zhang et al., 2024) argues that text-to-image attention inside the language model is a poor importance signal, and selects tokens with the vision encoder's own attention plus a diversity step. FEATHER shows the position bias described above. The Cost of a Picture compares these methods.

Grounding without training

If a few heads already attend to the right region, their attention maps are a grounding signal. Localization heads gave competitive training-free grounding from three heads. ViCrop crops where the model attends and asks again. Logit-lens probabilities on image positions give zero-shot segmentation. Test-time registers make these maps cleaner. When Language Must Point covers trained grounding, and Building Grounded Document Intelligence describes grounding with a VLM and a segmentation model on documents.

Debugging data

Interpretability can point at the data. The classification study traced failures to class frequency. MMStar's leakage metric found memorised benchmark items. SAE-V filters training pairs. The common move is to ask why a model fails, find a missing or contaminated slice of data, and fix that instead of the architecture.

Safety

In text models, refusal is largely mediated by a single direction in activation space (Arditi et al., 2024). In VLMs, the problem is that images do not trigger that machinery reliably. Text-guided alignment (Xu et al., 2024) uses retrieved text to guide how images are projected, so the text safety mechanism transfers. Cross-modality representation manipulation (Liu et al., 2024) shifts multimodal representations back toward the text distribution at inference time. Both start from an interpretability diagnosis.

Tools

TransformerLens and NNsight (Fiotto-Kaufman et al., 2024) give access to language model internals. Prisma covers vision and video transformers. LVLM-Interpret and Token Activation Map produce relevancy maps for LLaVA-type models. A survey by Lin et al. (2025) maps the wider field of multimodal mechanistic interpretability.

What we know, and how firmly

Here are the main findings in one place. The last two columns matter most. Robustness says how much evidence stands behind a claim. Implication says what to do with it.

Table 3 · Findings about how VLMs use the image
FindingClaimMethodModelsRobustnessImplication
Image tokens become word-like lateImage positions decode to object words only in middle to late layersLogit lensLLaVA-1.5, Qwen2-VL-2BTwo models, two families; rates differ (about 24 vs 6.5 percent)Read image positions at mid-late layers, not at the input
Object information is localAn object's own tokens carry its identityMean ablationLLaVA-1.5, LLaVA-Phi-3Large effect over 70 percent with a border; random control near zeroToken pruning must keep object regions
Early collapse of image attentionAfter about layer 2, image tokens get little attentionAttention statistics, pruningLLaVA-1.5, Qwen-VL, Video-LLaVAReplicated by many pruning papersDeep-layer image tokens can often be pruned
Staged flow through question tokensWhole image to question early, object to question mid, question to last midAttention knockout, logit lensLLaVA-1.5 7B and 13B, LLaVA-1.6, Llama3-LLaVA-NeXTConsistent across four LLaVA variants; one dataset (GQA)Edit or prune with the route in mind
Direct route to last positionObject tokens feed the last position in mid-late layersAttention knockoutLLaVA-1.5, LLaVA-Phi-3Disagrees in size with the staged-flow studyTest the route on your prompt format
Visual attention sinksSome image tokens draw attention regardless of the text, and are removableActivation analysis, ablationSeveral LMMsMirrors well-replicated text sinksExclude sinks from heat maps; reuse their attention
Narrow gate in native modelsOne end-of-image token carries most image informationAttention knockoutChameleon 7B and 34B, Emu3 vs LLaVA-OneVision and othersClear contrast between two model typesFindings on adapter VLMs do not transfer to native ones
Readout failuresEncoder holds the answer; the VLM fails to use itLinear probes, readout comparisonProprietary VLMs (BlindTest behaviour); open VLMs and their encoders (probes, readouts)Several independent studiesFix the language-model side, not the encoder
Encoder blindnessSome image pairs are nearly identical to CLIPEmbedding similarity, benchmarkCLIP-based VLMs, GPT-4VClear mechanism; correlated failuresAdd or switch vision features
Looks right, answers wrongAttention finds the evidence even on wrong answersAttention analysis, interventionLLaVA, Qwen, Gemma, InternVLTwo studies, several familiesUse attention to crop or highlight
Hallucination evidence exists insideEarlier layers or image representations know the truthLayer logits, logit lensLLaVA family and othersSeveral studies, different mechanismsTraining-free decoding fixes are viable

How to read this table: most rows rest on LLaVA-family models with 1D positions and one token per patch. Rows whose Models column includes several families, such as the attention-finds-evidence row, are the safest to rely on for a new model.

Limits and open problems

The model organisms are old. Much of the evidence comes from LLaVA-1.5, with 576 tokens, a CLIP encoder and 1D positions. Current models use native resolution, thousands of tokens, M-RoPE and tiling. Position-driven findings such as FastV's top-of-image bias may change under spatial position encodings. Few of the findings have been re-tested on these designs.

Cross-attention models are under-studied. Models that read the image through separate cross-attention layers have a different routing graph. The knockout and patching recipes transfer, but the findings have not been repeated at the same depth.

Building image minimal pairs is hard. Text patching uses one-word swaps. Images rarely have a clean equivalent. Noise corruption is off-distribution, and edited images can change more than the intended fact. Better corruption methods, such as NOTICE's semantic pairs, are an active need.

Video, many images and long reasoning. Visual reliance falls as generation grows. Reasoning VLMs generate thousands of tokens before answering. Vo et al. saw counting accuracy first rise with more thinking tokens and then fall. Whether long reasoning keeps reading the image or drifts into priors is largely unmeasured. Thinking With Images covers methods that go back to the image during reasoning.

Closed models. The most capable models expose no weights, so only behavioural tests apply. Blind baselines and counterfactual images are the main tools there.

Judging interpretations. An explanation can be plausible and wrong. The field still lacks shared benchmarks for whether a VLM interpretation is faithful, beyond case-by-case interventions.

A debugging checklist

When a VLM gets a visual question wrong, or right for the wrong reason, these steps follow the stages of Figure 1. Each uses a tool from the tools section.

  1. Run the blind baseline. Replace the image with a mean or blank image. If the answer does not change, the image is not being used, and nothing downstream matters yet.
  2. Probe the encoder. Train a linear probe on the encoder's patch features for the property in question. If it fails, the information is missing. Change the encoder, the resolution or the crop.
  3. Check the connector. Reconstruct encoder features from projected features, or compare nearest neighbours. High loss on the relevant patches points to the connector.
  4. Look where the model looks. Read attention from the answer position at middle layers, excluding sink tokens. If it finds the right region, try cropping there. If it does not, the routing is the problem.
  5. Confirm with an intervention. Ablate the highlighted tokens, or knock out the suspected route, and check that the answer changes. Do not act on an attention map that fails this test.
  6. Test the prior. Build a counterfactual image that breaks the expected pattern. If accuracy drops sharply, the prior is winning. Consider contrastive decoding or data that breaks the correlation.

Key insights and nuances

With these tools, you should be able to look at a VLM's wrong answer and say which stage lost the information, and which experiment would prove it. The next post, Models That See and Draw, turns to models that both read and generate images, where the narrow-gate finding above becomes a design question.

References

Grouped by topic. Every entry links to its primary source.

Interpretability methods

Inside VLMs: tokens and information flow