DEX-AR: A Dynamic Explainability Method for Autoregressive Vision-Language Models

Walid Bousselham, Angie Boggust, Hendrik Strobelt, Hilde Kuehne

Abstract

As Vision-Language Models (VLMs) become increasingly sophisticated and widely used, it becomes more and more crucial to understand their decision-making process. Traditional explainability methods, designed for classification tasks, struggle with modern autoregressive VLMs due to their complex token-by-token generation process and intricate interactions between visual and textual modalities. We present DEX-AR (Dynamic Explainability for AutoRegressive models), a novel explainability method designed to address these challenges by generating both per-token and sequence-level 2D heatmaps highlighting image regions crucial for the model's textual responses. The proposed method offers to interpret autoregressive VLMs—including varying importance of layers and generated tokens—by computing layer-wise gradients with respect to attention maps during the token-by-token generation process. DEX-AR introduces two key innovations: a dynamic head filtering mechanism that identifies attention heads focused on visual information, and a sequence-level filtering approach that aggregates per-token explanations while distinguishing between visually-grounded and purely linguistic tokens. Our evaluation on ImageNet, VQAv2, and PascalVOC shows a consistent improvement in both perturbation-based metrics, using a novel normalized perplexity measure, as well as segmentation-based metrics.

Introduction

Vision-Language Models (VLMs) like LLaVA and PaliGemma have revolutionized multimodal tasks but remain largely opaque "black boxes." Traditional explainability methods, such as Grad-CAM, were designed for static image classification and struggle with the dynamic, token-by-token generation of autoregressive VLMs. Specifically, these models face two primary hurdles: the shifting "reasoning" context during generation and the presence of linguistic "filler" words (e.g., "the", "is", "image") that lack visual grounding. Standard heatmaps often appear noisy because they attempt to attribute these filler words to specific image regions.

Methodology: Dynamic Explainability

DEX-AR addresses these challenges through a multi-stage filtering process that isolates visually-grounded information from linguistic priors.

Layer-wise Gradients and Head Filtering

Instead of relying on raw attention, DEX-AR computes gradients of the predicted token's logit with respect to the attention maps at every layer. It utilizes a "Logit Lens" approach to interpret intermediate hidden states, tracking how visual information is processed through the network's depth. A key component is Dynamic Head Filtering, which weights attention heads based on their focus. By comparing gradient magnitudes on visual versus textual tokens, the method prioritizes heads that capture the strongest visual signals, effectively localizing objects of varying scales more accurately than simple averaging.

Sequence-Level Filtering

A core innovation of DEX-AR is its ability to distinguish between content words and linguistic artifacts. By calculating a "visual necessity" score for each token, the method suppresses the contribution of tokens that can be predicted primarily from linguistic context. Only tokens that truly rely on visual evidence contribute to the final aggregate explanation.

DEX-AR pipeline showing per-token weighting and the effect of filtering on heatmap clarity.

Experimental Results

The researchers evaluated DEX-AR across standard benchmarks including ImageNet, VQAv2, and PascalVOC to measure both faithfulness and localization accuracy.

Localization Performance

DEX-AR demonstrates a substantial improvement in object localization. On the PascalVOC dataset using LLaVA-1.5, DEX-AR achieved a 36.34% IoU, outperforming traditional Grad-CAM (28.90%) and Attention Rollout (19.59%). This indicates that the heatmaps generated by DEX-AR are much more precisely aligned with actual object boundaries across various model architectures.

Quantitative localization results on PascalVOC across various VLM architectures.

Faithfulness and Noise Reduction

Using a novel Normalized Perplexity metric, the authors confirmed that the pixels identified by DEX-AR are indeed the most critical for the model's internal confidence. Furthermore, the filtering mechanism improved the Signal-to-Noise Ratio (SNR) on the Pascal-QA dataset from 9.16 to 96.12, effectively eliminating noise from non-visual tokens and providing much cleaner visual explanations.

Conclusion

DEX-AR provides a robust framework for interpreting the complex decisions of autoregressive VLMs. By filtering out linguistic noise and dynamically weighting visual attention, it offers a more faithful and precise view of how these models "see" the world. While the method reveals that models still exhibit some spurious biases (e.g., looking at water to identify a boat), it successfully provides the transparency needed to debug and improve these foundational models.

Summary updated

BibTeX
@misc{bousselham2026dex,
  author = {Walid Bousselham and Angie Boggust and Hendrik Strobelt and Hilde Kuehne},
  title = {{DEX-AR: A Dynamic Explainability Method for Autoregressive Vision-Language Models}},
  year = {2026},
  eprint = {2603.06302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.06302},
}
Figure