Same Task, Different Circuits: Disentangling Modality-Specific Mechanisms in VLMs

Yaniv Nikankin, Dana Arad, Yossi Gandelsman, Yonatan Belinkov

Vision-Language Models (VLMs) consistently perform better on textual tasks than on identical visual ones. This paper reveals that while a model's "reasoning" components are functionally interchangeable across modalities, visual data processing acts as a bottleneck. Visual representations align with their textual counterparts too late in the network to be fully utilized. By "back-patching" these late-layer visual features into earlier layers, researchers successfully closed a third of the performance gap without any additional training.

The Modality Gap: What Problem Does This Address?

We often assume that because a VLM can "see" an image and "read" a description, it builds a unified internal representation of the world. However, a persistent "modality gap" exists: a model that can perfectly count words in a text list might fail to count the same number of objects in an image.

The authors set out to find the source of this discrepancy. Is the model using entirely different "logic" (computational circuits) for vision versus text? Or is it a failure of the visual features to integrate with the model's existing linguistic reasoning capabilities? Understanding this is crucial for building more robust multimodal systems that don't require massive, expensive retraining to fix simple reasoning errors.

Methodology: Mechanistic Interpretability

The researchers employed Mechanistic Interpretability techniques to look under the hood of three state-of-the-art VLMs (Qwen2-VL, Pixtral, and Gemma-3).

  1. Circuit Discovery: Using "Attribution Patching" with Integrated Gradients (AP-IG), they identified the specific attention heads and MLP neurons (the "circuits") responsible for a task.
  2. Sub-circuit Partitioning: They divided these circuits into three functional parts: Data (processing the image or text list), Query (processing the question), and Generation (producing the answer).
  3. Interchangeability Analysis: They performed "cross-modality swaps," replacing the language sub-circuit with the vision sub-circuit (and vice versa) to see if the model could still perform the task.
  4. Back-patching: Based on their findings, they developed a training-free intervention. They took visual activations from deeper layers and injected them back into earlier layers to influence the reasoning process sooner.

Datasets: Analogous Tasks Across Modalities

To ensure a fair comparison, the authors created a new benchmark of five analogous tasks where the input is provided as either an image or text.

Examples of analogous textual and visual tasks

These tasks included:

  • Object Counting: Counting items in a list vs. an image.
  • Arithmetic: Solving "56 + 14" written as text vs. an image of the equation.
  • Spatial Ordering: Identifying object positions in a CLEVR scene vs. a text description.
  • Factual Recall: Identifying a landmark/person by name vs. by photo.
  • Sentiment Analysis: Determining mood from a caption vs. an image.

They also validated their "back-patching" method on standard benchmarks like VQAv2 and RealWorldQA.

Key Insights: Inside the Circuits

The investigation yielded several critical discoveries about how VLMs process different modalities:

Overview of modality-specific circuits and back-patching
  • Structurally Disjoint, Functionally Similar: Vision and language circuits are almost entirely separate in terms of which neurons they use (only ~18% overlap). However, the "Query" and "Generation" parts are functionally equivalent—you can swap the "text-question" neurons for "image-question" neurons, and the model works fine.
  • The Data Bottleneck: The failure happens in the "Data" sub-circuit. The neurons that process an image are fundamentally different from those that process text, and they are not interchangeable.
  • The "Too Late" Realization: Visual tokens do eventually align with their textual counterparts (e.g., the pixels of a cat eventually trigger the same internal representation as the word "cat"), but this alignment happens in the final layers. By then, the "Query" tokens in the earlier layers have already passed through, missing the chance to interact with these high-quality visual features.
  • Back-patching as a Shortcut: By manually moving these "late-blooming" visual features to earlier layers, the model can use its high-performing linguistic reasoning circuits on visual data.

Key Results

  • Closing the Gap: Back-patching closed approximately 32% of the performance gap between visual and textual tasks on average.
  • Accuracy Boosts: The intervention provided significant absolute accuracy gains across models:
  • Qwen2-7B-VL: +9.4% on Arithmetic.
  • Pixtral-12B: +17.7% on Sentiment Analysis.
  • Gemma-3-12B: +6.7% on Arithmetic.
  • Generalization: The method wasn't just for their custom dataset; it also improved performance on general benchmarks like VQAv2 and RealWorldQA by several percentage points.

Limitations and Future Work

While back-patching is a powerful "training-free" fix, it only closes about a third of the gap. The authors acknowledge that the remaining two-thirds of the discrepancy remain unexplained.

Furthermore, the study focused on single-image, single-token completion tasks. It is unclear how these circuits behave in multi-image reasoning or long-form generation. The authors suggest that future VLM architectures might benefit from "flexible compute," where visual tokens are allowed to pass through more processing layers or "re-circulate" through the model to achieve better alignment before the reasoning phase begins.

Summary updated

BibTeX
@inproceedings{nikankin2025same,
  author = {Yaniv Nikankin and Dana Arad and Yossi Gandelsman and Yonatan Belinkov},
  title = {{Same Task, Different Circuits: Disentangling Modality-Specific Mechanisms in VLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=AD8ksC9bw1},
}
Figure