Bayesian NequIP: Uncertainty in Atomistic Modeling
- 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 , where are nuclear coordinates and their atomic numbers, and outputs a scalar energy and forces . In the uncertainty-aware formulation, each atom carries features , one vector per irrep up to , with for all ; radial functions use a learnable Bessel basis of size $8$ plus two hidden layers with 0 units and SiLU activation and a cutoff of 1 Å; five interaction blocks are stacked; and the final invariant features are mapped by an MLP to virtual atomic energies 2 with total energy 3 (Rensmeyer et al., 2023). In the adsorption-search formulation, the NequIP configuration uses 4 message-passing layers, feature multiplicity 5, maximum rotation order 6, and cutoff radius 7 Å, 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 8 and assigned the isotropic Gaussian prior
9
The dataset is 0, assumed i.i.d., where each 1 contains the true DFT energy 2 and forces 3. Under 4, the network predicts means 5 and 6, and it also predicts standard deviations 7 and a single scalar 8 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
9
and the posterior density is
0
Equivalently, the negative-log potential is
1
and posterior sampling targets 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 3 and simulates
4
5
with diagonal mass 6 and friction 7. In NequIP, however, different parameter groups exhibit gradient scales differing by orders of magnitude, so a single fixed 8 or stepsize 9 causes some parameters to move too slowly while others explode. The proposed remedy is an AMSGrad-based diagonal mass adaptation:
0
1
2
where the maximum is elementwise. During the first 3 steps, regarded as burn-in, 4 is updated; afterward it is frozen as 5, yielding a true SGHMC chain. The algorithm uses minibatches 6 of size 7 and the stochastic-gradient estimate
8
The update rule given in the pseudocode is
9
0
with 1, 2, 3, and 4 (Rensmeyer et al., 2023).
The reported training protocol fixes 5, 6, and 7. For the RMD17 datasets, the batch size is 8 and the learning rate 9 is decayed exponentially from 0 to 1 over the first 2 steps of burn-in; after step 3, the mass is frozen and a cosine cyclic schedule is used,
4
with 5 and 6, sampling one 7 every cycle and obtaining 8 samples in about 9 extra steps. For the PEDOT dataset, the scheme is identical except that 0, burn-in lasts 1 steps, and the mass is frozen after 2 steps. The paper reports that 3 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 4, the predictive density for a new configuration is approximated by
5
with point estimates
6
For a force component 7, the total predictive variance is
8
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 9 training and 0 validation structures for chains of length 1, with testing also on length 2 and zero training on that length. The Revised MD17 setup uses 3 training structures, 4 validation structures, and approximately 5 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 6 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 7 trained with AMSGrad on identical data splits. On PEDOT, MAE-F is approximately 8–9 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 00 to 01. On RMD17, force MAE is comparable to Dropout on easy molecules but 02–03 better on aspirin and malonaldehyde; 04 is consistently better by 05–06 nats; ROC AUC for outlier detection at 07 is 08–09 versus 10–11 for Dropout; and NECE is 12–13, indicating some overconfidence but still lower than Dropout’s 14–15. The paper also reports that the Bayesian procedure requires about twice the GPU hours of deterministic NequIP to reach convergence, while inference with 16 Monte Carlo predictions costs approximately 17 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 18 and adsorption-search variables 19, 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 20. After 21 evaluations at points 22, the posterior predictive mean and variance are
23
24
where 25, 26, 27 is the noise or jitter hyperparameter, and 28. The acquisition function may be Expected Improvement,
29
with 30, or Upper-Confidence Bound,
31
The BO loop is initialized with a small number, for example 32, of random or space-filling samples, then iterates by fitting 33, choosing 34, evaluating the expensive objective, augmenting the dataset, and stopping when a budget such as 35 points is reached or a convergence criterion is met (Jestilä et al., 2023).
For adsorption searches, the objective is the binding energy
36
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 37 message-passing layers, feature multiplicity 38, 39, and 40 Å. Training minimizes
41
with equal weighting of the energy and force terms; Adam is used with learning rate 42 and EMA decay 43. The network outputs atomic contributions 44 such that 45, and forces are obtained by analytic differentiation, 46. Between BO iterations, local relaxations of candidate minima are carried out with BFGS in ASE using the NequIP calculator until 47 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 48D 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 49 years of CPU time for 50 structures. BOSS with DFT reduces the number of required DFT evaluations by two to three orders of magnitude, for example from approximately 51 to approximately 52–53. NequIP accelerates each energy and force evaluation by approximately 54–55 over DFT. Combined, the protocol identifies known DFT global minima at approximately 56–57 lower wall time, enabling 58 pose samples instead of 59 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.