PaTz β€” Physics-Aware Transformer with eXplainability
● API Offlinepatz_env

Feature Engineering

ESM-2 + PAIRFORMER

ESM-2 650M frozen backbone (1,280-dim per residue) β†’ Pairformer single/pair tracks (256-dim / 64-dim) β†’ mean-pooled protein embedding for downstream tasks.

πŸ€–
1,280
ESM-2 Output
dim per residue
↕
256
Single Track
d_single (Pairformer)
↔
64
Pair Track
d_pair per residue pair
πŸ•Έ
4 Γ— 8h
Pairformer Layers
4 layers, 8 heads
Feature Extraction Pipeline
Input
Raw Protein Sequenceβ€” aa

Amino acid sequence string. Variable length L ∈ [30, 1011].

ESM-2 650M
Per-Residue EmbeddingsL Γ— 1280

facebook/esm2_t33_650M_UR50D β€” 33 transformer layers, 20 heads, 650M parameters. Frozen during PaTz training. Context-aware residue representations.

Linear Projection
Single Track h_iL Γ— 256

Linear projection 1280β†’256 (d_single). One vector per residue fed into Pairformer as single track.

Outer Product
Pair Track z_ijL Γ— L Γ— 64

Outer product mean of projected residue features β†’ LΓ—LΓ—64 (d_pair). Encodes pairwise residue relationships.

Pairformer (Γ—4)
Contextualised ResiduesL Γ— 256

4 Pairformer layers: triangle multiplicative updates on z_ij + multi-head self-attention (8 heads) on h_i. Dropout 0.1. Captures long-range co-evolutionary dependencies.

Aggregation
Protein Embedding256

Mean-pool over sequence positions β†’ single 256-dim protein vector used for functional annotation and diffusion conditioning.

Feature Dimensionality by Stage
Loading chart…
Physicochemical Properties (BioPython)
PropertyRangeUse
Hydrophobicity (Kyte-Doolittle)βˆ’4.5 to +4.5Membrane-binding prediction
isoelectric point (pI)2 – 14Charge-based interaction scoring
Molecular weightkDaSize normalisation
GRAVY scoreβˆ’3 to +3Global hydrophilicity index
Aromaticity fraction0 – 1π–π stacking propensity
CΞ± bond geometryΓ…, Β°Physics-informed energy terms
ESM-2 Model Details
πŸ— Architecture

33 transformer layers, 20 attention heads per layer. Pre-trained on 250M protein sequences from UniRef90 database. Self-supervised masked language model objective.

🧊 Frozen Backbone

ESM-2 weights are frozen during PaTz training. Only the Pairformer, score network, and function head are trained (4,387,749 parameters). This constrains VRAM to 6GB.

✨ Embedding Quality

ESM-2 650M embeddings encode evolutionary information, secondary structure, and contact maps. No explicit feature engineering required beyond the linear projection to d_single=256.