How do deep learning architectures and biomolecular foundation models transform raw molecular graphs and one-dimensional amino acid sequences into quantum-accurate chemical property predictions 300,000 times (300k) faster than Density Functional Theory (MPNN, Gilmer et al. 2017), preserve exact $\mathrm{E}(n)$ translation, rotation, reflection, and permutation symmetries without expensive spherical harmonics to cut 3D $N$-body trajectory errors by 32% (0.0071 MSE at 0.0062 s batch latency, EGNN, Satorras et al. 2021), fold single-chain and multi-domain proteins in CASP14 to a median backbone accuracy of 0.96 Å $\text{r.m.s.d.}{95}$ and 1.5 Å all-atom $\text{r.m.s.d.}{95}$ (AlphaFold 2, Jumper et al. 2021), predict joint all-atom structures of proteins, nucleic acids, small-molecule ligands, ions, and covalent modifications via a 48-block Pairformer and direct raw-atom diffusion (AlphaFold 3, Abramson et al. 2024), design de novo nanomolar protein binders at a 19% experimental hit rate with 0.63 Å cryo-EM structural fidelity (RFdiffusion, Watson et al. 2023), and scale single-sequence and multimodal masked protein language models from 15 billion parameters (ESM-2 & the 617-million-structure ESM Metagenomic Atlas, Lin et al.) to 98 billion parameters and $>1 \times 10^{24}$ training FLOPs to synthesize esmGFP across an evolutionary distance equivalent to 500 million years (ESM3, EvolutionaryScale)?
Unlike natural language tokens arranged on a one-dimensional discrete grid or image pixels arranged on a two-dimensional regular lattice, molecules and biomolecular complexes exist as three-dimensional geometric graphs embedded in continuous Euclidean space $\mathbb{R}^3$ (https://arxiv.org/html/1704.01212v2, https://arxiv.org/html/2102.09844v3). When a protein, small-molecule ligand, or RNA complex is translated by an arbitrary vector $\mathbf{g} \in \mathbb{R}^3$, rotated by an orthogonal matrix $\mathbf{Q} \in \mathrm{SO}(3)$ (or reflected in $\mathrm{O}(3)$), or when its atomic node indices $\{1, \dots, M\}$ are re-ordered by a permutation matrix $\mathbf{P} \in S_M$, the underlying physical laws of quantum mechanics and statistical thermodynamics do not change:
- Scalar Invariance vs. Vector Equivariance Under the Euclidean Group $\mathrm{E}(3)$ (
arXiv:1704.01212v2,arXiv:2102.09844v3): Scalar quantum and thermodynamic observables—such as atomization energies ($U_0, U, H, G$), HOMO/LUMO orbital energies ($\varepsilon_{\text{HOMO}}, \varepsilon_{\text{LUMO}}$), zero-point vibrational energy ($\text{ZPVE}$), and heat capacity ($C_v$)—are $\mathrm{E}(3)$-invariant (type-0 features): rotating or translating the molecule leaves the scalar energy strictly unchanged. Conversely, 3D atomic forces, velocities $\mathbf{v}_i \in \mathbb{R}^3$, and updated coordinate trajectories $\mathbf{x}_i \in \mathbb{R}^3$ are $\mathrm{E}(3)$-equivariant (type-1 vectors): rotating the input coordinates by $\mathbf{Q}$ and translating by $\mathbf{g}$ must rotate and translate the output vector field by the exact same transformation $\mathbf{Q}\mathbf{x}_i + \mathbf{g}$ (https://arxiv.org/html/2102.09844v3, Section 2.1 & Section 3.1). - The Spherical Harmonics & Clebsch-Gordan Computational Bottleneck (
arXiv:2102.09844v3): Early $\mathrm{SE}(3)$-equivariant neural networks—such as Tensor Field Networks (TFN, Thomas et al. 2018) and theSE(3)-Transformer(Fuchs et al. 2020)—achieved rotational equivariance by projecting relative interatomic vectors onto irreducible representations of $\mathrm{SO}(3)$ using spherical harmonics $Y_l^m$ and combining higher-order tensor types via Clebsch-Gordan coefficients. While mathematically exact, evaluating higher-order tensor representations in every intermediate layer incurs severe computational overhead: on a 100-sample batch of 5-particle 3D $N$-body dynamics on a GTX 1080 Ti GPU, anSE(3)-Transformerrequires 0.1346 seconds per forward pass (0.0343 sforTFN) while yielding a Mean Squared Error of 0.0244 (0.0155forTFN), compared to 0.0062 seconds and 0.0071 MSE for an $\mathrm{E}(n)$-Equivariant Graph Neural Network (EGNN) that operates purely on scalar pairwise squared distances $\|\mathbf{x}_i - \mathbf{x}_j\|^2$ and radial relative vector updates (https://arxiv.org/html/2102.09844v3, Section 5.1, Table 2). - The Protein Folding and All-Atom Biomolecular Combinatorial Barrier (
Nature s41586-021-03819-2,Nature s41586-024-07487-w,EvolutionaryScale 2024): Before AlphaFold 2, decades of experimental X-ray crystallography, cryo-EM, and NMR had solved roughly 100,000 unique protein structures in the Protein Data Bank (PDB) out of billions of known sequences (https://www.nature.com/articles/s41586-021-03819-2, Abstract). Meanwhile, for a 229-residue protein like Green Fluorescent Protein (GFP), the joint discrete space of 20 amino acids and 4,096 local backbone structural tokens spans $20^{229} \times 4096^{229}$ combinations—vastly exceeding the number of atoms in the observable universe (https://www.evolutionaryscale.ai/blog/esm3-release).
Between 2017 and 2026, six foundational architectural paradigms unified message-passing graph theory, Euclidean symmetry groups, triangle-consistent evolutionary attention, all-atom denoising diffusion, and evolutionary-scale language modeling into a rigorous computational engineering stack:
- Message Passing Neural Networks (
MPNN) for Quantum Chemistry (Gilmer et al. 2017,arXiv:1704.01212v2): Unifying eight prior graph convolutional architectures into a two-phase formalism—a $T$-step message passing phase ($m_v^{t+1} = \sum_{w \in N(v)} M_t(h_v^t, h_w^t, e_{vw})$ and $h_v^{t+1} = U_t(h_v^t, m_v^{t+1})$) and a permutation-invariant readout phase ($\hat{y} = R(\{h_v^T \mid v \in G\})$). By combining an Edge Network (enn) message operator $M(h_v, h_w, e_{vw}) = A(e_{vw}) h_w$ with explicit hydrogen nodes, spatial distance edge features, and aSet2Set(s2s) attention readout over the 130,462-moleculeQM9benchmark,enn-s2sachieved chemical accuracy (error ratio $< 1.0$) on 11 out of 13 quantum mechanical targets (mean error ratio 0.68 single model, 0.52 for the 5-model ensembleenn-s2s-ens5) while running 300,000 times (300k) faster than DFT simulations (https://arxiv.org/html/1704.01212v2, Section 2, Section 7 & Section 8 Table 2). - $\mathrm{E}(n)$-Equivariant Graph Neural Networks (
EGNN,Satorras, Hoogeboom & Welling,arXiv:2102.09844v3, ICML 2021): Formulating the Equivariant Graph Convolutional Layer (EGCL) $(\mathbf{h}^{l+1}, \mathbf{x}^{l+1}) = \text{EGCL}[\mathbf{h}^l, \mathbf{x}^l, \mathcal{E}]$ that conditions edge messages $\mathbf{m}{ij} = \phi_e(\mathbf{h}_i^l, \mathbf{h}_j^l, \|\mathbf{x}_i^l - \mathbf{x}_j^l\|^2, a{ij})$ on invariant squared Euclidean distances and updates coordinates in $n$-dimensional space via radial vector differences $\mathbf{x}i^{l+1} = \mathbf{x}_i^l + C \sum{j \neq i}(\mathbf{x}i^l - \mathbf{x}_j^l)\phi_x(\mathbf{m}{ij})$. Without computing spherical harmonics,EGNNreduces 3D charged $N$-body trajectory prediction MSE by 32% (0.0071vs.0.0104Radial Field and0.0244SE(3)-Transformer) at0.0062 sbatch execution, achieves 0.11% and 0.06% edge reconstruction error on Erdős–Rényi and Community Small graph autoencoders, and reaches state-of-the-art competitive Mean Absolute Errors acrossQM9($\alpha = 0.071\text{ bohr}^3$, $\Delta\varepsilon = 48\text{ meV}$, $\varepsilon_{\text{HOMO}} = 29\text{ meV}$, $\varepsilon_{\text{LUMO}} = 25\text{ meV}$, $U_0 = 11\text{ meV}$) (https://arxiv.org/html/2102.09844v3, Section 3 & Section 5 Tables 2–3). - AlphaFold 2: 48-Block Evoformer, Invariant Point Attention (
IPA), and Frame Aligned Point Error (FAPE) (Jumper et al. 2021,Nature 596, 583–589): Treating protein folding as a 3D graph inference problem via a 48-blockEvoformertrunk that jointly evolves an $N_{\text{seq}} \times N_{\text{res}}$ Multiple Sequence Alignment (MSA) representation and an $N_{\text{res}} \times N_{\text{res}}$ pairwise graph representation using outer product mean, triangle multiplicative updates (outgoing and incoming edge triangles $ij, ik, jk$), and triangle self-attention, followed by an 8-block Structure Module operating on a free-floating "residue gas" of $N_{\text{res}}$ Euclidean backbone frames $(R_k, \mathbf{t}k) \in \mathrm{SE}(3)$ via Invariant Point Attention (IPA) and trained under Frame Aligned Point Error (FAPE). In the blindCASP14assessment ($n = 87$ domains), AlphaFold 2 achieved a median backbone accuracy of 0.96 Å $\text{r.m.s.d.}{95}$ (95% CI: 0.85–1.16 Å) versus 2.8 Å for the next best method, and an all-atom accuracy of 1.5 Å $\text{r.m.s.d.}_{95}$ versus 3.5 Å (https://www.nature.com/articles/s41586-021-03819-2). - AlphaFold 3: 48-Block Pairformer and Direct All-Atom Coordinate Diffusion (
Abramson et al. 2024,Nature 630, 493–500): Compressing MSA preprocessing to a lightweight 4-block MSA module with pair-weighted averaging, replacing theEvoformerwith a 48-blockPairformerthat processes only the pair representation $(n, n, c=128)$ and single representation $(n, c=384)$ across arbitrary chemical tokens (1 token per standard polymer residue; 1 token per heavy atom for ligands), and replacing $\mathrm{SE}(3)$ residue frames and side-chain torsion angles with a direct All-Atom Diffusion Module over raw Cartesian coordinates. Across the 428-structurePoseBustersbenchmark, AlphaFold 3 significantly outperformsAutoDock Vina($P = 2.27 \times 10^{-13}$) andRoseTTAFold All-Atom($P = 4.45 \times 10^{-25}$), while improving protein–proteinDockQ > 0.23($P = 1.8 \times 10^{-18}$), antibody–protein interfaces ($P = 6.5 \times 10^{-5}$), and monomerLDDT($P = 1.7 \times 10^{-34}$) across 8,856 recent PDB complexes (https://www.nature.com/articles/s41586-024-07487-w). - De Novo Generative Protein Design via
RFdiffusion&ProteinMPNN(Watson et al. 2023,Nature 620, 1089–1100): Fine-tuning theRoseTTAFoldarchitecture as an $\mathrm{SE}(3)$ frame denoising diffusion generator ($C_\alpha$ 3D Gaussian Brownian motion + $\mathrm{SO}(3)$ rotational Brownian motion) paired withProteinMPNNinverse folding (8 sequences per design). Across five de novo protein binder campaigns (Influenza A H1 Haemagglutinin (HA),IL-7Rα,PD-L1,InsR, andTrkA, testing 95 designs per target by biolayer interferometry at $10\ \mu\text{M}$),RFdiffusionachieves a 19% overall experimental hit rate (~2 orders of magnitude above prior physical Rosetta designs), producing the 28 nM InfluenzaHA_20stem binder whose 2.9 Å cryo-EM structure (PDB 8SK7) matches the computational design model to 0.63 Å backbone $\text{r.m.s.d.}$ (0.6 Å over the binder alone), as well as 0.5 nM and 0.7 nM MDM2-binding p53 helix scaffolds (55/96 active designs, 3 orders of magnitude stronger than the 600 nM native p53 peptide) (https://www.nature.com/articles/s41586-023-06415-8). - Evolutionary-Scale Protein Language Models:
ESM-2,ESMFold, and MultimodalESM3(Lin et al. 2023,github.com/facebookresearch/esm;Hayes et al. 2024/2025,EvolutionaryScale): Scaling masked single-sequence protein language models onUniRef50/Dfrom 6 layers / 8M parameters (esm2_t6_8M_UR50D, dim 320) up to 48 layers / 15B parameters (esm2_t48_15B_UR50D, dim 5120), pairing the 36-layer3BESM-2trunk with a 48-layer690Mfolding head inESMFold(esmfold_v1) to fold 617 million metagenomic proteins without MSAs (https://github.com/facebookresearch/esm), and scalingESM3to 98 billion parameters and $>1 \times 10^{24}$ training FLOPs across discrete sequence, 4,096-token 3D structure, and function tracks to generateesmGFP(a functional 229-residue green fluorescent protein differing by 96 mutations / 58% sequence similarity from its closest natural neighbor—equivalent to simulating over 500 million years of natural evolution;https://www.evolutionaryscale.ai/blog/esm3-release).
- ✓MPNN on QM9 (Gilmer et al., arXiv:1704.01212v2): Across 130,462 molecules (10k val, 10k test, up to 9 heavy atoms H/C/O/N/F, 13 DFT properties), the Edge Network + Set2Set MPNN (
enn-s2s) runs 300,000× (300k) faster than DFT and reaches chemical accuracy (error ratio < 1.0) on 11 of 13 targets with an average error ratio of 0.68 (0.52 for the 5-model ensembleenn-s2s-ens5vs. 1.36 GG-NN and 3.47 without spatial distances). - ✓E(n)-Equivariant GNNs (Satorras, Hoogeboom & Welling, arXiv:2102.09844v3): By updating node embeddings via scalar squared distances $\|\mathbf{x}_i^l - \mathbf{x}_j^l\|^2$ and coordinates via radial vector fields $\mathbf{x}_i^{l+1} = \mathbf{x}_i^l + C\sum_{j\neq i}(\mathbf{x}_i^l - \mathbf{x}_j^l)\phi_x(\mathbf{m}_{ij})$, EGNN achieves 0.0071 MSE on 3D 5-particle charged N-body dynamics (a 32% error reduction over Radial Field 0.0104 and SE(3)-Transformer 0.0244) in just 0.0062 s per 100-sample batch (vs. 0.1346 s for SE(3)-Transformer), 0.11% / 0.06% autoencoder edge error, and 11 meV $U_0$ / 29 meV HOMO / 25 meV LUMO MAE on QM9.
- ✓AlphaFold 2 Evoformer & Invariant Point Attention (Jumper et al., Nature 2021): Combines a 48-block Evoformer (triangle multiplicative updates + triangle self-attention + outer product mean) with an SE(3) Invariant Point Attention (IPA) Structure Module trained under Frame Aligned Point Error (FAPE), achieving 0.96 Å median backbone $\text{r.m.s.d.}_{95}$ (95% CI: 0.85–1.16 Å vs. 2.8 Å next best) and 1.5 Å all-atom $\text{r.m.s.d.}_{95}$ (vs. 3.5 Å) across 87 CASP14 domains, plus 1.46 Å median backbone r.m.s.d. across 3,144 recent PDB chains.
- ✓AlphaFold 3 Pairformer & Raw-Atom Diffusion (Abramson et al., Nature 2024): Replaces the Evoformer with a 4-block MSA module + 48-block Pairformer ($c_{\text{pair}}=128$, $c_{\text{single}}=384$) and replaces $\mathrm{SE}(3)$ frames with a direct All-Atom Diffusion Module (trained with 384/640/768 token crops and 12,288 / 8,192 diffusion samples per step), outperforming AutoDock Vina ($P = 2.27 \times 10^{-13}$) and RoseTTAFold All-Atom ($P = 4.45 \times 10^{-25}$) on the 428-complex PoseBusters benchmark and improving protein–protein DockQ ($P = 1.8 \times 10^{-18}$) across 8,856 recent PDB complexes.
- ✓RFdiffusion De Novo Protein Design (Watson et al., Nature 2023): Denoising protein backbone frames in $\mathrm{SE}(3)$ +
ProteinMPNNsequence design yields a 19% experimental binder hit rate across 5 targets (95 designs/target at 10 μM BLI), including the 28 nM Influenza H1 HA stem binderHA_20verified by a 2.9 Å cryo-EM map (PDB 8SK7) at 0.63 Å complex r.m.s.d. (0.6 Å binder r.m.s.d.) and 0.5–0.7 nM MDM2 p53-scaffold binders (55/96 active). - ✓ESM-2, ESMFold & 98B Multimodal ESM3 (Meta FAIR & EvolutionaryScale): ESM-2 scales from 8M (6L, dim 320) to 15B parameters (48L, dim 5120) on UniRef50/D, powering ESMFold (3B + 690M) across the 617-million-structure ESM Metagenomic Atlas. ESM3 scales to 98B parameters (>$1 \times 10^{24}$ FLOPs; open 1.4B MIT release) over discrete sequence, 4,096-token structure, and function tracks to generate
esmGFP(229 AA, 96 mutations / 58% identity to closest natural GFP, simulating >500M years of evolution).
Edge Network + Set2Set MPNN runs 300k× faster than DFT on 130,462 QM9 molecules, hitting chemical accuracy on 11/13 targets (0.52 ensemble error ratio).
48-block Evoformer + SE(3) IPA Structure Module reaches 0.96 Å backbone r.m.s.d.95 (vs. 2.8 Å) and 1.5 Å all-atom r.m.s.d.95 (vs. 3.5 Å) on CASP14.
19% experimental binder hit rate across 5 targets (~100× over Rosetta); 28 nM HA_20 binder matches 2.9 Å cryo-EM structure (PDB 8SK7) to 0.63 Å r.m.s.d.
ESM-2 (up to 15B) + ESMFold map 617M metagenomic proteins; 98B multimodal ESM3 generates esmGFP (58% identity / 96 mutations, >500M years evolution).
1. Message Passing Neural Networks (MPNN) for Quantum Chemistry: Edge Networks, Set2Set Readouts, Explicit Hydrogens, and the 130,462-Molecule QM9 DFT Benchmark (Gilmer et al., arXiv:1704.01212v2)
In Neural Message Passing for Quantum Chemistry (Gilmer, Schoenholz, Riley, Vinyals, and Dahl, Google Brain, ICML 2017; https://arxiv.org/html/1704.01212v2, https://arxiv.org/abs/1704.01212), the authors unified eight distinct molecular graph neural network architectures—including Molecular Graph Convolutions (Duvenaud et al. 2015), Gated Graph Neural Networks (GG-NN, Li et al. 2016), Interaction Networks (Battaglia et al. 2016), Molecular Graph Convolutions (Kearnes et al. 2016), Deep Tensor Neural Networks (DTNN, Schütt et al. 2017), and Spectral Graph Convolutions (Kipf & Welling 2016)—into a single mathematical abstraction termed Message Passing Neural Networks (MPNNs).
1. The Two-Phase MPNN Formalism: Message Passing ($M_t, U_t$) and Permutation-Invariant Readout ($R$)
Given an undirected molecular graph $G$ with vertex feature vectors $x_v$ (encoding atom type, atomic number, acceptor/donor status, aromaticity, hybridization, and number of bonded hydrogens) and edge feature vectors $e_{vw}$ (encoding covalent bond type and pairwise spatial Euclidean distance), an MPNN executes two sequential differentiable phases (https://arxiv.org/html/1704.01212v2, Section 2, Equations 1–3):
- The Message Passing Phase ($T$ Time Steps, $3 \le T \le 8$): At each message-passing step $t \in \{0, \dots, T-1\}$, every atomic node $v \in G$ aggregates incoming messages $m_v^{t+1}$ from its immediate graph neighborhood $N(v)$ via a learned message function $M_t$, and updates its hidden state vector $h_v^{t+1} \in \mathbb{R}^d$ via a learned vertex update operator $U_t$: $$m_v^{t+1} = \sum_{w \in N(v)} M_t\big(h_v^t, h_w^t, e_{vw}\big), \qquad h_v^{t+1} = U_t\big(h_v^t, m_v^{t+1}\big)$$
- The Permutation-Invariant Readout Phase ($R$): After $T$ steps of message propagation, a graph-level readout operator $R$ maps the set of final node embeddings $\{h_v^T \mid v \in G\}$ to the target molecular property vector $\hat{y}$: $$\hat{y} = R\Big(\big\{h_v^T \;\big|\; v \in G\big\}\Big)$$ To guarantee that the network prediction $\hat{y}$ is invariant to graph isomorphism (arbitrary relabeling of the atomic indices), $R$ must be strictly invariant to permutations of the node set $\{h_v^T\}$.
2. Edge Network (enn), Virtual Graph Elements, Set2Set (s2s), and Towers Architectural Variations
To reach chemical accuracy across all four families of quantum properties on QM9, Gilmer et al. introduced three architectural innovations on top of the Gated Graph Neural Network (GG-NN) baseline, where $U_t = \operatorname{GRU}(h_v^t, m_v^{t+1})$ (https://arxiv.org/html/1704.01212v2, Section 5.1–5.4):
- Edge Network (
enn) Continuous-Distance Message Function: In a standardGG-NN, the message function $M_t(h_v^t, h_w^t, e_{vw}) = A_{e_{vw}} h_w^t$ requires a separate learned $d \times d$ weight matrix $A_{e_{vw}}$ for each discrete edge label, making it impossible to condition directly on continuous real-valued pairwise interatomic distances $d_{vw} = \|\mathbf{x}v - \mathbf{x}_w\|_2$. The Edge Network (enn) replaces the discrete lookup table with a multi-layer perceptron $A(e{vw}) \in \mathbb{R}^{d \times d}$ that maps the continuous edge vector $e_{vw}$ (covalent bond type concatenated with spatial Euclidean distance) to a dynamic $d \times d$ propagation matrix: $$M^{\text{enn}}\big(h_v^t, h_w^t, e_{vw}\big) = A(e_{vw})\, h_w^t$$ - Virtual Graph Elements (Virtual Distance Edges vs. Master Node): For sparse graphs where two non-bonded atoms are separated by several covalent hops, information travels slowly unless spatial edges are added. Gilmer et al. compared two long-range routing mechanisms: (a) Virtual Edges, adding a special "virtual edge" type between all unconnected atom pairs (or full pairwise distance matrix entries), and (b) a Master Node $h_{\text{master}}^t$ connected to every atom $v \in G$ with dedicated learned transformations, serving as a global graph scratchpad across all $T$ steps (
https://arxiv.org/html/1704.01212v2, Section 5.2). Set2Set(s2s) Iterative Attention Readout (Vinyals et al. 2015): Standard sum-pooling readouts ($R = \sum_{v \in G} i(h_v^T, h_v^0) \odot j(h_v^T)$) compress all atomic states in a single unaligned sum. Gilmer et al. replaced sum pooling with theSet2Set(s2s) recurrent attention model ($1 \le M \le 12$ computation steps), which projects each node state $h_v^T$ to a linear tuple $T_v = (h_v^T, x_v)$, runs an $M$-stepLSTMquery-attention loop over the set $\{T_v\}$, and feeds the final concatenated context vector $q_t^*$ into a readout MLP (https://arxiv.org/html/1704.01212v2, Section 5.3).- Multi-Tower Message Passing (
Towers, $k=8$) for $O(n^2 d^2 / k)$ Scaling: Because a dense distance graph over $n$ atoms contains $n^2$ edges, evaluating the Edge Network matrix multiplication $A(e_{vw}) h_w^t$ takes $O(n^2 d^2)$ floating-point operations. TheTowersvariant partitions the $d$-dimensional node state $h_v^t$ into $k$ independent chunks $h_v^{t,k'} \in \mathbb{R}^{d/k}$, runs separate message and update functions per tower, and mixes them via a shared linear combiner—reducing dense spatial message passing complexity by a factor of $k$ to $O(n^2 d^2 / k)$ and cutting non-hydrogenQM9average error ratios from 1.92 to 1.75 (joint training) and from 1.53 to 1.37 (individual target training) at $k=8$ (https://arxiv.org/html/1704.01212v2, Section 5.4 & Table 4).
3. QM9 Quantum Chemistry Benchmark (130,462 Molecules, 13 DFT Properties, 300,000× Speedup)
Gilmer et al. evaluated MPNNs on the QM9 dataset (Ramakrishnan et al. 2014), containing 130,462 (~130k / 134k) drug-like organic molecules composed of Hydrogen (H), Carbon (C), Oxygen (O), Nitrogen (N), and Fluorine (F) with up to 9 heavy (non-hydrogen) atoms (https://arxiv.org/html/1704.01212v2, Section 4 & Section 7). Using 10,000 molecules for validation, 10,000 for testing, and the remaining 110,462 molecules for training (50 random hyperparameter trials per target, $3 \le T \le 8$, $1 \le M \le 12$, Adam batch size 20 for 3 million steps / 540 epochs), the authors measured performance via the Error Ratio: $$\text{Error Ratio} = \frac{\text{Model Test MAE}}{\text{Target Chemical Accuracy Threshold}}$$ where an Error Ratio $< 1.0$ indicates that the neural network has achieved chemical accuracy on that quantum property while running 300,000 times (300k) faster than the underlying Density Functional Theory (DFT) quantum mechanical simulation (https://arxiv.org/html/1704.01212v2, Section 1 & Section 8 Table 2):
QM9 Quantum Mechanical Property Target (130,462 Molecules; 10k Val / 10k Test) | Physical Category & Units | CM (Coulomb Matrix) Error Ratio | ECFP4 Fingerprint Error Ratio | GC (Graph Conv) Error Ratio | GG-NN Baseline Error Ratio | enn-s2s (Single MPNN) Error Ratio | enn-s2s-ens5 (5-MPNN Ensemble) Error Ratio |
|---|---|---|---|---|---|---|---|
| $\mu$ (Dipole Moment) | Spatial electron distribution (Debye) | 4.49 | 4.82 | 0.70 | 1.22 | 0.30 (<1.0 ✓) | 0.20 (<1.0 ✓) |
| $\alpha$ (Isotropic Polarizability) | Spatial electron distribution ($a_0^3$) | 4.33 | 34.54 | 2.27 | 1.55 | 0.92 (<1.0 ✓) | 0.68 (<1.0 ✓) |
| $\varepsilon_{\text{HOMO}}$ (Highest Occupied Orbital) | Electronic orbital energy (eV) | 3.09 | 2.89 | 1.18 | 1.17 | 0.99 (<1.0 ✓) | 0.74 (<1.0 ✓) |
| $\varepsilon_{\text{LUMO}}$ (Lowest Unoccupied Orbital) | Electronic orbital energy (eV) | 4.26 | 3.10 | 1.10 | 1.08 | 0.87 (<1.0 ✓) | 0.65 (<1.0 ✓) |
| $\Delta\varepsilon = \varepsilon_{\text{HOMO}} - \varepsilon_{\text{LUMO}}$ (Gap) | Electronic band gap (eV) | 5.32 | 3.86 | 1.78 | 1.70 | 1.60 | 1.23 |
| $\langle R^2 \rangle$ (Electronic Spatial Extent) | Spatial electron distribution ($a_0^2$) | 2.83 | 90.68 | 4.73 | 3.99 | 0.15 (<1.0 ✓) | 0.14 (<1.0 ✓) |
| $\text{ZPVE}$ (Zero-Point Vibrational Energy) | Fundamental harmonic vibration (eV) | 4.80 | 241.58 | 9.75 | 2.52 | 1.27 | 1.10 |
| $U_0$ (Atomization Energy at $0\text{ K}$) | Thermodynamic binding (eV) | 2.98 | 85.01 | 3.02 | 0.83 | 0.45 (<1.0 ✓) | 0.33 (<1.0 ✓) |
| $U$ (Atomization Energy at $298.15\text{ K}$) | Thermodynamic binding (eV) | 2.99 | 85.59 | 3.16 | 0.86 | 0.45 (<1.0 ✓) | 0.34 (<1.0 ✓) |
| $H$ (Enthalpy of Atomization at $298.15\text{ K}$) | Thermodynamic binding (eV) | 2.99 | 86.21 | 3.19 | 0.81 | 0.39 (<1.0 ✓) | 0.30 (<1.0 ✓) |
| $G$ (Free Energy of Atomization at $298.15\text{ K}$) | Thermodynamic binding (eV) | 2.97 | 78.36 | 2.95 | 0.78 | 0.44 (<1.0 ✓) | 0.34 (<1.0 ✓) |
| $C_v$ (Heat Capacity at $298.15\text{ K}$) | Thermodynamic property ($\text{cal/mol K}$) | 2.36 | 30.29 | 1.45 | 1.19 | 0.80 (<1.0 ✓) | 0.62 (<1.0 ✓) |
$\omega_1$ (Omega, Highest Vibrational Freq.) | Fundamental vibration ($\text{cm}^{-1}$) | 1.32 | 1.47 | 0.32 | 0.53 | 0.19 (<1.0 ✓) | 0.15 (<1.0 ✓) |
13-Target Mean Error Ratio (Table 2) | Chemical accuracy threshold $= 1.00$ | 3.37 | 53.97 | 2.59 | 1.36 | 0.68 (11/13 < 1.0) | 0.52 (11/13 < 1.0) |
Furthermore, when spatial 3D distance information is withheld (Table 3), adding Virtual Edges (2.90), a Master Node (2.62), or a Set2Set readout (2.57) reduces the non-spatial GG-NN average error ratio from 3.47 down to 2.57, while training one dedicated MPNN per target outperforms joint 13-target training by up to 40% (https://arxiv.org/html/1704.01212v2, Section 8).
2. $\mathrm{E}(n)$-Equivariant Graph Neural Networks (EGNN): Scalar Distance Message Passing, Radial Vector Field Coordinate Updates, 3D $N$-Body Dynamics, and QM9 Benchmarks (Satorras, Hoogeboom & Welling, arXiv:2102.09844v3)
While Gilmer et al.'s MPNN achieved $\mathrm{E}(3)$ invariance for scalar energy regression by feeding pairwise distances $\|\mathbf{x}_v - \mathbf{x}_w\|$ into the edge message network, a standard MPNN cannot directly update or predict 3D particle coordinates $\mathbf{x}_i \in \mathbb{R}^3$ or velocity fields $\mathbf{v}_i \in \mathbb{R}^3$ in an $\mathrm{E}(n)$-equivariant manner without breaking rotational symmetry. Conversely, spherical-harmonics networks (TFN, SE(3)-Transformer) restrict equivariance to $n = 3$ dimensions and require expensive Clebsch-Gordan tensor products in every layer.
In $\mathrm{E}(n)$ Equivariant Graph Neural Networks (Victor Garcia Satorras, Emiel Hoogeboom, and Max Welling, UvA-Bosch Delta Lab, University of Amsterdam, ICML 2021; https://arxiv.org/html/2102.09844v3, https://arxiv.org/abs/2102.09844), the authors solved both limitations by decoupling each graph node $v_i \in \mathcal{V}$ into an $\mathrm{E}(n)$-invariant feature embedding $\mathbf{h}_i^l \in \mathbb{R}^{n_f}$ (type-0 scalar vector) and an $\mathrm{E}(n)$-equivariant coordinate vector $\mathbf{x}_i^l \in \mathbb{R}^n$ (type-1 geometric vector) in arbitrary $n$-dimensional Euclidean space.
1. The Four Equations of the Equivariant Graph Convolutional Layer (EGCL)
Given node embeddings $\mathbf{h}^l = \{\mathbf{h}0^l, \dots, \mathbf{h}{M-1}^l\}$, coordinate vectors $\mathbf{x}^l = \{\mathbf{x}0^l, \dots, \mathbf{x}{M-1}^l\}$, and edge attributes $\mathcal{E} = (a_{ij})$, a single Equivariant Graph Convolutional Layer (EGCL) computes $(\mathbf{h}^{l+1}, \mathbf{x}^{l+1}) = \text{EGCL}[\mathbf{h}^l, \mathbf{x}^l, \mathcal{E}]$ via four coupled equations (https://arxiv.org/html/2102.09844v3, Section 3, Equations 3–6):
$$\mathbf{m}{ij} = \phi_e\Big(\mathbf{h}_i^l, \mathbf{h}_j^l, \big\|\mathbf{x}_i^l - \mathbf{x}_j^l\big\|^2, a{ij}\Big)$$
$$\mathbf{x}i^{l+1} = \mathbf{x}_i^l + C \sum{j \neq i} \big(\mathbf{x}i^l - \mathbf{x}_j^l\big)\, \phi_x(\mathbf{m}{ij})$$
$$\mathbf{m}i = \sum{j \neq i} \mathbf{m}_{ij}$$
$$\mathbf{h}_i^{l+1} = \phi_h\big(\mathbf{h}_i^l, \mathbf{m}_i\big)$$
where $C = \frac{1}{M - 1}$ normalizes the coordinate sum by the number of neighbors, $\phi_e$ and $\phi_h$ are standard multi-layer perceptrons with Swish activations, and $\phi_x : \mathbb{R}^{n_f} \to \mathbb{R}^1$ maps each edge embedding $\mathbf{m}_{ij}$ to a single scalar radial force weight (https://arxiv.org/html/2102.09844v3, Section 3).
Why EGCL Is Exact Under $\mathrm{E}(n)$ Rotations, Reflections, and Translations (Section 3.1 & Appendix A):
- Invariance of Edge Messages $\mathbf{m}{ij}$ and Node Features $\mathbf{h}_i^{l+1}$: Under any orthogonal transformation $\mathbf{Q} \in \mathrm{O}(n)$ ($\mathbf{Q}^T \mathbf{Q} = \mathbf{I}$) and translation $\mathbf{g} \in \mathbb{R}^n$, the transformed squared distance is invariant: $$\big\|(\mathbf{Q}\mathbf{x}_i^l + \mathbf{g}) - (\mathbf{Q}\mathbf{x}_j^l + \mathbf{g})\big\|^2 = (\mathbf{x}_i^l - \mathbf{x}_j^l)^T \mathbf{Q}^T \mathbf{Q} (\mathbf{x}_i^l - \mathbf{x}_j^l) = \big\|\mathbf{x}_i^l - \mathbf{x}_j^l\big\|^2$$ Consequently, $\mathbf{m}{ij}$, $\phi_x(\mathbf{m}_{ij})$, $\mathbf{m}_i$, and $\mathbf{h}_i^{l+1}$ remain strictly unchanged.
- Equivariance of the Radial Coordinate Update $\mathbf{x}i^{l+1}$: Substituting $\mathbf{Q}\mathbf{x}_i^l + \mathbf{g}$ into the coordinate update equation yields: $$(\mathbf{Q}\mathbf{x}_i^l + \mathbf{g}) + C \sum{j \neq i} \big((\mathbf{Q}\mathbf{x}i^l + \mathbf{g}) - (\mathbf{Q}\mathbf{x}_j^l + \mathbf{g})\big)\, \phi_x(\mathbf{m}{ij}) = \mathbf{Q}\mathbf{x}i^l + \mathbf{g} + \mathbf{Q} C \sum{j \neq i} (\mathbf{x}i^l - \mathbf{x}_j^l)\phi_x(\mathbf{m}{ij}) = \mathbf{Q}\mathbf{x}_i^{l+1} + \mathbf{g}$$
- Momentum/Velocity Extension (
Section 3.2, Equation 7): When particles carry an initial velocity or momentum vector $\mathbf{v}i^{\text{init}} \in \mathbb{R}^n$,EGNNextends Equation 4 with a learnable scalar velocity scaling function $\phi_v : \mathbb{R}^{n_f} \to \mathbb{R}^1$: $$\mathbf{v}_i^{l+1} = \phi_v(\mathbf{h}_i^l)\,\mathbf{v}_i^{\text{init}} + C \sum{j \neq i} (\mathbf{x}i^l - \mathbf{x}_j^l)\,\phi_x(\mathbf{m}{ij}), \qquad \mathbf{x}_i^{l+1} = \mathbf{x}_i^l + \mathbf{v}_i^{l+1}$$
2. Empirical Benchmarks: 3D Charged $N$-Body Dynamics, Graph Autoencoders, and QM9
Satorras et al. benchmarked EGNN across three distinct geometric tasks (https://arxiv.org/html/2102.09844v3, Section 5.1–5.3, Table 2 & Table 3):
- 5-Particle 3D Charged $N$-Body Dynamical System (
Table 2): Forecasting the 3D positions of 5 charged particles ($c_i \in \{-1, +1\}$, edge attribute $a_{ij} = c_i c_j$) after 1,000 timesteps across 3,000 training, 2,000 validation, and 2,000 test trajectories (4 layers, 64 hidden features, Swish non-linearity, batch size 100, 10,000 epochs on an NVIDIA GTX 1080 Ti GPU).EGNNachieves a Mean Squared Error of 0.0071—a 32% error reduction over the second-best method (Radial Fieldat0.0104) and 3.4× lower error thanSE(3)-Transformer(0.0244)—while completing a 100-sample batch forward pass in 0.0062 seconds (21.7× faster thanSE(3)-Transformer's0.1346 sand 5.5× faster thanTensor Field Network's0.0343 s). - $n=8$ Dimensional Equivariant Graph Autoencoders (
Section 5.2): Embedding featureless graphs into an $n = 8$ dimensional continuous coordinate space $\mathbf{z} = \mathbf{x}^L \in \mathbb{R}^{M \times 8}$ via initial Gaussian symmetry-breaking coordinates $\mathbf{x}^0 \sim \mathcal{N}(\mathbf{0}, \sigma \mathbf{I})$ achieves 0.11% edge classification error on Erdős–Rényi graphs and 0.06% error on Community Small graphs. QM912-Property Quantum Regression (Table 3): Operating directly on 3D atomic coordinates without spherical harmonics,EGNNoutperformsNMP,SchNet,Cormorant,L1Net,LieConv,TFN, andSE(3)-Transformeracross the majority ofQM9targets:
| Model Architecture | 3D $N$-Body MSE $\downarrow$ (Table 2) | 100-Sample Batch Forward Time $\downarrow$ (GTX 1080 Ti) | QM9 $\alpha$ ($\text{bohr}^3$) $\downarrow$ | QM9 $\Delta\varepsilon$ ($\text{meV}$) $\downarrow$ | QM9 $\varepsilon_{\text{HOMO}}$ ($\text{meV}$) $\downarrow$ | QM9 $\varepsilon_{\text{LUMO}}$ ($\text{meV}$) $\downarrow$ | QM9 $\mu$ ($\text{D}$) $\downarrow$ | QM9 $U_0$ / $U$ / $H$ / $G$ ($\text{meV}$) $\downarrow$ |
|---|---|---|---|---|---|---|---|---|
| Linear Motion ($\mathbf{p}^{(0)} + \mathbf{v}^{(0)}t$) | 0.0819 | 0.0001 s | — | — | — | — | — | — |
Tensor Field Network (TFN) | 0.0155 | 0.0343 s | 0.223 | 58 | 40 | 38 | 0.064 | — |
SE(3)-Transformer | 0.0244 | 0.1346 s | 0.142 | 53 | 35 | 33 | 0.051 | — |
Non-Equivariant GNN / SchNet | 0.0107 (GNN) | 0.0032 s | 0.235 | 63 | 41 | 34 | 0.033 | 14 / 19 / 14 / 14 |
Radial Field / Cormorant | 0.0104 (RF) | 0.0039 s | 0.085 | 61 | 34 | 38 | 0.038 | 22 / 21 / 21 / 20 |
LieConv (Finzi et al.) | — | — | 0.084 | 49 | 30 | 25 | 0.032 | 19 / 19 / 24 / 22 |
EGNN (Satorras et al. 2021) | 0.0071 (-32%) | 0.0062 s (21.7× faster vs. SE3-Tr) | 0.071 | 48 | 29 | 25 | 0.029 | 11 / 12 / 12 / 12 |
3. AlphaFold 2 Architecture & CASP14 Atomic Accuracy: 48-Block Evoformer Triangle Updates, Invariant Point Attention (IPA) over $\mathrm{SE}(3)$ Residue Frames, and Frame Aligned Point Error (FAPE) (Jumper et al., Nature 2021)
In Highly accurate protein structure prediction with AlphaFold (Jumper, Evans, Pritzel, Green, Figurnov, Ronneberger, Tunyasuvunakool, Bates, Žídek, Potapenko, Bridgland, Meyer, Kohl, Ballard, Cowie, Romera-Paredes, Nikolov, Jain, Adler, Back, Petersen, Reiman, Clancy, Zielinski, Steinegger, Pacholska, Berghammer, Bodenstein, Silver, Vinyals, Senior, Kavukcuoglu, Kohli, and Hassabis, DeepMind, Nature 596, 583–589, 2021; https://www.nature.com/articles/s41586-021-03819-2), the authors achieved the first computational breakthrough capable of regularly predicting protein 3D structures to atomic experimental accuracy even when no homologous template structure exists.

Three-dimensional atomic structure rendering of the Pneumolysin protein from the Protein Data Bank illustrating secondary-structure alpha-helices, beta-sheets, and tertiary domain folding
1. Blind CASP14 Assessment (0.96 Å Backbone $\text{r.m.s.d.}_{95}$) and 3,144-Chain PDB Validation
Entered into the 14th Critical Assessment of protein Structure Prediction (CASP14, May–July 2020) across $n = 87$ blind protein domains and 146 total entries (with 95% confidence intervals estimated via 10,000 bootstrap samples), AlphaFold 2 demonstrated an orders-of-magnitude leap over all competing methods (https://www.nature.com/articles/s41586-021-03819-2, Abstract & Main Text, Figure 1a):
- Median Backbone Accuracy ($C_\alpha$ $\text{r.m.s.d.}{95}$ at 95% Residue Coverage): AlphaFold 2 achieved a median backbone error of 0.96 Å $\text{r.m.s.d.}{95}$ (95% CI = 0.85–1.16 Å) across the
CASP14domains—less than the width of a single carbon atom (~1.4 Å)—whereas the next best performing group inCASP14had a median backbone error of 2.8 Å $\text{r.m.s.d.}_{95}$ (95% CI = 2.7–4.0 Å). - Median All-Atom Accuracy ($\text{r.m.s.d.}{95}$ Including Side Chains): Across all heavy atoms, AlphaFold 2 achieved a median error of 1.5 Å $\text{r.m.s.d.}{95}$ (95% CI = 1.2–1.6 Å), compared with 3.5 Å $\text{r.m.s.d.}_{95}$ (95% CI = 3.1–4.2 Å) for the best alternative method, accurately positioning side-chain rotamers in complex functional motifs such as the zinc-binding site of
CASP14targetT1056(PDB 6YJ1) and folding the 2,180-residue single-chain RNA polymerase targetT1044(PDB 6VR4) with accurate inter-domain packing (https://www.nature.com/articles/s41586-021-03819-2, Figure 1b–d). - Uncurated Recent PDB Full-Chain Generalization ($n = 3,144$ Chains): Evaluated on 3,144 full-length protein chains deposited in the PDB after the training cutoff (filtered so no template shares $>40\%$ sequence identity over $>1\%$ of the chain), AlphaFold 2 achieved an overall median full-chain backbone error of 1.46 Å (95% CI = 1.40–1.56 Å), while its intrinsic confidence heads—per-residue predicted local-distance difference test (
pLDDT) and predicted TM-score (pTM)—tightly correlated with true experimental accuracy (https://www.nature.com/articles/s41586-021-03819-2, Figure 2a–d).
2. The 48-Block Evoformer Trunk: Co-Evolving the $N_{\text{seq}} \times N_{\text{res}}$ MSA Array and the $N_{\text{res}} \times N_{\text{res}}$ Pair Graph
The trunk of AlphaFold 2 consists of 48 repeated Evoformer blocks (with unshared weights) that jointly maintain and cross-update two coupled tensor representations (https://www.nature.com/articles/s41586-021-03819-2, Section Evoformer, Figure 3a–c):
- The MSA Representation ($\mathbf{M} \in \mathbb{R}^{N_{\text{seq}} \times N_{\text{res}} \times c_m}$): Rows correspond to homologous evolutionary sequences ($N_{\text{seq}}$) and columns correspond to individual amino acid positions ($N_{\text{res}}$) of the target sequence.
- The Pair Representation ($\mathbf{Z} \in \mathbb{R}^{N_{\text{res}} \times N_{\text{res}} \times c_z}$): Interpreted as directed edges $z_{ij}$ in a 3D spatial residue graph encoding pairwise evolutionary co-variation and spatial proximity.
Within every single Evoformer block, information flows bi-directionally between the MSA and Pair tracks via four specialized geometric and axial update mechanisms (https://www.nature.com/articles/s41586-021-03819-2, Figure 3a–c):
- Row-Wise and Column-Wise Gated Axial MSA Attention with Pair Bias: During row-wise (per-sequence) attention across residues $i, j \in \{1, \dots, N_{\text{res}}\}$, the attention logits are projected from the MSA representation and directly augmented by a learned linear bias derived from the current pair representation $z_{ij}$, injecting current 3D structural hypotheses into evolutionary sequence alignment. Column-wise attention exchanges information across homologous sequences at each fixed residue position.
- Outer Product Mean (Continuous MSA $\to$ Pair Communication): In every block (rather than only once at the start of the network), the evolving MSA representation updates edge $z_{ij}$ by taking the element-wise outer product of linearly projected MSA columns $i$ and $j$, averaged over the $N_{\text{seq}}$ sequence dimension: $$\Delta z_{ij}^{\text{OPM}} = \text{Linear}\!\left(\frac{1}{N_{\text{seq}}} \sum_{s=1}^{N_{\text{seq}}} \mathbf{a}{s,i} \otimes \mathbf{b}{s,j}\right)$$
- Triangle Multiplicative Updates ("Outgoing" and "Incoming" Edges) & Triangle Self-Attention: For a pairwise matrix $\mathbf{Z}$ to be realizable as a valid 3D Euclidean point configuration, pairwise distances must satisfy geometric consistency constraints including the triangle inequality ($d_{ij} \le d_{ik} + d_{kj}$) over every triplet of residues $(i, j, k)$. AlphaFold 2 enforces triangular consistency on directed edge $z_{ij}$ by aggregating pairs of incident edges $(ik, jk)$ over all intermediate nodes $k \in \{1, \dots, N_{\text{res}}\}$ via two symmetric non-attention triangle multiplicative updates ("outgoing" edges $ik, jk$ and "incoming" edges $ki, kj$) alongside triangle self-attention around starting and ending nodes (which biases axial attention on edge $ij \leftrightarrow ik$ using the "missing third edge" $jk$ of the triangle;
https://www.nature.com/articles/s41586-021-03819-2, Figure 3c).
3. The Structure Module: "Residue Gas" $\mathrm{SE}(3)$ Backbone Frames, Invariant Point Attention (IPA), and FAPE Loss
Following the 48-block Evoformer, the Structure Module (8 weight-shared blocks) maps the first row of the MSA representation (the single representation $\mathbf{s}i \in \mathbb{R}^{c_s}$) and the pair representation $\mathbf{z}{ij}$ into explicit 3D atomic coordinates (https://www.nature.com/articles/s41586-021-03819-2, Section Structure module, Figure 3d–f):
- The "Residue Gas" Rigid-Body Frame Representation: Each residue $i \in \{1, \dots, N_{\text{res}}\}$ is parameterized as an independent free-floating Euclidean rigid-body frame $T_i = (\mathbf{R}i, \mathbf{t}_i) \in \mathrm{SE}(3)$ representing the backbone triangle ($N\text{–}C\alpha\text{–}C$), initialized at the origin ($T_i^{(0)} = (\mathbf{I}, \mathbf{0})$), accompanied by predicted side-chain torsion angles $(\chi_1, \chi_2, \chi_3, \chi_4)$ (
https://www.nature.com/articles/s41586-021-03819-2, Figure 3e). Because the backbone frames move independently without hard peptide-bond constraints during intermediate updates, the network can rapidly reorganize global domain topology before fine-tuning local bond geometry. - $\mathrm{SE}(3)$-Invariant Point Attention (
IPA): In each Structure Module iteration,IPAupdates the single representation $\mathbf{s}i$ by augmenting standard scalar query/key/value vectors ($\mathbf{q}_i^h, \mathbf{k}_j^h, \mathbf{v}_j^h$) and pair bias $b{ij}^h$ with 3D query points $\mathbf{q}i^{hp} \in \mathbb{R}^3$, key points $\mathbf{k}_j^{hp} \in \mathbb{R}^3$, and value points $\mathbf{v}_j^{hp} \in \mathbb{R}^3$ generated in each residue's local frame $T_i$ and transformed into the global frame via $T_i \circ \mathbf{x} = \mathbf{R}_i \mathbf{x} + \mathbf{t}_i$: $$a{ij}^h = \operatorname{softmax}j\!\left(w_L \left(\frac{1}{\sqrt{c}}\,(\mathbf{q}_i^h)^T \mathbf{k}_j^h + b{ij}^h - \frac{\gamma^h w_C}{2} \sum_{p=1}^{N_{\text{query points}}} \big\|T_i \circ \mathbf{q}i^{hp} - T_j \circ \mathbf{k}_j^{hp}\big\|^2\right)\right)$$ Because any global rigid transformation $T{\text{global}} \in \mathrm{SE}(3)$ preserves the squared Euclidean distance $\|T_{\text{global}} \circ T_i \circ \mathbf{q}i^{hp} - T{\text{global}} \circ T_j \circ \mathbf{k}j^{hp}\|^2$, the attention weights $a{ij}^h$ and the resulting inverse-transformed point value aggregations $T_i^{-1} \circ (\sum_j a_{ij}^h (T_j \circ \mathbf{v}_j^{hp}))$ are strictly invariant to global rotations and translations, while an equivariant frame-update head predicts local relative frame compositions $T_i \leftarrow T_i \circ \Delta T_i$ (https://www.nature.com/articles/s41586-021-03819-2, Section Structure module & Methods IPA). - Frame Aligned Point Error (
FAPE) & Iterative Recycling: To supervise all-atom coordinates without arbitrary global Kabsch alignment instabilities,FAPEaligns every predicted atom position $\mathbf{x}j$ and true atom position $\mathbf{x}_j^{\text{true}}$ into every residue's predicted local frame $T_i^{-1}$ vs. true local frame $(T_i^{\text{true}})^{-1}$: $$\mathcal{L}{\text{FAPE}} = \frac{1}{N_{\text{frames}} N_{\text{atoms}}} \sum_{i=1}^{N_{\text{frames}}} \sum_{j=1}^{N_{\text{atoms}}} \min\!\Big(d_{\text{clamp}},\; \big\|T_i^{-1} \circ \mathbf{x}j - (T_i^{\text{true}})^{-1} \circ \mathbf{x}_j^{\text{true}}\big\|_2\Big)$$ Notice that while distances are invariant to proper rotations $\mathrm{SO}(3)$, comparing coordinates inside chiral residue frames $T_i^{-1}$ makesFAPEchirality-sensitive (non-reflection-invariant), penalizing mirror-image D-amino-acid reflections! Finally, AlphaFold 2 feeds the output pair representation, first-row MSA representation, and predicted $C\beta$ pairwise distances back into the trunk for 3 recycling iterations, effectively multiplying the network's depth to $4 \times 48 = 192$Evoformerblocks (https://www.nature.com/articles/s41586-021-03819-2, Figure 3f).
4. AlphaFold 3 All-Atom Biomolecular Interactions: 4-Block MSA Module, 48-Block Pairformer, Direct Atomic Coordinate Diffusion Without Rotational Frames, and PoseBusters Benchmarks (Abramson et al., Nature 2024)
While AlphaFold 2 and AlphaFold-Multimer (v2.3) excelled on protein chains and protein–protein complexes, their reliance on amino-acid-specific $\mathrm{SE}(3)$ backbone rigid frames and predefined side-chain torsion angle parameterizations could not naturally generalize across arbitrary small-molecule ligands, RNA/DNA nucleic acids, metal ions, and covalent post-translational modifications (glycosylation, phosphorylation, bonded ligands).
In Accurate structure prediction of biomolecular interactions with AlphaFold 3 (Abramson, Adler, Dunger, Evans, Green, Pritzel, Ronneberger, Willmore, Ballard, Bambrick, Bodenstein, Evans, Hung, O'Neill, Reiman, Tunyasuvunakool, Wu, Žemgulytė, Arvaniti, Beattie, Bertolli, Bridgland, Cherepanov, Congreve, Cowen-Rivers, Cowie, Figurnov, Fuchs, Gladman, Jain, Khan, Low, Perlin, Potapenko, Savy, Singh, Stecula, Thillaisundaram, Tong, Yakneen, Zhong, Zielinski, Žídek, Bapst, Kohli, Jaderberg, Hassabis, and Jumper, Google DeepMind & Isomorphic Labs, Nature 630, 493–500, 2024; https://www.nature.com/articles/s41586-024-07487-w), the authors redesigned both the evolutionary trunk and the 3D structure generator to unify all of molecular biology within a single diffusion-based architecture.
1. From Evoformer to the 48-Block Pairformer and the Direct All-Atom Diffusion Module
AlphaFold 3 introduces three structural departures from AlphaFold 2 (https://www.nature.com/articles/s41586-024-07487-w, Section Network architecture and training, Figure 1d & Figure 2a–b):
- Unified Chemical Tokenization ($n$ Tokens across Polymers, Ligands, and Ions): Standard amino acid residues and nucleotide bases (RNA/DNA) are each represented as 1 token per residue in the abstract trunk, whereas small-molecule ligands, ions, and non-standard covalent modifications are tokenized at 1 token per individual heavy atom (
https://www.nature.com/articles/s41586-024-07487-w, Figure 2a). - 4-Block MSA Module + 48-Block
Pairformer(c = 128Pair Channels,c = 384Single Channels): Instead of carrying the memory-heavy $N_{\text{seq}} \times N_{\text{res}}$ MSA array through all 48 trunk blocks, AlphaFold 3 compresses MSA processing into a 4-block MSA embedding module that uses inexpensive pair-weighted averaging and writes all evolutionary co-variation into the pair representation (https://www.nature.com/articles/s41586-024-07487-w, Section Network architecture and training). Thereafter, the MSA representation is discarded completely, and the 48-blockPairformer(with independent trainable parameters per block) evolves only the pair representation of shape $(n, n, c = 128)$ and the single representation of shape $(n, c = 384)$ via triangle multiplicative updates, triangle attention, and single attention with pair bias (https://www.nature.com/articles/s41586-024-07487-w, Figure 2a). - Direct Raw-Atom Diffusion Module Without Rotational Frames or Equivariant Layers: AlphaFold 3 replaces the $\mathrm{SE}(3)$ frame-and-torsion Structure Module with a generative Diffusion Module (formulated after Karras et al. 2022) that operates directly on raw 3D Cartesian atom coordinates and coarse token representations without rotational frames or explicit $\mathrm{SE}(3)$-equivariant layers (
https://www.nature.com/articles/s41586-024-07487-w, Figure 2b & Section Network architecture and training). Because multiscale denoising at low noise levels forces the network to learn local bond lengths, angles, and aromatic planarity directly in Euclidean space, AlphaFold 3 eliminates complex stereochemical bond-pattern special casing. - 3-Stage Token Crop Schedule (
384 → 640 → 768) and12,288Diffusion Samples per Optimizer Step: Each optimizer step processes a mini-batch of 256 input complexes, generating $256 \times 48 = 12,288$ diffusion samples per step during initial training (384-token crop size) and $256 \times 32 = 8,192$ diffusion samples per step during two sequential fine-tuning stages (640-token and768-token crop sizes) (https://www.nature.com/articles/s41586-024-07487-w, Methods Training regime). To prevent the generative diffusion head from hallucinating spurious folded helices inside intrinsically disordered protein regions (IDRs), AlphaFold 3 incorporates cross-distillation training from AlphaFold 2 predictions and adds a solvent-accessible surface area (SASA) ranking bonus (https://www.nature.com/articles/s41586-024-07487-w, Section Model limitations).
2. Quantitative Benchmarks Across PoseBusters (428 Complexes) and Recent PDB (8,856 Complexes)
At inference time, AlphaFold 3 runs 5 random model seeds, each generating 5 diffusion samples (25 total samples, or 1,000 seeds $\times$ 5 diffusion samples for low-homology antibody–antigen complexes), and selects the top-ranked structure using a composite confidence score combining pTM, interface pTM (ipTM), per-residue pLDDT, chirality violation penalties, and steric clash penalties (https://www.nature.com/articles/s41586-024-07487-w, Methods Inference regime & PoseBusters):
- Blind Protein–Ligand Docking on
PoseBusters($n = 428$ Complexes, Pocket-Aligned Ligand $\text{r.m.s.d.} < 2\text{ Å}$): Using a strict 30 September 2019 training cutoff so zeroPoseBustersstructures (released 2021 or later) or templates were seen during training, AlphaFold 3—given only the raw protein amino acid sequence and ligandSMILESstring with zero pocket location hints—dramatically outperforms classical pocket-privileged docking tools such asAutoDock Vina($P = 2.27 \times 10^{-13}$, two-sided Fisher's exact test) and true blind deep-learning docking models such asRoseTTAFold All-Atom($P = 4.45 \times 10^{-25}$) (https://www.nature.com/articles/s41586-024-07487-w, Figure 1c & Section Complex prediction accuracy). - Glycosylation, Covalent Modifications, Nucleic Acids, and Protein–Antibody Interfaces (
8,856Recent PDB Complexes< 5,120Tokens): Evaluated across 8,856 PDB complexes released between 1 May 2022 and 12 January 2023 (up to 5,120 model tokens, such as the 4,665-residue glycosylated human coronavirus OC43 spike complexPDB 7PNMachieving full-complexLDDT = 83.0andGDT = 83.1, and the bacterialCRP/FNRtranscriptional regulator bound to DNA and cGMPPDB 7PZBatLDDT = 82.8andGDT = 90.1), AlphaFold 3 achieves 46.1% success ($\text{r.m.s.d.} < 2\text{ Å}$, $n = 167$ clusters) on single-residue glycans and 42.1% ($n = 131$ clusters) on multi-residue glycans, while statistically outperformingAlphaFold-Multimer v2.3on protein–proteinDockQ > 0.23($P = 1.8 \times 10^{-18}$), antibody–protein interactions ($P = 6.5 \times 10^{-5}$), and protein monomerLDDT($P = 1.7 \times 10^{-34}$) (https://www.nature.com/articles/s41586-024-07487-w, Figure 1a–c & Section Complex prediction accuracy). AcrossPoseBusters, a residual chirality violation rate of 4.4% remains even after ranking penalties (such as flipping $\beta$-D-glucuronic acid to $\alpha$-D-glucuronic acid inPDB 7CTM;https://www.nature.com/articles/s41586-024-07487-w, Section Model limitations, Figure 5b).
5. Generative De Novo Protein Design with RFdiffusion and ProteinMPNN: $\mathrm{SE}(3)$ Frame Denoising Diffusion, Symmetric Oligomers, Active-Site Scaffolding, and Cryo-EM Verified Nanomolar Binders (Watson et al., Nature 2023)
While AlphaFold 2 and AlphaFold 3 solve the forward folding problem (mapping sequence $\to$ 3D structure), therapeutic protein engineering requires solving the inverse generative design problem: synthesizing completely novel protein backbones and amino acid sequences that fold into a prescribed 3D topology, scaffold an enzyme catalytic triad with sub-angstrom precision, or bind a disease target epitope at nanomolar affinity.
In De novo design of protein structure and function with RFdiffusion (Watson, Juergens, Bennett, Trippe, Yim, Eisenach, Ahern, Borst, Ragotte, Milles, Wicky, Hanikel, Courbet, Sheffler, Wang, Venkatesh, Sappington, Torres, Lauko, De Bortoli, Mathieu, Ovchinnikov, Barzilay, Jaakkola, DiMaio, Baek, and Baker, Institute for Protein Design, University of Washington, Nature 620, 1089–1100, 2023; https://www.nature.com/articles/s41586-023-06415-8), the authors converted the RoseTTAFold (RF) structure prediction network into a general-purpose $\mathrm{SE}(3)$ frame denoising diffusion model (RFdiffusion).
1. $\mathrm{SE}(3)$ Backbone Frame Denoising Diffusion Paired with ProteinMPNN Sequence Design
RFdiffusion represents a protein backbone of $L$ residues as a collection of rigid-body frames $T_i = (\mathbf{r}i, \mathbf{x}_i) \in \mathrm{SE}(3)$, where $\mathbf{x}_i \in \mathbb{R}^3$ is the 3D Cartesian coordinate of the $C\alpha$ atom and $\mathbf{r}i \in \mathrm{SO}(3)$ is the $3 \times 3$ rotation matrix orienting the rigid $N\text{–}C\alpha\text{–}C$ backbone triangle (https://www.nature.com/articles/s41586-023-06415-8, Main Text & Figure 1a):
- Decoupled $\mathbb{R}^3$ Translational and $\mathrm{SO}(3)$ Rotational Forward Noising ($t \in \{1, \dots, T\}$): During the forward diffusion process, $C_\alpha$ coordinates $\mathbf{x}i^{(t)}$ are corrupted via standard 3D Gaussian Brownian motion toward $\mathcal{N}(\mathbf{0}, \mathbf{I}_3)$, while residue orientation matrices $\mathbf{r}_i^{(t)} \in \mathrm{SO}(3)$ are independently perturbed via Brownian motion on the compact Lie group manifold $\mathrm{SO}(3)$ toward the uniform isotropic Gaussian distribution $\mathcal{IG}{\mathrm{SO}(3)}$.
- Self-Conditioned
RoseTTAFoldDenoising withFAPESupervision: Fine-tuned directly from pre-trainedRoseTTAFoldstructure-prediction weights using Frame Aligned Point Error (FAPE) plus auxiliary $C_\alpha$ distance and frame orientation losses (and self-conditioning on the previous step's predicted clean structure $\hat{X}^{(0)}$),RFdiffusioniteratively denoises random Gaussian frames $X^{(T)}$ into physically realizable protein backbones $\hat{X}^{(0)}$. Removing eitherRoseTTAFoldpre-training orFAPEtraining markedly degrades unconditional 300-residue design accuracy (https://www.nature.com/articles/s41586-023-06415-8, Figure 2e). ProteinMPNNInverse Folding and Strict 3-Criterion In Silico Filtering: OnceRFdiffusiongenerates a 3D backbone coordinate trajectory, the authors applyProteinMPNN(Dauparas et al., Science 378, 49–56, 2022)—typically sampling 8 candidate amino acid sequences per backbone design—and fold each designed sequence with single-sequenceAlphaFold 2(https://www.nature.com/articles/s41586-023-06415-8, Main Text). A design is scored as an in silico success only if it simultaneously passes three strict gates: (1)AF2mean predicted aligned error $\text{pAE} < 5$, (2) global backbone $\text{r.m.s.d.} < 2\text{ Å}$ between theAF2prediction and theRFdiffusiondesign model, and (3) functional site backbone $\text{r.m.s.d.} < 1\text{ Å}$ on any scaffolded active site or binding motif (https://www.nature.com/articles/s41586-023-06415-8, Main Text & Figure 4).
2. Experimental Validation: 19% De Novo Binder Hit Rate, 28 nM Influenza HA_20 (0.63 Å Cryo-EM), and 0.5 nM MDM2 Scaffolds
Watson et al. experimentally expressed and characterized hundreds of RFdiffusion designs across four structural design regimes (https://www.nature.com/articles/s41586-023-06415-8, Figures 2–6):
- Unconditional Monomers (up to
600Amino Acids) & Point-Group Symmetric Oligomers (C3,C4,D2, IcosahedralHE0902): Unconditional 300-residue and 600-residue designs folded inAF2with 0.90 Å, 0.98 Å, 1.15 Å, and 1.67 Å backbone $\text{r.m.s.d.}$ (Figure 2a), while negative-stain EM confirmed cyclic, dihedral, and 100-residue-per-chain icosahedral assemblies (HE0822,HE0626,HE0490,HE0675,HE0537, andHE0902at 0.60 Å to 1.33 ÅAF2backbone $\text{r.m.s.d.}$;Figure 3c–d), as well as $C_3$-symmetric trimeric SARS-CoV-2 spikeAHB2scaffolds (0.6 Å asymmetric unit $\text{r.m.s.d.}$, 2.9 Å $C_3$ assembly $\text{r.m.s.d.}$) and $C_4$-symmetric $\text{Ni}^{2+}$-binding square-planar histidine tetramers (NiB1.17,NiB2.15,NiB1.12,NiB1.20with $<1.0\text{ Å}$ backbone $\text{r.m.s.d.}$;Figure 5a–d). - Functional Motif & p53-MDM2 Scaffolding (
0.5 nMand0.7 nMAffinity,55/96Active): Across 25 benchmark motif-scaffolding challenges and enzyme active sites fromEC 1–5(e.g., 0.88 Å global backbone $\text{r.m.s.d.}$, 0.53 Å motif backbone $\text{r.m.s.d.}$, 1.05 Å full-atom motif $\text{r.m.s.d.}$, andpAE = 4.47;Figure 4f–g), scaffolding the p53 $\alpha$-helix that binds the cancer targetMDM2yielded 55 detectable binders out of 96 tested designs (57% hit rate), including 0.5 nM and 0.7 nM binders—three orders of magnitude higher affinity than the 600 nM wild-type p53 peptide (https://www.nature.com/articles/s41586-023-06415-8, Section Functional-motif scaffolding, Figure 4c–d). - De Novo Protein-Binding Proteins Across 5 Targets (
19%Overall Success Rate,0.63 ÅCryo-EM StructurePDB 8SK7): Testing 95 designs per target by biolayer interferometry (BLIat $10\ \mu\text{M}$) against five therapeutic protein targets—Influenza A H1 Haemagglutinin (HA), Interleukin-7 Receptor-$\alpha$ (IL-7Rα), Programmed Death-Ligand 1 (PD-L1), Insulin Receptor (InsR), and Tropomyosin Receptor Kinase A (TrkA)—achieved an overall experimental success rate ($\ge 50\%$ positive control BLI response) of 19% (~2 orders of magnitude higher than physical Rosetta binder campaigns that required screening tens of thousands of designs;https://www.nature.com/articles/s41586-023-06415-8, Section Design of protein-binding proteins, Figure 6b–h). The highest-affinity Influenza H1 stem binder,HA_20, bound straight from computational design with $K_D = 28\text{ nM}$ (AF2vs. design $\text{r.m.s.d.} = 1.7\text{ Å}$, compared toIL7Ra_55at $2.1\text{ Å}$,InsulinR_30at $2.6\text{ Å}$,PDL1_77at $1.5\text{ Å}$, andTrkA_88at $1.4\text{ Å}$), and its 2.9 Å $C_3$ cryo-EM reconstruction (PDB 8SK7,EMDB-40557) matched theRFdiffusiondesign model to 0.63 Å backbone $\text{r.m.s.d.}$ across the complex and 0.6 Å over the binder alone (https://www.nature.com/articles/s41586-023-06415-8, Figure 6d–h).
6. Single-Sequence Protein Language Models and Multimodal Evolutionary Simulation: ESM-2 (8M–15B), ESMFold (617M Metagenomic Atlas), and ESM3 (98B Parameters, $10^{24}$ FLOPs, and esmGFP) (Lin et al. & Hayes et al.)
Both AlphaFold 2 and AlphaFold 3 depend on searching large sequence databases to construct Multiple Sequence Alignments (MSAs)—a step that can take minutes per query and degrades on "dark" metagenomic proteins or de novo synthetic proteins that lack natural evolutionary homologs.
1. ESM-2 (8M to 15B Parameters) and ESMFold (617 Million Metagenomic Structures) (Lin et al. 2023, github.com/facebookresearch/esm)
In Evolutionary-scale prediction of atomic-level protein structure with a language model (Zeming Lin, Halil Akin, Roshan Rao, Brian Hie, Zhongkai Zhu, Wenting Lu, Nikita Smetanin, Robert Verkuil, Ori Kabeli, Yaniv Shmueli, Allan dos Santos Costa, Maryam Fazel-Zarandi, Tom Sercu, Salvatore Candido, and Alexander Rives, Meta FAIR Protein Team, Science 379, 1123–1130, 2023; https://github.com/facebookresearch/esm), the authors demonstrated that training single-sequence Transformer protein language models with a masked language modeling (MLM) objective across millions of UniRef50/D (UR50/D 2021_04) sequences causes unsupervised 3D atomic contact maps and tertiary structure to emerge directly inside the self-attention weights as model scale increases from 8 million to 15 billion parameters:
Pre-Trained Model Family & Checkpoint Name (facebookresearch/esm) | Transformer Layers | Total Parameters | Hidden Embedding Dimension | Training Dataset | Primary Capability & Architectural Role |
|---|---|---|---|---|---|
ESM-2 — esm2_t6_8M_UR50D | 6 | 8M | 320 | UR50/D 2021_04 | Ultra-light single-sequence protein representation & fast contact probing |
ESM-2 — esm2_t12_35M_UR50D | 12 | 35M | 480 | UR50/D 2021_04 | Compact protein embedding extraction & rapid fine-tuning |
ESM-2 — esm2_t30_150M_UR50D | 30 | 150M | 640 | UR50/D 2021_04 | Mid-scale sequence representation & zero-shot variant scoring |
ESM-2 — esm2_t33_650M_UR50D | 33 | 650M | 1280 | UR50/D 2021_04 | Default workhorse embeddings (esm-extract --repr_layers 0 32 33) |
ESM-2 — esm2_t36_3B_UR50D | 36 | 3B | 2560 | UR50/D 2021_04 | High-capacity language model backbone feeding ESMFold v0/v1 |
ESM-2 — esm2_t48_15B_UR50D | 48 | 15B | 5120 | UR50/D 2021_04 | Frontier single-sequence ESM-2 model (supports Fairscale FSDP CPU offload) |
ESMFold — esmfold_v1 / esmfold_v0 | 48 (+36) | 690M (+3B) | 2560 (ESM-2 trunk) | PDB + UR50/D 2021_04 | End-to-end single-sequence 3D atomic structure predictor (zero MSA search); folded the 617M-structure ESM Metagenomic Atlas |
ESM-IF1 — esm_if1_gvp4_t16_142M_UR50 | 20 (4 GVP + 16 Tr.) | 142M (124M table) | 512 | CATH 4.3 + UR50 structures | Geometric Vector Perceptron (GVP) + autoregressive Transformer for fixed-backbone inverse folding |
ESM-MSA-1b — esm_msa1b_t12_100M_UR50S | 12 | 100M | 768 | UR50/S + MSA 2018_03 | Interleaved row/column MSA Transformer (Rao et al., ICML 2021) |
ESM-1v — esm1v_t33_650M_UR90S_[1-5] | 33 | 650M ($\times 5$ ensemble) | 1280 | UR90/S 2020_03 | Zero-shot prediction of mutational variant functional effects (Meier et al. 2021) |
By replacing expensive database MSA construction and the 2D Evoformer with the 36-layer, 3B-parameter ESM-2 language model trunk coupled to a 48-layer, 690M-parameter simplified folding trunk and equivariant structure module, ESMFold (esmfold_v1) delivers up to an order-of-magnitude faster single-sequence structure inference—enabling Meta FAIR to fold and release v0 of the ESM Metagenomic Atlas containing 617 million (600M+) metagenomic protein structures (https://github.com/facebookresearch/esm).
2. Multimodal Generative ESM3 (98B Parameters, $>1 \times 10^{24}$ FLOPs) and Simulating 500 Million Years of Evolution (esmGFP)
In ESM3: Simulating 500 million years of evolution with a language model (Hayes, Rao, Akin, Sofroniew, Oktay, Lin, Verkuil, Tran, Deaton, Wiggert, Badkundri, Shafkat, Gong, Derry, Molina, Thomas, Khan, Mishra, Kim, Bartie, Nemeth, Hsu, Sercu, Candido, and Rives, EvolutionaryScale, June 2024 / Science January 2025; https://www.evolutionaryscale.ai/blog/esm3-release), the authors generalized protein language modeling from single-track sequence representation to a natively multimodal, generative multi-track Transformer across three fundamental biological modalities:
- Unified Discrete Tokenization of Sequence (
20AA), 3D Structure (4,096Tokens), and Function: To enable a single autoregressive/masked language model to reason jointly over 1D sequences, 3D atomic coordinates, and biological functions,ESM3discretizes each residue's local 3D structural neighborhood into a 4,096-letter structural alphabet (via a geometric VQ-VAE encoder/decoder) alongside sequence tokens and functional keyword/InterPro tokens (https://www.evolutionaryscale.ai/blog/esm3-release). At each residue position $i \in \{1, \dots, L\}$, embeddings from the three tracks—Sequence, Structure, and Function—are summed into a unified multi-track Transformer trunk and decoded back into all three modalities. - Frontier Scaling to
98 BillionParameters and $>1 \times 10^{24}$ Training FLOPs: Trained across billions of natural proteins from the Amazon rainforest, ocean depths, hydrothermal vents, and soil metagenomes—augmented with hundreds of millions of synthetic predicted structures and function annotations—the flagshipESM3model scales to 98 billion (98B) parameters and $>1 \times 10^{24}$ training FLOPs (an order of magnitude larger thanESM-2 15Band the highest compute ever applied to a biological foundation model), alongside the open-weightsESM3 1.4Bmodel released under the MIT license (https://www.evolutionaryscale.ai/blog/esm3-release). - Iterative Masked Generative Unmasking & Self-Improvement Alignment: Because all three tracks are partially masked at variable noise schedules during training,
ESM3can generate novel proteins by starting from a fully or partially masked canvas and iteratively unmasking tokens across sequence, structure, or function—supporting multimodal prompting (e.g., prompting with the 3D catalytic active-site atomic coordinates of polyethylene-terephthalate-degradingPETaseplus the function keywordα/β hydrolaseto scaffold a novel plastic-degrading enzyme) and RLHF-style self-feedback alignment on atomic coordination tasks (https://www.evolutionaryscale.ai/blog/esm3-release). - Generating
esmGFP: 96 Mutations (58%Sequence Identity) Across a $20^{229} \times 4096^{229}$ Search Space: To test whetherESM3can invent functional proteins far outside natural sequence neighborhoods, EvolutionaryScale promptedESM3with the local 3D structure of only a few core chromophore-forming residues from natural Green Fluorescent Protein (GFP)—a 229-amino-acid, 11-stranded $\beta$-barrel with a central $\alpha$-helix whose backbone atoms spontaneously cyclize and oxidize into a light-emitting chromophore (https://www.evolutionaryscale.ai/blog/esm3-release, Section Simulating 500 million years of evolution): - In Experiment 1 (96 candidates tested on a 96-well plate),ESM3reasoned via chain-of-thought over sequence and structure tokens ($20^{229} \times 4096^{229}$ total possibilities) and discovered a novel fluorescent protein in wellB8that was initially $50\times$ less bright than natural GFP and required a week for chromophore maturation instead of under a day, but functioned in an unexplored region of sequence space. - In Experiment 2 (96 candidates continuing the chain-of-thought fromB8),ESM3generatedesmGFP(wellC10), which exhibits full natural-GFP brightness while differing by 96 amino acid mutations out of 229 residues (only58%sequence similarity) from the closest known natural or engineered fluorescent protein—an evolutionary divergence that, calibrated against natural GFP diversification rates, corresponds to simulating over 500 million years of natural evolution (https://www.evolutionaryscale.ai/blog/esm3-release).
7. Production PyTorch Implementation: $\mathrm{E}(n)$-Equivariant Graph Convolutional Layer (EGCL), Evoformer Triangle Multiplicative Update, and $\mathrm{SE}(3)$ Invariant Point Attention (IPA)
Below is a complete, self-contained, mathematically verified PyTorch implementation of three core geometric deep learning primitives covered in this guide:
- Satorras et al.'s $\mathrm{E}(n)$-Equivariant Graph Convolutional Layer (
EGCL,arXiv:2102.09844v3Equations 3–6) with an exact numerical proof that rotating and translating the input coordinates $\mathbf{x} \mapsto \mathbf{x}\mathbf{Q}^T + \mathbf{g}$ leaves node embeddings $\mathbf{h}^{l+1}$ strictly invariant while rotating and translating output coordinates $\mathbf{x}^{l+1} \mapsto \mathbf{x}^{l+1}\mathbf{Q}^T + \mathbf{g}$ to floating-point precision. - AlphaFold 2 / AlphaFold 3's
Evoformer/PairformerTriangle Multiplicative Update ("Outgoing" Edges,Nature s41586-021-03819-2Figure 3c &Nature s41586-024-07487-wFigure 2a) enforcing triangular geometric consistency over the pair tensor $\mathbf{Z} \in \mathbb{R}^{B \times N_{\text{res}} \times N_{\text{res}} \times c_z}$. - AlphaFold 2's $\mathrm{SE}(3)$-Invariant Point Attention (
IPA,Nature s41586-021-03819-2Figure 3d & Methods) over local rigid backbone frames $T_i = (\mathbf{R}_i, \mathbf{t}_i) \in \mathrm{SE}(3)$ with an exact proof of global $\mathrm{SE}(3)$ rigid-motion invariance.
from __future__ import annotations
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class EquivariantGraphConvLayer(nn.Module):
"""E(n)-Equivariant Graph Convolutional Layer (EGCL, Satorras et al., arXiv:2102.09844v3 Eqs. 3-6)."""
def __init__(self, n_feat: int, n_edge_attr: int = 1, n_hidden: int = 64) -> None:
super().__init__()
# Eq. 3: m_ij = phi_e(h_i, h_j, ||x_i - x_j||^2, a_ij)
self.phi_e = nn.Sequential(
nn.Linear(2 * n_feat + 1 + n_edge_attr, n_hidden),
nn.SiLU(),
nn.Linear(n_hidden, n_feat),
nn.SiLU(),
)
# Eq. 4: scalar radial force weight phi_x(m_ij) -> R^1
self.phi_x = nn.Sequential(
nn.Linear(n_feat, n_hidden),
nn.SiLU(),
nn.Linear(n_hidden, 1, bias=False),
)
# Eq. 6: h_i^{l+1} = phi_h(h_i^l, m_i) with residual connection
self.phi_h = nn.Sequential(
nn.Linear(2 * n_feat, n_hidden),
nn.SiLU(),
nn.Linear(n_hidden, n_feat),
)
def forward(
self,
h: torch.Tensor,
x: torch.Tensor,
edge_attr: torch.Tensor,
) -> tuple[torch.Tensor, torch.Tensor]:
"""Run one E(n)-equivariant message passing step over an M-node geometric graph.
Args:
h: Invariant node embeddings of shape (B, M, n_feat).
x: Equivariant n-dimensional coordinates of shape (B, M, n_dim).
edge_attr: Pairwise edge attributes a_ij of shape (B, M, M, n_edge_attr).
Returns:
Tuple (h_next, x_next) preserving E(n) invariance on h_next and E(n) equivariance on x_next.
"""
bsz, n_nodes, n_feat = h.shape
# Pairwise relative coordinate differences (x_i - x_j) of shape (B, M, M, n_dim)
rel_x = x.unsqueeze(2) - x.unsqueeze(1)
sq_dist = rel_x.pow(2).sum(dim=-1, keepdim=True) # ||x_i - x_j||^2: strictly E(n)-invariant
h_i = h.unsqueeze(2).expand(bsz, n_nodes, n_nodes, n_feat)
h_j = h.unsqueeze(1).expand(bsz, n_nodes, n_nodes, n_feat)
edge_input = torch.cat([h_i, h_j, sq_dist, edge_attr], dim=-1)
m_ij = self.phi_e(edge_input)
# Zero out self-loop contributions (j != i in Eqs. 4 and 5)
off_diag = (1.0 - torch.eye(n_nodes, device=h.device, dtype=h.dtype)).view(1, n_nodes, n_nodes, 1)
m_ij = m_ij * off_diag
# Eq. 4: x_i^{l+1} = x_i^l + (1 / (M - 1)) * sum_{j != i} (x_i^l - x_j^l) * phi_x(m_ij)
c_norm = 1.0 / max(1, n_nodes - 1)
radial_weights = self.phi_x(m_ij) * off_diag
x_next = x + c_norm * (rel_x * radial_weights).sum(dim=2)
# Eqs. 5 & 6: m_i = sum_{j != i} m_ij; h_i^{l+1} = h_i^l + phi_h(h_i^l, m_i)
m_i = m_ij.sum(dim=2)
h_next = h + self.phi_h(torch.cat([h, m_i], dim=-1))
return h_next, x_next
class TriangleMultiplicativeUpdateOutgoing(nn.Module):
"""AlphaFold 2 Evoformer & AlphaFold 3 Pairformer Outgoing Triangle Multiplicative Update (Nature 2021/2024)."""
def __init__(self, c_z: int = 128, c_hidden: int = 128) -> None:
super().__init__()
self.norm_in = nn.LayerNorm(c_z)
self.proj_a = nn.Linear(c_z, c_hidden)
self.gate_a = nn.Linear(c_z, c_hidden)
self.proj_b = nn.Linear(c_z, c_hidden)
self.gate_b = nn.Linear(c_z, c_hidden)
self.norm_center = nn.LayerNorm(c_hidden)
self.proj_out = nn.Linear(c_hidden, c_z)
self.gate_out = nn.Linear(c_z, c_z)
def forward(self, z: torch.Tensor) -> torch.Tensor:
"""Update pair representation z_{ij} by contracting outgoing triangle edges ik and jk over node k."""
z_norm = self.norm_in(z)
a_ik = torch.sigmoid(self.gate_a(z_norm)) * self.proj_a(z_norm)
b_jk = torch.sigmoid(self.gate_b(z_norm)) * self.proj_b(z_norm)
# Triangle contraction over intermediate residue k: tilde_z_{ij, c} = sum_k a_{ik, c} * b_{jk, c}
tri_ij = torch.einsum("bikc,bjkc->bijc", a_ik, b_jk)
update = torch.sigmoid(self.gate_out(z_norm)) * self.proj_out(self.norm_center(tri_ij))
return z + update
class InvariantPointAttention(nn.Module):
"""AlphaFold 2 SE(3)-Invariant Point Attention (IPA) over local rigid residue frames T_i = (R_i, t_i)."""
def __init__(
self,
c_s: int = 384,
c_z: int = 128,
n_heads: int = 8,
c_head: int = 16,
n_query_points: int = 4,
) -> None:
super().__init__()
self.n_heads = n_heads
self.c_head = c_head
self.n_qp = n_query_points
self.q_scalar = nn.Linear(c_s, n_heads * c_head, bias=False)
self.k_scalar = nn.Linear(c_s, n_heads * c_head, bias=False)
self.v_scalar = nn.Linear(c_s, n_heads * c_head, bias=False)
self.pair_bias = nn.Linear(c_z, n_heads, bias=False)
self.q_points = nn.Linear(c_s, n_heads * n_query_points * 3, bias=False)
self.k_points = nn.Linear(c_s, n_heads * n_query_points * 3, bias=False)
self.v_points = nn.Linear(c_s, n_heads * n_query_points * 3, bias=False)
self.head_weights = nn.Parameter(torch.zeros(n_heads))
self.out_proj = nn.Linear(n_heads * (c_head + n_query_points * 4), c_s)
@staticmethod
def _apply_frame(R: torch.Tensor, t: torch.Tensor, pts: torch.Tensor) -> torch.Tensor:
"""Transform local 3D points pts (B, N, H, P, 3) into global coordinates via T_i o x = R_i x + t_i."""
rotated = torch.einsum("bnij,bnhpj->bnhpi", R, pts)
return rotated + t.unsqueeze(2).unsqueeze(3)
@staticmethod
def _apply_inv_frame(R: torch.Tensor, t: torch.Tensor, pts_global: torch.Tensor) -> torch.Tensor:
"""Transform global 3D points pts_global (B, N, H, P, 3) into local frame via T_i^{-1} o x = R_i^T (x - t_i)."""
shifted = pts_global - t.unsqueeze(2).unsqueeze(3)
return torch.einsum("bnji,bnhpj->bnhpi", R, shifted)
def forward(
self,
s: torch.Tensor,
z: torch.Tensor,
R_frames: torch.Tensor,
t_frames: torch.Tensor,
) -> torch.Tensor:
"""Compute SE(3)-invariant single-representation update from scalar, pair, and 3D point attention."""
bsz, n_res, _ = s.shape
H, C, P = self.n_heads, self.c_head, self.n_qp
q_s = self.q_scalar(s).view(bsz, n_res, H, C)
k_s = self.k_scalar(s).view(bsz, n_res, H, C)
v_s = self.v_scalar(s).view(bsz, n_res, H, C)
b_ij = self.pair_bias(z) # (B, N, N, H)
q_pt_local = self.q_points(s).view(bsz, n_res, H, P, 3)
k_pt_local = self.k_points(s).view(bsz, n_res, H, P, 3)
v_pt_local = self.v_points(s).view(bsz, n_res, H, P, 3)
q_pt_global = self._apply_frame(R_frames, t_frames, q_pt_local)
k_pt_global = self._apply_frame(R_frames, t_frames, k_pt_local)
v_pt_global = self._apply_frame(R_frames, t_frames, v_pt_local)
# Scalar attention logits + pair bias
scalar_logits = torch.einsum("bihc,bjhc->bijh", q_s, k_s) / math.sqrt(C) + b_ij
# 3D Euclidean point distance penalty: sum_p ||T_i o q_i^{hp} - T_j o k_j^{hp}||^2
pt_diff = q_pt_global.unsqueeze(2) - k_pt_global.unsqueeze(1) # (B, N, N, H, P, 3)
pt_sq_dist = pt_diff.pow(2).sum(dim=(-1, -2)) # (B, N, N, H)
gamma_h = F.softplus(self.head_weights).view(1, 1, 1, H)
w_c = math.sqrt(2.0 / (9.0 * P))
w_l = math.sqrt(1.0 / 3.0)
attn = F.softmax(w_l * (scalar_logits - 0.5 * gamma_h * w_c * pt_sq_dist), dim=2) # (B, N, N, H)
out_scalar = torch.einsum("bijh,bjhc->bihc", attn, v_s).reshape(bsz, n_res, H * C)
out_pt_global = torch.einsum("bijh,bjhpd->bihpd", attn, v_pt_global)
out_pt_local = self._apply_inv_frame(R_frames, t_frames, out_pt_global)
out_pt_norm = torch.sqrt(out_pt_local.pow(2).sum(dim=-1) + 1e-8)
combined = torch.cat(
[
out_scalar,
out_pt_local.reshape(bsz, n_res, H * P * 3),
out_pt_norm.reshape(bsz, n_res, H * P),
],
dim=-1,
)
return s + self.out_proj(combined)
if __name__ == "__main__":
torch.manual_seed(42)
# 1. Verify E(n) Invariance & Equivariance of EGCL under random 3D rotation Q in O(3) and translation g
egcl = EquivariantGraphConvLayer(n_feat=32, n_edge_attr=2, n_hidden=64)
h0 = torch.randn(2, 12, 32)
x0 = torch.randn(2, 12, 3)
e0 = torch.randn(2, 12, 12, 2)
Q, _ = torch.linalg.qr(torch.randn(3, 3))
g = torch.randn(1, 1, 3)
h1, x1 = egcl(h0, x0, e0)
h1_rot, x1_rot = egcl(h0, x0 @ Q.t() + g, e0)
assert torch.allclose(h1, h1_rot, atol=1e-5), "EGCL node embeddings must be E(n)-invariant"
assert torch.allclose(x1 @ Q.t() + g, x1_rot, atol=1e-5), "EGCL coordinates must be E(n)-equivariant"
# 2. Verify Evoformer/Pairformer Triangle Multiplicative Update and SE(3) IPA Global Invariance
tri_up = TriangleMultiplicativeUpdateOutgoing(c_z=64, c_hidden=64)
ipa = InvariantPointAttention(c_s=128, c_z=64, n_heads=4, c_head=16, n_query_points=4)
s_in = torch.randn(2, 16, 128)
z_in = tri_up(torch.randn(2, 16, 16, 64))
R_local, _ = torch.linalg.qr(torch.randn(2, 16, 3, 3))
t_local = torch.randn(2, 16, 3)
s_out1 = ipa(s_in, z_in, R_local, t_local)
R_glob = torch.einsum("ij,bnjk->bnik", Q, R_local)
t_glob = torch.einsum("ij,bnj->bni", Q, t_local) + g
s_out2 = ipa(s_in, z_in, R_glob, t_glob)
assert torch.allclose(s_out1, s_out2, atol=1e-5), "IPA output must be strictly invariant to global SE(3)"
print(f"EGCL Equivariance Max Diff: {(x1 @ Q.t() + g - x1_rot).abs().max().item():.2e} | IPA SE(3) Invariance Diff: {(s_out1 - s_out2).abs().max().item():.2e}")8. Frequently Asked Questions (FAQ): Equivariant GNNs, AlphaFold 2 vs. AlphaFold 3, RFdiffusion, and ESM-2 / ESM3
How does an $\mathrm{E}(n)$-Equivariant Graph Neural Network (EGNN) achieve rotational and translational equivariance without computing spherical harmonics, and how much faster is it than the SE(3)-Transformer? In $\mathrm{E}(n)$ Equivariant Graph Neural Networks (https://arxiv.org/html/2102.09844v3, Section 3 & Section 5.1 Table 2), Satorras, Hoogeboom, and Welling avoid higher-order spherical harmonic representations ($Y_l^m$) by restricting edge messages $\mathbf{m}{ij} = \phi_e(\mathbf{h}_i^l, \mathbf{h}_j^l, \|\mathbf{x}_i^l - \mathbf{x}_j^l\|^2, a{ij})$ to depend only on the invariant scalar squared Euclidean distance $\|\mathbf{x}i^l - \mathbf{x}_j^l\|^2$, and updating particle coordinates via a radial vector field sum of relative differences $\mathbf{x}_i^{l+1} = \mathbf{x}_i^l + C \sum{j \neq i}(\mathbf{x}i^l - \mathbf{x}_j^l)\phi_x(\mathbf{m}{ij})$. Because $\|\mathbf{Q}\mathbf{x}_i - \mathbf{Q}\mathbf{x}_j\|^2 = \|\mathbf{x}_i - \mathbf{x}_j\|^2$ for any orthogonal matrix $\mathbf{Q} \in \mathrm{O}(n)$ and $(\mathbf{Q}\mathbf{x}_i + \mathbf{g}) - (\mathbf{Q}\mathbf{x}_j + \mathbf{g}) = \mathbf{Q}(\mathbf{x}_i - \mathbf{x}_j)$, EGNN is mathematically equivariant in any dimension $n$. On the 5-particle 3D charged $N$-body benchmark (100-sample batch on an NVIDIA GTX 1080 Ti GPU), EGNN executes a forward pass in 0.0062 seconds versus 0.1346 seconds for the SE(3)-Transformer (21.7× faster) and 0.0343 seconds for Tensor Field Networks (5.5× faster), while reducing trajectory Mean Squared Error to 0.0071 (a 32% error reduction over the second-best Radial Field at 0.0104 and 3.4× lower error than the SE(3)-Transformer at 0.0244).
Why did AlphaFold 3 replace AlphaFold 2's 48-block Evoformer and $\mathrm{SE}(3)$ frame-based Structure Module with a 48-block Pairformer and a direct raw-atom Diffusion Module? In AlphaFold 2 (https://www.nature.com/articles/s41586-021-03819-2), the Structure Module represented every residue as an amino-acid-specific $\mathrm{SE}(3)$ backbone rigid frame $(R_k, \mathbf{t}k)$ plus up to four side-chain torsion angles $\chi_1 \dots \chi_4$. While highly effective for pure protein chains (achieving 0.96 Å median backbone $\text{r.m.s.d.}{95}$ and 1.5 Å all-atom $\text{r.m.s.d.}_{95}$ in CASP14), rigid amino-acid frames and predefined torsion parameterizations add severe special-casing complexity when modeling arbitrary small-molecule ligands with cyclic rings, RNA/DNA nucleic acids, ions, and covalent modifications (https://www.nature.com/articles/s41586-024-07487-w, Section Network architecture and training). AlphaFold 3 compresses MSA processing to just 4 blocks, routes all information through a 48-block Pairformer operating exclusively on the pair representation $(n, n, c=128)$ and single representation $(n, c=384)$, and predicts raw Cartesian atom coordinates directly via a multiscale Diffusion Module without rotational frames or equivariant layers—outperforming AutoDock Vina ($P = 2.27 \times 10^{-13}$) and RoseTTAFold All-Atom ($P = 4.45 \times 10^{-25}$) on the 428-structure PoseBusters benchmark.
Why is Frame Aligned Point Error (FAPE) sensitive to molecular chirality even though Euclidean distances are reflection-invariant? Pairwise interatomic distances $\|\mathbf{x}i - \mathbf{x}_j\|_2$ are invariant under the full Euclidean group $\mathrm{E}(3)$, which includes improper mirror reflections ($\det \mathbf{Q} = -1$); consequently, a network trained purely on pairwise distance matrices (distograms) cannot distinguish a real right-handed $\alpha$-helix of L-amino acids from its mirror-image reflection (https://www.nature.com/articles/s41586-021-03819-2, Section Structure module, Figure 3f). In AlphaFold 2, Frame Aligned Point Error (FAPE) transforms every predicted atom $\mathbf{x}_j$ into each residue's local rigid frame $T_i^{-1} \circ \mathbf{x}_j$, where $T_i = (\mathbf{R}_i, \mathbf{t}_i) \in \mathrm{SE}(3)$ is constructed from the oriented $N\text{–}C\alpha\text{–}C$ backbone triangle with $\det \mathbf{R}_i = +1$. Under a global mirror reflection, the local chiral frame axes cannot align with the reflected atom positions via any proper rotation in $\mathrm{SO}(3)$, causing FAPE to assign a large penalty to mirror-image structures. In AlphaFold 3's raw-atom diffusion architecture, rankings are further filtered across 5 seeds $\times$ 5 diffusion samples (25 samples) with an explicit chirality penalty, leaving a 4.4% chirality violation rate on PoseBusters (https://www.nature.com/articles/s41586-024-07487-w, Section Model limitations).
How do ESMFold and ESM3 differ in how they handle 3D protein structure, and how did ESM3 synthesize esmGFP? ESMFold (esmfold_v1) is a discriminative single-sequence structure prediction model that attaches a 48-layer, 690M-parameter folding trunk onto the 36-layer, 3B-parameter ESM-2 masked sequence language model (https://github.com/facebookresearch/esm), predicting 3D coordinates directly from a single amino acid sequence without MSAs to map 617 million metagenomic protein structures. In contrast, ESM3 (98B parameters, $>1 \times 10^{24}$ FLOPs; https://www.evolutionaryscale.ai/blog/esm3-release) is a natively multimodal generative language model that tokenizes local 3D atomic structure into a 4,096-token discrete structural alphabet alongside sequence and function tokens, allowing it to accept partial 3D structural prompts and iteratively unmask novel proteins. When prompted with the 3D atomic coordinates of the core chromophore residues of natural GFP, ESM3 executed a two-stage chain-of-thought across two 96-well plates—first discovering dim well B8 ($50\times$ lower brightness) and then generating bright well C10 (esmGFP), a functional 229-residue fluorescent protein differing by 96 mutations (58% sequence identity) from the closest natural fluorescent protein (equivalent to $>500$ million years of natural evolution).
9. Primary Technical Sources & Foundations
- Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, George E. Dahl — Neural Message Passing for Quantum Chemistry (
MPNN) (Google Brain, ICML 2017 /arXiv:1704.01212v2Full Experimental HTML): https://arxiv.org/html/1704.01212v2 - Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, George E. Dahl — Neural Message Passing for Quantum Chemistry (
arXiv:1704.01212Abstract & Metadata Repository): https://arxiv.org/abs/1704.01212 - Victor Garcia Satorras, Emiel Hoogeboom, Max Welling — $\mathrm{E}(n)$ Equivariant Graph Neural Networks (
EGNN) (UvA-Bosch Delta Lab, University of Amsterdam, ICML 2021 /arXiv:2102.09844v3Full Experimental HTML): https://arxiv.org/html/2102.09844v3 - Victor Garcia Satorras, Emiel Hoogeboom, Max Welling — $\mathrm{E}(n)$ Equivariant Graph Neural Networks (
arXiv:2102.09844Abstract & Metadata Repository): https://arxiv.org/abs/2102.09844 - John Jumper, Richard Evans, Alexander Pritzel, Tim Green, Michael Figurnov, Olaf Ronneberger, Kathryn Tunyasuvunakool, Russ Bates, Augustin Žídek, Anna Potapenko, Pushmeet Kohli, Demis Hassabis et al. — Highly accurate protein structure prediction with AlphaFold (
AlphaFold 2) (Nature 596, 583–589, 2021): https://www.nature.com/articles/s41586-021-03819-2 - Josh Abramson, Jonas Adler, Jack Dunger, Richard Evans, Tim Green, Alexander Pritzel, Olaf Ronneberger, Lindsay Willmore, Victor Bapst, Pushmeet Kohli, Max Jaderberg, Demis Hassabis, John M. Jumper et al. — Accurate structure prediction of biomolecular interactions with AlphaFold 3 (
AlphaFold 3) (Nature 630, 493–500, 2024): https://www.nature.com/articles/s41586-024-07487-w - Joseph L. Watson, David Juergens, Nathaniel R. Bennett, Brian L. Trippe, Jason Yim, Helen E. Eisenach, Woody Ahern, Regina Barzilay, Tommi S. Jaakkola, Frank DiMaio, Minkyung Baek, David Baker et al. — De novo design of protein structure and function with RFdiffusion (
RFdiffusion) (Nature 620, 1089–1100, 2023): https://www.nature.com/articles/s41586-023-06415-8 - Zeming Lin, Halil Akin, Roshan Rao, Brian Hie, Tom Sercu, Salvatore Candido, Alexander Rives et al. — Evolutionary Scale Modeling (
ESM-2,ESMFold,ESM-IF1,ESM-MSA-1b,ESM-1v& 617MESM Metagenomic Atlas) (Meta FAIR Official Repository & Model Checkpoints): https://github.com/facebookresearch/esm - Thomas Hayes, Roshan Rao, Halil Akin, Nicholas J. Sofroniew, Tom Sercu, Salvatore Candido, Alexander Rives et al. — ESM3: Simulating 500 million years of evolution with a language model (EvolutionaryScale Official Release & Technical Research Report, June 2024 / Science 2025): https://www.evolutionaryscale.ai/blog/esm3-release