Single-model uncertainty quantification in neural network potentials does not consistently outperform model ensembles

Aik Rui Tan, Shingo Urata, Samuel Goldman, Johannes C. B. Dietschreit, Rafael Gómez‐Bombarelli

Abstract

Neural Network Interatomic Potentials (NNIPs) have revolutionized materials science by bridging the gap between quantum mechanical accuracy and classical simulation speed. However, their tendency toward overconfidence in out-of-distribution scenarios necessitates robust Uncertainty Quantification (UQ). This study evaluates four UQ strategies—Ensembles, Mean-Variance Estimation (MVE), Evidential Regression, and Gaussian Mixture Models (GMM)—within the PaiNN architecture. Results indicate that while single-model methods offer computational efficiency, model ensembles remain the most reliable for identifying model failures and driving active learning in complex chemical environments.

Introduction

Neural Network Interatomic Potentials (NNIPs) are increasingly used to simulate complex materials and molecular systems. Despite their success, these models often fail when encountering atomic configurations significantly different from their training data. Such "out-of-distribution" (OOD) errors can lead to unphysical results or simulation "explosions."

Uncertainty Quantification (UQ) is critical for detecting these failures and for active learning, where high-uncertainty regions are identified for further data collection. While model ensembles are the current gold standard for UQ, they are computationally expensive. This paper investigates whether modern single-model UQ methods can provide a viable, more efficient alternative without sacrificing the robustness required for molecular dynamics (MD) simulations.

Methodology

The authors compared four distinct UQ strategies using the PaiNN (Polarizable Atom Interaction Neural Network) architecture, as illustrated in Figure 1:

  1. Ensemble-based (The Baseline): Training $M$ independent models and using the variance of their predictions as the uncertainty metric.
  2. Mean-Variance Estimation (MVE): A single NN modified to predict both a mean value and a variance (representing uncertainty) simultaneously.
  3. Deep Evidential Regression: A more complex approach that places a higher-order "evidential" prior on the model's predictions to explicitly capture epistemic uncertainty (the uncertainty stemming from a lack of data).
  4. Gaussian Mixture Models (GMM): A "succedent" method where a density model is fitted to the latent features (the internal representations) of a pre-trained NN. If a new structure's features don't fit the GMM, the uncertainty is high.
An illustration of the four UQ methods compared: (a) Ensembles, (b) MVE, (c) Evidential Regression, and (d) GMM.

Experimental Setup

The methods were stress-tested across three regimes of increasing difficulty to evaluate their performance in both interpolation and extrapolation:

  • rMD17: Snapshots of small organic molecules. This represents interpolation, where the test data is very similar to the training data.
  • Ammonia Inversion: A classic "out-of-domain" challenge. Models were trained on low-energy ground states but tested on high-energy transition states during nitrogen inversion.
  • Bulk Silica Glass: A complex system with high configurational variety, testing the models' ability to generalize across different temperatures and structural deformations.

Key Results and Discussion

The study revealed a "no free lunch" scenario in UQ for NNIPs, where no single method dominated across all metrics (Spearman correlation, ROC-AUC, or calibration).

The Dominance of Ensembles

Ensembles consistently provided the best generalization and the most stable MD trajectories. While they are approximately five times more expensive to train than single-model methods, they proved to be the most reliable for preventing simulation "crashes." The variance across multiple models remains a superior proxy for epistemic uncertainty compared to the internal metrics of single-model architectures.

Performance of Single-Model Alternatives

  • MVE is for Homebodies: Mean-Variance Estimation performed well for in-domain interpolation (rMD17) but was the least capable of identifying high-uncertainty regions in out-of-distribution scenarios. It often failed to flag the very errors that lead to simulation failure.
  • GMM as a Lightweight Contender: For out-of-distribution detection, GMMs were surprisingly effective and much easier to implement than evidential regression. However, they require manual tuning of the number of clusters, which can be a hurdle for high-throughput discovery.
  • Evidential Regression Struggles: Despite its theoretical elegance in separating epistemic and aleatoric uncertainty, evidential regression was often numerically unstable during training and failed to consistently outperform the simpler ensemble method.

Conclusion

While the search for a "perfect" single-model UQ method continues, model ensembles remain the most robust choice for identifying model failures and driving active learning in materials science. Current single-model approaches often struggle to translate aleatoric uncertainty logic into the epistemic problems inherent in noise-free DFT training data. Future work must focus on better handling the relationship between energy and force uncertainty and automating the configuration of feature-based methods like GMMs to make them more practical for diverse chemical systems.

Summary updated

BibTeX
@inproceedings{tan2023single,
  author = {Aik Rui Tan and Shingo Urata and Samuel Goldman and Johannes C. B. Dietschreit and Rafael Gómez‐Bombarelli},
  title = {{Single-model uncertainty quantification in neural network potentials does not consistently outperform model ensembles}},
  booktitle = {Npj},
  year = {2023},
  doi = {10.1038/s41524-023-01180-8},
}
Figure