Papers
Topics
Authors
Recent
Search
2000 character limit reached

Bayesian NequIP: Uncertainty in Atomistic Modeling

Updated 15 July 2026
  • The paper extends NequIP by incorporating a Bayesian framework with Gaussian priors and adaptive SGHMC, enabling uncertainty-aware predictions of energies and forces.
  • It distinguishes between two constructions: a weight-space posterior sampling approach and a Gaussian-process surrogate integrated into Bayesian optimization for structure determination.
  • Benchmark results indicate state-of-the-art accuracy and significant efficiency gains in atomistic simulations and adsorption search compared to deterministic methods.

Searching arXiv for the cited Bayesian NequIP papers and directly related NequIP context. Bayesian NequIP denotes Bayesian augmentations of the E(3)-equivariant interatomic potential NequIP that are used for uncertainty-aware atomistic modeling and for accelerated structure search. In one line of work, NequIP is turned into a stochastic neural network with a Gaussian prior over parameters, Gaussian likelihoods for energies and forces, and posterior sampling by an adaptive stochastic-gradient Hamiltonian Monte Carlo procedure, yielding uncertainty-aware interatomic force models with state-of-the-art accuracy and a good measure of uncertainty (Rensmeyer et al., 2023). In another line of work, NequIP is coupled to Bayesian optimization in the BOSS framework for adsorption-structure determination, where a Gaussian-process surrogate reduces the number of structure evaluations and NequIP reduces the cost of each evaluation (Jestilä et al., 2023).

1. NequIP as the common substrate

NequIP is an E(3)-equivariant graph neural network for interatomic potentials. It takes as input a molecular configuration x={(ri,zi)}i=1nx = \{(r_i,z_i)\}_{i=1}^n, where riR3r_i \in \mathbb{R}^3 are nuclear coordinates and ziz_i their atomic numbers, and outputs a scalar energy E(x)E(x) and forces Fi=riE(x)F_i = -\nabla_{r_i}E(x). In the uncertainty-aware formulation, each atom carries features vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}, one vector per irrep up to max=2\ell_{\max}=2, with d=64d_\ell=64 for all \ell; radial functions use a learnable Bessel basis of size $8$ plus two hidden layers with riR3r_i \in \mathbb{R}^30 units and SiLU activation and a cutoff of riR3r_i \in \mathbb{R}^31 Å; five interaction blocks are stacked; and the final invariant features are mapped by an MLP to virtual atomic energies riR3r_i \in \mathbb{R}^32 with total energy riR3r_i \in \mathbb{R}^33 (Rensmeyer et al., 2023). In the adsorption-search formulation, the NequIP configuration uses riR3r_i \in \mathbb{R}^34 message-passing layers, feature multiplicity riR3r_i \in \mathbb{R}^35, maximum rotation order riR3r_i \in \mathbb{R}^36, and cutoff radius riR3r_i \in \mathbb{R}^37 Å, again relying on spherical harmonics and tensor-valued features to ensure E(3) equivariance (Jestilä et al., 2023).

The common architectural core should not obscure the fact that the literature uses the label “Bayesian NequIP” for two different Bayesian constructions. One places a posterior distribution over network parameters and treats energy and force prediction probabilistically. The other places a Gaussian-process prior over an unknown potential-energy surface in a Bayesian optimization loop and uses NequIP as the fast evaluator inside that loop. The shared element is NequIP’s equivariant energy–force model; the Bayesian layer differs substantially between the two usages.

2. Bayesian neural-network formulation of NequIP

In the uncertainty-aware force-field formulation, all network parameters, including the weights and biases of the base and projection layers and the two new standard-deviation MLPs, are collected into riR3r_i \in \mathbb{R}^38 and assigned the isotropic Gaussian prior

riR3r_i \in \mathbb{R}^39

The dataset is ziz_i0, assumed i.i.d., where each ziz_i1 contains the true DFT energy ziz_i2 and forces ziz_i3. Under ziz_i4, the network predicts means ziz_i5 and ziz_i6, and it also predicts standard deviations ziz_i7 and a single scalar ziz_i8 for all three components of every atomic force. These standard deviations are produced by small MLP heads acting on the invariant features from the NequIP base. The likelihood is

