atlas

Research map / Architectures and efficiency / Attention and transformers

LibraGrad: Balancing Gradient Flow for Universally Better Vision Transformer Attributions

CVPR 2025 · Architectures and efficiency › Attention and transformers · approach: Efficient and robust vision transformers · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LibraGrad, a post-hoc method that prunes and scales backward paths in Transformers (attention, LayerNorm, gated activations, self-gating) to restore FullGrad-completeness, improving gradient-based ViT attributions without changing the forward pass.

Problem

Gradient-based attribution methods perform poorly on Transformers because non-locally-affine operations (attention, LayerNorm, gated activations, self-gating) break FullGrad-completeness, causing imbalanced gradient flow and unfaithful attributions.

Approach

Theoretically motivated backward-pass modifications: treat nonlinear multiplicands (softmax, LayerNorm denominator, gate) as constants via a constant (stop-gradient) operator and scale the gradients of both branches in self-gating by 1/2, so the Transformer becomes FG-complete while the forward pass is unchanged.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply LibraGrad to FullGrad+FullGrad+ on ViT-B · ImageNetMIF accuracy (predicted labels): 44.2 -> 63.1Helped
Apply LibraGrad to FullGrad+FullGrad+ on ViT-B · ImageNet-HardMIF accuracy (predicted labels): 80.1 -> 87.6Helped
Apply LibraGrad to FullGrad+FullGrad+ on ViT-B · MURAMIF accuracy (predicted labels): 32.8 -> 43.2Helped
Apply LibraGrad to FullGrad+FullGrad+ on ViT-B · Oxford-IIIT PetMIF accuracy (predicted labels): 35.3 -> 57.3Helped
Add Libra attention gradient handling (ablation)Libra FullGrad+ on EVA2-S · ImageNetMIF accuracy (predicted labels): 65.2 -> 71.7Helped
Add Libra LayerNorm gradient handling (ablation)Libra FullGrad+ on EVA2-S · ImageNetMIF accuracy (predicted labels): 49.9 -> 71.7Helped
Add Libra attention and LayerNorm gradient handling (ablation)Libra FullGrad+ on EVA2-S · ImageNetMIF accuracy (predicted labels): 61.2 -> 71.7Helped
Add Libra gated activation handling (ablation)Libra FullGrad+ on EVA2-S · ImageNetMIF accuracy (predicted labels): 71.6 -> 71.7No clear effect
Add Libra SwiGLU self-gating (ablation)Libra FullGrad+ on EVA2-S · ImageNetMIF accuracy (predicted labels): 67.0 -> 71.7Helped
Include bias terms (ablation)Libra FullGrad+ on EVA2-S · ImageNetMIF accuracy (predicted labels): 71.5 -> 71.7No clear effect
Apply LibraGrad rather than standard FullGrad+ (ablation)FullGrad+ on EVA2-S · ImageNetMIF accuracy (predicted labels): 48.0 -> 71.7Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1k ImageNet-Hard MURA Oxford-IIIT Pet ImageNet-S FunnyBirds COCO

Benchmarks: ImageNet-1k ImageNet-Hard MURA Oxford-IIIT Pet ImageNet-S FunnyBirds

Metrics: Most-Influential-First Deletion accuracy AOPC Completeness Error Segmentation AP Least-Influential-First Deletion Symmetric Relevance Gain

Baselines: Integrated Gradients Input × Grad FullGrad+ GenAtt TokenTM AttCAT DecompX AttnLRP AliLRP RawAtt Attention Rollout GradCAM+

Builds on: FullGrad Integrated Gradients GenAtt AttnLRP HiResCAM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy