Skip to content

Tabular, time-series, scientific, and geometric deep learning · Molecular and scientific deep learning · SPE012 · Architecture

NequIP

NequIP learns interatomic potentials with E(3)-equivariant features, using geometric tensor information to improve data efficiency.

Needs a data type CodeSplash doesn't load yet Component demo, not a trained model CodeSplash's run and the reference's record

In CodeSplash

Running this needs images, audio, video, graphs or another data type CodeSplash doesn't load yet.

Availability
Needs a data type CodeSplash doesn't load yet
Code example
Component demo, not a trained model
Who ran it
CodeSplash's run and the reference's record
CodeSplash's run
The reference's example ran in Python and R here, and they agree.
The reference's record
Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.

Purpose

NequIP learns interatomic potentials with E(3)-equivariant features, using geometric tensor information to improve data efficiency. It predicts scalar energies and forces derived from those energies, with physical symmetry built into the representation.

Question / hypotheses

The operative question is whether the specified representation, symmetry, likelihood or physical constraint improves held-out behavior for this data domain. This is a learning framework, not a null-hypothesis test; losses, attention weights and predictive confidence are not statistical p-values.

Architecture / computational structure

Atomic features are organized into irreducible rotation representations. Radial functions and spherical harmonics form equivariant convolution kernels, with tensor products and gated nonlinearities passing information between angular orders.

Assumptions

Correct tensor conventions, parity and smooth cutoffs are essential. Equivariance is not a guarantee of chemical transfer or stable long trajectories. Data must cover relevant atomic environments; long-range interactions and changing composition need explicit consideration.

Formula / computational definition

mijlo=∑li,lfRli,lf,lo(rij)[hjli⊗Ylf(r^ij)]lom_{ij}^{l_o}=\sum_{l_i,l_f}R_{l_i,l_f,l_o}(r_{ij})[h_j^{l_i}\otimes Y_{l_f}(\hat r_{ij})]_{l_o} denotes symmetry-coupled messages; E=∑iEiE=\sum_iE_i and Fi=−∇riEF_i=-\nabla_{r_i}E. The bracket denotes a permitted tensor-product projection.

Parameters and notation

Learned or estimated: Species embeddings, radial networks, tensor-product mixing weights, gates and scalar energy readout; forces follow differentiation rather than an unrelated unconstrained head.

Hyperparameters and effects: Maximum angular order, parity channels, radial/cutoff settings, interaction layers, energy/force weights, precision and optimizer. Higher angular order increases expressivity and compute.

Fitting, fine-tuning, and adaptation

Fit energy and force targets with consistent units and reference offsets. Transfer only compatible element vocabularies and representation specifications; adapt readout/radial parameters at a low learning rate before broader unfreezing. Validate source environments and dynamical stability to detect forgetting or extrapolation failure.

How to use and calibrate

Define the independent evaluation unit before preprocessing: row/entity, whole set/object, molecule/trajectory, input function or chronological forecasting origin. Keep target construction and normalization within permitted training data. Check rotational equivariance of forces, energy invariance, force-energy consistency, held-out trajectory error, conservation drift and out-of-domain configurations. Report physical units and sampling conditions.

Example application

Train a data-efficient potential for a defined chemical/material system and validate molecular dynamics separately. This is a proposed use case, not a claim of validated performance on supplied real data.

Interpretation / pitfalls

Watch out

Assess model error against domain baselines and the stated assumptions. Component-level mathematical correctness does not establish paper reproduction or scientific validity. Invariance/equivariance checks validate transformation behavior; they do not establish correct physical dynamics or chemical accuracy.

Python and R code examples

Scope: An l=1 radial-vector message, a single equivariant component rather than full NequIP. Use the shared setup. Dependencies: NumPy / base R. Validation: Python executed; R unexecuted.

Full-model route: Python: official NequIP with its equivariant dependencies. R: explicit Python bridge for full training; custom native demonstration only. The snippet illustrates an l=1 radial-vector message and its rotation law, not the complete irreducible-tensor architecture.

Python and R

The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.

Python

Component demo, not a trained model — An l=1 radial-vector message, a single equivariant component rather than full NequIP. Use the shared setup.

Shared setup for this chapter
import numpy as np
def sm(x):
    x=np.asarray(x); e=np.exp(x-x.max(axis=-1,keepdims=True)); return e/e.sum(axis=-1,keepdims=True)
relative=np.array([[1.,0.,0.],[0.,1.,.5],[-.3,.2,1.]])
def message(V):
    radius=np.linalg.norm(V,axis=1)
    return np.sum(np.exp(-radius)[:,None]*V/radius[:,None],axis=0)
R=np.array([[0.,-1.,0.],[1.,0.,0.],[0.,0.,1.]])
assert np.allclose(message(relative@R.T),message(relative)@R.T)
print(message(relative))
R

Component demo, not a trained model — An l=1 radial-vector message, a single equivariant component rather than full NequIP. Use the shared setup.

Shared setup for this chapter
sm <- function(x) {
  if(is.null(dim(x))) { e<-exp(x-max(x)); return(e/sum(e)) }
  t(apply(x,1,function(v) { e<-exp(v-max(v)); e/sum(e) }))
}
relative<-matrix(c(1,0,0,0,1,.5,-.3,.2,1),3,byrow=TRUE)
message<-function(V) { radius<-sqrt(rowSums(V*V)); colSums(exp(-radius)*V/radius) }
R<-matrix(c(0,-1,0,1,0,0,0,0,1),3,byrow=TRUE)
stopifnot(max(abs(message(relative%*%t(R))-as.vector(message(relative)%*%t(R))))<1e-12)
print(message(relative))

Sources

From the CodeSplash reference, entry SPE012.