Manuscript Offprint
arXiv:2610.12703Bridging Human and Model Attention: Explainability Analysis of CNN, Mamba, and ViT Architectures with Gaze-Based Validation
ARTICLE INFO
Keywords:
Explainable AI (XAI)
Saliency maps
Convolutional Neural Networks
Vision Transformers
Vision Mamba
ABSTRACT
The use of deep learning in high-risk application domains, under regulatory frameworks such as the EU AI Act, requires a precise characterization of the model's decision-making mechanisms. The existing literature provides limited quantitative and qualitative comparisons of explainability across widely adopted deep learning architectures. We conduct a systematic evaluation of explainability in three representative model families: Convolutional Neural Networks (CNNs), Vision Transformers (ViTs), and Vision Mamba (ViM) state-space models. Unlike existing studies, which are predominantly based on qualitative evaluations, we quantify the alignment between the model's attention and human visual perception using eye-tracking data treated as ground truth. We formalize this comparison by applying a standardized normalization pipeline that converts both post-hoc attribution maps and human eye-tracking heatmaps into valid spatial probability distributions. We then evaluate their alignment using a similarity metric whose range, optimal bounds, and invariance properties are rigorously characterized. We evaluate the models in three different domains: fine-grained classification (CUB-200-2011), medical imaging (MIMIC-CXR), and emotion recognition (KDEF). Using architecture-specific explainability (XAI) methods, including GradCAM, ScoreCAM, and AblationCAM for CNNs, ViTLRP for ViT, and MambaLRP for ViM, we measure the fidelity of model saliency maps to human gaze using Jensen-Shannon similarity, Chi-square similarity, and Pearson correlation, three estimators that we show to be sensitive to complementary aspects of a saliency map, namely support overlap, mass discrepancy, and structural co-variation. Our results reveal distinct attention dynamics: CNNs tend to exhibit a more global focus, with spatially more diffuse saliency maps that correlate well with human perception in general contexts, while ViTs demonstrate fine-grained, patch-level attention, often focused on discriminative microfeatures. The Mamba architecture shows biased behavior: it achieves strong explainability in medical tasks but exhibits divergent intensity distributions in natural images; our analytical characterization of the metrics makes this dissociation explicit, since near-unit support overlap is attained simultaneously with a vanishing linear correlation. We further analyze the effect of backbone freezing and ensemble strategies on model interpretability. The results highlight how architectural and training choices influence the alignment between model saliency and human visual attention.
Regulations such as the European General Data Protection Regulation (GDPR) are making the use of black-box models more challenging across all business sectors, including healthcare, since the traceability of decisions is a fundamental requirement [1]. Furthermore, on August 1st, 2024, the Artificial Intelligence Act (AI Act) entered into force following its publication in the Official Journal of the European Union [2], laying down harmonized rules for AI systems. The AI Act adopts a risk-based approach, whereby AI systems are subject to different requirements depending on their risk level, which is linked to their context of use and the potential impact on the health and safety or fundamental rights of individuals. In particular, high-risk AI systems must comply with a set of requirements that include, among others, transparency and human oversight [3].
A machine learning model is transparent if a human can understand its entire logic at once. This typically requires that the model has a low computational complexity. A more relaxed definition of transparency requires that each individual part, including inputs, parameters, and calculations, has an intuitive, human-understandable meaning [4]. In this context, interpretability denotes the degree to which a human can understand a system's internal mechanics [5]. This may be achieved intrinsically through a model's transparent design or through post-hoc methods (a post-hoc interpretation is generated after a model has already made a prediction). The latter refers to the ability to consistently predict a model's output based on its inputs, an essential quality for testing complex "black-box" models [6, 7]. Building on
*Corresponding author
marcostefani.research@gmail.com (M. Stefani);
edoardo.parpaiola@gmail.com (E. Parpaiola); matteo.bino.2002@gmail.com (M. Bino); gianluca.caregnato@gmail.com (G. Caregnato);
roncolatofra@gmail.com (F. Roncolato); daniel.fusaro@studenti.unipd.it (D. Fusaro); loris.nanni@unipd.it (L. Nanni); alberto.pretto@unipd.it (A. Pretto)
ORCID(s): 0009-0006-8807-7660 (M. Stefani)
M. Stefani et al.: Preprint submitted to Elsevier
Page 1 of 26 these foundations, Explainable AI (XAI) [8] aims to formalize these interpretations using mathematically rigorous frameworks. In practice, explainability refers to the suite of methods (often post-hoc, but not exclusively) that generate human-understandable justifications of a model's behavior, leveraging internal parameters, outputs, or a combination of both.
While inherently interpretable architectures, such as linear regressors or shallow decision trees, offer direct decomposability [7] and are easily visualized through their model parameters [9], they are structurally limited by their representational capacity. In high-dimensional domains like computer vision, these models fail to capture the hierarchical, non-linear features necessary for competitive performance in tasks such as image classification and segmentation. This creates a fundamental accuracy-interpretability trade-off: as models scale toward the complexity of Deep Neural Networks (DNNs) [10] or Transformers [11] to minimize empirical risk, they systematically sacrifice transparency. Consequently, the adoption of black-box architectures becomes a functional requirement for complex tasks, necessitating the development of robust post-hoc XAI frameworks to recover human-understandable insights. Existing XAI approaches can be broadly categorized by the timing of the explanation (ante-hoc vs. post-hoc), the scope (global vs. local), and model agnosticism (agnostic vs. specific). Furthermore, they are distinguished by their output format (e.g., feature attribution, visualization, or natural language) and their underlying computational mechanism (e.g., surrogate-, perturbation-, or backpropagation-based). A concise taxonomy is provided in Section 2.
The goal of our work is to quantitatively evaluate the alignment between human visual attention and the saliency maps produced by architecture-specific XAI methods. Stated formally, given a trained classifier , an attribution operator returning an attribution map for a target class , and an empirical human fixation-density map , representing the human eye-tracking heatmap recorded for the same visual stimulus , we analyze the functional:
where S is a similarity functional between two spatial distributions and the expectation is taken over the data distribution. The central point is that G enters only through S and never through the training objective, so that probes an emergent property of the trained model. The formal apparatus underlying Eq. (1) is developed in Section 6.1. Our study targets widely adopted CNN, ViT, and Vision Mamba architectures across three distinct domains: fine-grained natural image classification, medical imaging, and facial emotion recognition. By doing so, we provide insights into the internal behavior of each architectural family and highlight how specific design choices, such as backbone freezing and ensemble strategies, influence the fidelity of model explanations under diverse data regimes.
Closely related to our study are the works by Alqutayfi et al. [12] and Ruiu et al. [13]. While [12] provides a comparative analysis of CNNs and ViTs in medical imaging, it relies primarily on qualitative expert assessment for explainability, without leveraging ground-truth gaze data to quantify the alignment. Conversely, [13] establishes a rigorous framework for comparing model attention with human gaze using similarity metrics (such as Jensen-Shannon and Chi-square), but limits its scope to facial analysis, comparing ViTs against handcrafted features. A similar work to ours is Kang et al. [14], which aims to decode human safety perceptions of urban environments by employing CNNs and various Class Activation Mapping (CAM) techniques to generate visual attention heatmaps. To evaluate the alignment between XAI-generated heatmaps and human visual attention, the authors measured image similarity at two distinct levels. At the scene level, they employed L2 loss and Learned Perceptual Image Patch Similarity (LPIPS) scores to assess overall spatial and perceptual similarities, while at the element level, they utilized cosine similarity to verify whether both the human and the deep learning models focused on the same specific urban objects.
The need for such rigorous evaluation is underscored by the fact that explainability is no longer just a diagnostic tool but a driver of model integrity. Recent work by [15] demonstrates that aligning the internal representations of vision models with human conceptual hierarchies significantly enhances their generalization and out-of-distribution robustness. This principle is further supported by [16], who argue that studying explainability is crucial not only for understanding which features the model relies on most, but also for enhancing overall performance. Indeed, the authors propose an intrinsic XAI framework for object detection with YOLOv8, where predictions are contingent upon the explicit verification of human-meaningful parts defined by the user. This transparency-by-design approach significantly improves model accuracy and provides enhanced robustness against adversarial attacks compared to traditional black-box models.
Our work bridges the gaps in the current literature by introducing a distinct evaluative perspective. While existing XAI research often relies on qualitative visual inspections of saliency maps, it lacks the objective metrics needed for rigorous comparison. Conversely, studies that do employ quantitative gaze data frequently use it as a ground-truth label during training to supervise the model's attention. For example, Govil et al. [17] introduce DriverGaze360-Net, a transformer-based model explicitly trained on empirical human gaze data to predict omnidirectional driver attention. By utilizing these fixation distributions as ground truth, their network is designed to generate accurate gaze maps for unseen scenarios, essentially treating gaze prediction as the primary learning objective. In contrast, we focus on the inherent explainability of standard image classifiers. Rather than using gaze data to guide the learning process, we train our models solely for classification and subsequently extract their post-hoc saliency maps using XAI methods.
M. Stefani et al.: Preprint submitted to Elsevier
Page 2 of 26
Consequently, the human fixation-density map G constitutes a genuine held-out ground truth reference rather than a supervision signal. By using human gaze as an independent benchmark, rather than a training target, we can quantitatively measure how naturally these different architectures align with human visual priority. This methodology allows us to provide a rigorous validation of CNN, ViT, and the novel Vision Mamba architectures across both fine-grained and medical imaging tasks.
Our contributions are:
-
A review of recent explainability papers across a wide range of model architectures, including Convolutional Neural Networks (CNNs), Vision Mamba (ViM), and Vision Transformers (ViTs), presented within a unified notation that expresses Grad-CAM, ScoreCAM, Ablation-CAM, ViTLRP, and MambaLRP as instances of a single attribution operator.
-
A formal evaluation framework for gaze-based explainability assessment. We define a normalization pipeline that maps both attribution maps and human fixation densities onto the probability simplex (i.e., the space of non-negative spatial distributions summing to unity) and derive the range, extremal configurations, and invariance properties of the three similarity estimators employed. This analysis yields an operational reading of the metrics, demonstrating that support overlap, mass discrepancy, and structural co-variation are separately identifiable. In turn, this provides a theoretical explanation for the negative similarity values observed empirically for state-space models.
-
An evaluation of XAI techniques across three radically distinct visual domains: fine-grained natural classification (CUB), specialized medical diagnostics (CXR), and human facial emotion recognition (KDEF-FGD). The analysis demonstrates how domain-specific semantic features deeply influence the alignment between machine saliency and human visual attention.
-
A systematic comparison and quantitative evaluation of the explainability of different models, analyzing how these models attend to visual information using human gaze datasets as a reference, together with a pairwise model-to-model agreement analysis that decouples inter-architecture divergence from human-alignment.
-
A qualitative analysis of model perception through the reproduction and comparison of the various heatmaps generated by different explainability methods.
-
An evaluation of the performance benefits of model ensembles composed of networks with similar architectures, investigating whether consistent explainability patterns correlate with improved accuracy.
The code is publicly available to ensure reproducibility at https://github.com/CaregnatoGianluca/VisionExplainability and https://github.com/LorisNanni/VisionExplainability. All the heatmaps produced by the various XAI techniques are provided at https://doi.org/10.5281/zenodo.21127362.
2. A Concise Taxonomy of XAI Methodologies
In this section, we provide a unified taxonomy and classification of explainable artificial intelligence (XAI) techniques, providing a formal mathematical framework that encompasses both ante-hoc and post-hoc paradigms across local and global scopes.
We first define the core notation, decision spaces, and predictive models underlying these methodologies. Let be the pixel lattice of the input images, the input space, a finite label set, and a parametric hypothesis class mapping images into the probability simplex . We denote by , , the predicted posterior of class , by the corresponding pre-softmax logit, and by the predicted label. All the local, feature-attribution techniques discussed below are then instances of a single object.
Definition 1 (Attribution operator). An attribution operator is a map
assigning to every location a signed score that quantifies the contribution of to the evidence supporting class for the input under the model . Unless stated otherwise we always set , i.e. explanations are computed for the class actually predicted by the model.
Definition 1 is deliberately agnostic: the taxonomy below organizes the admissible choices of according to when it is applied, the scope it describes, the model access it requires, what it returns, and by which mechanism it is computed.
The most fundamental split in explainable artificial intelligence involves the timing of explanation, with a distinction between ante-hoc and post-hoc methodologies. Antehoc approaches [18], often referred to as intrinsic interpretability, involve the use of models that are transparent by design, where the internal logic and decision-making pathways are inherently understandable to a human observer. These methods contrast with post-hoc techniques, which are applied to a model after the training phase has been completed to extract explanations from an otherwise opaque “black-box” architecture [7]. While the former relies on the structural simplicity of the model to ensure clarity, the latter employs external mechanisms, such as perturbation or gradient analysis, to provide meaningful insights into the learned representations of complex systems without altering the underlying model itself.
A second distinction is between Global and Local Interpretable Methods [9]. Global Methods aim to describe the overall behavior of a model, capturing its general decision logic across the dataset. They provide insights into how
M. Stefani et al.: Preprint submitted to Elsevier
Page 3 of 26 input features influence predictions on average, for example, through feature importance measures or partial dependence analysis [9]. In contrast, local methods focus on explaining individual predictions. These approaches aim to clarify why a model produced a specific output for a given input instance, often by identifying the most influential features or by generating counterfactual examples. The distinction is captured by the domain of the explanation map: a local method returns for a fixed , whereas a global method returns a single summary , or an analogous aggregate over the data distribution, in which the dependence on the individual instance has been marginalized out. Local explainability methods are widely used and constitute the main focus of this paper.
Model agnosticism refers to whether an explanation method can be applied independently of the underlying model. Model-agnostic methods treat the model as a black-box and can be applied to any model, regardless of its internal structure, e.g., Local Interpretable Model-agnostic Explanations (LIME) [19]. Conversely, model-specific methods are designed for particular model classes and typically exploit internal information such as gradients, activations, or weights, e.g., Layer-wise Relevance Propagation (LRP) for neural networks [20, 21].
The output format or modality of an explanation represents a critical distinction in XAI taxonomies, determining how the interpretation is communicated to the end-user. These formats are generally categorized based on the type of information they provide:
• Feature attribution: These methods identify and rank the input features that primarily influenced a specific decision. In computer vision, this is typically achieved through spatial visualizations, such as heatmaps or saliency maps, which highlight the regions or pixels contributing most to the prediction (e.g., via GradCAM [22] or LRP [21]).
• Textual explanations: With the rise of Large Language Models (LLMs), some approaches generate natural language justifications. These methods produce human-readable descriptions of the reasoning behind a prediction, often utilizing chain-of-thought (CoT) style prompting.
• Example-based explanations: These approaches explain predictions by selecting representative samples from the training set. They typically identify prototypes (examples structurally similar to the input) or criticisms (examples that contrast with it) to explain a decision through analogy.
Furthermore, feature attribution methods can be classified into two main categories based on their underlying computational mechanism: perturbation-based and propagation-based approaches.
Perturbation/Occlusion-based methods represent the most intuitive approach for probing a black-box model. These techniques function by systematically masking, removing, or modifying specific input features, executing a forward pass to compute the new output, and measuring the resulting deviation from the original prediction. Let be a binary mask and let denote the input in which the locations selected by are replaced by a reference (baseline) value , with the Hadamard product. The occlusion attribution of a region is
where is the indicator of . However, they are highly computationally expensive; running a forward pass after perturbing every individual feature or pixel one-by-one requires evaluations of and can take several hours per image [23]. To mitigate this overhead, it is common to apply perturbation masks over localized patches (e.g., configurations of or pixels) depending on the spatial resolution required and the available computational budget, which reduces the cost by the patch area at the price of a coarser spatial support. A prominent example within this domain is Shapley value sampling, which approximates true Shapley values by repeatedly sampling permutations of the input space [24]. Interpreting the logit as the value function of a cooperative game played by the input features, the exact attribution of feature is the Shapley value
(4)
whose exact evaluation is exponential in , which is precisely what motivates Monte-Carlo estimation over sampled permutations.
Conversely, propagation-based methods evaluate feature importance by utilizing the internal structure of the network, typically extracting attribution scores via a backward pass, at a cost of a single backward sweep, i.e. evaluations of irrespective of . The most straightforward implementation computes the partial derivatives of the output neuron with respect to the input features,
which is the first-order term of the Taylor expansion of around . To improve upon the noisiness of raw gradients, Guided Backpropagation (GBP) [25] restricts the backward flow of gradients to only positive contributions by applying the ReLU function during the backward pass. Denoting by the activations and by the back-propagated signal at layer , GBP replaces the standard ReLU backward rule by
so that both negative activations and negative incoming signals are discarded. Writing for the relevance assigned
M. Stefani et al.: Preprint submitted to Elsevier
Page 4 of 26 to neuron j of layer l, these methods are designed to satisfy a conservation (or completeness) axiom
which states that the evidence produced at the output is redistributed, and neither created nor destroyed, along the backward pass. Other advanced propagation techniques mathematically decompose the output score layer by layer. Prominent examples include Deep Taylor Decomposition [26], Deep Learning Important FeaTures (DeepLIFT) [27], DeepSHAP [28], and Layer-wise Relevance Propagation (LRP) [20].
Most of the XAI frameworks evaluated in the remainder of this paper fall precisely within the taxonomic intersection of post-hoc, local methods that utilize a feature attribution output modality derived through propagation-based mechanisms.
3. Related works
Our work introduces a metric-driven framework to quantitatively evaluate Explainable AI (XAI) methods against human visual attention. To contextualize this contribution, this section reviews the existing literature on explainability across CNN, ViT, and Vision Mamba architectures. As will be shown, while these prior studies explore model transparency, they do not incorporate empirical gaze-based validation, relying instead on qualitative visual inspections.
3.1. Explainable AI for CNNs
Given the “black-box” nature of deep neural networks, several studies in the literature have addressed this issue, seeking to make the decisions made by different models more transparent and reliable. Among these, some studies propose new explainability techniques or apply existing ones to validate different models.
One of the most popular Explainable AI (XAI) approaches is Gradient-weighted Class Activation Mapping (Grad-CAM) [22]. This approach uses the gradients flowing through the final convolutional layer to produce a gradient-weighted class activation map highlighting the regions of the image that most influence the target prediction. Formally, let , , denote the feature maps of the final convolutional layer, and let . Grad-CAM computes the neuron importance weights via global average pooling of the pre-softmax logit gradients:
with the class logit. The attribution operator combines these feature maps linearly, discarding negative contributions via a ReLU activation:
where denotes bilinear upsampling from the feature-map lattice to the input lattice . Two structural limitations discussed in the remainder of this section follow directly from Eq. (9): the ReLU discards negative evidence, and the intrinsic resolution of the explanation is bounded above by , so that the spatial granularity of the map is dictated by the architecture rather than by the attribution method. While initially popularized in medical imaging to make decisions more transparent, it is increasingly applied to diverse computer vision tasks. For instance, a recent study by Goyal et al. [29] successfully leveraged Grad-CAM to evaluate , a hyperparameter-optimized CNN for eye gaze classification. By analyzing Grad-CAM heatmaps, the authors were able to diagnose why baseline Transformers and CNNs failed: while accurately focused on essential features like the iris and eye corners, competing models missed these critical areas. Our work builds upon this premise by formalizing the comparison: rather than relying on qualitative visual inspection, we introduce a rigorous quantitative framework that uses human gaze data as a ground truth to systematically measure the fidelity of these architecture-specific saliency maps.
For instance, the study in [30] demonstrates how, in the context of action recognition, Grad-CAM allows the validation of a multimodal approach based on InceptionV3, ResNetV2, and DenseNet-121. Using Grad-CAM, the authors report that it was possible to understand how the multimodal model focused on regions strictly related to actions and movement, even under variable environmental conditions. Grad-CAM has proven to be an explainability technique capable of distinguishing itself from other techniques for its ability to produce more detailed and robust heat maps.
In [12], the limitations of Grad-CAM when used in non-CNN architectures are highlighted. This study compares the results obtained by different ViT architectures (such as ViT-l-16, ViT-l-32, ViT-h-14) and CNNs (such as ResNet-50, EfficientNet-B5, VGG-16, Inception-V3) in the field of Disease Classification. The study highlights that ViTs, compared to CNNs, are not suitable for use with Grad-CAM, despite being able to obtain more precise results than CNNs thanks to their ability to capture long-range dependencies. In particular, following an evaluation by experts in the domain in which the experiments were conducted, the visualizations generated by CNNs are more coherent and consistent with human perceptions. Even for CNNs, the heatmaps generated by Grad-CAM fail to capture small regions of interest, underscoring this limitation. The study thus demonstrates the non-universality of Grad-CAM, emphasizing the importance of adapting XAI techniques to non-CNN architectures and the need to adapt Grad-CAM to detect small relevant regions.
In addition to validating the reliability of the models, Grad-CAM was also used in [31] to highlight the structural weaknesses of some CNNs (such as Inception-V3, XceptionNet, and VGG-19). Experiments have shown that each structure has specific weaknesses, for example, Inception-V3 tends to overfit. In the same study, they highlight the
M. Stefani et al.: Preprint submitted to Elsevier
Page 5 of 26 need for different approaches, agreeing with the discussion in [12]. The use of model-agnostic methods such as Local Interpretable Model-agnostic Explanations (LIME) [19] and SHapley Additive exPlanations (SHAP) [32] can also provide explanations at the global level, capabilities that methods based solely on backpropagation cannot provide. To overcome the limitations of Grad-CAM, which only analyzes the last convolutional layer and is therefore not robust to fine details, they propose the use of Layer-wise Relevance Propagation (LRP) [20]. LRP is another XAI technique that, unlike coarser methods, provides a detailed pixel-wise visualization by redistributing the prediction score layer-by-layer via a backward pass. Using specific rules such as the -rule to ensure numerical stability, LRP effectively propagates the prediction relevance down to the single raw pixels of the input. Denoting by the activation of neuron in layer , by the weight connecting it to neuron in layer , and setting , the -rule redistributes relevance according to:
where the stabilizer prevents the quotient from diverging when the denominator vanishes. The price is that the conservation law of Eq. (7) holds only approximately, since the relevance carried by weakly activated paths is absorbed by ; the choice of therefore governs an explicit trade-off between numerical stability and completeness of the attribution. An analysis in [21] shows that there is no single ideal rule for propagating information with LRP. For this reason, it requires in-depth knowledge of the model in which it is applied and, consequently, the results obtained are subjective with respect to the models and data used. Because of this limitation, LRP cannot be directly applied to any model but requires a manually designed composite strategy.
The channel importance weights are then obtained by applying a softmax transformation across all channels, , which are then combined exactly as in Eq. (9). This methodology effectively avoids gradient saturation and noise issues, often producing more faithful visual explanations in deeper networks, since depends on only through forward evaluations; the cost is additional forward passes per explanation.
Another approach in the literature that is gradient-free is Ablation-based Class Activation Mapping (Ablation-CAM) [33]. It determines the importance of each feature map by systematically “switching it off” to understand how the target class’s prediction score drops. In other words, through ablation analysis, this approach resets each feature map and measures the subsequent drop in the target class’s score. Writing for the class logit obtained after zeroing the -th feature map, the weights of Eq. (8) are replaced by the normalized ablation slope
which is a finite-difference surrogate of evaluated over the full ablation interval rather than in an infinitesimal neighborhood. By quantifying this direct impact, Ablation-CAM produces localization maps that are robust to gradient instability and, in most cases, more intuitive for identifying discriminative regions.
3.2. Explainable AI for ViTs
While the XAI techniques highlighted previously have proven effective for CNN architectures, their application to newer architectures is not straightforward. As discussed in the previous subsection and highlighted in [12], methods designed for CNNs struggle to adapt to models based on different prediction mechanisms, such as Vision Transformers (ViTs).
The authors of [34] highlight the lack of research in the literature on the explainability of ViTs. Indeed, one critical aspect is that, unlike CNNs, these types of models lack a clear method for visualizing their attention maps, making it difficult to find a method that makes their predictions as transparent as possible. However, it has been pointed out that the dimension used by the transformers' attention mechanism corresponds to that of the input sequence, and thus the attention mechanism can be easily visualized. It is precisely based on this insight that one of the most popular explainability approaches, called Attention Rollout [35], was introduced to accurately estimate the attention of ViTs. Alongside this, another widely used method, as in CNNs, is LIME [19], which generates local and interpretable models to explain each prediction. More recently, Layerwise Relevance Propagation for Transformers (TransLRP) [36] has been proposed, which allows aggregation of backward gradients and LRP across all layers and heads of attention modules to derive explanatory relevance. The authors of [34] compare these three explainability approaches for ViTs in a medical imaging task by analyzing the sensitivity and faithfulness of ViTs. Their results show that TransLRP outperforms the other two approaches in terms of faithfulness and sensitivity. This indicates that this approach produces features that are highly correlated with the model's predicted outcome. The results obtained by LIME are consistent across the different images analyzed, but they are not always accurate. Meanwhile, the attention rollout results appear to be excessively complex and sparse.
To address these issues, authors in [37] argue that methods like Attention Rollout and standard LRP are insufficient for Transformers. They point out that Rollout relies on simplistic assumptions of linearity that fail to distinguish between positive and negative contributions, often highlighting irrelevant tokens. Similarly, they note that standard LRP suffers from numerical instabilities due to the non-positive values inherent in GELU activations and skip connections. Consequently, they propose a novel solution based on the
M. Stefani et al.: Preprint submitted to Elsevier
Page 6 of 26
Deep Taylor Decomposition (DTD) principle, which facilitates class-specific relevance propagation that effectively handles these non-linearities and preserves total relevancy across layers. Concretely, let be the number of encoder blocks and let be the attention matrix of block over the patch tokens plus the [CLS] token. Denoting by the gradient of the target logit and by the DTD relevances of the same matrix, the method builds a per-block, gradient-weighted relevance map and composes the blocks multiplicatively,
(13)
where removes the negative contributions that make plain rollout ambiguous and averages over the attention heads. The explanation is the [CLS] row of restricted to the patch tokens, , reshaped onto the token grid and upsampled to . The identity term in Eq. (13) accounts for the residual connections, and its omission is exactly what makes naive attention visualization unfaithful. We refer to this operator as ViTLRP in the remainder of the paper.
3.3. Explainable AI for Vision Mamba
Moving beyond ViTs, a more recent architecture is represented by Mamba models, which are based on State Space Models (SSM) [38], aiming to be an alternative to Transformers for long-context modeling. At its core, a continuous-time SSM maps a 1D input signal sequence to an output sequence through a latent state governed by the linear system:
where , , and . Discretizing Eq. (14) via a Zero-Order Hold (ZOH) with a step size parameter yields the discretized system matrices:
which defines the linear recurrence evaluated during the forward pass:
The defining innovation of Mamba is selective context processing: the parameters are input-dependent, computed as learned linear projections of the current token input , i.e., , , and . Two key theoretical properties follow from this formulation. First, unrolling the recurrence in Eq. (16) expresses the output as , establishing an implicit causal attention operator driven by a data-dependent kernel. Second, because explicitly depend on , the recurrence becomes non-linear (bilinear) in . This input dependency directly violates the linear conservation axiom in Eq. (7), necessitating dedicated relevance propagation rules for state-space vision models. Despite their growing adoption, to our knowledge, the literature contains a limited number of studies that thoroughly examine XAI for Mamba models. Among these, we find [39], in which the authors introduce an in-depth comparison of the structural differences between the Transformers and the Mamba SSM. Specifically, the authors illustrate that the Mamba layer can be reformulated as an implicit form of a causal self-attention mechanism. While Mamba does not have an explicit mechanism to reveal where it is “paying attention”, this reformulation allows for the application of interpretability techniques similar to those traditionally used for Transformer-based models. They therefore propose an approach called Mamba-Attention, which provides greater transparency into the model’s internal reasoning process. In [40], the authors analyze the use of LRP for the Mamba architecture. They highlight critical theoretical limitations arising from Mamba’s distinct architectural components, specifically the Smooth Sigmoid Linear Unit (SiLU) activation function, the selective State Space Model, and the multiplicative gating applied to the SSM output stream. The SiLU activation function is defined as , where , providing a smooth, non-monotonic nonlinearity. The origin of these limitations can be made precise. A selective SSM block maps an input sequence to an output sequence via the recurrence in Eq. (16), followed by a multiplicative gating operation , where denotes the gate projection and represents the channel-wise Hadamard product. Relevance propagation through the recurrence itself is unproblematic, because it is linear once the discretized operators are treated as fixed forward parameters. Conservation is instead broken at every bilinear product node , since a symmetric decomposition assigns and therefore doubles the total relevance at each such node, and analogously at the SiLU, whose factorization is itself bilinear. MambaLRP restores Eq. (7) by treating the gating factor as a constant multiplier, i.e. by detaching it from the backward graph and enforcing:
so that relevance flows exclusively along the value path and is preserved layer by layer. The same treatment applied to inside the SiLU makes the activation effectively linear in the backward pass. The authors propose modifications to the LRP framework to accommodate these unique architectural elements of Mamba.
In [41], the authors attempt to address a fine-grained interpretability problem in Mamba models, going some way towards addressing the limitations previously exposed in [40]. Specifically, they seek to understand how these models selectively process token-level sequences across network layers. The approach presented is called LaTIM, a novel token-level decomposition method that reformulates the SSM computation to enable token-by-token analysis,
M. Stefani et al.: Preprint submitted to Elsevier
Page 7 of 26 allowing it to adapt attention-based interpretability techniques such as Aggregation of Layer-wise Token-to-Token Interactions (ALTI) [42]. Based on experiments conducted on tasks such as machine translation and retrieval-based generation, a direct comparison with the previously cited [39] and [40] studies is also proposed. The results obtained highlight the validity of the presented approach, demonstrating that the resulting heatmaps are more informative than those generated by MambaLRP and Mamba-Attention (which capture the general structure but are not precise in fine-grained analysis). The results suggest that Mamba's memory limitations in long contexts arise from a sparse and weak focus on relevant tokens. The main limitation of LaTIM is that, due to the nonlinearity introduced by SiLU, token decomposition requires an approximation strategy. While this is empirically valid, an exact decomposition would require model modifications and retraining. Consequently, improving the robustness and reliability of Mambas remains an open problem.
A recent comprehensive survey by [43] analyzes the paradigm shift across CNNs, ViTs, and Mamba models. The authors highlight the limitations of CNNs in modeling long-range dependencies and context, a limitation addressed by ViTs, which, however, require large computational resources. Since Mamba's SSM is capable of modeling long-range dependencies while maintaining linear complexity, the authors define Mamba as a combination of RNNs and CNNs. In [43], the first Mamba model equipped with explainability approaches for medical tasks is proposed. Regarding XAI problems, they use t-SNE (t-distributed Stochastic Neighbor Embedding) and Grad-CAM to improve the model's reliability. The results obtained confirm Mamba's superior ability to extract more representative and discriminative features compared to CNN and ViT.
3.4. Gaze-based Explainable AI
A crucial frontier in XAI is the quantitative validation of saliency maps using human visual attention as a ground-truth benchmark. While many studies, such as Alqutayfi et al. [12], rely on qualitative expert assessments to validate model focus, there is a growing shift toward objective metrics. Ruiu et al. [13] formalized this by using similarity measures (e.g., Jensen-Shannon) to compare ViT attention with human fixations, though their scope was limited to facial analysis. The application of gaze data varies significantly in the literature. Some works, like Kang et al. [14], use gaze-alignment metrics (LPIPS, cosine similarity) to validate how CNNs perceive urban environments. Others, such as Govil et al. [17], integrate human attention directly into the training process to supervise the model's gaze.
A similar work by Hwu et al. [44] explores the correlation between human eye gaze and visual explanations generated via LRP in the domain of autonomous driving. By formally treating human gaze heatmaps as a quantitative ground truth, they measure the alignment of model attention across different training stages using correlation metrics such as Cosine Similarity and Spearman's rank. Furthermore, they observe that despite producing heatmaps that are spatially more diffuse and noisy than human gaze, LRP has the potential to identify task-relevant stimuli in an emergent manner, emphasizing both low-level and object-based features without relying on explicit object segmentation or bounding box labels. However, while their study quantitatively demonstrates that highly task-specific models produce saliency maps more aligned with human attention, their analysis remains strictly limited to a single CNN architecture (VGG16).
In [45], Kumar et al. extended gaze-based validation to the temporal domain by comparing human fixations with the attention maps of a CNN+Transformer model trained on video memorability. Similarly to Hwu et al. [44], they treat human gaze as a quantitative benchmark, utilizing metrics such as AUC-Judd and Normalized Scanpath Saliency to show how models naturally mirror human spatial attention. Their analysis goes further by employing panoptic segmentation to reveal a shared semantic hierarchy: both humans and models prioritize “things” (discrete objects) over “stuff” (amorphous background). Their work shows how, despite no architectural bias, the model’s emergent behavior aligns with the human tendency to assign greater importance to the initial frames of a visual event.
In the next sections, Grad-CAM, LRP, Score-CAM, Ablation-CAM, and other XAI methods are applied to different architectures, including CNN, ViT, and Mamba, to compare and validate their results. The goal is to identify which XAI approach is best suited for each architecture and, if necessary, determine whether there is an overall superior approach.
4. Datasets
In this study, we selected datasets from completely different domains to evaluate different models. In particular, the datasets also include, for each sample, gaze heatmaps recorded for each image via eye-tracking. This choice is not accidental, since the study of the human gaze is a key element in understanding the extent to which models can replicate human perceptual processes.
The importance of having data relating to the human gaze lies in the large amount of information they contain. Given the overwhelming volume of data and objects around us, it is necessary to ensure that the available resources are dedicated to what is most important to understand the context in which we find ourselves, since any model, whether computational, biological or digital, has limited capabilities.
For this reason, in recent years the demand for data of this type has grown significantly in the fields of computer vision, natural language processing, decision-making learning, and robotics. In the field of computer vision, in particular, it is essential to extract the most “salient” visual characteristics from images [46].
However, since eye-tracking devices and software are expensive, datasets providing this type of freely accessible data are scarce in the literature. Therefore, in the following,
M. Stefani et al.: Preprint submitted to Elsevier
Page 8 of 26 we describe in more detail the datasets used in this study, which include annotations of human gazes in support of our analysis.
4.1. CUB dataset
This dataset consists of 11,788 images (448 × 448) belonging to 200 species of birds (about 60 images for each species) [47]. It was chosen because it has been widely used in several computer vision and explainable AI fine-grained classification tasks [48, 49, 50] The peculiarities of this dataset lie in the local differences between each class, consequently making human attention more unified than when observing significantly different classes that have scattered differences.
Regarding the human gaze data, those provided by [51] were used. These were collected and analyzed using the Tobii Spectrum Eye Tracker (1200 Hz) with chin support to ensure greater precision during eye recordings. Twenty-five subjects participated, all with no specific knowledge of ornithology, to collect the gaze data. In particular, each participant is shown two images belonging to different classes but with similar characteristics to each other, and must observe the distinctive differences between them. In a second phase, a single photo belonging to one of the two previous classes is shown, and the participant must classify the image. This second phase lasts only 3 seconds, so that the participant focuses only on the salient areas of the image. The raw gaze data is preprocessed to extract fixation locations using the Velocity-Threshold Identification (I-VT) algorithm [52]. The resulting fixation points offered in the dataset include coordinates and duration information. Based on this information, saliency maps for human gaze are generated. More information can be found in the original paper [51]. It is worth noticing that relying on non-expert participants introduces a potential bias related to the specific image pairs shown during the sessions. We hypothesize that, while an ornithologist would possess a priori knowledge of which anatomical details to observe, novices may rely entirely on the immediate visual comparison. Consequently, the precision of their attention is highly dependent on the similarity of the compared birds; comparing highly similar species might guide their gaze toward precise, discriminative features, whereas comparing more visually distinct species could result in a more scattered attention.
4.2. CXR dataset
This dataset consists of 1083 chest x-ray images (3000×3000) from the MIMIC-CXR dataset [53, 54]. The images are classified into three distinct categories: Normal (indicating a healthy condition), Pneumonia, and Congestive Heart Failure (CHF). This dataset was selected because it differs significantly from the one described in Subsection 4.1, allowing us to evaluate the same models and explainability methods within a medical domain. Many studies [55, 9] have used explainability techniques to validate classification results produced by neural network architectures, without having access to ground-truth human gaze data to assess the findings. Instead, for the creation of this dataset, the fixation data were acquired using a Gazepoint GP3 eye-tracking system (60 Hz sampling rate) mounted on a monitor with a resolution of . The data collection involved a single American Board of Radiology certified radiologist with over five years of experience. To ensure an objective visual assessment, the expert performed a “cold reading” of 1,083 frontal chest X-rays, blinded to the patients’ specific clinical history aside from the emergency department setting. The recording process was divided into sessions of 30 cases to minimize fatigue, with a 9-point calibration procedure performed at the beginning of each session to ensure tracking accuracy. More information can be found in the original paper [53].
4.3. Uniss-FGD dataset
This dataset introduces a completely different domain focusing on human faces and expressions. It consists of 120 high-quality facial images selected from the Karolinska Directed Emotional Faces (KDEF) database [56, 13]. In the following, we use the term KDEF-FGD to refer to the dataset comprising both the images and their corresponding human gaze annotations. The images depict 40 different individuals (20 female and 20 male), each displaying three distinct expressions: happy, sad, and neutral. The inclusion of this dataset serves to evaluate how models and explainability methods behave when confronted with human faces, a highly salient stimulus that naturally drives human visual attention. The human gaze data were collected using a Tobii Pro TX300 Eye Tracker, which ensures high precision with a sampling frequency of 300 Hz. A total of 20 observers (10 female and 10 male), recruited among university students and academic staff, participated in the recording sessions. During the experiment, participants were asked to freely view the sequence of faces, with each image displayed on the screen for exactly 3 seconds. This free-viewing task, without specific recognition constraints, allows capturing natural human attention patterns as they vary across different facial expressions [13]. Notably, since recognizing basic human emotions does not require specific prior training or domain expertise, relying on a general audience reliably reflects innate human visual processing. However, it is essential to consider the demographic constraints of the dataset, as the original study highlights that both culture and age significantly influence visual attention patterns on faces. Since the data were predominantly gathered from a cohort of young Western adults (mostly aged 19–24), the resulting gaze patterns might not generalize to non-Western populations or to different age groups, such as children and the elderly [13]. The raw gaze data were then processed to extract precise fixations and saccades.
5. Models
Regarding the CNN used for the experiments, a ResNet-50 pre-trained on ImageNet [60] was used. This choice was dictated by the fact that through skip connections, the gradient flows more easily during backpropagation. This solves the vanishing gradient problem that can affect deeper
M. Stefani et al.: Preprint submitted to Elsevier
Page 9 of 26
Table 1 Dataset details.
| Dataset | Task | Classes | Training/Test Nums | Reference | Gaze Download Link |
|---|---|---|---|---|---|
| CUB-200-2011 | Birds Classification | 200 | 5995/5794 | [57] | [58] |
| CXR | Chest X-ray Classification | 3 | 976/107 | [53] | [59] |
| KDEF | Facial Emotion Classification | 7 | 3920/980 | [56] | [13] |

