TL;DR
Researchers have identified "residual cancellation"—where updates from attention or MLP blocks oppose the main residual stream—as the primary cause of noisy and unstable explanations in Vision Transformers (ViTs). By introducing ResLRP, a residual-aware extension of Layer-wise Relevance Propagation, they provide a mathematically grounded way to suppress this noise, resulting in significantly more faithful and localized heatmaps, especially for modern Vision-Language Models (VLMs).
What Problem Does This Paper Address?
Understanding why a model makes a specific prediction is crucial for high-stakes applications, but for Vision Transformers, our "glasses" have been blurry. Standard attribution methods, which create heatmaps showing which pixels a model focused on, often produce "noisy" results for ViTs—full of checkerboard artifacts and fragmented patterns that don't seem to align with the actual objects in the image.
The authors pinpoint a specific architectural culprit: the residual connection. In the forward pass of a ViT, the update from an attention layer sometimes cancels out information in the main residual stream (forward cancellation). While this might be useful for the model's learning, it creates a nightmare for attribution methods like Layer-wise Relevance Propagation (LRP). During the backward pass, these methods end up dividing by near-zero values, causing "relevance explosion"—a massive, unstable amplification of noise that drowns out the true signal.
Methods
The authors propose ResLRP, which modifies the standard LRP rules specifically at residual addition sites.
- Residual-Aware Rule: Instead of treating the residual stream and the layer update equally, ResLRP uses a modified "$\gamma$-rule." This rule favors branches whose contributions have the same sign as the final output of the addition. By strengthening sign-consistent contributions, it naturally suppresses the relevance assigned to contradictory, noise-inducing pathways.
- Theoretical Guarantees: Unlike standard rules that can explode to infinity, ResLRP is provably bounded. It is also "exactly conservative," meaning it redistributes relevance without losing or creating any, ensuring the explanation remains mathematically tied to the model's output.
- ResLRP+: To further clean up visual artifacts caused by the patch-based nature of ViTs, the authors combine ResLRP with a gradient decomposition technique (DAVE), resulting in even smoother, more human-interpretable maps.
Datasets
The study evaluates ResLRP across a wide variety of architectures and benchmarks:
- ImageNet-1k & ImageNet-S: Used for measuring faithfulness (via Symmetric Relevance Gain) and spatial localization against human-annotated masks.
- FunnyBirds: A synthetic benchmark where the "ground truth" importance of different bird parts is known, allowing for a controlled evaluation of whether the attribution method identifies the correct causal features.
- Vision-Language Models (VLMs): Evaluated on Qwen2.5-VL, Qwen3-VL, and Gemma-3-4B-it to see how well the method grounds text generation in specific image pixels.
- Sparse Autoencoders (SAEs): Used to test if ResLRP can localize abstract internal features back to the input space.
Key Insights and Ideas
- ViTs vs. LLMs: A major "aha" moment was discovering that residual cancellation is significantly stronger in Vision Transformers than in Large Language Models (LLMs). This explains why attribution methods that worked fine for NLP often failed when ported to vision.
- Early Layer Instability: The relevance explosion is most pronounced in the early layers of ViTs, where representations are still closely tied to local image structure.
- Causality Confirmed: Through targeted channel-wise interventions, the authors proved that the improvements weren't just due to general regularization. Specifically fixing the channels prone to cancellation was what actually restored attribution quality.
- Register Tokens as Stabilizers: The paper notes that "register tokens" (a recent architectural tweak to fix artifacts in DINOv2) actually help stabilize the residual stream itself, which in turn makes attribution naturally more stable.
Key Results
ResLRP consistently outperformed existing state-of-the-art methods across almost every metric:
- Faithfulness: On the Symmetric Relevance Gain (SRG) metric, ResLRP improved scores by up to 3.4× in Vision-Language Models compared to standard AttnLRP.
- Localization: In VLMs, localization accuracy increased by +27–29% relative to previous methods.
- FunnyBirds: ResLRP achieved the highest scores on all completeness and correctness metrics, showing a +13% improvement in identifying causally relevant parts compared to AttnLRP.
- SAE Grounding: It successfully localized internal sparse features (like "bird eyes") to the correct pixels, whereas standard activation maps often lost spatial meaning at deeper layers.
Limitations and Future Work
While ResLRP is highly effective, the authors note a few areas for further exploration:
- Hyperparameter Sensitivity: Although the default $\gamma=1$ works well across most models, optimal performance might require slight tuning for specific architectures.
- Scope of Architectures: The study focused on Transformers. It remains to be seen if similar "cancellation" issues plague other popular architectures like Diffusion models or State-Space Models (e.g., Mamba).
- Global Conservation: While ResLRP is locally conservative at residual sites, the overall pipeline's conservation is still limited by the specific attention rules used (like AttnLRP). Combining ResLRP with other conservative rules could lead to a perfectly "energy-conserving" explanation framework.
Summary updated