paper-with-me

Papers

XAI for Transformers: Better Explanations through Conservative Propagation

2022-02-15 · Ameen Ali, Thomas Schnake, Oliver Eberle, Grégoire Montavon, Klaus-Robert Müller, Lior Wolf

Transformers have become an important workhorse of machine learning, with numerous applications. This necessitates the development of reliable methods for increasing their transparency. Multiple interpretability methods, often based on gradient information, have been proposed. We show that the gradient in a Transformer reflects the function only locally, and thus fails to reliably identify the contribution of input features to the prediction. We identify Attention Heads and LayerNorm as main reasons for such unreliable explanations and propose a more stable way for propagation through these layers. Our proposal, which can be seen as a proper extension of the well-established LRP method to Transformers, is shown both theoretically and empirically to overcome the deficiency of a simple gradient-based approach, and achieves state-of-the-art explanation performance on a broad range of Transformer models and datasets.

📄 PDF Abstract BibTeX arXiv:2202.07304

Code (1)

ameenali/xai_transformers 공식 구현 pytorch

Tasks

Explainable Artificial Intelligence (XAI)Question Answering

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Multi-Head Attention 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

ResLRP: The Role of Residual Cancellation in Attribution Instability in Vision Transformers

2026-09-15 · Jim Berend, Reduan Achtibat, Daniel Schäffer, Alexander Binder 외 arxiv

Vision Transformers (ViTs) are central to most modern vision models, yet obtaining input attributions that are fine-grained, faithful, and stable remains challenging. Layer-wise Relevance Propagation (LRP) has been adapt…

Equilibrium Propagation for Non-Conservative Systems

2026-02-03 · Antonino Emanuele Scurria, Dimitri Vanden Abeele, Bortolo Matteo Mognetti, Serge Massar arxiv

Equilibrium Propagation (EP) is a physics-inspired learning algorithm that uses stationary states of a dynamical system both for inference and learning. In its original formulation it is limited to conservative systems, …

Reproducibility review of "Why Not Other Classes": Towards Class-Contrastive Back-Propagation Explanations

2025-01-19 · Arvid Eriksson, Anton Israelsson, Mattias Kallhauge

"Why Not Other Classes?": Towards Class-Contrastive Back-Propagation Explanations (Wang & Wang, 2022) provides a method for contrastively explaining why a certain class in a neural network image classifier is chosen abov…

Explaining Text Similarity in Transformer Models

2024-05-10 · Alexandros Vasileiou, Oliver Eberle

As Transformers have become state-of-the-art models for natural language processing (NLP) tasks, the need to understand and explain their predictions is increasingly apparent. Especially in unsupervised applications, suc…

Information RetrievalRetrievalSemantic SimilaritySemantic Textual Similarity+2

Understanding Individual Decisions of CNNs via Contrastive Backpropagation

2018-12-05 · Jindong Gu, Yinchong Yang, Volker Tresp

A number of backpropagation-based approaches such as DeConvNets, vanilla Gradient Visualization and Guided Backpropagation have been proposed to better understand individual decisions of deep convolutional neural network…

General Classification