(a)
(b)
(c)
(d)
(e)
(f)

(g)
(h)
(i)
(j)
(k)
(l)

(m)
(n)
(o)
(p)
(q)
(r)
Figure 1: Qualitative comparison of the datasets. CUB: (a) Brown Creeper, (b) Cardinal, (c) Painted Bunting, (d) Yellow Breasted Chat, (e) Pelagic Cormorant, (f) Eastern Towhee. CXR: (g) No acute cardiopulmonary process, (h) Stable mild pulmonary edema and moderate cardiomegaly, (i) Mild pulmonary edema, (j) Mild pulmonary vascular congestion and cardiomegaly, (k) No pneumonia. There is mild asymmetric pulmonary edema in the left lung, (l) Mild to moderate pulmonary edema. KDEF: (m) Happy Female, (n) Happy Man, (o) Neutral Female, (p) Neutral Male, (q) Sad Female, (r) Sad Male.
networks, such as VGG. To correctly use the network with the different datasets, the last layer (adapted to the 1000 ImageNet classes) was removed and replaced with a new linear layer to classify the required classes. The new layer is initialized with Kaiming (He Initialization) to maintain stable variance at the beginning of training [61]. This method accounts for the non-linearity of ReLU activation functions by scaling the weights according to the number of input units, thereby preventing the signal magnitude from diminishing as it propagates through the final stages of the network. Images are resized to pixels and augmentation is performed only with random resized crop and random horizontal flip. To analyze and understand network decisions, the XAI techniques used are Grad-CAM [22], Score-CAM [62] and Ablation-CAM [33], i.e. the operators defined in Eqs. (9), (11) and (12), all instantiated on the output of the last convolutional stage ( at the input resolution used here).
Regarding Vision Mamba, we used the ViM-Base model pretrained on ImageNet-1K, whose layers implement the selective recurrence of Eq. (16) applied to the sequence of image patches scanned along both directions. We also experimented with smaller variants (e.g., ViM-Tiny and ViM-Small); however, their accuracy on the evaluated datasets was substantially lower, preventing a meaningful analysis of their explainability. For Vision Mamba fine-tuning, different steps are performed:
-
Input: To ensure compatibility between the pretrained model and the new architecture, the positional embeddings are interpolated to match the spatial resolution required by the current patch configuration. The extra tokens (such as class tokens) are preserved, while only the spatial positional tokens are reshaped and resized using bicubic interpolation. This procedure allows the model to reuse pretrained positional information even when the number of patches differs from that of the original checkpoint (in our experiments, from to ).
-
Output: The last layer was removed and replaced by a new linear layer to classify the required classes. Xavier uniform initialization was applied to initialize these new model parameters. This choice accounts for the linear transformations and gating mechanisms of the
M. Stefani et al.: Preprint submitted to Elsevier
Page 10 of 26
Mamba architecture. By preserving signal variance across the state-space sequences, Xavier initialization prevents parameter saturation and ensures stable gradient flow, which is critical for balancing the dynamics of the classification head with the pretrained SSM layers.
- Inner layers: All model parameters were frozen except for the head and the [CLS] token. In additional experiments, we explored partially unfreezing only the SSM layers, as well as applying LoRA (Low-Rank Adaptation) [63], a parameter-efficient fine-tuning technique, to the projection layer; however, these strategies did not yield significant performance improvements.
We used the Adam optimizer with decoupled weight decay regularization [64], rather than the classic stochastic gradient descent with momentum. To analyze and understand network decisions, the XAI technique used is MambaLRP [40], with the conservation-preserving rule of Eq. (17).
Regarding Transformer-based models, we adopted the ViT-Base architecture [11], pretrained on the ImageNet 2012 dataset. For this model, we followed a fine-tuning strategy similar to the one used for ViM-Base. In particular, we employed bicubic interpolation to adapt the positional embeddings, allowing the use of higher-resolution input images during the fine-tuning phase without losing spatial consistency. Moreover, to reduce the risk of overfitting and to preserve the rich visual representations learned during pretraining, we froze all the backbone layers of the network. To adapt the architecture to the target task, we replaced the original MLP head with a new linear classification layer projecting the representations to the class logits. Only the classification head and the [CLS] token were left trainable, enabling the model to adapt to the target task while keeping the majority of the pretrained parameters fixed (in tables 6-7 with name ViT-Base-F, where F stands for frozen). The same architecture is trained without freezing any parameters. The Adam optimizer with cosine annealing learning rate schedule was used. To analyze and understand the network's decisions, the XAI technique described in [37], referred to in this paper as ViTLRP, i.e. the operator of Eq. (13), is used.
The selection of vanilla architectures, namely ResNet-50, ViT-Base, and ViM-Base, rather than more complex, heavily optimized state-of-the-art variants, is a deliberate methodological choice driven by two primary factors. First, it ensures the isolation of the underlying computational paradigms (convolutional, attention-based, and state-space modeling, respectively) without introducing architectural biases or specialized modules that could compromise the comparative analysis. Second, the reliable application of XAI techniques remains an open challenge. Methods such as Grad-CAM and LRP rely on traceable gradient flows and standard structural assumptions to generate faithful attribution maps. Custom architectures risk violating these assumptions, making it difficult to discern whether an ambiguous saliency map stems from the model's opaque decision-making or a failure of the XAI algorithm itself. By utilizing these canonical baseline models, we guarantee a higher theoretical fidelity for the XAI methods, ensuring that our comparative evaluation reflects the true explainability of the core architectures.
6. Experimental Analysis
This section presents the core empirical evaluation of our study, aimed at quantifying the alignment between machine-generated saliency maps and human visual attention. To move beyond purely qualitative assessments, we deploy an experimental framework across three representative architectural families—CNNs, ViTs, and Vision Mamba—and test them across three distinct visual domains: fine-grained natural classification, medical diagnostics, and facial emotion recognition. By testing architecture-specific XAI methods against empirical human eye-tracking ground truth, we systematically isolate how distinct network designs, backbone freezing, and ensemble strategies affect the fidelity of model explanations.
6.1. Problem Formulation
We now make precise the object that the remainder of this section estimates. The notation is collected in Table 2 and is used consistently throughout the experimental analysis.
Definition 2 (Gaze dataset). A gaze-annotated dataset is a finite collection:
(18)
in which is the empirical fixation-density map recorded by an eye tracker on the stimulus , obtained by kernel-smoothing the fixation points weighted by their Dwell time. The set is partitioned into disjoint subsets .
The three datasets of Section 4 instantiate Definition 2 with different acquisition protocols, sampling frequencies, and observer populations; consequently, G is comparable within a dataset but not across datasets, a caveat we return to in Section 6.4.
Model parameters are obtained by empirical risk minimization of the categorical cross-entropy on the labels alone:
We write , and for the three architectural families of Section 5, and the feasible set encodes the
The total duration a user’s gaze or cursor remains focused on a specific region.
M. Stefani et al.: Preprint submitted to Elsevier
Page 11 of 26
Table 2 Summary of notation.
| Symbol | Meaning |
|---|---|
| pixel lattice and its size | |
| input space, label set, number of classes | |
| probability simplex in | |
| dataset and its train/test partition | |
| classifier, class logit, predicted label | |
| attribution operator (Def. 1) | |
| model saliency map | |
| human fixation-density map | |
| resampling, min-max scaling, simplex projection | |
| distributions induced by and | |
| similarity functional and alignment (Def. 3) | |
| Hadamard product, positive part |
training intervention under study (full fine-tuning, or backbone freezing as defined in Section 5). Crucially, G does not appear in Eq. (19): the gaze annotations are never observed by the learner, so any agreement measured a posteriori is an emergent property of the representation rather than the result of supervision. This is the formal difference between our protocol and gaze-supervised approaches such as [17, 65].
Definition 3 (Attention alignment). Write for the simplex over the pixel lattice, let be a similarity functional on (see Sec. 6.2), and let denote the normalization pipeline of Eq. (21) below. The alignment of the pair over a subset is
where is the saliency map of the predicted class.
Eq. (20) is the estimator reported, together with its empirical standard deviation, in Tables 6–7. With this notation, the experimental questions become unambiguous:
(Q1) Architecture: at a fixed domain, how does vary across , and ?
(Q2) Domain: how does vary across the three datasets at fixed architecture?
(Q3) Generalization: is the gap between and negligible, i.e. does the explanation generalize as the classifier does?
(Q4) Interventions: how do restrictions of (backbone freezing) and aggregation rules (ensembling, Eq. (34)) act on ?
Finally, replacing in Eq. (20) by the normalized saliency map of a second model yields the model-to-model agreement reported in Table 8, which separates inter-architecture divergence from human alignment: two models may both be poorly aligned with and yet agree with each other, or vice versa.
6.2. Similarity measures between saliency maps
To compare two saliency maps (one from our models and one from human gazes), we convert each map into a probability distribution and then compute a similarity or distance measure between them. This conversion is not a formality: the three functionals below are defined on the simplex, so the pipeline that transports a raw attribution map onto it determines which properties of the explanation survive the comparison. We therefore state it explicitly and then characterize the resulting estimators.
Normalization pipeline. Let be a raw attribution map, possibly supported on a lattice coarser than the input lattice (this is the case for the CAM operators of Eq. (9)), and let be the fixation-density map, provided as an 8-bit grayscale image with values in . We denote by the composition of the four steps
(i)
(ii)
(iii) (21)
(iv)
where is bilinear resampling onto and index pixels. The distribution associated with the human reference, , is obtained by the same pipeline, in which step (ii) acts as the identity because by construction. Step (ii) is likewise inactive for every operator whose output is non-negative by design, i.e. for all CAM variants (Eq. (9)) and for ViTLRP (Eq. (13)); it is effective only for MambaLRP, whose relevances are signed, and its role is discussed in Remark 1. By construction , so that and .
Remark 1 (Positive part). MambaLRP returns signed relevances, positive values denoting evidence for the predicted class and negative values denoting counter-evidence. Since human fixation densities are non-negative, no meaningful comparison of counter-evidence is possible, and step (ii) restricts the comparison to the class-supporting component of the explanation. This is a deliberate restriction of the hypothesis being tested, not a numerical artifact: what is measured for ViM is the alignment of with , and any evidence carried by is discarded for all architectures alike.
Throughout, we adopt the standard continuous extensions and , ensuring that all information-theoretic and ratio-based functionals defined below remain well-defined across the entire probability product space .
Following [13], we adopt the following metrics:
- Jensen-Shannon Similarity (JSS):
The Jensen-Shannon Divergence (JSD) measures the dissimilarity between two probability distributions
M. Stefani et al.: Preprint submitted to Elsevier
Page 12 of 26 and is defined as:
where [66] and is the Kullback–Leibler divergence, which we evaluate in base two:
Given this, the Jensen-Shannon Similarity (JSS) is defined as:
A JSS value close to 1 indicates high similarity between the two saliency maps. In summary, this metric aims to quantify the similarity between the entire probability distributions, indicating whether the global high-attention areas (saliency peaks) are shared between the model and humans.
- Chi-square Similarity (CSS): It can be seen as a normalized variant of Chi-square distance, which measures the divergence between two distributions. It is computed as:
A value close to 1 indicates high similarity. This metric heavily penalizes discrepancies between and when they occur in areas where the total saliency activity is low, thus emphasizing accuracy even in less globally salient details.
- Pearson Correlation Coefficient (PCC): The Pearson correlation coefficient measures the linear correlation between two distributions, treated here as two real-valued signals indexed by the pixel lattice:
where and are the spatial means. A useful consequence of step (iv) of Eq. (21) is that exactly, so that Eq. (26) compares two centered signals of identical mean and PCC is entirely determined by the spatial structure of the two maps. A value of PCC close to 1 indicates a strong positive correlation between the two saliency maps. In general, a high value indicates that salient and non-salient points occur in the same relative order and position, evaluating the structural alignment of the maps.
The three functionals are not redundant, and the following elementary observation makes the division of labor between them explicit.
Proposition 1 (Complementarity). Let . Then:
(a) JSS and CSS are separable, being sums of pointwise terms, and are invariant under any permutation of applied jointly to both arguments, but not under a monotone reparameterization of the intensity of a single argument;
(b) PCC is invariant under the affine maps with applied to either argument, hence it is blind to intensity scale and offset and measures only structural co-variation; (c) consequently, two maps supported on the same region but with unrelated intensity profiles may yield JSS, CSS 1 together with PCC 0, whereas two maps with proportional profiles on disjoint supports yield CSS = -1 with PCC near zero.
Statements (a) and (b) are immediate from Eqs. (24), (25) and (26), and (c) follows by combining them with the known facts and . In operational terms, JSS measures the agreement of the two distributions as a whole, CSS isolates the discrepancy of mass, and PCC isolates the agreement of spatial structure up to intensity. Reporting the three jointly is therefore what allows the dissociation observed on the medical dataset, where a model attains near-maximal JSS and CSS together with a vanishing PCC, to be interpreted rather than merely recorded (Section 6.4).
Aggregation. For a fixed pair , a fixed subset and a fixed functional , let be the per-image score. Tables 6–8 report:
(27)
in the form , where is exactly the empirical alignment of Eq. (20) and quantifies its dispersion over the images, i.e. the stability of the explanation across the domain. Agreement among the three functionals is assessed through the rank correlation:
i.e., Spearman’s coefficient, computed by applying Eq. (26) to the rank vectors of the per-image scores, which detects monotone rather than merely linear agreement and is insensitive to the different ranges established by the range of values of JSS and CSS.
6.3. Model validation
Before presenting the quantitative evaluation of the explainability methods, we first provide an overview of the classification capabilities of the trained models. The primary objective of this initial validation is to demonstrate that the baseline architectures, despite lacking the extreme optimizations of highly specialized state-of-the-art variants, achieve solid and competitive classification performance. Establishing this baseline is crucial, as it legitimizes the subsequent XAI benchmark: interpreting model attention
M. Stefani et al.: Preprint submitted to Elsevier
Page 13 of 26 against human gaze is only meaningful if the underlying model has learned robust and accurate representations of the data.
6.3.1. Classification Metrics
The AUC (Multi-Class OVR) metric is computed by applying the One-vs-Rest (OVR) strategy to the multi-class setting. For each class , a binary classifier is formed by considering class as the positive class and all other classes as the negative class. A ROC curve is then generated for each class, and its corresponding AUC value, denoted as , is computed. Denoting by and the positive and negative index sets and by the score assigned to class , the class-wise AUC admits the Mann–Whitney form:
(29)
i.e. it estimates the probability that a randomly drawn positive sample receives a higher score than a randomly drawn negative one, which is exactly the area under the corresponding ROC curve and makes the metric invariant to any strictly increasing transformation of the scores. The final multi-class AUC score is the average over all classes:
Consistent with the AUC computation, Precision, Recall, and F1-score are extended to the multi-class setting using the same One-vs-Rest strategy. For each class c, we compute the class-specific True Positives ( ), False Positives ( ), and False Negatives ( ). Here, represents samples correctly classified as c, represents samples incorrectly assigned to class c, and represents samples belonging to class c but misclassified as another class; in set notation:
The metrics for each class are defined as:
The F1-score for class c is the harmonic mean of Precision and Recall:
The final global performance metrics reported in Tables 3-5 are computed as the macro-average over all K classes (e.g., ). The macro-average weights every class equally regardless of its cardinality, which is the appropriate choice for CUB-200-2011, whose classes are nearly balanced, and a deliberately conservative one for CXR, where the class frequencies are not. KDEF's emotion classes are balanced by design (70 subjects 7 expressions), so the choice of averaging scheme is immaterial there.
6.3.2. Classification Results
The classification performance of the trained models, as evaluated on the test set, is reported in Tables 3-5.
When comparing our baseline classification results on the KDEF dataset (Table 5) to recent literature, it is important to contextualize state-of-the-art performance claims. For instance, the multi-domain fusion transformer proposed by Shu and Wang [67] achieves a remarkable accuracy of 99.7% on KDEF. This impressive performance is obtained through a 70/30 train-validation split tailored for model selection and hyperparameter tuning, which effectively optimizes the architecture for that specific data distribution. Additionally, their framework introduces a sophisticated multi-branch design incorporating spatial, channel, and frequency domain fusions. While highly effective for maximizing nominal accuracy, such architectural complexity can pose inherent challenges for certain XAI techniques when tracing gradient flows, as discussed in Section 5. Therefore, maintaining standard canonical baselines in our experiments represents a deliberate methodological choice to ensure the theoretical fidelity and interpretability of the generated saliency maps, prioritizing architectural transparency for explanatory purposes.
Ensemble Aggregation (Q4). We also investigated ensembles composed of pairs of neural networks, aiming to determine whether architectures with similar inductive biases lead to improved performance when combined, as well as investigating whether models exhibiting different explainability gazes can achieve improved classification performance when combined. We adopted a sum rule strategy for ensemble inference: given the softmax output vectors of each model, these were summed element-wise, and the final prediction was obtained by applying the arg max operator to the resulting vector. Formally, given M models with softmax outputs , the ensemble prediction is defined as:
where the normalization by M is immaterial for the arg max but makes the aggregate a member of , so that the ensemble is itself a classifier in F and Eq. (20) applies to it verbatim. We use M rather than K for the number of models to avoid a collision with the number of classes. Averaging posteriors attenuates the component of the estimation error that is zero-mean and uncorrelated across members, while leaving the shared bias untouched; the sum rule is therefore expected to help precisely when the errors of the members
M. Stefani et al.: Preprint submitted to Elsevier
Page 14 of 26
Table 3 Comparison with existing works on CUB-200-2011 dataset.
| Paper | Model | Accuracy (%) | Precision (%) | Recall (%) | F1 (%) | AUC (%) |
|---|---|---|---|---|---|---|
| [68] | InceptionV3 | 65.56 | 45 – 93 | 57 – 95 | 40 – 91 | - |
| [68] | MobileNet | 74.60 | 65 – 81 | 37 – 96 | 71 – 94 | - |
| [69] | ResNet50 | 84.05 | - | - | - | - |
| [70] | TransFG | 91.70 | - | - | - | - |
| Ours | Resnet50 | 84.48 | 85.00 | 84.57 | 84.45 | 99.70 |
| Ours | ViT-base | 87.59 | 88.19 | 87.71 | 87.46 | 99.76 |
| Ours | ViT-base-F | 83.71 | 84.09 | 83.68 | 83.58 | 99.76 |
| Ours | ViM-base | 84.31 | 85.22 | 84.34 | 84.18 | 99.62 |
| Ours | Resnet50 + ViT-base | 87.57 | 88.18 | 87.68 | 87.44 | 99.45 |
| Ours | Resnet50 + ViM-base | 82.19 | 83.13 | 82.23 | 82.05 | 99.30 |
| Ours | ViT-base + ViM-base | 88.51 | 89.10 | 88.57 | 88.43 | 99.47 |
| Ours | ViT-base + ViT-base-F | 88.68 | 89.21 | 88.77 | 88.57 | 99.73 |
are weakly correlated, which is the hypothesis empirically tested below.
Experimental results show that, on the CUB dataset, the ensemble composed of a fine-tuned Transformer with frozen and unfrozen backbone models achieved higher performance compared to the corresponding individual models. This indicates that combining models with the same architecture but different training strategies can effectively improve generalization. Additionally, the ensemble formed by ViT and Mamba architectures also yielded competitive results, suggesting that these two models provide complementary representations despite their architectural differences. In contrast, the ensemble combining CNN-based models and ViTs did not lead to performance improvements. This outcome suggests that the representations learned by these architectures may be less complementary in this setting, limiting the effectiveness of simple ensemble aggregation strategies. However, experiments on the KDEF-FGD dataset reveal a significantly different behavior regarding cross-architecture ensembles. Unlike in CUB, combining a CNN-based model with either ViTs or Mamba architectures led to substantial performance gains. Notably, the ResNet50 + ViM-base ensemble achieved the highest accuracy among our configurations at 99.29%, effectively outperforming the individual ResNet50 (96.32%) and ViM-base (97.24%) models. Similarly, the ResNet50 + ViT-base ensemble reached 99.08%. This indicates that for the KDEF-FGD domain, the local feature extraction of CNNs and the global context capture of ViT or ViM provide highly complementary representations, making simple ensemble strategies highly effective.
6.4. XAI Quantitative Results and Discussion
6.4.1. Metrics
Tables 6-7 provide evaluation metric results for each XAI method and its associated architecture, where the specific metrics are described in detail in Section 6.2. Unlike standard performance reporting, which typically focuses on the reserved test set, all reported metrics were computed using the entire dataset (including training, validation, and test sets), but each subset is shown separately. For KDEF-FGD, the gaze-annotated subset (120 images) was by design allocated entirely to the test partition (see Section 4.3); consequently, no gaze ground truth is available for the training split and Table 6 does not include KDEF-FGD rows.
The tables report the mean and standard deviation of each metric, i.e. the estimators and of Eq. (27). Additionally, a correlation matrix using the Spearman coefficient, Eq. (28), was computed for the three metrics, revealing a very strong relationship. This confirms that the results are consistent and not ambiguous. We stress, however, that a strong rank agreement is not a contradiction of Proposition 1: monotone concordance in aggregate is compatible with the pointwise dissociations characterized there, and it is exactly those dissociations that carry the architectural signal discussed below.
The saliency maps produced by the considered explainability methods are normalized and projected onto the simplex through the pipeline of Eq. (21) and subsequently compared with the human gaze ground truth, which is represented as grayscale images with intensity values in the range [0, 255] and scaled to [0, 1] prior to the evaluation. This normalization step is required to ensure a consistent scale across methods and to allow a meaningful quantitative comparison. Unlike other explainability methods and architectures, the MambaLRP approach produces saliency maps whose values lie in the interval . Positive values close to 1 indicate pixels that positively influence the predicted class, whereas negative values close to -1 correspond to pixels that provide counter-evidence or introduce confusion with respect to the selected class. However, in order to compare these saliency maps with the ground truth human gaze maps using the same evaluation criterion adopted for the other methods, a thresholding operation is applied: all negative values are set to 0, i.e. step (ii) of Eq. (21). In this way, only positively contributing regions are retained, ensuring consistency with the comparison protocol; the interpretive consequences of this choice are those stated in Remark 1.
M. Stefani et al.: Preprint submitted to Elsevier
Page 15 of 26
Table 4
Comparison with existing works on CXR dataset.
| Paper | Model | Accuracy (%) | Precision (%) | Recall (%) | F1 (%) | AUC (%) |
|---|---|---|---|---|---|---|
| [71] | GazeMTL trained by [72] | 78.50 | 78.60 | 78.10 | 77.90 | 88.70 |
| [73] | IAA trained by [72] | 78.50 | 78.00 | 77.40 | 77.60 | 90.00 |
| [65] | EffNet+GG-CAM trained by [72] | 77.57 | 77.00 | 77.20 | 77.00 | 88.80 |
| [72] | GazeGNN | 83.18 | 83.90 | 82.10 | 82.30 | 92.30 |
| Ours | Resnet50 | 78.50 | 78.04 | 76.77 | 77.03 | 89.75 |
| Ours | ViT-base | 81.31 | 81.16 | 82.09 | 81.27 | 89.89 |
| Ours | ViT-base-F | 73.83 | 72.76 | 71.68 | 71.08 | 83.31 |
| Ours | ViM-base | 63.55 | 63.52 | 63.32 | 61.88 | 81.64 |
| Ours | Resnet50 + ViT-base | 81.31 | 81.16 | 82.09 | 81.27 | 88.91 |
| Ours | Resnet50 + ViM-base | 64.49 | 64.36 | 64.46 | 63.66 | 79.03 |
| Ours | ViT-base + ViM-base | 77.57 | 77.75 | 77.79 | 77.02 | 89.72 |
| Ours | ViT-base + ViT-base-F | 80.37 | 79.80 | 80.41 | 79.90 | 88.67 |
Table 5
Comparison with existing works on KDEF dataset.
| Paper | Model | Accuracy (%) | Precision (%) | Recall (%) | F1 (%) | AUC (%) |
|---|---|---|---|---|---|---|
| [74] | CNN | 82.38 | – | – | – | – |
| [75] | Shallow CNN | 89.4 | – | – | – | – |
| [67] | AlexNet | 94.0 | 93.2 | 92.6 | 92.5 | – |
| [67] | VGG16 | 96.2 | 95.7 | 95.1 | 95.1 | – |
| [67] | DenseNet121 | 98.5 | 98.2 | 97.8 | 97.8 | – |
| [67] | EfficientNet-B0 | 98.7 | 98.4 | 97.9 | 98.0 | – |
| [67] | Resnet50 | 98.2 | 97.8 | 97.4 | 97.4 | – |
| [67] | ViT-B | 98.9 | 98.6 | 98.2 | 98.3 | – |
| [67] | ViT-L | 99.1 | 98.8 | 98.4 | 98.5 | – |
| [67] | MDFEFT (Proposed in [67]) | 99.7 | 99.6 | 99.2 | 99.3 | – |
| Ours | Resnet50 | 96.32 | 96.25 | 96.22 | 96.22 | 99.83 |
| Ours | ViT-base | 97.85 | 97.76 | 97.78 | 97.76 | 99.90 |
| Ours | ViT-base-F | 70.17 | 70.24 | 69.55 | 68.90 | 94.31 |
| Ours | ViM-base | 97.24 | 97.24 | 97.15 | 97.18 | 99.85 |
| [67] | Gimefive | 99.2 | 98.9 | 98.5 | 98.6 | – |
| [67] | Attention-Enhanced Ensemble | 99.4 | 99.1 | 98.7 | 98.8 | – |
| Ours | Resnet50+ViT-base | 99.08 | 99.09 | 99.08 | 99.08 | 99.81 |
| Ours | Resnet50+ViM-base | 99.29 | 99.30 | 99.29 | 99.28 | 99.66 |
| Ours | ViT-base+ViM-base | 99.18 | 99.19 | 99.18 | 99.18 | 99.99 |
| Ours | ViT-base+ViT-base-F | 99.08 | 99.09 | 99.08 | 99.08 | 99.83 |
It is important to clarify that this analysis does not aim to assess whether a specific architecture and technique combination is better simply because it resembles human behavior. Instead, the goal is to quantitatively measure the degree of difference between model attention and human gaze, and thus to evaluate how closely the model's visual focus aligns with that of humans. This comparison is conducted while acknowledging that gaze data across the different datasets are obtained using heterogeneous acquisition methodologies.
6.4.2. Analysis and discussion
Based on the quantitative evaluation reported in Tables 6-7, several key observations can be derived regarding the stability of explainability methods, the impact of model architectures, and the domain-specific challenges.
- Generalization and Robustness (Q3): Comparing the results between the train and test sets, we observe a high degree of consistency in terms of mean values and standard deviations across almost all metrics. Quantitatively, the discrepancy never exceeds 0.027 on CUB-200-2011 and 0.069 on CXR for any convolutional or Transformer configuration and any , i.e. at most one fifth of the corresponding within-split dispersion , so that the two estimates are statistically indistinguishable at the resolution afforded by the sample size. This suggests that the generated saliency maps are robust and do not suffer from overfitting, and the explainability methods capture intrinsic feature attributions that generalize well to unseen data. This behavior is expected, since a well-generalized model learns stable
M. Stefani et al.: Preprint submitted to Elsevier
Page 16 of 26 and meaningful patterns from the data, which are consistently reflected across both subsets.
One configuration departs from this pattern and we report it explicitly: ViM-base with MambaLRP on CXR shifts by 0.083, 0.140 and 0.126 in JSS, CSS and PCC respectively between the two splits, the first two gaps exceeding the corresponding on either split. Since the remaining eleven model-method pairs are stable and the deviation is confined to a single attribution operator, the effect is more plausibly ascribed to the numerical conditioning of the relevance-preserving rule of Eq. (17) on the selective recurrence than to a generic overfitting of the classifier. We return to this point in Section 7.
• Impact of Backbone Freezing (ViT-base-F) (Q4): As depicted in Figure 2, the ViT models with and without frozen internal parameters exhibit very different learning behaviors and focus on different regions of the input. From Tables 3-5, it can be observed that during fine-tuning, the Transformer with a non-frozen backbone achieves better performance on the test set. Allowing the attention layers to learn and adapt to the new task leads to improvements both in classification performance and in the quality of the explainability results. Nevertheless, a notable improvement according to explainability metrics is observed with the ViT-base-F variant compared to the standard ViT-base, particularly on the medical dataset (CXR). For instance, on the CXR test set, ViT-base-F achieves a Jensen–Shannon (JS) score of 0.6528 compared to 0.4822 for ViT-base. Since the two variants differ only in the feasible set of Eq. (19), namely , the comparison isolates backbone freezing as a controlled intervention in the sense of (Q4), and the +0.17 gain in JSS is obtained together with a loss in classification accuracy (73.83% against 81.31%). Alignment with human attention and predictive accuracy are thus not monotonically related, which is itself an argument for reporting the two separately. This indicates that preserving pre-trained feature representations via backbone freezing could yield more stable and semantically meaningful explanations in medical imaging contexts.
• Architecture- and Domain-Specific Behavior (Q1–Q2):
– CNNs (ResNet50): Demonstrate the most versatile performance, maintaining solid scores across both natural (CUB/KDEF-FGD) and medical (CXR) domains. However, on the medical dataset, gradient-based methods like GradCAM exhibit high variance ( for Chi-square), whereas activation-based methods like ScoreCAM offer superior stability ( ).
– SSMs (ViM-base): Exhibit a polarized behavior. While MambaLRP struggles on the natural image datasets, it achieves state-of-the-art localization scores on CXR (JS 0.82, Chi-square 0.87).
• Metric Divergence in Medical Imaging: On the CXR dataset, we observe a significant discrepancy between distribution-based metrics (JS, Chi-square) and correlation metrics (PCC). Specifically, MambaLRP achieves the highest JS scores but near-zero or negative PCC. This implies that while the model correctly identifies the region of interest (high overlap), the intensity distribution within the saliency map does not linearly correlate with human annotations. This is precisely the regime isolated by Proposition 1(c): with JSS = 0.8214 and CSS = 0.8742 the two distributions share their support almost entirely, whereas PCC = -0.0108 certifies that, once the common mean is removed, the residual spatial profiles are essentially uncorrelated. The observation is therefore not an inconsistency between metrics but the expected signature of a saliency map that is correct in where it looks and uninformative in how strongly it looks there. Reporting JSS alone, as is common practice, would have concealed the distinction. Conversely, ResNet50 with ScoreCAM offers the best trade-off, providing both accurate localization and reasonable correlation with human perception ( ).
Furthermore, we performed a pairwise comparison of the generated heatmaps to quantitatively evaluate how explanations differ across architectures on the test sets. Table 8 contains all the results obtained using GradCAM as an explainability technique for CNNs. Our analysis reveals three key insights:
• Domain Sensitivity: Explainability agreement is highly dependent on the visual domain. Models tend to converge on similar features for everyday objects (CUB) and consistently localized facial markers (KDEF-FGD), demonstrating that emotion recognition aligns closely with natural image processing. However, this agreement drops significantly when shifting to highly specialized medical diagnostics (CXR), where models diverge on critical diagnostic features.
• Architectural Alignment and Fine-Tuning Sensitivity: In natural domains, CNNs and standard Transformers focus on similar regions, with ResNet50 and ViT-base exhibiting high consistency on CUB (PCC 0.74). On human faces (KDEF-FGD), ResNet50 maintains this strong agreement, particularly with ScoreCAM (PCC 0.71). Conversely, fine-tuning Transformers on specific human-centric tasks (ViT-base-F) fragments their attention maps, causing a notable drop in correlation on KDEF-FGD (PCC 0.28) and shifting focus
M. Stefani et al.: Preprint submitted to Elsevier
Page 17 of 26