ziz_i9

and the posterior density is

E(x)E(x)0

Equivalently, the negative-log potential is

E(x)E(x)1

and posterior sampling targets E(x)E(x)2 (Rensmeyer et al., 2023).

This construction is explicitly motivated by the use of Bayesian neural networks for modeling uncertainty, active learning, and incorporating prior physical knowledge. The NequIP backbone remains the mechanism that enforces equivariance and produces energies and forces, while the Bayesian formulation adds a probabilistic layer over both the parameters and the predictive outputs. In this sense, Bayesian NequIP is not merely an ensemble heuristic but a stochastic neural network model with a defined prior, likelihood, posterior, and predictive density.

3. Adaptive SGHMC posterior sampling and training protocol

A central obstacle in applying Bayesian neural networks to interatomic force modeling is posterior sampling for state-of-the-art architectures. Standard SGHMC introduces an auxiliary momentum variable E(x)E(x)3 and simulates

E(x)E(x)4

E(x)E(x)5

with diagonal mass E(x)E(x)6 and friction E(x)E(x)7. In NequIP, however, different parameter groups exhibit gradient scales differing by orders of magnitude, so a single fixed E(x)E(x)8 or stepsize E(x)E(x)9 causes some parameters to move too slowly while others explode. The proposed remedy is an AMSGrad-based diagonal mass adaptation:

Fi=riE(x)F_i = -\nabla_{r_i}E(x)0

Fi=riE(x)F_i = -\nabla_{r_i}E(x)1

Fi=riE(x)F_i = -\nabla_{r_i}E(x)2

where the maximum is elementwise. During the first Fi=riE(x)F_i = -\nabla_{r_i}E(x)3 steps, regarded as burn-in, Fi=riE(x)F_i = -\nabla_{r_i}E(x)4 is updated; afterward it is frozen as Fi=riE(x)F_i = -\nabla_{r_i}E(x)5, yielding a true SGHMC chain. The algorithm uses minibatches Fi=riE(x)F_i = -\nabla_{r_i}E(x)6 of size Fi=riE(x)F_i = -\nabla_{r_i}E(x)7 and the stochastic-gradient estimate

Fi=riE(x)F_i = -\nabla_{r_i}E(x)8

The update rule given in the pseudocode is

Fi=riE(x)F_i = -\nabla_{r_i}E(x)9

vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}0

with vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}1, vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}2, vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}3, and vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}4 (Rensmeyer et al., 2023).

The reported training protocol fixes vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}5, vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}6, and vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}7. For the RMD17 datasets, the batch size is vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}8 and the learning rate vi,pRdv_i^{\ell,p} \in \mathbb{R}^{d_\ell}9 is decayed exponentially from max=2\ell_{\max}=20 to max=2\ell_{\max}=21 over the first max=2\ell_{\max}=22 steps of burn-in; after step max=2\ell_{\max}=23, the mass is frozen and a cosine cyclic schedule is used,

max=2\ell_{\max}=24

with max=2\ell_{\max}=25 and max=2\ell_{\max}=26, sampling one max=2\ell_{\max}=27 every cycle and obtaining max=2\ell_{\max}=28 samples in about max=2\ell_{\max}=29 extra steps. For the PEDOT dataset, the scheme is identical except that d=64d_\ell=640, burn-in lasts d=64d_\ell=641 steps, and the mass is frozen after d=64d_\ell=642 steps. The paper reports that d=64d_\ell=643 samples are a good trade-off and that a single chain suffices to produce approximately independent samples.

4. Predictive uncertainty, calibration, and benchmark behavior

Given posterior samples d=64d_\ell=644, the predictive density for a new configuration is approximated by

d=64d_\ell=645

with point estimates

d=64d_\ell=646

For a force component d=64d_\ell=647, the total predictive variance is

d=64d_\ell=648

The first term is identified as aleatoric uncertainty, and the second as epistemic uncertainty; analogous formulas hold for the energy (Rensmeyer et al., 2023).

