E(n) Equivariant Graph Neural Network (EGNN) for 3D Particle Dynamics

Pretrained weights and geometric message-passing inference engine implementing the $E(n)$ Equivariant Graph Neural Network (EGNN) for 3D molecular conformations, particle systems, and Hamiltonian dynamics (Satorras et al., ICML 2021).

Mathematical Formulation

EGNN maps invariant node scalar embeddings $h_i \in \mathbb{R}^{d_h}$ and spatial coordinates $x_i \in \mathbb{R}^3$ via: mij=Ο•e(hil,hjl,βˆ₯xilβˆ’xjlβˆ₯2,aij)m_{ij} = \phi_e(h_i^l, h_j^l, \|x_i^l - x_j^l\|^2, a_{ij}) xil+1=xil+1∣N(i)βˆ£βˆ‘j∈N(i)(xilβˆ’xjl)Ο•x(mij)x_i^{l+1} = x_i^l + \frac{1}{|\mathcal{N}(i)|} \sum_{j \in \mathcal{N}(i)} (x_i^l - x_j^l) \phi_x(m_{ij}) hil+1=hil+Ο•h(hil,βˆ‘j∈N(i)mij)h_i^{l+1} = h_i^l + \phi_h(h_i^l, \sum_{j \in \mathcal{N}(i)} m_{ij})

Symmetry Guarantees

For any orthogonal transformation $R \in O(3)$ (rotations and reflections) and translation vector $\mathbf{t} \in \mathbb{R}^3$: Xl+1(RX+t)=RXl+1(X)+t\mathbf{X}^{l+1}(R \mathbf{X} + \mathbf{t}) = R \mathbf{X}^{l+1}(\mathbf{X}) + \mathbf{t} Hl+1(RX+t)=Hl+1(X)\mathbf{H}^{l+1}(R \mathbf{X} + \mathbf{t}) = \mathbf{H}^{l+1}(\mathbf{X})

Empirically verified relative rotational residual: $\mathbf{< 10^{-6}%}$.

Architecture Specifications

Layer / Hyperparameter Value Description
Node Features $d_h$ 16 Invariant scalar features (mass, charge, atom type)
Edge Features $d_m$ 32 Invariant radial message representation
Equivariant Layers 4 Continuous coordinate message passing blocks
Activation Function SiLU / Swish Smooth continuous non-linearities
Cutoff Radius $r_c$ 2.8 Γ… Radial graph connectivity threshold
Model Weights model.safetensors Native zero-copy binary format (80.6 KB)

Quickstart

import json
import numpy as np
from safetensors.numpy import load_file
from egnn_3d import EGNN3dDynamicsEngine

# Load weights and configuration
tensors = load_file("model.safetensors")
with open("config.json", "r") as f:
    config = json.load(f)

engine = EGNN3dDynamicsEngine(tensors, config)

# N=8 particles: invariant features (N, 16) and 3D positions (N, 3)
N = 8
h = np.random.randn(N, 16).astype(np.float32)
x = np.random.randn(N, 3).astype(np.float32)

# Predict next-step coordinates and velocities
x_next, v_pred = engine.predict_displacements(h, x)
print("Updated coordinates:", x_next.shape)
print("Predicted velocities:", v_pred.shape)

Attribution & Links

Downloads last month
28
Safetensors
Model size
19.1k params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Collection including At1uri/egnn-equivariant-3d-dynamics-engine

Evaluation results

  • SO(3) Relative Equivariance Residual (%) on equivariant-3d-particle-benchmarks
    self-reported
    0.000