(a) Vit-base-F CUB Image

(b) Vit-base CUB Image

(c) Vit-base-F CXR Image

(d) Vit-base CXR Image
Figure 2: Qualitative comparison of the explainability outputs of a Vision Transformer with a frozen backbone during training (a) and (c) versus a non-frozen backbone (b) and (d).
away from the traditional morphological features prioritized by CNNs.
- Divergence of ViM: The ViM-base architecture produces fundamentally different saliency maps compared to ResNet and ViT. It shows low or negligible correlation with other models across all datasets, indicating a unique spatial attention mechanism. In particular, ViM-base yields completely divergent saliency maps on facial datasets, dropping to a negative correlation (PCC ). This reinforces the hypothesis that Mamba's state-space spatial attention operates on a fundamentally different visual logic compared to both CNNs and standard self-attention mechanisms, regardless of the visual domain. It is worth noting that this divergence is measured against the other models, not against the human reference, and that the two are logically independent: on KDEF-FGD, ResNet50 and ViT-base agree with each other (PCC ) and both align with G, whereas on CXR they disagree with each other (PCC ) while both remain weakly aligned with G. Model-to-model agreement is therefore not a proxy for human alignment, and the two quantities have to be estimated separately, as done in Table 8.
We acknowledge that our findings are based on three datasets, a scope directly constrained by the significant computational overhead of benchmarking multiple complex architectures and XAI pipelines simultaneously. To maximize robustness within this constraint, we intentionally selected three visual domains with highly divergent structural and semantic characteristics. While bounded in volume, these contrasting data regimes provide diverse testing environments that make the observed attention dynamics and architectural insights highly generalizable and, in our opinion, of strong interest to the XAI community.
6.5. Qualitative Analysis
Table 9 shows the explainability results for selected samples across the three datasets. As already discussed in Section 3, the Grad-CAM method is not suitable for the analysis of attention-based models such as Transformers, and therefore alternative techniques based on Layer-wise Relevance Propagation (LRP) have been adopted. The qualitative results clearly highlight substantial differences between these approaches. Grad-CAM typically operates on the last convolutional layer of a network. Since the feature maps at this stage have a much lower spatial resolution than the original input image, the resulting explanations are inherently coarse and require up-sampling, leading to blurred and low-resolution saliency maps. In contrast, LRP-based methods propagate relevance backward through all layers of the model down to the input space. This process enables the attribution of relevance directly at the pixel-level, resulting in high-resolution and more precise explanations. This difference explains why the visualizations obtained from Transformer-based models and Mamba architectures tend to focus on well-defined and localized regions of the image, as opposed to the more diffuse and coarse regions typically highlighted by Grad-CAM. For instance, on the CUB dataset, CNNs generally tend to focus on the entire bird body or on the head region. In contrast, Transformer-based architectures, when identifying specific bird classes, mainly rely on distinctive features such as the beak or particular wing color patterns, as shown in Table 9. This granular focus is intrinsically linked to the ViT architecture, which processes the input image as a sequence of fixed-size patches (specifically pixels). Unlike CNNs, where pooling layers progressively reduce spatial resolution, effectively aggregating features into coarser regions, the token-based representation of ViTs allows the self-attention mechanism to assign high relevance scores to individual patches. This capability enables the model to isolate and attend to minute details within specific regions without the blurring effect typical of upsampled convolutional feature maps. The effect is quantifiable rather than merely visual: the intrinsic support of a ViTLRP explanation is the token grid induced by P = 16 at the input resolution used here, against the feature-map lattice of Eq. (9) for the CAM family. The two operators therefore differ by a factor of four in the number of independently addressable cells, which upper-bounds the spatial detail an explanation can express irrespective of the faithfulness of the attribution rule. However, this behavior is highly image-dependent.
M. Stefani et al.: Preprint submitted to Elsevier
Page 18 of 26
Table 6
Explainability evaluation on train sets. KDEF-FGD is absent because its gaze annotations (120 images) were allocated entirely to the test set by construction; no gaze ground truth is available for the training split.
| Model | Dataset | Method | Jensen-Shannon | Chi-square | PCC |
|---|---|---|---|---|---|
| ResNet50 | CUB-200-2011 | GradCAM | |||
| ResNet50 | CUB-200-2011 | ScoreCAM | |||
| ResNet50 | CUB-200-2011 | AblationCAM | |||
| ViT-base | CUB-200-2011 | ViTLRP | |||
| ViT-base-F | CUB-200-2011 | ViTLRP | |||
| ViM-base | CUB-200-2011 | MambaLRP | |||
| ResNet50 | CXR | GradCAM | |||
| ResNet50 | CXR | ScoreCAM | |||
| ResNet50 | CXR | AblationCAM | |||
| ViT-base | CXR | ViTLRP | |||
| ViT-base-F | CXR | ViTLRP | |||
| ViM-base | CXR | MambaLRP |
Table 7
Explainability evaluation on test sets.
| Model | Dataset | Method | Jensen-Shannon | Chi-square | PCC |
|---|---|---|---|---|---|
| ResNet50 | CUB-200-2011 | GradCAM | |||
| ResNet50 | CUB-200-2011 | ScoreCAM | |||
| ResNet50 | CUB-200-2011 | AblationCAM | |||
| ViT-base | CUB-200-2011 | ViTLRP | |||
| ViT-base-F | CUB-200-2011 | ViTLRP | |||
| ViM-base | CUB-200-2011 | MambaLRP | |||
| ResNet50 | CXR | GradCAM | |||
| ResNet50 | CXR | ScoreCAM | |||
| ResNet50 | CXR | AblationCAM | |||
| ViT-base | CXR | ViTLRP | |||
| ViT-base-F | CXR | ViTLRP | |||
| ViM-base | CXR | MambaLRP | |||
| ResNet50 | KDEF-FGD | GradCAM | |||
| ResNet50 | KDEF-FGD | ScoreCAM | |||
| ResNet50 | KDEF-FGD | AblationCAM | |||
| ViT-base | KDEF-FGD | ViTLRP | |||
| ViT-base-F | KDEF-FGD | ViTLRP | |||
| ViM-base | KDEF-FGD | MambaLRP |
In the CXR dataset, we observe a distinct behavioral divergence between architectures regarding the scope of attention. CNN models tend to focus on broader anatomical regions, as evidenced in the Congestive Heart Failure (CHF) sample, where the heatmap covers the entire cardiac and pulmonary area. Conversely, Transformers and Mamba architectures display an extreme, highly localized focus. While this pixel-level specificity could be theoretically precise, it may prove less intuitive for radiologists diagnosing diffuse pathologies (e.g., lobar pneumonia or edema), where the disease manifests as a regional texture change rather than a focal point. Thus, the CNN’s approach of highlighting the “general area”, despite lacking edge precision, often appears more natural and aligned with the holistic review process typical of clinical practice.
Finally, the analysis of the KDEF-FGD dataset reveals further significant discrepancies between machine attention and human visual processing. As observed in Table 9, the Human Gaze reference concentrates more on the central region of the face. Across different emotional states, such as happy, sad and neutral, human subjects predominantly anchor their visual focus on the nose and the periocular area. This central fixation likely serves as an optimal pivot point for humans to rapidly process holistic facial cues. In contrast, the CNN-based saliency methods emphasize the lower facial regions, exhibiting strong coarse activations around the mouth, cheeks and cheekbones. This suggests that these convolutional models rely disproportionately on variations in mouth morphology to classify facial expressions, rather than the eye region preferred by humans. Meanwhile, the attention-based models exhibit behaviors similar to those
M. Stefani et al.: Preprint submitted to Elsevier
Page 19 of 26
Table 8 Explainability Comparison between Models on test sets.
| Model | Model | Dataset | Jensen-Shannon | Chi-square | PCC |
|---|---|---|---|---|---|
| ResNet50 | ViT-base | CUB-200-2011 | |||
| ResNet50 | ViM-base | CUB-200-2011 | |||
| ViT-base | ViM-base | CUB-200-2011 | |||
| ResNet50 | ViT-base | CXR | |||
| ResNet50 | ViM-base | CXR | |||
| ViT-base | ViM-base | CXR | |||
| ResNet50 | ViT-base | KDEF-FGD | |||
| ResNet50 | ViM-base | KDEF-FGD | |||
| ViT-base | ViM-base | KDEF-FGD |