The empirical evaluation uses PEDOT conducting-polymer molecular dynamics and Revised MD17. The PEDOT dataset contains d=64d_\ell=649 training and \ell0 validation structures for chains of length \ell1, with testing also on length \ell2 and zero training on that length. The Revised MD17 setup uses \ell3 training structures, \ell4 validation structures, and approximately \ell5 test structures per molecule. Metrics include MAE-F and RMSE-F in kcal/(mol·Å), MAE-E and RMSE-E in kcal/mol, mean log-likelihood under the predictive distribution, ROC AUC for outlier detection with threshold \ell6 kcal/(mol·Å), and calibration via Expected Calibration Error normalized by bin width, denoted NECE. The main baseline is Dropout-based NequIP with a single dropout layer of rate \ell7 trained with AMSGrad on identical data splits. On PEDOT, MAE-F is approximately \ell8–\ell9 kcal/(mol·Å), improving slightly from $8$0 to $8$1, while energy MAE is about $8$2–$8$3 kcal/mol. On length-$8$4 PEDOT, NECE improves from $8$5 for $8$6 to $8$7 for $8$8, and $8$9 improves from riR3r_i \in \mathbb{R}^300 to riR3r_i \in \mathbb{R}^301. On RMD17, force MAE is comparable to Dropout on easy molecules but riR3r_i \in \mathbb{R}^302–riR3r_i \in \mathbb{R}^303 better on aspirin and malonaldehyde; riR3r_i \in \mathbb{R}^304 is consistently better by riR3r_i \in \mathbb{R}^305–riR3r_i \in \mathbb{R}^306 nats; ROC AUC for outlier detection at riR3r_i \in \mathbb{R}^307 is riR3r_i \in \mathbb{R}^308–riR3r_i \in \mathbb{R}^309 versus riR3r_i \in \mathbb{R}^310–riR3r_i \in \mathbb{R}^311 for Dropout; and NECE is riR3r_i \in \mathbb{R}^312–riR3r_i \in \mathbb{R}^313, indicating some overconfidence but still lower than Dropout’s riR3r_i \in \mathbb{R}^314–riR3r_i \in \mathbb{R}^315. The paper also reports that the Bayesian procedure requires about twice the GPU hours of deterministic NequIP to reach convergence, while inference with riR3r_i \in \mathbb{R}^316 Monte Carlo predictions costs approximately riR3r_i \in \mathbb{R}^317 times a single NequIP forward pass plus small MLP overhead for the standard deviations, and in most workflows DFT data generation dominates runtime.

5. Bayesian optimization with NequIP for adsorption structure determination

In the adsorption-search usage, Bayesian NequIP refers to a protocol that combines Bayesian optimization structural inference with NequIP. The decision variables are split into conformer-search internal coordinates riR3r_i \in \mathbb{R}^318 and adsorption-search variables riR3r_i \in \mathbb{R}^319, consisting of the Cartesian translation of the molecule above the surface and three Euler roll-pitch-yaw angles. A Gaussian-process prior is placed on the unknown potential-energy surface riR3r_i \in \mathbb{R}^320. After riR3r_i \in \mathbb{R}^321 evaluations at points riR3r_i \in \mathbb{R}^322, the posterior predictive mean and variance are

riR3r_i \in \mathbb{R}^323

riR3r_i \in \mathbb{R}^324

where riR3r_i \in \mathbb{R}^325, riR3r_i \in \mathbb{R}^326, riR3r_i \in \mathbb{R}^327 is the noise or jitter hyperparameter, and riR3r_i \in \mathbb{R}^328. The acquisition function may be Expected Improvement,

riR3r_i \in \mathbb{R}^329

with riR3r_i \in \mathbb{R}^330, or Upper-Confidence Bound,

riR3r_i \in \mathbb{R}^331

The BO loop is initialized with a small number, for example riR3r_i \in \mathbb{R}^332, of random or space-filling samples, then iterates by fitting riR3r_i \in \mathbb{R}^333, choosing riR3r_i \in \mathbb{R}^334, evaluating the expensive objective, augmenting the dataset, and stopping when a budget such as riR3r_i \in \mathbb{R}^335 points is reached or a convergence criterion is met (Jestilä et al., 2023).

