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: $$m_{ij} = \phi_e(h_i^l, h_j^l, |x_i^l - x_j^l|^2, a_{ij})$$ $$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})$$ $$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$: $$\mathbf{X}^{l+1}(R \mathbf{X} + \mathbf{t}) = R \mathbf{X}^{l+1}(\mathbf{X}) + \mathbf{t}$$ $$\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
- Creator: Ramprasad Atluri (
At1uri) - Interactive 3D Studio:
At1uri/equivariant-graph-neural-network-studio - Benchmark Dataset:
At1uri/equivariant-3d-particle-benchmarks - Research Vault:
At1uri/equivariant-graph-neural-network-vault