Abstract
Deep learning has emerged as a promising paradigm to give access to highly accurate predictions of molecular and material properties. A common short-coming shared by current approaches, however, is that neural networks only give point estimates of their predictions and do not come with predictive uncertainties associated with these estimates. Existing uncertainty quantification efforts have primarily leveraged the standard deviation of predictions across an ensemble of independently trained neural networks. This incurs a large computational overhead in both training and prediction, resulting in order-of-magnitude more expensive predictions. Here, we propose a method to estimate the predictive uncertainty based on a single neural network without the need for an ensemble. This allows us to obtain uncertainty estimates with virtually no additional computational overhead over standard training and inference. We demonstrate that the quality of the uncertainty estimates matches those obtained from deep ensembles. We further examine the uncertainty estimates of our methods and deep ensembles across the configuration space of our test system and compare the uncertainties to the potential energy surface. Finally, we study the efficacy of the method in an active learning setting and find the results to match an ensemble-based strategy at order-of-magnitude reduced computational cost.
Introduction
Machine Learning Interatomic Potentials (MLIPs) have revolutionized molecular simulations by bridging the gap between the accuracy of quantum mechanics and the efficiency of classical force fields. However, most deep learning models function as "black boxes," providing point estimates without a measure of confidence. Identifying when a model is operating outside its training domain is critical, particularly for Active Learning workflows. In these workflows, a model must identify unfamiliar atomic configurations that require high-fidelity calculations (such as Density Functional Theory) to refine the training set.
Currently, the gold standard for uncertainty quantification is the use of "Deep Ensembles." This involves training multiple identical models and measuring the variance in their predictions. While effective, this approach is computationally expensive, typically requiring 10x the memory and processing power. This overhead often negates the speed advantages of using ML models in the first place.
Methodology: The Single-Model GMM Approach
This research introduces a method to extract reliable uncertainty estimates from a single neural network, specifically utilizing the NequIP architecture—a state-of-the-art E(3)-equivariant neural network. Instead of relying on the disagreement between multiple models, the proposed method analyzes the model's internal feature space.
Feature Extraction and Density Estimation
The approach follows a three-step process:
- Feature Extraction: The final scalar features produced by the network, just before the energy prediction layer, are extracted.
- Density Estimation: A Gaussian Mixture Model (GMM) is fitted to the distribution of these features across the training set.
- Uncertainty Metric: During inference, the model calculates the Negative Log-Likelihood (NLL) of the features for a new atomic configuration. A high NLL indicates that the model is encountering a feature pattern it did not see during training, signaling high uncertainty.
The authors compared this GMM-based approach against both "Traditional Ensembles" (identical architectures with different initializations) and "Diverse Ensembles" (varying hyperparameters).
Experimental Setup and Results
The study utilized the 3BPA (3-(benzyloxy)pyridin-2-amine) transferability benchmark, a flexible molecule characterized by three rotating dihedral angles. The model was trained on data sampled at 300K and evaluated on test sets at 300K, 600K, and 1200K to assess out-of-distribution performance.
Key Findings
- Computational Efficiency: The GMM method provides uncertainty estimates with virtually no additional overhead during inference. This represents an order-of-magnitude reduction in computational cost compared to a standard 10-model ensemble.
- Uncertainty Landscapes: The uncertainty scores generated by the GMM closely mirror the actual Potential Energy Surface (PES). High-energy regions, which are rarely sampled during training, naturally trigger higher uncertainty scores.
- Active Learning Performance: In practical tests, the GMM-driven active learning loop matched the performance of ensemble-based strategies, reducing average force errors by 10–30 meV/Å without the associated computational burden.
Discussion and Future Work
While the GMM approach is highly efficient, it currently provides a relative uncertainty score (NLL) rather than a physical error unit (e.g., meV/Å). Future research will focus on "calibrating" these scores into meaningful error bars. Additionally, while the method assumes atomic uncertainties are independent when calculating molecular totals, exploring the correlations of forces within a structure could further refine the estimates. Finally, extending this method to complex, multi-component bulk materials remains a key area for future investigation.
Summary updated