Feature Importance โ Integrated Gradients
CAPTUMPer-residue attribution analysis using Axiomatic IG. Implementation: Captum with manual Riemann fallback.
Integrated Gradients
IG_i(x) = (x_i โ xโฒ_i) ยท โซโยน โF(xโฒ + ฮฑ(xโxโฒ))/โx_i dฮฑ
Approximated via Riemann sum with n_steps=50. Baseline xโฒ = zero vector (uninformative). Axiom completeness: ฮฃ_i IG_i = F(x) โ F(xโฒ).
Implementation Details
LibraryCaptum 0.6+ (PyTorch-native)
FallbackManual Riemann sum (n_steps=50)
BaselineZero vector xโฒ = 0โโโโ
TargetEach predicted GO term independently
Attribution Shape[L, 1280] โ aggregated to [L] by L2 norm
Proteins analyzedโ
GO terms per proteinโ
Axioms Satisfied
โ Completeness
ฮฃ_i IG_i(x) = F(x) โ F(xโฒ). The attributions sum to the difference in model output between the input and baseline.
โ Sensitivity
If F(x) โ F(xโฒ) for some feature i where x_i โ xโฒ_i, then IG_i โ 0.
โ Implementation Invariance
IG is independent of internal network architecture; computed on the input embedding, not activations.
โ Linearity
IG is linear in the network output: IG(ฮฑFโ + ฮฒFโ) = ฮฑIG(Fโ) + ฮฒIG(Fโ).
Full residue heatmap visualization
Interactive per-residue attribution heatmaps are available in the XAI Dashboard โ select any protein and GO term to view its full attribution map and top-20 influential residues.