Skip to content

Integrating attention into explanation frameworks for language and vision transformers

Aug 2025 · arXiv.org · Vol abs/2508.08966 · 1 citation · 33 references
Computer Science Mathematics

TL;DR

The empirical evaluations on standard benchmarks and in a comparison study with widely used explanation methods show that attention weights can be meaningfully incorporated into the studied XAI frameworks, highlighting their value in enriching transformer explainability.

Abstract

The attention mechanism lies at the core of the transformer architecture, providing an interpretable model-internal signal that has motivated a growing interest in attention-based model explanations. Although attention weights do not directly determine model outputs, they reflect patterns of token influence that can inform and complement established explainability techniques. This work studies the potential of utilising the information encoded in attention weights to provide meaningful model explanations by integrating them into explainable AI (XAI) frameworks that target fundamentally different aspects of model behaviour. To this end, we develop two novel explanation methods applicable to both natural language processing and computer vision tasks. The first integrates attention weights into the Shapley value decomposition by redefining the characteristic function in terms of pairwise token interactions via attention weights, thus adapting this widely used game-theoretic solution concept to provide attention-driven attributions for local explanations. The second incorporates attention weights into token-level directional derivatives defined through concept activation vectors to measure concept sensitivity for global explanations. Our empirical evaluations on standard benchmarks and in a comparison study with widely used explanation methods show that attention weights can be meaningfully incorporated into the studied XAI frameworks, highlighting their value in enriching transformer explainability.

View source

Similar papers

Review Open access Oct 2026

From Saliency Maps to Circuits: An Integrative Survey of Explainable AI and Mechanistic Interpretability

This paper provides an integrative survey of classical XAI techniques, bringing them together within a shared taxonomy that spans explanatory scope, stage, and methodological foundations, and examines their underlying principles, assumptions, strengths, and limitations.

A. Dugăeșescu, A. Florea · 0 citations
Preprint Aug 2026

Mechanistic Interpretability of Chain-of-Thought Reasoning via Sequential Activation Patching

This work introduces a sequential activation patching framework that traces CoT-conditioned attention-head activations across token positions and aggregates their effects using Part-of-Speech-guided analysis, and introduces Sequential Multi-Head Patching to evaluate the joint contribution of distributed head sets, toge...

M. Dura, Serkan Öztürk, Selma Tekir · 1 citation · ⚡1
#artificial intelligence Preprint Sep 2026

Skip the Talk, Re-Focus on Vision: Latent Reasoning for Reasoning Segmentation in Multimodal Large Language Models

LIRSeg is proposed, which fully replaces explicit CoT with a compact set of learnable latent tokens for reasoning segmentation, and introduces three complementary mechanisms from an information perspective: extreme-advantage sampling for selecting informative training signals, decoupled exploration-stability updates fo...

Tian-Hang Guo, Yu-Lin He, Wei Chen et al. · 0 citations
#computer vision Preprint Sep 2026

From Vision to Language: Investigating Causal Information Flow in Multimodal Decision-Making

This work investigates cross-modal information flow in a video-based generative multiple-choice-like setting by applying a layer-wise causal intervention on video-text attention pathways and identifies a distinct pattern in temporal reasoning.

Davide Testa, Hugh Mee Wong, Alessandro Lenci et al. · 0 citations
Open access Sep 2026

Rethinking Attention: Entropy-Guided Iterative Refinement for Language Models

Standard Multi-Head Attention (MHA) computes contextual representations in a single forward pass, providing no mechanism to detect or correct diffuse or suboptimal attention distributions. Existing efforts to improve attention have primarily targeted computational efficiency or sequence length, leaving attention qualit...

R. Priyadarshini, Subham Divakar · 0 citations
Review Aug 2026

Not All Attention Is Equal: A Quantitative Survey of the EEI Trade-off

This survey traces attention from Bahdanau-Luong alignment through the Transformer and into vision architectures, and reviews fixed and learned sparse attention, linear attention, IO-aware exact algorithms including FlashAttention, and state-space alternatives including Mamba.

Aditya Singh · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.