NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Explaining Multi-modal Large Language Models by Analyzing their Vision Perception

Loris Giulivi, Giacomo Boracchi

Introduction

Multi-modal Large Language Models (MLLMs), such as LLaVa and GPT-4, have revolutionized how AI reasons over visual and textual data. However, these models often operate as "black boxes," making it difficult to understand why they generate specific outputs or why they occasionally "hallucinate" non-existent objects. This research introduces a novel framework to ground MLLM interpretations in actual object localization, providing a window into the model's internal vision perception.

The Joint Architecture $\mathcal{J}$

The core of this work is a joint architecture, denoted as $\mathcal{J}$, which bridges the gap between language generation and object detection. The authors combine two powerful models: LLaVa (an MLLM) and OWL-ViT (an open-world object detector).

The joint architecture $\mathcal{J}$ integrates a frozen OWL-ViT vision encoder with LLaVa's LLM via a trained alignment layer $W$.

By replacing LLaVa's default vision encoder with OWL-ViT's and training a small Multi-Layer Perceptron (MLP) alignment layer ($W$), the models are forced to share a single visual representation. This shared embedding ensures that any perceptual error in the vision encoder is reflected in both the text output and the object detection results.

Grounding Explanations via Saliency

Traditional interpretability tools like attention maps often fail to capture the complexity of multi-token MLLM outputs. To address this, the authors developed Gradient Alignment (GA) Saliency Maps. This method identifies the relevance between output tokens and image regions by calculating the cosine similarity between their respective gradients. Unlike simple attention, GA saliency highlights the specific pixels that actually influenced the model's decision to generate a particular word.

Visualizing Hallucinations and Bias

One of the most significant findings of this study is that MLLM hallucinations are often rooted in the vision encoder's perception rather than just linguistic patterns.

Correlated errors in text and detection reveal that hallucinations often stem from the vision encoder's perception.

Because the detection head $\mathcal{H}$ and the LLM share the same vision representation $\mathbf{t}_i^{OWL}$, errors are correlated. If the LLM claims to see an extra cat, the detection head will typically "find" that cat with high confidence. This proves that hallucinations are not merely linguistic artifacts but are grounded in the shared visual representation.

Furthermore, the framework allows for the quantification of social bias using Semantic Adversarial Perturbations. By subtly nudging the image embedding toward a specific semantic concept (like changing perceived gender), researchers can measure how the LLM's response changes, providing a mathematical basis for detecting and measuring model bias.

Key Results and Conclusion

The proposed framework was validated through several experiments:

  • Explainability: In a user study, participants correctly identified the object explained by a saliency map 94.1% of the time.
  • Hallucination Detection: Detection scores for hallucinated objects were significantly higher (0.034) than for correctly identified missing objects (0.017), enabling a new way to flag unreliable outputs.
  • Bias Assessment: The model exhibited measurable gender bias; for example, shifting an embedding from "female" to "male" caused the likelihood score for the occupation "nurse" to drop by an average of 2.5 points on a 1-10 scale.

While there is a slight "alignment tax"—with the joint model scoring 6.1/10 in captioning quality compared to the original LLaVa's 7.0—this research provides a powerful set of tools for making MLLMs more interpretable and accountable. Future work will focus on full fine-tuning to recover performance while maintaining these diagnostic capabilities.

Summary updated

BibTeX
@inproceedings{giulivi2024explaining,
  author = {Loris Giulivi and Giacomo Boracchi},
  title = {{Explaining Multi-modal Large Language Models by Analyzing their Vision Perception}},
  booktitle = {BMVC},
  year = {2024},
}
Figure