TL;DR
This paper investigates how Multimodal Language Models (MLMs) process visual information within their internal "key-value" (KV) tokens, revealing that while these tokens hold significant perceptual capabilities, the models often fail to fully utilize this information. The research identifies specific "input-agnostic" visual tokens in later layers that can actually degrade performance, suggesting new avenues for improving MLM perception by better controlling this internal visual representation.
What Problem Does This Paper Address?
Multimodal Language Models (MLMs) are designed to understand and generate content involving both text and images. Despite advancements, they still struggle with tasks requiring deep visual understanding, such as object localization or spatial reasoning. While previous work has focused on the visual encoders that initially process images, this paper dives deeper into how the language model component itself handles and potentially mismanages this visual information. The core problem is understanding why MLMs, despite having access to rich visual data, underperform on perception-heavy tasks and how their internal mechanisms contribute to this limitation.
Methods
The authors employ a mechanistic interpretability approach, focusing on the "key-value" (KV) tokens that represent visual information within the transformer layers of MLMs. They analyze the flow of this visual information through different layers of the language model. To assess the perceptual capabilities of these KV tokens, they use a suite of six zero-shot probing tasks: foreground segmentation, co-segmentation, semantic segmentation, referring expression segmentation, semantic correspondence, and temporal correspondence. They also conduct intervention studies, specifically blocking certain input-agnostic image key tokens to observe the impact on model performance on tasks like hallucination detection.
Datasets
The paper uses several standard datasets for evaluation:
- Pascal-5i: For few-shot foreground segmentation.
- MSRC: For co-segmentation.
- ImageNet-S: For semantic segmentation.
- RefCOCO: For referring expression segmentation.
- SPair71K: For semantic correspondence.
- DAVIS: For temporal correspondence.
- CV-Bench and BLINK: For evaluating end-to-end MLM perception reasoning.
- MSCOCO: Used for identifying input-agnostic image key tokens.
- ADE20K: Used for calculating variance of image key tokens.
- POPE and MME: Benchmarks used for evaluating hallucination and general perception capabilities in intervention studies.
Key Insights and Ideas
- Visual Information is Present, But Underutilized: Image value tokens within MLMs contain sufficient information to perform several perception-heavy tasks zero-shot. This suggests the raw visual understanding is there, but the model isn't always leveraging it effectively.
- Later Layers Can Be Detrimental: Visual information in later layers of the language model, particularly for "input-agnostic" image key tokens, can actually degrade perception capabilities, acting as artifacts rather than useful signals.
- Textual Prompts Can Help: Adding a textual prefix to the image input can improve the perceptual capabilities of visual representations, demonstrating that MLMs can dynamically adapt their visual processing based on linguistic context.
- MLMs Don't Always Surface Information: Even when visual information is present and correct within the model's internal representations, it's not always passed to the final output, leading to incorrect predictions. This was observed in up to 33.3% of Art Style questions in the BLINK benchmark.
- Visual Encoder Finetuning Matters: The visual encoder finetuned within an MLM can perform worse on perception tasks than the original, unfine-tuned encoder. This suggests that the MLM finetuning process might inadvertently degrade visual information.
Key Results
- Image value tokens in MLMs can perform perception tasks like segmentation and correspondence zero-shot, with performance correlating with overall MLM perception capabilities.
- The perceptual capability of visual information in MLMs generally builds up in the early to middle layers and then drops off steeply in later layers, likely as the model prioritizes text generation.
- The original SigLIP visual encoder (without MLM finetuning) outperformed the finetuned visual encoder within LLaVA-OneVision on 3 out of 6 probing tasks.
- Blocking input-agnostic image key tokens in later layers of MLMs improved performance on hallucination benchmarks like POPE (e.g., from 78.1 to 81.2 F1 score for LLaVA-OneVision).
- Adding a text prefix improved performance on tasks like referring expression segmentation and semantic correspondence.
Limitations and Future Work
Limitations: * The study primarily focuses on three specific MLM architectures (LLaVA-OneVision, Qwen2.5-VL, and Llama-3-LLaVA-NeXT), and findings might not generalize to all MLMs. * While the paper identifies input-agnostic keys in later layers as problematic, the exact reasons for their emergence and how to fully prevent them require further investigation.
Future Work: * Improving Visual Encoders: Research into better finetuning strategies for visual encoders in multimodal training to prevent information degradation. * Leveraging Text-Only Methods: Exploring traditional prompting techniques to enhance visual representations within MLMs. * Controlling Visual Information: Developing methods to prevent artifacts from input-agnostic keys in later layers or using additional tokens to better manage visual information. * Deeper Mechanistic Interpretability: Further dissecting how MLMs process visual information to improve perception reasoning.
Summary updated