Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Transformer Interpretability Beyond Attention Visualization

About

Self-attention techniques, and specifically Transformers, are dominating the field of text processing and are becoming increasingly popular in computer vision classification tasks. In order to visualize the parts of the image that led to a certain classification, existing methods either rely on the obtained attention maps or employ heuristic propagation along the attention graph. In this work, we propose a novel way to compute relevancy for Transformer networks. The method assigns local relevance based on the Deep Taylor Decomposition principle and then propagates these relevancy scores through the layers. This propagation involves attention layers and skip connections, which challenge existing methods. Our solution is based on a specific formulation that is shown to maintain the total relevancy across layers. We benchmark our method on very recent visual Transformer networks, as well as on a text classification problem, and demonstrate a clear advantage over the existing explainability methods.

Hila Chefer, Shir Gur, Lior Wolf• 2020

Related benchmarks

TaskDatasetResultRank
LocalizationImageNet-1k (val)
EHR0.297
79
Feature Importance AssessmentImageNet-1k (val)
Insertion Score24.82
78
Feature Attribution EvaluationImageNet-1k (val)
MoRF Score29.92
33
SegmentationImageNet segmentation
Pixel Accuracy79.89
22
Explanation FaithfulnessImageNet 2015 (test)
AOPC0.715
22
Perturbation TestImageNet (test)
AOPC0.721
18
Perturbation TestImageNet (val)
Neg Score57.48
18
Feature AttributionMS-CXR text (test)
Conf. Drop (%)2.93
13
Semantic segmentationImageNet Segmentation 21 (test)
Pixel Accuracy79.17
9
Perturbation Test (Impact on Accuracy)CIFAR-10
Accuracy (Predicted Neg)67.65
9
Showing 10 of 16 rows

Other info

Follow for update