Abstract
Deep learning interpretability often relies on feature attribution methods to explain model decisions. However, the consistency of these explanations across different architectural paradigms, such as Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs), remains a significant challenge. This paper investigates the "harmonization" of feature attributions—the degree to which important features identified by one model are recognized as discriminative by another. Using a novel experimental pipeline and the "Soundness Saliency" method, we demonstrate that diverse architectures trained on the same data converge on a shared set of critical features. Our results show that features extracted from a source model can effectively trigger correct predictions in disparate target architectures, suggesting a path toward model-agnostic interpretability.
Introduction
As deep learning models are increasingly deployed in critical domains, their "black box" nature becomes a primary hurdle for trust and safety. Feature attribution methods, such as saliency maps, attempt to address this by highlighting the input pixels most influential to a model's prediction. A persistent concern, however, is architectural bias: if a Convolutional Neural Network (CNN) and a Vision Transformer (ViT) both classify an image correctly but rely on different features, which explanation is truly representative of the data?
This study addresses the concept of "harmonization"—the ability of feature explanations to generalize across architectural designs. We investigate whether the "important features" identified by one model are universally discriminative enough to be recognized by other models trained on the same data distribution, regardless of their internal processing mechanisms.
Methodology
To evaluate the transferability of explanations, we developed an experimental pipeline focused on feature extraction and cross-model validation.
Feature Extraction Methods
We compared two distinct saliency methods to identify critical features:
- Soundness Saliency (SS): A method designed to find a mask ($M$) that maximizes the model's prediction confidence while minimizing extraneous noise.
- Grad-CAM (GC): A standard baseline that utilizes gradient information from the final convolutional layers to produce heatmaps.
The Harmonization Test
The core of our experiment involved taking the "important features" (the original image masked by the saliency map) generated by a Source Model and feeding them into various Target Models. If the features extracted by the Source Model represent the true essence of the object, the Target Model should be able to classify the masked image with high accuracy.
Architectures and Data
We utilized the Imagenette dataset, a 10-class subset of ImageNet designed to be a robust benchmark for classification. Our architectural comparisons involved the EfficientNet family (B5, B6, and B7) to represent CNNs and the Vision Transformer (ViT) to represent attention-based architectures.
Key Insights and Results
Architectural Convergence
Our findings suggest that despite fundamental differences in how CNNs (sliding windows) and ViTs (global attention) process information, they learn a "joint feature identification capability." When trained on the same data, these diverse models converge on the same critical features for classification.
Superiority of Soundness Saliency
Soundness Saliency (SS) produced significantly more transferable features than Grad-CAM. For example, when features were extracted from an EfficientNet-B7 using SS, the accuracy on target models (E-6 and E-5) remained stable, dropping only slightly from ~75% to ~73%. In contrast, using Grad-CAM for the same transfer caused accuracy to plummet to 55.7%. This suggests that SS captures the universal features of the data distribution, whereas Grad-CAM may be more reflective of specific architectural artifacts.
The Denoising Effect
Interestingly, presenting a model with only the extracted features (masking the background) often increased the model's prediction probability. By removing "noise" pixels deemed irrelevant by the attribution method, the models became more confident in their correct decisions. Qualitative analysis via histograms showed a clear shift toward probability scores closer to 1.0 when models were presented with these harmonized features.
Cross-Architecture Transfer
Features transferred seamlessly between similar CNN architectures, but more importantly, they also transferred from ViTs to CNNs. Features extracted from a Vision Transformer maintained an accuracy of ~71-73% when processed by CNN target models, confirming that the identified features are not architecture-dependent.
Discussion and Future Work
This research demonstrates that feature attribution is not merely a reflection of a model's internal mechanics but can capture the objective discriminative features of a dataset. The high degree of harmonization between CNNs and ViTs suggests the possibility of creating model-agnostic explanation tools—a "gold standard" explanation that remains valid regardless of the specific model architecture used.
However, limitations remain. This study focused exclusively on image classification within the Imagenette dataset. Future work should explore whether this harmonization holds for more complex tasks such as object detection or natural language processing. Additionally, expanding the range of architectures to include older models (e.g., VGG) or newer hybrids (e.g., ConvNeXt) would further validate the universality of these findings.
Summary updated