TRANSMISSION // 2612.05029v1

A Better Balance for Transformer Explanations

Source published

Two new rules help Layer-Wise Relevance Propagation conserve scores inside Transformer attention, but conservation alone does not guarantee better-performing explanations.

AI-generated conceptual illustration for A Better Balance for Transformer Explanations
AI-generated conceptual illustration; not documentary evidence.

Layer-Wise Relevance Propagation traces a model’s prediction backward to identify which inputs contributed to it. In Transformers, attention can make that accounting difficult. Ukyo Hayashi and Yoshimasa Tsuruoka propose two rules to address relevance lost in attention—and find that improved accounting does not always improve scores on explanation tests.

An image classifier might, hypothetically, identify an object using background cues rather than the object itself. Explanation methods aim to make decisions easier to inspect. Layer-Wise Relevance Propagation (LRP) assigns “relevance” scores to parts of an input and passes those scores backward through a model. Ideally, the scores add up, so the explanation accounts for the prediction’s total relevance.

That accounting has been a challenge for Transformer models. Their attention mechanism combines queries, keys and values: queries and keys determine how strongly tokens or image patches attend to one another, while values carry information that is combined. An explanation that assigns relevance to queries and keys can help show how attention was formed. But, according to the paper, existing approaches have struggled to achieve that while also remaining numerically stable and conserving relevance.

Two proposed rules

Ukyo Hayashi and Yoshimasa Tsuruoka build on Attention-Aware LRP, or AttnLRP, which is designed to be stable and to send relevance to queries and keys, but loses some relevance in attention. They identify two sources of this loss and introduce a rule for each.

Softmax-IG replaces a local, first-order approximation of the softmax function with an Integrated Gradients calculation along a path from zero logits to the observed logits. In plain terms, it accounts for how softmax changes across that path, rather than relying only on a local estimate. The authors’ discretized version uses a chosen number of integration points; the existing AttnLRP softmax rule is the special case with one point. Their analysis indicates that the approximation error falls as the number of points grows.

Bias-to-V redirects relevance assigned to softmax’s structural bias—the nonzero output it produces even when its logits are zero—to the attention values. Combined with Softmax-IG, the rules are intended to address both identified sources of lost relevance while retaining relevance paths to queries and keys.

The authors give a theoretical argument that the combined method conserves total relevance through attention, and therefore through the Transformer under the propagation rules considered. Small amounts may still be absorbed by constants used to prevent division by zero. With a finite number of integration points, the experimental method can also retain a small residual loss.

What the tests found

The experiments compare variants of AttnLRP on ten vision Transformers. To assess explanation quality, the researchers use tests including a segmentation test, which checks how well high-relevance pixels overlap an object’s annotated region. They also measure computation time and relevance loss in attention. Supplementary experiments cover nine language models, using a perturbation test on 1,000 ARC-Easy questions each model answered correctly, evaluated with two metrics.

On three DeiT image models, increasing Softmax-IG’s integration points reduced the relevance loss attributed to linearization error. At 128 points, that particular loss was 0.14–0.20%. Separately, with both Softmax-IG and Bias-to-V at 128 points, the measured total relevance loss in attention was 0.1–0.2% on those models. These are distinct quantities: the first concerns linearization error; the second is total attention loss for the combined method.

For the three DeiT sizes, the reported time to explain one image with AttnLRP plus Softmax-IG at 128 points was 0.41–0.58 seconds, compared with 0.26–0.42 seconds for AttnLRP. The measurements used a single NVIDIA A100 80GB PCIe GPU. They describe the Softmax-IG variant, not the combined method.

Conservation did not guarantee improved scores on the study’s explanation tests. Across the ten vision Transformers, Softmax-IG alone improved the study’s explanation-performance assessment on eight models and degraded it on two. Bias-to-V alone degraded it on six, improved it on three and made neither kind of difference on one. The combined method improved the assessment on five models and degraded it on five.

The authors suggest that Bias-to-V may spread relevance into image backgrounds, which the segmentation test treats as an error. But background relevance could sometimes reflect a model checking other parts of an image. The test may therefore penalize behavior that is part of the model’s decision process. That is a possible interpretation, not proof that background relevance is useful.

What remains uncertain

These findings concern specific attribution rules, model sets and evaluation procedures; they do not establish that the explanations are a complete or definitive account of how Transformers make decisions. Segmentation overlap is one measure of explanation performance, and the authors note that it may not capture every legitimate use of image context. Results vary with the rule and model, so the combined method should not be described as universally superior.

The source is an arXiv preprint, a research manuscript made available online. The findings summarized here come from that manuscript and its abstract, not independent verification. The experiments support improved relevance accounting under the stated setup, while leaving open how best to judge whether an explanation is informative.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • What Relevance Maps Reveal About EEG AI

    Shared method: Both papers use attention-aware Layer-wise Relevance Propagation (AttnLRP): the origin paper develops propagation-rule extensions to AttnLRP for Vision Transformers, while Meyer zu Bexten et al. apply AttnLRP to LaBraM for EEG attribution. This is a shared method, not evidence that the origin paper’s proposed extensions were tested or validated on EEG models.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.05029v1 — Original paper

      Excerpt reference: static/papers/2612.05029v1.md:367-460
      Basis: Paper text
      Source file SHA-256: 8b281d45737377a089ad8ba529a567b7f92a89bfe2d4a17cdc27e234a173ca60

    • 2605.11885v2 — Original paper

      Excerpt reference: static/papers/2605.11885v2.md:140-193
      Basis: Paper text
      Source file SHA-256: c204848a20ba4658bd63f52a0db92da3182a56e2b509659d6bb380922a3e41bd

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.