Figure 3: Quantitative comparison of XAI metrics. Visual representation of the fidelity scores across different attribution methods and architectures. Raw values in Table 7.
observed in the previous datasets. ViTLRP continues to demonstrate its characteristic patch-level granularity, showing attention across multiple discrete facial landmarks simultaneously. MambaLRP, on the other hand, produces highly sparse point-like activations, suggesting that the model is focusing on isolated minute details and thus failing to capture the contiguous regional focus demonstrated both by human gaze and CNN models, further highlighting the gap between human visual strategies and current XAI outputs.
7. Conclusion
In this work, we presented a comprehensive comparative analysis of explainability across three distinct deep learning paradigms: CNNs, ViTs, and ViM, evaluating their alignment with human visual attention. By leveraging ground-truth gaze data from fine-grained natural image classification (CUB), medical diagnosis (CXR), and facial emotion classification (KDEF-FGD) tasks, we quantitatively evaluated model attention beyond qualitative visual inspection. Methodologically, we formulated the comparison as the estimation of the alignment functional of Definition 3 under an explicitly specified normalization pipeline (Eq. (21)), and we characterized the invariances of the three similarity estimators (Proposition 1). This apparatus is what turns several of the observations below from qualitative impressions into statements with a determinate meaning. Our results show that architectural inductive biases strongly affect explainability: CNNs exhibit more spatially distributed attention
M. Stefani et al.: Preprint submitted to Elsevier
Page 20 of 26 patterns, whereas ViTs display a more localized and fine-grained focus, a difference whose upper bound is fixed by the and intrinsic supports of the respective attribution operators. In addition, backbone freezing improves interpretability in medical imaging scenarios by preserving pretrained feature representations that yield more semantically meaningful explanations, although our results show that this gain in alignment is not accompanied by a gain in accuracy, so that the two objectives have to be traded off explicitly rather than assumed to coincide.
M. Stefani et al.: Preprint submitted to Elsevier
Page 21 of 26
Table 9 Qualitative Comparison of Explainability Methods.
| Description | Human Gaze | GradCAM | ScoreCAM | AblationCAM | ViTLRP | MambaLRP |
|---|---|---|---|---|---|---|
| CUB - Red Wing BlackBird | ||||||
| CUB - Least Auklet | ||||||
| CUB - Prothonotary Warbler | ||||||
| CXR - Pneumonia | ||||||
| CXR - CHF | ||||||
| CXR - Normal | ||||||
| KDEF-FGD - Happy | ||||||
| KDEF-FGD - Sad | ||||||
| KDEF-FGD - Neutral |
M. Stefani et al.: Preprint submitted to Elsevier
Page 22 of 26
References
[1] A. Holzinger, C. Biemann, C. S. Pattichis, D. B. Kell, What do we need to build explainable AI systems for the medical domain?, CoRR abs/1712.09923 (2017). arXiv:1712.09923. URL http://arxiv.org/abs/1712.09923
[2] European Commission, Proposal for a Regulation laying down harmonised rules on Artificial Intelligence (Artificial Intelligence Act) and amending certain Union legislative acts, COM(2021) 206 final (2021).
URL https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=celex%3A52021PC0206
[3] C. Panigutti, R. Hamon, I. Hupont, D. Fernandez Llorca, D. Fano Yela, H. Junklewitz, S. Scalzo, G. Mazzini, I. Sanchez, J. Soler Garrido, E. Gomez, The role of explainable ai in the context of the ai act, in: Proceedings of the 2023 ACM Conference on Fairness, Accountability, and Transparency, FAccT '23, Association for Computing Machinery, New York, NY, USA, 2023, p. 1139–1150. doi:10.1145/3593013.3594069.
URL https://doi.org/10.1145/3593013.3594069
[4] B. Lepri, N. Oliver, E. Letouzé, A. Pentland, P. Vinck, Fair, transparent, and accountable algorithmic decision-making processes: The premise, the proposed solutions, and the open challenges, Philosophy & Technology 31 (12 2018). doi:10.1007/s13347-017-0279-x.
[5] A. Di Marino, V. Bevilacqua, A. Ciaramella, I. De Falco, G. Sannino, Ante-hoc methods for interpretable deep models: A survey, ACM Comput. Surv. 57 (10) (2025). doi:10.1145/3728637.
[6] P. J. G. Lisboa, Interpretability in machine learning – principles and practice, in: F. Masulli, G. Pasi, R. Yager (Eds.), Fuzzy Logic and Applications, Springer International Publishing, Cham, 2013, pp. 15–21.
[7] Z. C. Lipton, The mythos of model interpretability, Commun. ACM 61 (10) (2018) 36–43. doi:10.1145/3233231.
[8] A. Barredo Arrieta, N. Díaz-Rodríguez, J. Del Ser, A. Bennetot, S. Tabik, A. Barbado, S. Garcia, S. Gil-Lopez, D. Molina, R. Benjamins, R. Chatila, F. Herrera, Explainable artificial intelligence (xai): Concepts, taxonomies, opportunities and challenges toward responsible ai, Information Fusion 58 (2020) 82–115. doi:https://doi.org/10.1016/j.inffus.2019.12.012.
[9] A. Singh, S. Sengupta, V. Lakshminarayanan, Explainable deep learning models in medical image analysis, CoRR abs/2005.13799 (2020). arXiv:2005.13799.
URL https://arxiv.org/abs/2005.13799
[10] A. Krizhevsky, I. Sutskever, G. E. Hinton, Imagenet classification with deep convolutional neural networks, in: Proceedings of the 26th International Conference on Neural Information Processing Systems - Volume 1, 2012, p. 1097–1105.
[11] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, N. Houlsby, An image is worth words: Transformers for image recognition at scale, CoRR abs/2010.11929 (2020). arXiv:2010.11929.
URL https://arxiv.org/abs/2010.11929
[12] A. Alqutayfi, W. Almattar, S. Al-Azani, F. A. Khan, A. Al Qahtani, S. Alageel, M. Alzahrani, Explainable disease classification: Exploring grad-cam analysis of cnns and vits, Journal of Advances in Information Technology 16 (2) (2025).
[13] P. Ruiu, M. Fadda, A. Lagorio, S. Nixon, M. Anedda, E. Grosso, M. I. Cadoni, Uniss-fgd: A novel dataset of human gazes over images of faces, IEEE Access 12 (2024) 75951–75964. doi:10.1109/ACCESS.2024.3406478.
URL https://doi.org/10.1109/ACCESS.2024.3406478
[14] Y. Kang, J. Chen, L. Liu, K. Sharma, M. Mazzarello, S. Mora, F. Duarte, C. Ratti, Decoding human safety perception with eye-tracking systems, street view images, and explainable ai, Computers, Environment and Urban Systems 123 (2026) 102356. doi:https://doi.org/10.1016/j.compenvurbsys.2025.102356. URL https://www.sciencedirect.com/science/article/pii/S0198971525001097
[15] L. Muttenthaler, K. Greff, F. Born, B. Spitzer, S. Kornblith, M. C. Mozer, K.-R. Müller, T. Unterthiner, A. K. Lampinen, Aligning machine and human visual representations across abstraction levels, Nature 647 (8089) (2025) 349–355.
[16] A. Roy, K. D. Gaikwad, A. J. Hude, J. S. Shinde, J. Parekh, H. R. Nagrani, Explainable ai (xai) for object detection and application to satellite imagery, IEEE Access 13 (2025) 185597–185623. doi:10.1109/ACCESS.2025.3624198.
[17] S. Govil, D. Stricker, J. Rambach, Drivergaze360: Omnidirectional driver attention with object-level guidance (2025). arXiv:2512.14266. URL https://arxiv.org/abs/2512.14266
[18] C. Rudin, Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead, Nature Machine Intelligence 1 (2019). doi:10.1038/s42256-019-0048-x.
[19] M. T. Ribeiro, S. Singh, C. Guestrin, " why should i trust you?" explaining the predictions of any classifier, in: Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, 2016, pp. 1135–1144.
[20] S. Bach, A. Binder, G. Montavon, F. Klauschen, K.-R. Müller, W. Samek, On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation, PLOS ONE 10 (7) (2015) 1–46. doi:10.1371/journal.pone.0130140. URL https://doi.org/10.1371/journal.pone.0130140
[21] G. Montavon, A. Binder, S. Lapuschkin, W. Samek, K.-R. Müller, Layer-wise relevance propagation: an overview, Explainable AI: interpreting, explaining and visualizing deep learning (2019) 193–209.
[22] R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, D. Batra, Grad-cam: Visual explanations from deep networks via gradient-based localization, in: Proceedings of the IEEE international conference on computer vision, 2017, pp. 618–626.
[23] M. Ancona, E. Ceolini, A. C. Öztireli, M. H. Gross, A unified view of gradient-based attribution methods for deep neural networks, CoRR abs/1711.06104 (2017). arXiv:1711.06104. URL http://arxiv.org/abs/1711.06104
[24] R. Mitchell, J. Cooper, E. Frank, G. Holmes, Sampling permutations for shapley value estimation (2022). arXiv:2104.12199. URL https://arxiv.org/abs/2104.12199
[25] J. T. Springenberg, A. Dosovitskiy, T. Brox, M. Riedmiller, Striving for simplicity: The all convolutional net (2015). arXiv:1412.6806. URL https://arxiv.org/abs/1412.6806
[26] G. Montavon, S. Bach, A. Binder, W. Samek, K. Müller, Explaining nonlinear classification decisions with deep taylor decomposition, CoRR abs/1512.02479 (2015). arXiv:1512.02479. URL http://arxiv.org/abs/1512.02479
[27] A. Shrikumar, P. Greenside, A. Kundaje, Learning important features through propagating activation differences, CoRR abs/1704.02685 (2017). arXiv:1704.02685.
URL http://arxiv.org/abs/1704.02685
[28] S. M. Lundberg, S. Lee, A unified approach to interpreting model predictions, CoRR abs/1705.07874 (2017). arXiv:1705.07874. URL http://arxiv.org/abs/1705.07874
[29] N. Goyal, M. S. Goraya, T. Singh, Cnns vs transformers: Confirmatory factor analysis for eye gaze classification with explainable ai, Computer Vision and Image Understanding 264 (2026) 104624. doi:https://doi.org/10.1016/j.cviu.2025.104624. URL https://www.sciencedirect.com/science/article/pii/S1077314225003479
[30] M. Jayamohan, S. Yuvaraj, A novel human action recognition using grad-cam visualization with gated recurrent units, Neural Computing and Applications 37 (17) (2025) 10835–10850.
[31] R. Mothkur, P. Soubhagyalakshmi, et al., Grad-cam based visualization for interpretable lung cancer categorization using deep cnn models, Journal of Electronics, Electromedical Engineering, and Medical Informatics 7 (3) (2025) 567–580.
[32] S. M. Lundberg, S.-I. Lee, A unified approach to interpreting model predictions, in: Advances in Neural Information Processing Systems,
M. Stefani et al.: Preprint submitted to Elsevier
Page 23 of 26
Vol. 30, 2017.
[33] H. G. Ramaswamy, et al., Ablation-cam: Visual explanations for deep convolutional network via gradient-free localization, in: Proceedings of the IEEE/CVF winter conference on applications of computer vision, 2020, pp. 983–991.
[34] P. Komorowski, H. Baniecki, P. Biecek, Towards evaluating explanations of vision transformers for medical imaging, in: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2023, pp. 3726–3732.
URL http://dx.doi.org/10.1109/CVPRW59228.2023.00383
[35] S. Abnar, W. Zuidema, Quantifying attention flow in transformers, arXiv preprint arXiv:2005.00928 (2020).
[36] H. Chefer, S. Gur, L. Wolf, Transformer interpretability beyond attention visualization, in: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2021, pp. 782–791.
[37] C. Hila, G. Shir, W. Lior, Transformer interpretability beyond attention visualization (2021). arXiv:2012.09838.
URL https://doi.org/10.48550/arXiv.2012.09838
[38] A. Gu, T. Dao, Mamba: Linear-time sequence modeling with selective state spaces, in: First conference on language modeling, 2024.
[39] A. A. Ali, I. Zimerman, L. Wolf, The hidden attention of mamba models, in: Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2025, pp. 1516–1534.
[40] F. Rezaei Jafari, G. Montavon, K.-R. Müller, O. Eberle, Mambalrp: Explaining selective state space sequence models, Advances in Neural Information Processing Systems 37 (2024) 118540–118570. URL https://doi.org/10.48550/arXiv.2406.07592
[41] H. Pitorro, M. V. Treviso, Latim: Measuring latent token-to-token interactions in mamba models, in: Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2025, pp. 24478–24493.
[42] J. Ferrando, G. I. Gállego, M. R. Costa-Jussà, Measuring the mixing of contextual information in the transformer, in: Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, 2022, pp. 8698–8714.
[43] Y. Yue, Z. Li, Medmamba: Vision mamba for medical image classification, arXiv preprint arXiv:2403.03849 (2024).
[44] T. Hwu, M. Levy, S. Skorheim, D. Huber, Matching representations of explainable artificial intelligence and eye gaze for human-machine interaction, arXiv preprint arXiv:2102.00179 (2021).
[45] P. Kumar, E. Khandelwal, M. Tapaswi, V. Sreekumar, Seeing eye to ai: Comparing human gaze and model attention in video memorability, in: 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 2025, pp. 2082–2091. doi:10.1109/WACV61041.2025.00209.
URL https://ieeexplore.ieee.org/abstract/document/10943352
[46] R. Zhang, A. Saran, B. Liu, Y. Zhu, S. Guo, S. Niekum, D. Ballard, M. Hayhoe, Human gaze assisted artificial intelligence: A review, in: C. Bessiere (Ed.), Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI-20, International Joint Conferences on Artificial Intelligence Organization, 2020, pp. 4951–4958, survey track. doi:10.24963/ijcai.2020/689. URL https://doi.org/10.24963/ijcai.2020/689
[47] P. Welinder, S. Branson, T. Mita, C. Wah, F. Schroff, S. Belongie, P. Perona, Caltech-ucsd birds 200 (2010).
URL https://www.researchgate.net/publication/46572499_Caltech-UCSD_Birds_200
[48] A. Dubey, O. Gupta, R. Raskar, N. Naik, Maximum-entropy fine grained classification, in: S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, R. Garnett (Eds.), Advances in Neural Information Processing Systems, Vol. 31, Curran Associates, Inc., 2018.
[49] L. A. Hendricks, R. Hu, T. Darrell, Z. Akata, Grounding visual explanations, in: V. Ferrari, M. Hebert, C. Sminchisescu, Y. Weiss (Eds.), Computer Vision – ECCV 2018, Springer International Publishing, Cham, 2018, pp. 269–286.
URL https://doi.org/10.1007/978-3-030-01216-8_17
[50] C. Chen, O. Li, D. Tao, A. Barnett, C. Rudin, J. K. Su, This looks like that: Deep learning for interpretable image recognition, in: H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, R. Garnett (Eds.), Advances in Neural Information Processing Systems, Vol. 32, Curran Associates, Inc., 2019.
[51] Y. Rong, W. Xu, Z. Akata, E. Kasneci, Human attention in fine-grained classification (2021). arXiv:2111.01628.
URL https://arxiv.org/abs/2111.01628
[52] A. Olsen, The tobii i-vt fixation filter, Whitepaper, Tobii Technology (2012).
URL https://connect.tobii.com/s/article/Gaze-Filter-functions-and-effects
[53] A. Karargyris, S. Kashyap, I. Lourentzou, J. T. Wu, A. Sharma, M. Tong, S. Abedin, D. Beymer, V. Mukherjee, E. A. Krupinski, M. Moradi, Creation and validation of a chest x-ray dataset with eye-tracking and report dictation for ai development, Scientific Data 8 (1) (2021) 92. doi:10.1038/s41597-021-00863-5.
URL https://doi.org/10.1038/s41597-021-00863-5
[54] A. E. W. Johnson, T. J. Pollard, S. J. Berkowitz, N. R. Greenbaum, M. P. Lungren, C. Deng, R. G. Mark, S. Horng, MIMIC-CXR: A large publicly available database of labeled chest radiographs, CoRR abs/1901.07042 (2019). arXiv:1901.07042.
URL http://arxiv.org/abs/1901.07042
[55] R. Mothkur, P. Soubhagyalakshmi, S. C. B., Grad-cam based visualization for interpretable lung cancer categorization using deep cnn models, Journal of Electronics, Electromedical Engineering, and Medical Informatics 7 (3) (2025) 567–580. doi:10.35882/jeeemi.v7i3.690.
URL https://jeeemi.org/index.php/jeeemi/article/view/690
[56] D. Lundqvist, A. Flykt, A. Öhman, Karolinska directed emotional faces, Cognition and Emotion (1998).
[57] C. Wah, S. Branson, P. Welinder, P. Perona, S. Belongie, The caltech-ucsd birds-200-2011 dataset, Tech. Rep. CNS-TR-2011-001, California Institute of Technology (2011).
URL https://data.caltech.edu/records/65de6-vp158
[58] Y. Rong, W. Xu, Z. Akata, E. Kasneci, Cubgaze: Human gaze data for fine-grained image classification, https://drive.google.com/drive/folders/10c6oLSH05xELa5Qy2i7hMOF9_wwTzvdb, dataset associated with the paper “Human Attention in Fine-Grained Classification” (2021).
[59] B. Wang, H. Pan, A. Aboah, Z. Zhang, A. Cetin, D. Torigian, B. Turkbey, E. Krupinski, J. Udupa, U. Bagci, Cxr gaze dataset processed (2023).
URL https://drive.google.com/file/d/1jB0jENWn8NqCB0w9YCuEKpgm0Uiu5fdv/view
[60] K. He, X. Zhang, S. Ren, J. Sun, Deep residual learning for image recognition, in: Proceedings of the IEEE conference on computer vision and pattern recognition, 2016, pp. 770–778.
URL https://openaccess.thecvf.com/content_cvpr_2016/html/He_Deep_Residual_Learning_CVPR_2016_paper.html
[61] K. He, X. Zhang, S. Ren, J. Sun, Delving deep into rectifiers: Surpassing human-level performance on imagenet classification, in: Proceedings of the IEEE international conference on computer vision, 2015, pp. 1026–1034.
URL https://openaccess.thecvf.com/content_iccv_2015/html/He_Delving_Deep_into_ICCV_2015_paper.html
[62] H. Wang, Z. Wang, M. Du, F. Yang, Z. Zhang, S. Ding, P. Mardziel, X. Hu, Score-cam: Score-weighted visual explanations for convolutional neural networks, in: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition workshops, 2020, pp. 24–25.
M. Stefani et al.: Preprint submitted to Elsevier
Page 24 of 26
[63] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, W. Chen, Lora: Low-rank adaptation of large language models, CoRR abs/2106.09685 (2021). arXiv:2106.09685. URL https://arxiv.org/abs/2106.09685
[64] I. Loshchilov, F. Hutter, Decoupled weight decay regularization, in: International Conference on Learning Representations, 2017. URL https://api.semanticscholar.org/CorpusID:53592270
[65] H. Zhu, S. Salcudean, R. Rohling, Gaze-guided class activation mapping: Leveraging human attention for network attention in chest x-rays classification (2022). arXiv:2202.07107. URL https://arxiv.org/abs/2202.07107
[66] J. Lin, Divergence measures based on the shannon entropy, IEEE Transactions on Information Theory 37 (1) (1991) 145–151. doi:10.1109/18.61115.
[67] K. L. Shu, M.-J.-S. Wang, Multi-domain feature fusion transformer with cross-domain robustness for facial expression recognition, Symmetry 18 (1) (2026). doi:10.3390/sym18010015. URL https://www.mdpi.com/2073-8994/18/1/15
[68] S. G, V. S. Kirubakaran, D. Karthikeyan, Enhanced bird species image recognition and classification using mobilenet and inceptionv3 transfer learning architectures, ELCVIA Electronic Letters on Computer Vision and Image Analysis 24 (2025) 118–133. doi:10.5565/rev/elcvia.2020.
[69] Y. Zhang, resnet_finetune_cub: Fine tuning codes for resnet on cub-200-2011 dataset, https://github.com/zhangyongshun/resnet_finetune_cub, GitHub repository, accessed 2025-12-26 (2019).
[70] J. He, J.-N. Chen, S. Liu, A. Kortylewski, C. Yang, Y. Bai, C. Wang, Transfg: A transformer architecture for fine-grained recognition, Proceedings of the AAAI Conference on Artificial Intelligence 36 (1) (2022) 852–860. doi:10.1609/aaai.v36i1.19967.
URL https://ojs.aaai.org/index.php/AAAI/article/view/19967
[71] K. Saab, S. M. Hooper, N. S. Sohoni, J. Parmar, B. Pogatchnik, S. Wu, J. A. Dunnmon, H. R. Zhang, D. Rubin, C. Ré, Observational supervision for medical image classification using gaze data, in: Medical Image Computing and Computer Assisted Intervention – MICCAI 2021, Vol. 12902 of Lecture Notes in Computer Science, Springer, Cham, 2021, pp. 603–614. doi:10.1007/978-3-030-87196-3_56. URL https://doi.org/10.1007/978-3-030-87196-3\_56
[72] B. Wang, H. Pan, A. Aboah, Z. Zhang, E. Keles, D. Torigian, B. Turkbey, E. Krupinski, J. Udupa, U. Bagci, Gazegnn: A gaze-guided graph neural network for chest x-ray classification (2023). arXiv:2305.18221. URL https://arxiv.org/abs/2305.18221
[73] Y. Gao, T. S. Sun, L. Zhao, S. R. Hong, Aligning eyes between humans and deep neural network through interactive attention alignment, Proc. ACM Hum.-Comput. Interact. 6 (CSCW2) (Nov. 2022). doi:10.1145/3555590.
URL https://doi.org/10.1145/3555590
[74] M. Sari, A. Moussaoui, A. Hadid, A simple yet effective convolutional neural network model to classify facial expressions, in: S. Chikhi, A. Amine, A. Chaoui, D. E. Saidouni, M. K. Kholladi (Eds.), Modelling and Implementation of Complex Systems, Springer International Publishing, pp. 188–202. doi:10.1007/978-3-030-58861-8_14.
[75] R. Melaugh, N. Siddique, S. Coleman, P. Yogarajah, Facial expression recognition on partial facial sections, in: 2019 11th International Symposium on Image and Signal Processing and Analysis (ISPA), 2019, pp. 193–197. doi:10.1109/ISPA.2019.8868630.
Author Biographies

