Skip to content

Conserving Relevance in Explaining Transformers with Layer-Wise Relevance Propagation

Ukyo Hayashi Yoshimasa Tsuruoka
Dec 2026
Artificial Intelligence Machine Learning Computer Vision

Abstract

Layer-wise Relevance Propagation (LRP) is widely used in computer vision to explain the predictions of neural networks: the method propagates relevance layer by layer from the output back to the input pixels while conserving the total relevance. LRP has been extended to Transformers, but no existing extension simultaneously achieves numerical stability, distributes relevance to the query and key, and conserves relevance in Transformers. We build on Attention-Aware LRP (AttnLRP), which is numerically stable and distributes relevance to the query and key but does not conserve relevance in attention, owing to linearization error and the structural bias of softmax. To satisfy all three, we extend AttnLRP with two propagation rules, each of which eliminates one of these causes. (1) Softmax-IG is a softmax propagation rule based on Integrated Gradients that eliminates linearization error; its discretized version includes the softmax rule of AttnLRP as a special case, and its linearization error asymptotically converges to zero as the number of integration points grows. (2) Bias-to-V redirects the relevance that would otherwise flow into the structural bias to the value. In experiments using ten Vision Transformer models, we show that the propagation rules obtained by integrating both proposed rules into AttnLRP stably distribute relevance to the query and key while conserving total relevance in attention, and thus in Transformers, as the number of integration points increases. We also show that, for most models, explanation performance, as measured by a segmentation test, can be improved by incorporating one or both of the proposed propagation rules.

View source

Similar papers

#artificial intelligence Preprint Jul 2024

The Llama 3 Herd of Models

It is found that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks, and performs competitively with the state-of-the-art on image, video, and speech recognition tasks.

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri et al. · 21,082 citations · ⚡3,832
#artificial intelligence Conference Open access Jun 2018

Gibson Env: Real-World Perception for Embodied Agents

This paper investigates developing real-world perception for active agents, proposes Gibson Environment for this purpose, and showcases a set of perceptual tasks learned therein.

F. Xia, Amir Zamir, Zhi-Yang He et al. · 1,069 citations · ⚡112
#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#computer vision Jun 2008

The impact of agile practices on communication in software development

The study shows that agile practices improve both informal and formal communication, but indicates that, in larger development situations involving multiple external stakeholders, a mismatch of adequate communication mechanisms can sometimes even hinder the communication.

M. Pikkarainen, Jukka Haikara, O. Salo et al. · 401 citations · ⚡48
#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54

Related blog posts

MIT News · Artificial Intelligence Dec 1, 2026

A new form of memory helps robots learn complex skills

The method uses large vision-language models to teach smaller models how to remember key details about a robot’s surroundings, making the machines more reactive and resourceful.

MIT News · Artificial Intelligence Oct 28, 2026

Making machines that can listen

Professor Paris Smaragdis develops computers with superhuman hearing for applications like speech recognition, music understanding, and environmental monitoring.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.