Skip to content

Line of Sight: On the Linear Representations of VLLMsLine of Sight: On Linear Representations in VLLMs

arXiv· arXiv:2506.04706· Achyuta Rajaram, Sarah Schwettmann, Jacob Andreas, Arthur ConmyMIT CSAIL; TransluceIndexed by this site · 2026-10-14· Originally publishedAlignment

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

On LlaVA-Next 7b, the authors claim image classes can be linearly steered, with 20 SAE features retaining most of the effect.

Questions
After VLLMs embed visual inputs into the language model, it is unclear how hidden activations represent image concepts. The authors ask whether these representations are new or surface extensions of existing LLM circuits, and choose LlaVA-Next 7b to investigate.
Methods
On the decoder residual stream, train ImageNet linear probes on the mean of image tokens, and use class-pair mean differences for CAA steering. Then train a multimodal SAE on ShareGPT4V for layers 8–24, and use the sparse dictionary to approximate steering vectors.
Experiments and results
The authors state that probes are comparable to self-supervised classifiers, early-layer steering is more effective, and after layer 12, ablating image tokens has a negligible effect on coherence. Text directions are not better than random. 20 SAE features can retain most of the steering effect, and later-layer features are more often labeled multimodal.
Limitations and future work
The authors state that linear representations are an unnatural basis for image adversarial examples: activation differences are typically dense, and attacks do not generalize across prompts. Future directions are representation transformation mechanisms and other architectures, especially cross-attention models. The experimental subject is LlaVA-Next 7b, with visual concepts primarily being ImageNet classes.
Experimental setupLlaVA-Next 7b · ImageNet-1K、ShareGPT4V et al. · ImageNet classification accuracy、coherence score et al.
Evaluated models
LlaVA-Next 7b
Benchmarks
ImageNet-1KShareGPT4VShareGPT-VMMMUMMMU-PROAOKVQA
Metrics
ImageNet classification accuracycoherence scoresteering scoreloss recoveredVQA accuracy
AI summaryThe researchers perform a linear analysis of the internal representations of the open-source vision-language model LlaVA-Next, and find that a set of ImageNet classes can be represented by linearly decodable features in the residual stream. By directionally editing the model's outputs, the authors show that these features have a causal role; they also train a multimodal sparse autoencoder (SAE), obtaining a dictionary of interpretable text and image features. The paper states that the model's cross-modal representations are fairly separate, but the degree of sharing gradually increases in deeper layers.