Marco Stefani received the B.S. degree in Computer Engineering from the University of Padua in 2024. He is currently pursuing the M.S. degree in Artificial Intelligence and Robotics at the same university. His research interests include optimization problems in industrial and logistics domains, such as scheduling, Radio-Frequency Identification (RFID) systems management, and the analysis of explainable Artificial Intelligence (XAI) strategies.

Edoardo Parpaiola received the B.S. degree in Computer Engineering from the University of Padua, Italy, in 2024. He is currently pursuing the M.S. degree in Artificial Intelligence and Robotics at the same university. His research interests include industrial robotics and computer vision, with a particular focus on image classification, object detection, 3D data reconstruction, and explainable artificial intelligence (XAI).

Matteo Bino received the B.S. degree in Computer Engineering from the University of Padua, Italy, in 2024. He is currently pursuing the M.S. degree in Artificial Intelligence and Robotics at the same university. His research interests include computer vision, explainable AI, and mobile robotics, with a particular focus on the use of reinforcement learning for complex task execution and autonomous navigation.

Gianluca Caregnato received the B.S. degree in Computer Engineering from the University of Padua, Italy, in 2024. He is currently pursuing the M.S. degree in Artificial Intelligence and Robotics at the same university. His research lies at the intersection of computer vision and robotics, covering both autonomous and industrial platforms, with a particular emphasis on Explainable AI (XAI).

