Attention & Residue Attribution
IG HEATMAP â LIVE DATAPairformer-derived residue-pair importance visualized as an outer-product IG attribution matrix. Actual model attention weights require post-training extraction â shown here as pairwise IG proxy.
đ
4
Pairformer Layers
triangle + attention
đ
8
Attention Heads
per layer
â
64
Pair Dim (d_pair)
z_ij per residue pair
đĄ
â
Proteins (XAI)
with real IG data
Visualization method: Pairformer LĂL attention weights are not stored during training. This view shows the outer-product IG attribution map: pair_importance[i][j] = (IG[i] + IG[j]) / 2 â a proxy for which residue pairs jointly contribute to the GO prediction. High values (yellow) indicate co-important residue pairs.
Protein:
Pairwise IG Importance Matrix â âŚ
LĂL outer-product of per-residue IG attributions. Yellow = co-important pairs.
Select a protein with IG data.
Per-Residue IG Attribution Bar â âŚ
Raw IG score per residue position. High = stronger contribution to GO prediction.
Select a protein with IG data.
Pairformer Architecture â How Attention Works
Triangle Multiplication (outgoing)LĂLĂ64zĚ_ij = Ď(g_ij) â ÎŁ_k (a_ik â b_kj)
Triangle Multiplication (incoming)LĂLĂ64zĚ_ij = Ď(g_ij) â ÎŁ_k (a_ki â b_kj)
Triangle Attention (start nodes)LĂLĂ648-head attention along rows of pair matrix
Triangle Attention (end nodes)LĂLĂ648-head attention along columns of pair matrix
Transition FFNLĂLĂ642-layer MLP, ReLU activation per pair position
8 Attention Head Specializations (observed)
1
Local contacts (short-range < 6 Ă
)2
Domain boundary detection3
Secondary structure transitions4
Long-range coevolution5
Hydrophobic core packing6
Surface exposure7
Binding site residues8
Disordered region detectionSpecializations are patterns from protein LM literature â heads are not explicitly labeled during training.