The researchers perform a linear analysis of the internal representations of the open-source vision-language model LlaVA-Next, and find that a set of ImageNet classes can be represented by linearly decodable features in the residual stream. By directionally editing the model's outputs, the authors show that these features have a causal role; they also train a multimodal sparse autoencoder (SAE), obtaining a dictionary of interpretable text and image features. The paper states that the model's cross-modal representations are fairly separate, but the degree of sharing gradually increases in deeper layers.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors aim to determine whether image concepts in LlaVA-Next are linear and causally editable, and whether modal representations are shared across layers.

    Does the residual stream of a VLLM decoder represent image concepts with linear directions, do these directions change outputs, and are text and image representations shared across layers?

    • Setting: The authors state that VLLMs typically end-to-end fine-tune a pretrained LLM on embeddings from a pretrained image encoder, enabling description and QA with less multimodal data. The object is LlaVA-Next 7b: Vicuna 7b with CLIP, connected via a two-layer MLP projection, and fine-tuned for multimodal instruction following.
    • Motivation: The authors cite Jain et al. (2024) and Prakash et al. (2024), claiming LLM fine-tuning is relatively "shallow," mainly enhancing existing circuits. They ask whether visual concept representations are new, different from existing LLM representations, or surface extensions.
    • Gap in existing explanations: The authors state that CLIP, LIMBER, etc., focus on image-to-text decoding components; Jiang et al. and Neo et al. use text methods like logit lens, applied to hallucination mitigation. The authors claim this paper instead does interventions to localize the image-to-text computational pathway.
    • What this paper does: Using linear probes, steering vectors, and a multimodal SAE, it checks whether ImageNet classes can be linearly read from the residual stream, whether interventions change descriptions as expected, and whether text and image features become more shared in deeper layers.
  2. What related research exists?

    The paper divides related work into language model, vision, and VLLM interpretability, and distinguishes itself from logit lens through interventions.

    Section 2 is grouped by language models, vision models, and vision-language models; experimental controls and data are listed separately.

    Language model interpretability

    • Components and applications: The authors review work decomposing LLMs into weights (Nylund et al., 2023), subgraphs (Conmy et al., 2023), and activations (Gao et al., 2024; Templeton et al., 2024), and mention knowledge editing (Meng et al., 2023) and behavior editing (Wu et al., 2024).
    • Linear tools: The introduction states the goal of extending linear representation tools from pure language models to LlaVA-Next, including linear probes (Alain and Bengio, 2018), steering vectors (Turner et al., 2024), and SAE (Bricken et al., 2023; Cunningham et al., 2024; Ng, 2011).

    Vision model interpretability

    • Neurons, probes, and interventions: Bau et al. (2020) and Hernandez et al. (2022) study individual neurons; Alain and Bengio (2018) use probes to find linear distributed representations; Xu and Zheng (2021) do intervention analysis on generative image models.
    • Subgraphs and latent structure: Rajaram et al. (2024) find interpretable visual subgraphs; Gandikota et al. (2023) study latent structure in generative models.

    Vision-language models

    • Decoding components: The authors categorize CLIP (Radford et al., 2021), LIMBER (Merullo et al., 2023), and Schwettmann et al. (2023) as focusing on how to decode image information into text space.
    • Text methods: Jiang et al. (2024) and Neo et al. (2024) use methods like logit lens (nostalgebraist) to understand VLLMs and localize objects in token space. The authors claim these works succeed in hallucination mitigation; the difference from this group is doing interventions, localizing the image-to-text pathway, and looking at more general linear representations.

    Baselines and data

    • Baseline methods: ImageNet probe controls are DINO, DINOV2, CLIP, SIGLIP, and ResNet-152. Text intervention controls are Logit Lens and Text Embeddings, compared with random vectors. Sparse approximation is also compared with random vectors and with neuron-based dictionaries. Interpretability annotation covers both SAE features and neurons.
    • Benchmarks/datasets: Probes use ImageNet-1K, steering uses ImageNet classes. SAE training uses ShareGPT4V training set (1.2 million captioned images), loss recovered uses a held-out subset of ShareGPT-V. Concatenated QA uses MMMU, MMMU-PRO, and AOKVQA.

    The authors place this paper after these works: tools come from linear interpretation of language models, and the object is LlaVA-Next's decoder. The method section is written separately; Templeton et al. (2024) use text-only SAE to find multimodal representations in Claude; the authors claim this paper instead jointly trains text and image tokens on an open VLLM to separate image representations.

  3. How does the paper address this problem?

    Train probes and SAE on the LlaVA-Next decoder, and use CAA to test whether image directions change outputs.

    Overall, linear structure is examined on the text-only decoder residual stream of LlaVA-Next 7b: probes check whether ImageNet classes can be read out, steering vectors check whether directions change the output, and a multimodal SAE provides a sparse dictionary of text and image features.

    Model and Linear Probes

    • System: Vicuna 7b and CLIP are connected via a two-layer MLP and fine-tuned end-to-end for multimodal instruction following. The analyzed component is the residual stream of the language model decoder.
    • Hypothesis: The authors adopt the hypothesis that concepts in the decoder are one-dimensional linear subspaces in the residual stream (Park et al., 2024). They also cite Engels et al. (2024), noting that information such as days of the week can be encoded nonlinearly, so they check the extent to which image semantics are linear.
    • Readout: Each image belongs to exactly one of C classes. At a specified layer, the residuals of all image tokens are averaged to obtain Ri. A single linear layer is trained with Adam for multiclass linear regression. The paper states that probes are trained across the entire model, without providing a list of learning rates, steps, or layer numbers.
    • Causal criterion: The authors cite Belinkov (2021), noting that probes may find features the model does not use. They write: to conclude that the model uses a direction to represent a concept, that direction must have an effect on the output.

    Steering and Localization of Image Information

    • CAA: The positive concept is the target class, and the negative concept is the class of the source image. The steering vector is obtained by subtracting the mean residuals of random class pairs. At the layer where this vector is isolated, a constant vector is added to all image tokens. The main text evaluates 50 random ImageNet class pairs.
    • Text baselines: Logit Lens takes the unembeddings of text tokens from two classes, subtracts them, and normalizes. Text Embeddings feed text tokens into the language model of this VLLM, take the residual at the target layer, and form the vector.
    • Ablation: At a given layer, the residuals of all image tokens are zeroed out, and a coherence score is used to check whether the model still relies on these tokens. The authors use this to verify the hypothesis that "later layers no longer use image tokens."
    • QA evaluation: Appendix A additionally covers 200 random class pairs, performing 200-token completions on a set of VQA-style questions. The paper does not report the number of images per class.

    Multimodal SAE

    • Data and layers: ShareGPT4V training set, 1.2 million captioned images. The authors cite Kissane et al. (2024), noting that SAE features are highly data-dependent, so paired image-text data is used and both token types are balanced. The SAE is applied to the text-only decoder residual stream at layers 8, 12, 16, 20, and 24.
    • Training: The architecture comes from Templeton et al. (2024), and the authors state there are no major changes. ReLU; minimizes reconstruction MSE with a hidden-layer L1 approximation for sparsity. Learning rate 5e-5, Adam, with the last 20% of steps decayed to 0. 8x expansion, 32k features, and the paper reports an average L0 of 5. λ=5, linearly increased from 0 over the first 5% of steps. Trained on 1.5 Billion tokens, batch size 4096, with image and text tokens mixed within batches.
    • Intervention illustration: Figure 2 indicates that text and image embeddings are processed separately before entering a shared latent space; when a given SAE feature is activated on all image tokens, the generated description includes content related to that feature.

    Reconstruction Evaluation and Sparse Approximation

    • Loss recovered: At specified layers, activations are replaced with SAE reconstructions, and the relative cross-entropy recovered from zero ablation is computed on a held-out subset of ShareGPT-V. Replacement positions include text tokens, image tokens, and all tokens.
    • QA concatenation: On MMMU, MMMU-PRO, and AOKVQA, accuracy is measured after concatenating reconstructions back into image tokens or all tokens.
    • Sparse approximation: The SAE decoder matrix is treated as a dictionary, and a HardConcrete learnable binary mask is used to optimize between cosine reconstruction and sparsity, checking whether a vector can be approximated by a small number of latent features. Sparsity is controlled by λ. The same approach is applied using neurons as the dictionary and compared with random vectors.
    • Scoring: Steering coherence and the degree of bias toward the target class are scored by gpt4o-mini, then min-max scaled to 0–1. Appendix A uses Mechanical Turk to verify these two scores; Appendix C has humans separately explain text and image activations, and if the descriptions match, the feature is labeled multimodal.
  4. What experiments did the paper conduct?

    The authors state that probes can decode ImageNet classes, early-layer steering is more effective, and 20 SAE features retain most of the effect.

    Experimental setup

    • Model: The interpreted model is LlaVA-Next 7b. Probe controls are DINO, DINOV2, CLIP, SIGLIP, ResNet-152. Automatic scoring model is gpt4o-mini.
    • Data: Probes use ImageNet-1K. Steering uses ImageNet classes: 50 random class pairs in the main text; Appendix A states 200 random class pairs, completing 200 tokens. SAE training uses ShareGPT4V training set with 1.2 million images, 1.5 billion tokens; loss recovered uses a held-out subset of ShareGPT-V.
    • SAE: Layers 8, 12, 16, 20, 24; 8x expansion, 32k features, average L0 of 5, λ=5, learning rate 5e-5, batch 4096.
    • Metrics: Probes look at ImageNet classification accuracy. Steering looks at coherence and steering score; the authors claim the ideal is both biasing toward the target class and maintaining syntactic integrity. SAE looks at loss recovered, and MMMU, MMMU-PRO, AOKVQA accuracy after concatenation.
    • Human evaluation: Coherence has 100 examples per score level, 600 total (including 100 no-steering controls), pairwise comparison, 10 Mechanical Turk labels per question. Steering gives completions and four classes (target, original, two distractors). Interpretability samples, the paper states sampling 25 SAE features and 50 neurons from layers 8, 12, 16, 20, 24, totaling 250.
    • Not specified: Probe learning rate, steps, images per class, repetitions, and coordinate readings for Figures 4–6.

    Main results

    Swipe horizontally to read the table

    ResultValueConditionSource
    Sparse approximation vs. dense steering20 SAE featuresMain text says comparable to original vector; caption says most of the effect is retainedFigure 8b, Section 5.2
    Approximating class steering vectorsFewer than 100 featuresAuthors claim easier than random vectorsFigure 8c
    Zero-ablating image tokensNegligible impact after layer 12Coherence; ablating all image tokens at that layerFigure 6c
    • Probes: The authors claim linear classifiers at each layer perform strongly, comparable to classifiers trained directly on self-supervised image representations, and claim this points to linear representation of class variables (Figure 5). The control list also includes supervised ResNet-152. No accuracy in the main text.
    • Layer position: The authors claim same-magnitude steering has weaker causal effects in deeper layers, with early layers more effective (Figure 6b). They hypothesize later layers no longer use image tokens, and verify with zero-ablations; the authors claim early ablations have large impact on performance (main text uses "catastrophic"), with the effect decreasing past the model's midpoint (Figure 6c). Layer-wise scores are not given.
    • Content: The authors claim rewritten descriptions are not unrelated to the original image. For example, steering a farm hay bale toward pizza results in output about a picnic, while retaining that it was taken outdoors (Section 4.2). Appendix B gives examples steering toward pizza, backpack, groom, lemon.

    Text direction and human scoring

    • What was tested: Logit Lens and Text Embeddings were used to modify image tokens. The authors claim both are no better than random vectors and far worse than CAA in image space.
    • Figure numbering: The main text labels this comparison as Figure 13; Figure 7's caption states both LL and TE are ineffective. Appendix Figure 13's caption is an SAE feature browser (bread crust and baked goods). No scores in the main text.
    • Authors' explanation: The authors consider this unsurprising because text features appear more in the later forward pass, and the description task does not use later-layer image features. On the human side, the authors claim gpt4o-mini aligns closely with annotators, with strong correlation (Figures 6d, 6e), without giving correlation coefficients or preference probabilities.

    SAE reconstruction, interpretability, and class features

    • Concatenation: The authors claim loss recovered relative to zero-ablations is competitive with pure language model SAE work (Figure 4a), with no numbers. Concatenating only image tokens slightly decreases accuracy on three VQA benchmarks; concatenating all tokens drops to near random and produces incoherent answers (Figure 4b). The authors consider the latter likely a distribution shift: training is dominated by descriptions and simple instructions, while evaluation is more complex multiple-choice QA.
    • Annotation: Activation quantiles are computed separately for text and image on ShareGPT. The authors claim SAE features are slightly more interpretable than neurons, and both are interpretable throughout the model; neurons contain far more pure text features; later layers are more often labeled multimodal (Figure 9). No percentages. The abstract claims cross-modal representations are fairly separate, becoming more shared with depth; the discussion calls it an information hierarchy.
    • Composition of class directions: The authors claim that in the sparse approximation, SAE features with positive and negative coefficients have image activations corresponding to the positive and negative classes of the steering (Figure 8d). The caption claims neurons as a dictionary are worse (Figure 8c).

    Adversarial perturbations

    • Setup and results: Appendix D uses PGD on a single prompt to modify the image, optimizing the difference in log-prob between the initial and target classes. The authors claim activation differences are typically dense, involving hundreds of SAE features; the most changed features appear random and do not directly correspond to what the attack changed. Noise effective on one prompt does not transfer well to other prompts, and the authors claim the attack is fragile. Perturbation magnitude is not reported.
    • Authors' interpretation: The authors write they had hoped the SAE basis would explain the attack, but did not find such correspondence. Section 6 calls linear representations an unnatural basis for adversarial attacks in image space.

    Other ablations and analyses

    • λ: Ramped from 0 to 5 over the first 5% of steps, then 5; the paper does not report results for other λ values (Section 3.3).
    • Learning rate: 5e-5, decayed to 0 over the last 20% of steps; no comparison numbers for other learning rates.
    • Dictionary: 8x expansion, 32k features, average L0 of 5; no comparison numbers for other dictionary sizes.
    • Automatic scoring: Coherence and steering scores min-max scaled to 0–1; correlation with human scores not reported.
    • Number of class pairs: 50 pairs in the main text (Section 4.2), Appendix A states 200 pairs; the paper does not explain the relationship between these two numbers.
    • Interpretability sample size per the paper is 25 SAE features, 50 neurons, totaling 250; Figure 9 does not give multimodal proportions.
  5. What are some points that can be further explored?

    The authors claim linear representations are an unnatural basis for image adversarial attacks, and suggest studying the transformation mechanism and extending to more architectures.

    Limitations and future directions noted by the authors

    • Linear basis and adversarial attacks: Section 6 states that linear representations have limitations, providing an unnatural basis for adversarial attacks in image space, and points to Appendix D.
    • SAE does not explain activation differences: Appendix D states that activation differences between original and adversarial images are typically dense, involving hundreds of SAE features; the most changed features appear random and do not directly correspond to what the attack changed. The authors claim the attack is fragile, with noise effective on one prompt not generalizing well to other prompts, and urge future research on this setting.
    • Transformation mechanism: Section 6 suggests future research on the mechanism by which image representations are transformed into multimodal representations.
    • Architecture: Section 6 suggests evaluating these findings on more VLLM architectures, especially cross-attention-based models.

    Experimental coverage

    • Model and layers: The interpreted VLLM is LlaVA-Next 7b, with backbone Vicuna 7b, image encoder CLIP, and a two-layer MLP connector (Section 1). SAE is done on decoder layers 8, 12, 16, 20, 24 (Section 3.3).
    • Concepts and data: Probes use ImageNet-1K; main-text steering uses 50 random ImageNet class pairs; Appendix A's QA evaluation mentions 200 random class pairs. SAE uses ShareGPT4V training set with 1.2 million captioned images, 1.5 billion tokens.
    • Evaluation: Automatic scoring uses gpt4o-mini, min-max scaled to 0–1. Coherence human evaluation on Amazon Mechanical Turk has 100 examples per level, 600 total (including 100 no-steering controls), 10 labels per question. Interpretability samples are stated as 25 SAE features, 50 neurons, totaling 250. The paper does not report correlation coefficients between automatic and human scores.
    • Controls and QA: ImageNet probe controls are DINO, DINOV2, CLIP, SIGLIP, ResNet-152. Text intervention controls are Logit Lens and Text Embeddings. VQA concatenation uses MMMU, MMMU-PRO, AOKVQA.
    • Quantities not in main text: Figure 4's loss recovered, Figure 4b's VQA accuracy, Figure 5's classification accuracy, and Figure 6b's coherence and steering scores are not listed in the main text. The paper does not report the number of images per class, probe learning rate, or repetitions. Appendix D uses a single prompt and does not report PGD perturbation magnitude.
  6. Summarize the main content of the paper

    The authors state that LlaVA-Next's image classes are linearly decodable and steerable, and that deeper layers are more modality-shared.

    The decoder residual stream of LlaVA-Next 7b is used to see whether image concepts are linear, intervenable, and whether text and image representations are shared across layers.

    • Question: The model is Vicuna 7b connected to CLIP via a two-layer MLP, with multimodal instruction fine-tuning. The authors ask whether visual representations are new circuits or surface extensions of existing LLM representations.
    • Method: Train ImageNet linear probes on the mean residual of image tokens; use class-pair mean differences for CAA, applied to image tokens; train a 32k-feature SAE on ShareGPT4V for layers 8, 12, 16, 20, 24, then do sparse approximation.
    • Findings: The authors claim probes are comparable to self-supervised image classifiers (Figure 5, no accuracy). For 50 class pairs, early-layer steering is more effective. Zeroing image token residuals after layer 12 has negligible coherence impact. Text unembedding and text residuals are no better than random vectors.
    • Dictionary: The authors claim fewer than 100 SAE features can approximate class steering vectors well; 20 features are comparable to the original vector in the main text, and the caption says most of the effect is retained (Figure 8). Later-layer features are more often labeled multimodal. Replacing only image tokens slightly decreases VQA accuracy; replacing all tokens approaches random.
    • Authors' conclusion: The authors believe multiple image-related variables have linear structure and claim this enables fine-grained modification of VLLM behavior; the abstract claims cross-modal representations are fairly separate, becoming more shared with depth, called an information hierarchy in the discussion, and they think this may relate to the inference stage. They also claim that, unlike in language models, neurons also form an interpretable basis for image information, not worse than SAE features. The linear basis is seen as an unnatural basis for image adversarial attacks. Future work should study the transformation from image to multimodal representations and test on other architectures, especially cross-attention models.
Read originalarxiv.org