Francesco Roncolato received the B.S. degree in Computer Engineering from the University of Padua, Italy, in 2024. He is currently pursuing the M.S. degree in Artificial Intelligence and Robotics at the same university. His research interests include Explainable AI (XAI), autonomous robotics, and computer vision, with a particular focus on applying optimization techniques to real-world control problems.

Daniel Fusaro received the B.S., M.S., and Ph.D. degrees in Computer Engineering from the University of Padua, Italy, in 2019, 2021, and 2025, respectively. He is currently a Research Fellow at the University of Padua. His research interests include computer vision, robotics, and artificial intelligence, with a particular focus on 3D scene understanding, LiDAR point cloud processing, autonomous navigation, and self-supervised learning for multimodal perception.
M. Stefani et al.: Preprint submitted to Elsevier
Page 25 of 26

Loris Nanni is a Professor with the Department of Information Engineering at the University of Padua, Italy. His research interests include artificial intelligence, machine learning, deep learning, computer vision, pattern recognition, bioinformatics, and medical image analysis. He has authored more than 350 peer-reviewed publications in leading international journals and conferences, with contributions spanning both methodological advances and real-world biomedical applications. According to Google Scholar, his research has received over 15,000 citations, with an h-index of 62, reflecting the broad impact of his work within the AI and pattern recognition communities.

Alberto Pretto Alberto Pretto is an Associate Professor with the Department of Information Engineering at the University of Padua, Italy, where he leads the Field Robotics Group within the Intelligent Autonomous Systems Laboratory (IAS Lab). His research interests include autonomous robotics, computer vision, robot perception, and artificial intelligence. His career combines academic research with industrial innovation, including the co-founding of technology companies in robotics, computer vision, and AI. He has also held visiting research positions at leading international research laboratories in Germany and the United States.
M. Stefani et al.: Preprint submitted to Elsevier
Page 26 of 26