← Latest papers
🤖 machine learning

Gradient-Skipping Relevance Propagation for Efficient Explainability of Vision Transformers

This paper introduces GradSkip, a novel relevance propagation method for Vision Transformers that improves faithfulness and localization by adaptively weighting attention heads and dynamically distributing relevance through residual connections, achieving state-of-the-art performance with over 14 times fewer GFLOPs than existing approaches.

Original authors: Christopher Buratti, Michele Marchetti, Federica Parlapiano, Davide Traini, Domenico Ursino, Luca Virgili

Published 2026-07-14
📖 5 min read🧠 Deep dive

Original authors: Christopher Buratti, Michele Marchetti, Federica Parlapiano, Davide Traini, Domenico Ursino, Luca Virgili

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a super-smart robot brain called a Vision Transformer (ViT). It's amazing at looking at pictures and telling you what's in them—like spotting a ladybug or a truck. But here's the problem: the robot is a bit of a "black box." You can ask it, "Why did you think that was a truck?" and it just says, "Because I said so." It doesn't show you which parts of the picture made it decide.

Scientists have tried to peek inside the robot's brain to see how it thinks, but their old tools were like using a sledgehammer to crack a nut. They treated every part of the robot's brain as if it were equally important, and they ignored the "shortcut" wires that let information zip right through without changing. This made the explanations messy and often wrong.

Enter GradSkip, a new, snazzy tool invented by Christopher Buratti and his team to fix this mess. Think of GradSkip as a smart detective that doesn't just look at the whole brain at once, but knows exactly which neurons are doing the heavy lifting and which ones are just taking a nap.

The Two Big Mistakes Old Tools Made

The paper points out two big errors in how previous detectives worked:

  1. The "Everyone is Equal" Mistake: Imagine a choir where some singers are soloists hitting perfect high notes, while others are just humming in the background. Old tools treated every singer as if they were singing the same volume. GradSkip realizes that some "attention heads" (the choir sections) are super important for the decision, while others are just noise. It learns to listen to the soloists and ignore the humming.
  2. The "Shortcut" Mistake: Transformers have these cool "skip connections"—like a secret tunnel that lets a message skip a whole room and go straight to the next one. Old tools treated these tunnels as if they were just empty hallways that didn't change anything. But sometimes, the message does change in the main room, and sometimes it doesn't. GradSkip is the first to check: "Did this message take the tunnel, or did it get transformed in the main room?" It figures out exactly how much credit to give each path.

How GradSkip Solves the Mystery

GradSkip uses a clever two-step strategy to figure out what the robot is thinking:

  • Step 1: The "Who's Who" Filter: It looks at the robot's brain and asks, "Which attention heads are actually doing the work?" It uses a special math trick (combining gradient flow and a "sparsity" measure, kind of like checking how focused a spotlight is) to pick the most important heads. It's like a bouncer at a club who only lets the cool, relevant neurons in and kicks the noisy ones out.
  • Step 2: The "Path Splitter": When the detective traces the thought process backward, it splits the "relevance" (the credit for the decision) between the main path and the skip path. If the robot mostly just passed the information through without changing it, GradSkip gives most of the credit to the skip path. If the robot did some heavy thinking, it gives credit to the main path. It's a dynamic, fair way to share the credit.

The Proof: It Works, and It's Fast!

The team tested GradSkip on a bunch of pictures, from a standard set of 1,000 images (ImageNet1K) to medical blood cell photos (BloodMNIST). They also tried it on a task where the robot has to color-code every part of an image (segmentation).

Here is what they found:

  • It's the most honest explanation: When they tested how well the explanations matched the robot's actual decisions, GradSkip was the best. On the ImageNet1K test, it beat the second-best method by 12.50% in one key metric. On the medical blood cell test, it was just as good.
  • It's incredibly precise: When they asked the robot to point to the object, GradSkip was the most accurate.
  • It's a speed demon: This is the coolest part. The old, accurate methods were like driving a tank—they worked great but used a ton of fuel. GradSkip is like a sleek sports car. It uses 14.45 times fewer GFLOPs (a measure of computer work) than the second-best accurate method. For classification, it only needed 69.39 GFLOPs, and for segmentation, just 28.52 GFLOPs.

What GradSkip Is NOT

The paper is very clear about what GradSkip doesn't do:

  • It doesn't work if you can't see inside the robot's brain. You need to be able to run a "backward pass" (checking the gradients), so it can't be used on models where you can't see the internal gears.
  • It doesn't magically fix everything. In some tricky cases, like when there are multiple objects of the same kind in a picture, it's still really good, but the paper admits it's harder to get perfect scores.
  • It doesn't look at the "CLS token" (a special token some robots use to summarize the whole image). The authors note that for standard robots that use this token, ignoring it might miss some clues, but for other types (like SegFormer), it works perfectly.

The Bottom Line

GradSkip isn't just a small tweak; it's a smarter way to listen to the robot. By realizing that not all brain parts are equal and by respecting the "shortcut" wires, it gives us a clear, honest, and super-fast look at how Vision Transformers make decisions. The authors suggest that this could be a game-changer for fields like medical imaging, where understanding why a robot made a diagnosis is just as important as the diagnosis itself. And the best part? It does all this without needing a supercomputer to run it.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →