Visual Representations inside the Language Model
Benlin Liu, Amita Kamath, Madeleine Grunde-McLaughlin, Winson Han, Ranjay Krishna
TL;DR
This work investigates how visual information is represented and used inside multimodal language models by examining the visual key-value tokens stored in the KV cache of three MLMs. It finds that image value tokens carry sufficient information to support several zero-shot perception tasks and that the flow of this information through the model correlates with downstream perception performance, though MLM finetuning can reduce visual fidelity relative to non-MLM- finetuned encoders. A key discovery is that input-agnostic image keys in later layers can encode artifacts that degrade perception, while text prefixes can steer visual representations to improve performance. The study highlights the need for better control and prompting mechanisms to surface latent visual information, suggests new training directions for both the visual encoder and the language model, and lays groundwork for mechanistic interpretability of visual representations in MLMs.
Abstract
Despite interpretability work analyzing VIT encoders and transformer activations, we don't yet understand why Multimodal Language Models (MLMs) struggle on perception-heavy tasks. We offer an under-studied perspective by examining how popular MLMs (LLaVA-OneVision, Qwen2.5-VL, and Llama-3-LLaVA-NeXT) process their visual key-value tokens. We first study the flow of visual information through the language model, finding that image value tokens encode sufficient information to perform several perception-heavy tasks zero-shot: segmentation, semantic correspondence, temporal correspondence, and referring expression detection. We find that while the language model does augment the visual information received from the projection of input visual encodings-which we reveal correlates with overall MLM perception capability-it contains less visual information on several tasks than the equivalent visual encoder (SigLIP) that has not undergone MLM finetuning. Further, we find that the visual information corresponding to input-agnostic image key tokens in later layers of language models contains artifacts which reduce perception capability of the overall MLM. Next, we discuss controlling visual information in the language model, showing that adding a text prefix to the image input improves perception capabilities of visual representations. Finally, we reveal that if language models were able to better control their visual information, their perception would significantly improve; e.g., in 33.3% of Art Style questions in the BLINK benchmark, perception information present in the language model is not surfaced to the output! Our findings reveal insights into the role of key-value tokens in multimodal systems, paving the way for deeper mechanistic interpretability of MLMs and suggesting new directions for training their visual encoder and language model components.