For adsorption searches, the objective is the binding energy

riR3r_i \in \mathbb{R}^336

which is minimized. NequIP serves as the machine-learning interatomic potential that replaces DFT as the expensive oracle at active-learning steps. In this protocol, the NequIP model uses riR3r_i \in \mathbb{R}^337 message-passing layers, feature multiplicity riR3r_i \in \mathbb{R}^338, riR3r_i \in \mathbb{R}^339, and riR3r_i \in \mathbb{R}^340 Å. Training minimizes

riR3r_i \in \mathbb{R}^341

with equal weighting of the energy and force terms; Adam is used with learning rate riR3r_i \in \mathbb{R}^342 and EMA decay riR3r_i \in \mathbb{R}^343. The network outputs atomic contributions riR3r_i \in \mathbb{R}^344 such that riR3r_i \in \mathbb{R}^345, and forces are obtained by analytic differentiation, riR3r_i \in \mathbb{R}^346. Between BO iterations, local relaxations of candidate minima are carried out with BFGS in ASE using the NequIP calculator until riR3r_i \in \mathbb{R}^347 eV/Å. To address conformational flexibility, the protocol adopts a building-block strategy: gas-phase conformers are located first, and where full conformational mapping is infeasible, external conformer search tools such as CREST metadynamics are used; the resulting conformers are then frozen as rigid building blocks and only the riR3r_i \in \mathbb{R}^348D adsorption pose is optimized with BOSS.

6. Performance claims, limitations, and recurrent points of confusion

For adsorption-structure determination, the reported performance gains are substantial in terms of search cost. DFT-only global adsorption searches for flexible xylotetraose are described as intractable, requiring more than riR3r_i \in \mathbb{R}^349 years of CPU time for riR3r_i \in \mathbb{R}^350 structures. BOSS with DFT reduces the number of required DFT evaluations by two to three orders of magnitude, for example from approximately riR3r_i \in \mathbb{R}^351 to approximately riR3r_i \in \mathbb{R}^352–riR3r_i \in \mathbb{R}^353. NequIP accelerates each energy and force evaluation by approximately riR3r_i \in \mathbb{R}^354–riR3r_i \in \mathbb{R}^355 over DFT. Combined, the protocol identifies known DFT global minima at approximately riR3r_i \in \mathbb{R}^356–riR3r_i \in \mathbb{R}^357 lower wall time, enabling riR3r_i \in \mathbb{R}^358 pose samples instead of riR3r_i \in \mathbb{R}^359 by DFT at comparable accuracy (Jestilä et al., 2023).

A recurrent source of confusion is that the Bayesian ingredient is different in the two main usages. In the uncertainty-aware force-modeling work, the Bayesian object is the posterior over NequIP parameters and the predictive density is a Monte Carlo average over sampled networks. In the adsorption-search work, the Bayesian object is the Gaussian-process surrogate over adsorption configurations, while NequIP functions as the fast machine-learning interatomic potential inside the optimization loop. Another common misunderstanding is to equate uncertainty estimation with perfect calibration. The uncertainty-aware force-modeling results explicitly report slight overconfidence tails, even though calibration as measured by NECE is better than the Dropout baseline. A further limitation concerns conformational flexibility: the adsorption-search paper states that the applicability of Bayesian optimization for the conformational analysis of the more flexible xylotetraose molecule is restricted by the sample-complexity bottleneck, and that this bottleneck can be bypassed with external conformer search tools before lower-dimensional adsorption optimization (Rensmeyer et al., 2023).

These two usages therefore occupy different positions in atomistic-learning workflows. One addresses posterior uncertainty within the interatomic force model itself; the other addresses sample efficiency in global structure determination. Taken together, they show how Bayesian methodology can enter NequIP-based atomistic modeling either through weight-space posterior inference or through Gaussian-process-guided search over molecular and adsorption configurations.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Bayesian NequIP.