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 ri∈R3r_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ℓ,p∈Rdℓv_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 ri∈R3r_i \in \mathbb{R}^30 units and SiLU activation and a cutoff of ri∈R3r_i \in \mathbb{R}^31 Å; five interaction blocks are stacked; and the final invariant features are mapped by an MLP to virtual atomic energies ri∈R3r_i \in \mathbb{R}^32 with total energy ri∈R3r_i \in \mathbb{R}^33 (Rensmeyer et al., 2023). In the adsorption-search formulation, the NequIP configuration uses ri∈R3r_i \in \mathbb{R}^34 message-passing layers, feature multiplicity ri∈R3r_i \in \mathbb{R}^35, maximum rotation order ri∈R3r_i \in \mathbb{R}^36, and cutoff radius ri∈R3r_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 ri∈R3r_i \in \mathbb{R}^38 and assigned the isotropic Gaussian prior

ri∈R3r_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ℓ,p∈Rdℓv_i^{\ell,p} \in \mathbb{R}^{d_\ell}0

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

The reported training protocol fixes viℓ,p∈Rdℓv_i^{\ell,p} \in \mathbb{R}^{d_\ell}5, viℓ,p∈Rdℓv_i^{\ell,p} \in \mathbb{R}^{d_\ell}6, and viℓ,p∈Rdℓv_i^{\ell,p} \in \mathbb{R}^{d_\ell}7. For the RMD17 datasets, the batch size is viℓ,p∈Rdℓv_i^{\ell,p} \in \mathbb{R}^{d_\ell}8 and the learning rate viℓ,p∈Rdℓv_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 ri∈R3r_i \in \mathbb{R}^300 to ri∈R3r_i \in \mathbb{R}^301. On RMD17, force MAE is comparable to Dropout on easy molecules but ri∈R3r_i \in \mathbb{R}^302–ri∈R3r_i \in \mathbb{R}^303 better on aspirin and malonaldehyde; ri∈R3r_i \in \mathbb{R}^304 is consistently better by ri∈R3r_i \in \mathbb{R}^305–ri∈R3r_i \in \mathbb{R}^306 nats; ROC AUC for outlier detection at ri∈R3r_i \in \mathbb{R}^307 is ri∈R3r_i \in \mathbb{R}^308–ri∈R3r_i \in \mathbb{R}^309 versus ri∈R3r_i \in \mathbb{R}^310–ri∈R3r_i \in \mathbb{R}^311 for Dropout; and NECE is ri∈R3r_i \in \mathbb{R}^312–ri∈R3r_i \in \mathbb{R}^313, indicating some overconfidence but still lower than Dropout’s ri∈R3r_i \in \mathbb{R}^314–ri∈R3r_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 ri∈R3r_i \in \mathbb{R}^316 Monte Carlo predictions costs approximately ri∈R3r_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 ri∈R3r_i \in \mathbb{R}^318 and adsorption-search variables ri∈R3r_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 ri∈R3r_i \in \mathbb{R}^320. After ri∈R3r_i \in \mathbb{R}^321 evaluations at points ri∈R3r_i \in \mathbb{R}^322, the posterior predictive mean and variance are

ri∈R3r_i \in \mathbb{R}^323

ri∈R3r_i \in \mathbb{R}^324

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

ri∈R3r_i \in \mathbb{R}^329

with ri∈R3r_i \in \mathbb{R}^330, or Upper-Confidence Bound,

ri∈R3r_i \in \mathbb{R}^331

The BO loop is initialized with a small number, for example ri∈R3r_i \in \mathbb{R}^332, of random or space-filling samples, then iterates by fitting ri∈R3r_i \in \mathbb{R}^333, choosing ri∈R3r_i \in \mathbb{R}^334, evaluating the expensive objective, augmenting the dataset, and stopping when a budget such as ri∈R3r_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

ri∈R3r_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 ri∈R3r_i \in \mathbb{R}^337 message-passing layers, feature multiplicity ri∈R3r_i \in \mathbb{R}^338, ri∈R3r_i \in \mathbb{R}^339, and ri∈R3r_i \in \mathbb{R}^340 Å. Training minimizes

ri∈R3r_i \in \mathbb{R}^341

with equal weighting of the energy and force terms; Adam is used with learning rate ri∈R3r_i \in \mathbb{R}^342 and EMA decay ri∈R3r_i \in \mathbb{R}^343. The network outputs atomic contributions ri∈R3r_i \in \mathbb{R}^344 such that ri∈R3r_i \in \mathbb{R}^345, and forces are obtained by analytic differentiation, ri∈R3r_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 ri∈R3r_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 ri∈R3r_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 ri∈R3r_i \in \mathbb{R}^349 years of CPU time for ri∈R3r_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 ri∈R3r_i \in \mathbb{R}^351 to approximately ri∈R3r_i \in \mathbb{R}^352–ri∈R3r_i \in \mathbb{R}^353. NequIP accelerates each energy and force evaluation by approximately ri∈R3r_i \in \mathbb{R}^354–ri∈R3r_i \in \mathbb{R}^355 over DFT. Combined, the protocol identifies known DFT global minima at approximately ri∈R3r_i \in \mathbb{R}^356–ri∈R3r_i \in \mathbb{R}^357 lower wall time, enabling ri∈R3r_i \in \mathbb{R}^358 pose samples instead of ri∈R3r_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.