What Do VLMs NOTICE? A Mechanistic Interpretability Pipeline for Noise-free Text-Image Corruption and Evaluation

Michal Golovanevsky, William Rudman, Vedant Palit, Ritambhara Singh, Carsten Eickhoff · OpenReview

Abstract

Vision-Language Models (VLMs) have gained community-spanning prominence due to their ability to integrate visual and textual inputs to perform complex tasks. Despite their success, the internal decision-making processes of these models remain opaque, posing challenges in high-stakes applications. To address this, we introduce NOTICE, the first Noise-free Text-Image Corruption and Evaluation pipeline for mechanistic interpretability in VLMs. NOTICE incorporates a Semantic Minimal Pairs (SMP) framework for image corruption and Symmetric Token Replacement (STR) for text. This approach enables semantically meaningful causal mediation analysis for both modalities, providing a robust method for analyzing multimodal integration within models like BLIP. Our experiments on the SVO-Probes, MIT-States, and Facial Expression Recognition datasets reveal crucial insights into VLM decision-making, identifying the significant role of middle-layer cross-attention heads. Further, we uncover a set of "universal cross-attention heads" that consistently contribute across tasks and modalities, each performing distinct functions such as implicit image segmentation, object inhibition, and outlier inhibition. This work paves the way for more transparent and interpretable multimodal systems.

Introduction

While Vision-Language Models (VLMs) have achieved remarkable performance in tasks like image captioning and visual question answering, their internal decision-making processes remain largely a "black box." In Large Language Models (LLMs), mechanistic interpretability has successfully mapped internal circuits by "corrupting" inputs and observing how internal components restore the output. However, applying this to VLMs is challenging. Standard image corruption often relies on Gaussian noise, which can push models into out-of-distribution states that do not reflect real-world reasoning. This paper introduces NOTICE, a pipeline designed for semantic-based corruption to enable accurate causal analysis of multimodal integration.

Methods: The NOTICE Pipeline

The NOTICE (Gaussian-NOise-free Text-Image Corruption and Evaluation) pipeline replaces messy noise with semantically meaningful changes. It utilizes two primary components:

  1. Semantic Image Pairs (SIP): Swaps a single semantic element in an image (e.g., replacing a "puppy" with a "goat") while maintaining the background and context.
  2. Symmetric Token Replacement (STR): The textual counterpart, swapping specific tokens in the prompt.

The pipeline employs Activation Patching (a form of Causal Mediation Analysis) to identify critical internal components. As illustrated in Figure 5, the process involves running a "clean" input and a "corrupt" input, then systematically restoring activations from the clean run into the corrupt run to identify which components allow the model to recover the correct prediction.

The NOTICE pipeline workflow using Activation Patching to identify critical internal components.

The study evaluates this pipeline across three diverse datasets: SVO-Probes (subject-verb-object triplets), MIT-States (object-attribute pairs), and Facial Expression Recognition (FER-2013).

Results and Key Insights

The NOTICE pipeline reveals that VLM architectures process information in fundamentally different ways depending on their underlying structure.

Architectural Differences in Multimodal Integration

Analysis of BLIP and LLaVA shows distinct internal behaviors:

  • BLIP: Utilizes cross-attention where specific heads act as object detectors (linking text to image patches) or object suppressors.
  • LLaVA: Relies on self-attention, where the most critical heads primarily perform outlier suppression—filtering out uninformative image features rather than active grounding.

The Middle-Layer Reasoning Hub

Unlike Gaussian noise, which typically only highlights the final layers, semantic corruption (SIP) demonstrates that the "heavy lifting" of multimodal reasoning occurs in the middle MLP layers. Figure 6 illustrates these patterns, showing how different layers and components respond to semantic changes across different architectures.

Comparison of internal activation patterns in LLaVA and BLIP under semantic corruption, highlighting the importance of middle layers.

Universal Attention Heads

The researchers identified a small set of "universal" heads (3 in BLIP, 7 in LLaVA) that consistently handle multimodal integration across various tasks. These heads perform specialized functions such as implicit image segmentation and outlier inhibition. Furthermore, BLIP showed a higher reliance on visual inputs, with image corruption impacting confidence significantly more than text corruption (20% vs 6% logit difference).

Discussion and Future Work

While NOTICE provides a robust framework for VLM interpretability, limitations remain. The current datasets are relatively simple, and future work should explore more complex reasoning tasks like CLEVR. Additionally, using generative models like Stable Diffusion to create SIPs can introduce artifacts. As models scale to hundreds of billions of parameters, investigating whether these "universal circuits" remain stable or become more specialized is a key area for future research.

Summary updated

BibTeX
@misc{golovanevsky2024what,
  author = {Michal Golovanevsky and William Rudman and Vedant Palit and Ritambhara Singh and Carsten Eickhoff},
  title = {{What Do VLMs NOTICE? A Mechanistic Interpretability Pipeline for Noise-free Text-Image Corruption and Evaluation}},
  year = {2024},
  eprint = {2406.16320},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.16320},
}
Figure