paper-with-me

홈 › Papers

AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformers

2024-02-08 · Reduan Achtibat, Sayed Mohammad Vakilzadeh Hatefi, Maximilian Dreyer, Aakriti Jain, Thomas Wiegand, Sebastian Lapuschkin, Wojciech Samek

Large Language Models are prone to biased predictions and hallucinations, underlining the paramount importance of understanding their model-internal reasoning process. However, achieving faithful attributions for the entirety of a black-box transformer model and maintaining computational efficiency is an unsolved challenge. By extending the Layer-wise Relevance Propagation attribution method to handle attention layers, we address these challenges effectively. While partial solutions exist, our method is the first to faithfully and holistically attribute not only input but also latent representations of transformer models with the computational efficiency similar to a single backward pass. Through extensive evaluations against existing methods on LLaMa 2, Mixtral 8x7b, Flan-T5 and vision transformer architectures, we demonstrate that our proposed approach surpasses alternative methods in terms of faithfulness and enables the understanding of latent representations, opening up the door for concept-based explanations. We provide an LRP library at https://github.com/rachtibat/LRP-eXplains-Transformers.

📄 PDF Abstract BibTeX arXiv:2402.05602

Code (2)

rachtibat/lrp-explains-transformers 공식 구현 pytorch
rachtibat/lrp-for-transformers 공식 구현 pytorch

Tasks

AttributeComputational Efficiency

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Library 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
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…
Position-Wise Feed-Forward Layer 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
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$…

Similar Papers 제목 키워드 기반

Evaluating Post-hoc Explanations of the Transformer-based Genome Language Model DNABERT-2

2026-04-23 · Isabel Kurth, Paulo Yanez Sarmiento, Bernhard Y. Renard arxiv

Explaining deep neural network predictions on genome sequences enables biological insight and hypothesis generation-often of greater interest than predictive performance alone. While explanations of convolutional neural …

When LRP Diverges from Leave-One-Out in Transformers

2025-10-21 · Weiqiu You, Siqi Zeng, Yao-Hung Hubert Tsai, Makoto Yamada 외 arxiv

Leave-One-Out (LOO) provides an intuitive measure of feature importance but is computationally prohibitive. While Layer-Wise Relevance Propagation (LRP) offers a potentially efficient alternative, its axiomatic soundness…

Feature Importance

Beyond Accuracy: Robustness, Interpretability and Expressiveness of EEG Foundation Models

2026-05-17 · Urban Širca, Maryam Alimardani, Stefanos Zafeiriou, Konstantinos Barmpas arxiv

EEG foundation models (EEG-FMs) have been evaluated predominantly on clean, in-distribution accuracy, leaving their robustness, interpretability and representational quality largely unexamined. This study addresses these…

Beyond saliency: understanding convolutional neural networks from saliency prediction on layer-wise relevance propagation

2017-12-22 · Heyi Li, Yunke Tian, Klaus Mueller, Xin Chen

Despite the tremendous achievements of deep convolutional neural networks (CNNs) in many computer vision tasks, understanding how they actually work remains a significant challenge. In this paper, we propose a novel two-…

Saliency Prediction

Explainable AI: Context-Aware Layer-Wise Integrated Gradients for Explaining Transformer Models

2026-02-18 · Melkamu Abay Mersha, Jugal Kalita arxiv

Transformer models achieve state-of-the-art performance across domains and tasks, yet their deeply layered representations make their predictions difficult to interpret. Existing explainability methods rely on final-laye…

Document ClassificationHate Speech DetectionImage ClassificationSentiment Analysis