<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Uncertainty Based Machine Learning-DFT Hybrid Framework for Accelerating Geometry Optimization</title></titleStmt>
			<publicationStmt>
				<publisher>American Chemical Society</publisher>
				<date>11/26/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10566098</idno>
					<idno type="doi">10.1021/acs.jctc.4c00953</idno>
					<title level='j'>Journal of Chemical Theory and Computation</title>
<idno>1549-9618</idno>
<biblScope unit="volume">20</biblScope>
<biblScope unit="issue">22</biblScope>					

					<author>Akksay Singh</author><author>Jiaqi Wang</author><author>Graeme Henkelman</author><author>Lei Li</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Geometry optimization is an important tool used for computational simulations in the fields of chemistry, physics, and material science. Developing more eFcient and reliable algorithms to reduce the number of force evaluations would lead to accelerated computational modeling and materials discovery. Here, we present a delta method-based neural network-density functional theory (DFT) hybrid optimizer to improve the computational eFciency of geometry optimization. Compared to previous active learning approaches, our algorithm adds two key features: a modified delta method incorporating force information to enhance eFciency in uncertainty estimation, and a quasi-Newton approach based upon a Hessian matrix calculated from the neural network; the later improving stability of optimization near critical points. We benchmarked our optimizer against commonly used optimization algorithms using systems including bulk metal, metal surface, metal hydride, and an oxide cluster. The results demonstrate that our optimizer eTectively reduces the number of DFT force calls by 2-3 times in all test systems.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">INTRODUCTION</head><p>Geometry optimization is a common task in computational chemical modeling. Optimization typically aims to find stable atomic configurations using algorithms including conjugate gradient descent or quasi-Newton approaches. From binding energy calculations to modeling reaction pathways, many physical properties can be determined from critical points on potential energy landscapes, describing atomic structures of interest. The bottleneck in these optimizations is the iterative need for quantum chemical calculations of energies and forces. Therefore, it is important to develop algorithms that increase optimization eFciency and reduce the number of force calls required in the optimization process.</p><p>Machine learning potentials (MLPs) are playing an increasingly prominent role in advancing computational physical sciences. A plethora of MLP approaches have been developed, including artificial feed forward neural networks (ANN), <ref type="bibr">[1]</ref><ref type="bibr">[2]</ref><ref type="bibr">[3]</ref><ref type="bibr">[4]</ref><ref type="bibr">[5]</ref><ref type="bibr">[6]</ref><ref type="bibr">[7]</ref><ref type="bibr">[8]</ref><ref type="bibr">[9]</ref><ref type="bibr">[10]</ref><ref type="bibr">[11]</ref><ref type="bibr">[12]</ref><ref type="bibr">[13]</ref> Gaussian approximation potentials (GAPs), <ref type="bibr">14,</ref><ref type="bibr">15</ref> Gaussian process regression (GPR), <ref type="bibr">[16]</ref><ref type="bibr">[17]</ref><ref type="bibr">[18]</ref><ref type="bibr">[19]</ref><ref type="bibr">[20]</ref> graph neural networks (GNNs), <ref type="bibr">[21]</ref><ref type="bibr">[22]</ref><ref type="bibr">[23]</ref><ref type="bibr">[24]</ref> linear models <ref type="bibr">[25]</ref><ref type="bibr">[26]</ref><ref type="bibr">[27]</ref><ref type="bibr">[28]</ref><ref type="bibr">[29]</ref><ref type="bibr">[30]</ref> using spectral neighbor analysis (SNAP) or moment tensor potentials (MTP), among others. These MLPs have demonstrated accuracy comparable to ab initio approaches with reduced computational cost.</p><p>Utilizing MLPs as surrogate models of the potential energy surface (PES) to guide the optimization procedure has become an attractive approach to accelerate computational tasks such as transition state searches, and geometry optimiza-tion. <ref type="bibr">16,</ref><ref type="bibr">19,</ref><ref type="bibr">20,</ref><ref type="bibr">23,</ref><ref type="bibr">24,</ref><ref type="bibr">[31]</ref><ref type="bibr">[32]</ref><ref type="bibr">[33]</ref><ref type="bibr">[34]</ref> Peterson employed an ANN potential to accelerate saddle point searches with the nudged elastic band method. <ref type="bibr">34</ref> Koistinen et al. used GPR to reduce the number of energy and force evaluation during transition state searches. <ref type="bibr">19,</ref><ref type="bibr">20</ref> Ulissi et al. developed an active learning approach that leverages prior information from pretrained GNN models to accelerate structural relaxation. <ref type="bibr">23,</ref><ref type="bibr">24</ref> These algorithms typically use an MLP model trained on-the-fly and switch to density functional theory (DFT) calculations when the uncertainty of the MLP model exceeds a threshold value. Following each switch, the new data point from the DFT calculation is then included in the training data to update the MLP model. Thus, a key aspect of these algorithms is uncertainty quantification, which ensures that model predictions are accurate and not unphysically extrapolating.</p><p>Currently, a variety of uncertainty quantification methods have been proposed, including but not limited to ensemble methods, <ref type="bibr">3,</ref><ref type="bibr">31,</ref><ref type="bibr">35,</ref><ref type="bibr">36</ref> Bayesian neural networks (BNNs), <ref type="bibr">37,</ref><ref type="bibr">38</ref> the delta method, <ref type="bibr">[39]</ref><ref type="bibr">[40]</ref><ref type="bibr">[41]</ref> among others. <ref type="bibr">42</ref> The ensemble method measures uncertainty as the standard deviation of the predictions from multiple simultaneously trained ML models. This method has been eTective in identifying extrapolation regions when trained with large data sets. However, individual ensemble models often need to be large, for example, Peterson used two hidden layers of 50 neurons each in their neural network model. Additionally, a relatively large ensemble size (&#8805;10) is needed to ensure reasonable accuracy. <ref type="bibr">31,</ref><ref type="bibr">35</ref> In practice, BNNs train parameters that minimize the mean squared errors between the model predictions and target variable, but also penalize large deviations of the model parameters from some prior assumed distribution. This training procedure allows for estimation of variance of the optimized model parameters, which then can be propagated to model predictions.</p><p>More recently, Kitchin and Zhan proposed a delta method for uncertainty quantification. <ref type="bibr">43</ref> The delta method aligns model parameters obtained by minimizing the mean squared errors (MSE) with those obtained by maximizing the log likelihood of errors being Gaussian distributed around a mean of zero. In this approach, model uncertainty is derived from the gradient and Hessian matrix of the model. A significant advantage of the delta method is that it requires only one model, eliminating the need of additional models as in the ensemble method. However, this method has not yet been incorporated into active learning approaches. Integrating the delta method into ML-based optimization algorithms is a natural step forward. In Kitchin's delta method, only energy information is included for uncertainty estimation. In practice, MLPs typically fit both energies and forces. Identifying extrapolation with force information can improve the uncertainty quantification. Another issue related to ML-based optimization algorithms is that the MLP can struggle to achieve suFcient accuracy in forces to reach standard convergence criteria near critical points (i.e., saddle points or local minima), defined here as a maximum atomic force of &lt;0.05 eV/&#197;. However, optimizing precisely in low-force regions (also described as harmonic regions) is also crucial and often requires a considerable number of force evaluations. Further lowering of the convergence criterion also leads to convergence problems due to limited resolution of the ML model and errors in the predicted force.</p><p>In this work, we propose an uncertainty-based ML-DFT hybrid framework to accelerate geometry optimization. Following Kitchin's method, we employed a modified delta method incorporating both energy and force information to enhance uncertainty estimation. Our results on benchmark systems demonstrate that our algorithm exhibits significant improvement compared to commonly used geometry optimization algorithms. Furthermore, we use the Hessian matrix calculated from MLPs as a preconditioner in a quasi-Newton method to solve the convergence problem in harmonic (low force) regions near critical points. This strategy enables stable convergence of atomic systems to atomic forces below 0.01 eV/&#197;. 2. METHODS 2.1. Modified Delta Method as Uncertainty Measure in Active Learning. Inspired by Kitchin's work, we propose a modified delta method including both energy and force information for uncertainty evaluation. Based on the delta method, the uncertainty (&#948;(G,&#952; &#770;)) of a ML model with optimized parameters (&#952; &#770;) is calculated using the following equation, where G represents fingerprints of a training image. G G H G ( , ) MLT( , ) MLT( , ) +</p><p>Two modifications are made to Kitchin's approach to include force information. First, the Moore-Penrose pseudoinverse of the Hessian (H + ) of the true loss function (eq 2) is applied, rather than only the energy term.</p><p>Here E k ML and E k true are the ML and true energy of image k, F il ML and F il true are the ML and true force of atom i along direction l, with l representing the x, y, or z direction in the Cartesian coordinate system, M is the number of training images, N k is the number of atoms in image k, and &#945; and &#946; are energy and force coeFcients, respectively. Note, in practice the eigenvalues of the loss Hessian may need to be shifted due to optimization issues; details are included in the Supporting Information.</p><p>Second, we redefine the machine learning term (MLT(G,&#952; &#770;)) of an image whose uncertainty is estimated as the sum of an energy term and a force term (eq 3). The derivative of these terms with respect to the model parameters &#952; &#770;, G ( MLT( , )) is substituted into eq 1 to obtain uncertainty of the prediction. Note that the uncertainty we calculated here has units of eV 2 , the same as the loss function defined in eq 2. This is diTerent from the uncertainty (in unit of eV) obtained using Kichin's method, as shown in ref 43.   i k j j j j j y { z z z z z i k j j j j j j y</p><p>The key modification is that the Hessian of the loss function and the MLT(G,&#952; &#770;) function used to propagate uncertainty both have force information. We compare our method with Kitchin's method for an O 2 molecule in a box, with results summarized in Figure <ref type="figure">1</ref>. The training region is collected for the O-O bond length (R OO ) between 1.05 and 1.35 &#197;, whereas the test set includes points from 0.95 to 1.45 &#197;. For each point, the loss is calculated using eq 2. The purely energy-based uncertainty estimates have significantly diTerent slopes for points in the compressed bond regions (R OO &lt; 1.05 &#197;) and stretched bond region (R OO &gt; 1.35 &#197;). This is because large forces in the compressed region significantly aTects the loss value. The correlation inconsistency observed in the compressed and stretched regions poses a challenge in practical applications. Inclusion of force information in our method mitigates this problem. The calculated uncertainty for both regions exhibits a consistent correlation with true loss values.</p><p>It is important to mention that the correlations in Figure <ref type="figure">1</ref> do not have a slope near unity. This is a consequence of an unknown calibration of the covariance matrix, which is the inverse of the loss Hessian scaled by a calibration constant. In principle, this constant can be tuned if desired. We keep the calibration constant as the optimized loss value of the neural network, as suggested by Kitchin. This constant does not play a critical role in determining whether an image is uncertain. Instead, a relative ratio to the maximum uncertainty of the neural network predictions on any training point is used as the uncertainty threshold (&#948; th ) to decide if an image is suFciently uncertain. <ref type="bibr">6,</ref><ref type="bibr">18</ref> </p><p>Here &#949; is a constant that controls the reliability of the prediction, and &#948; i is the uncertainty from eq 2 on any image in the training set. This approach is based on the assumption that the uncertainty and loss values of the image are linearly correlated. If the uncertainty exceeds &#948; th , defined in eq 4, that indicates the new image is beyond the training region.</p><p>Consequently, the model needs to be retrained. Otherwise, the new image is considered close to the training region and the results from the model are reliable. In this work, the value of &#949; has been kept constant at 1.50 which exhibits best performance for the Au FCC ( <ref type="formula">643</ref>) system (Figure <ref type="figure">S1a</ref>). In contrast, an energy-based uncertainty method required a much larger &#949; to achieve comparable performance (Figure <ref type="figure">S1b</ref>) due to the absence of force information.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Uncertainty Guided Active</head><p>Learning Geometry Optimization Algorithm. The active learning framework for geometry optimization is illustrated in Figure <ref type="figure">2</ref>. The optimizer consists of two main parts: uncertainty-guided ML optimization (denoted as ML + UQ optimizer) and ML-Hessian preconditioned refinement. The uncertainty-guided optimization employs the delta method for uncertainty estimation to systematically refine the MLP and achieve a soft convergence to 0.05 eV/&#197;. The process begins with a single-point DFT calculation of the system to obtain the energy and forces. Subsequently, an MLP is trained, and uncertainty threshold (&#948; th ) is calculated using eq 4. One geometry optimization step is then performed on the ML PES and the uncertainty (&#948;) of the MLP on the new geometry is calculated. If &#948; exceeds &#948; th , the DFT forces and energy of the new geometry is calculated, and the MLP is refined using the new geometry data. This iterative process continues until the system has loosely converged with a DFT maximum atomic force (F max DFT ) below 0.05 eV/&#197;. To mitigate model fitting errors, a tighter convergence criterion of 0.01 eV/&#197; is used for the optimization on the machine learning PES.</p><p>Once the optimizer has loosely converged, the ML Hessian of the potential energy is calculated and used to precondition the BFGS optimizer in the low force region to a tighter convergence to the critical point (F max DFT &lt; 0.01 eV/&#197;). Near the minimum, the ML models start to suTer from insuFcient precision. In our hybrid method, we switch to accurate forces from DFT, but use the MLP to calculate the Hessian of the potential energy to precondition the BFGS algorithm to accelerate convergence in the harmonic region.</p><p>Two safety checks are included to consider possible failures of the MLP in describing the PES. If a maximum number of optimization steps on the surrogate model is reached (set to 100 by default) without the system reaching (F max ML ) &lt; 0.01 eV/ &#197;, the last image is used to refine the ML model. This ensures that the algorithm terminates, even if the surrogate model is not suFciently smooth to reach a maximum atomic force of 0.01 eV/&#197;. Additionally, if the number of failures (n fail ) reaches a specific threshold value (n th = 5 by default), the ML model is considered unreliable, and a switch to pure DFT is made (gray dashed line in Figure <ref type="figure">2</ref>). Failure of the MLP is flagged when the ML maximum atomic force (F max ML ) on a given geometry is below 0.01 eV/&#197;, yet F max DFT on the same image is above 0.05 eV/&#197;. This safety check is for rare cases, such as when the ML input parameters are insuFcient, or the MLP cannot approximate the true PES. This safety check was not triggered in any of the tests or examples presented here. The primary active learning framework presented here was suFciently accurate to minimize to the DFT minimum at the tighter precision (0.01 eV/&#197;) for all systems tested.</p><p>2.3. Application Systems. Our algorithm was tested on five systems: an Rh FCC (211) surface, Au FCC (643) surface, bulk W BCC with a vacancy, Pd 13 H 2 cluster, and a Pd 20 O 4 cluster. The Au FCC (643) surface initial structure was obtained from Kitchin's work. <ref type="bibr">31</ref> Initial structures for other systems were randomly displaced from the corresponding local minimum using displacements drawn from a normal distribution with a standard deviation of 0.1 &#197;. Upon displacement, each structure has a starting F max DFT &gt; 0.65 eV/&#197;. DFT calculations were done with the Vienna Ab initio Simulation Package (VASP), <ref type="bibr">44,</ref><ref type="bibr">45</ref> with the Perdew-Burke-Ernzerhof generalized gradient approximation exchange correlation funtional. <ref type="bibr">46</ref> Input files and output results for each system are given in the Supporting Information.</p><p>2.4. Optimizer Hyperparameters. For our tests, we used a Behler Parinello neural network (BPNN), as implemented in the PyAMFF 5 package. A key challenge with neural networkbased methods is the need to optimize the various hyperparameters for each system of interest. For user friendliness and generality, we have attempted to keep as many hyperparameters constant across systems as possible. The force coeFcient (the relative weight of force and energy in the loss function) has been kept constant at a value of 1.40 &#197; <ref type="bibr">2</ref> . Each machine learning model was trained to a maximum of 2500 iterations steps or until the loss gradient of the neural network was below 0.0001 eV 2 for each parameter. The activation function used was tanh. The ML training was done with L-BFGS, as implemented in Scipy. <ref type="bibr">47</ref> For BFGS preconditioning, the ML Hessian was modified to be positive definite (details provided in the Supporting Information). In general, the eigenvalue shift ratio used for all the systems in this work was 0.04, except for the Pd 20 O 4 cluster, where we used 0.1. A table of the hyperparameters is available in the Supporting Information (Table <ref type="table">S1</ref>).</p><p>The focus in this work has been on active learning for geometry optimization starting from a single configuration. When optimizing a structure for which similar minimizations have previously been done, sharing information over previously trained models can lead to further speed up, as shown by Kitchin and Ulissi. <ref type="bibr">23,</ref><ref type="bibr">24,</ref><ref type="bibr">31</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">RESULTS AND DISCUSSION</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">ML + UQ Optimizer to Accelerate Geometry</head><p>Optimization in the High Force Region. We initially tested the uncertainty-guided ML optimization algorithm on a Au FCC (643) surface and a Pd 13 H 2 cluster. Our method relaxes the structure to a loose convergence criterion of 0.05 eV/&#197;. To ensure reproducibility, we conducted ten minimization runs for each system, all starting from the same initial configuration and identical neural network hyperparameters, but with random initializations of the neural network weights and biases.</p><p>Figure <ref type="figure">3</ref> shows the optimization progression for the Au FCC (643) surface and the Pd 13 H 2 cluster, comparing the uncertainty guided ML optimizer with the L-BFGS <ref type="bibr">27</ref> optimizer implemented in the VTST code <ref type="bibr">48</ref> (denoted as VTST-LBFGS). Clearly, the uncertainty-guided ML optimizer outperforms the VTST-LBFGS optimizer. For Au FCC (643) and Pd 13 H 2 the VTST-LBFGS optimizer takes 17 and 38 DFT steps respectively to converge to 0.05 eV/&#197;. Jumps in the force and energy are observed during this optimization procedure. In contrast, the ML optimizer shows a monotonic drop in the energy and forces and requires 7 and 18 DFT evaluations to achieve the convergence criterion (in one of the ten sample runs), respectively. This reduces the DFT force calls by 59% for the gold system, and 53% for the palladium hydrogen cluster.</p><p>We further compared the ML + UQ optimizer with other DFT optimizers, including the LBFGS, <ref type="bibr">49</ref> quick-min (QM), <ref type="bibr">53</ref> and conjugate gradient descent (CG) <ref type="bibr">52</ref> optimizers as implemented in the VTST code, <ref type="bibr">48</ref> BFGS, <ref type="bibr">49</ref> MDMin, and </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Journal of Chemical Theory and Computation pubs.acs.org/JCTC</head><p>Article FIRE 50 methods as implemented in ASE, <ref type="bibr">51</ref> and VASP's <ref type="bibr">44,</ref><ref type="bibr">45</ref> damped-MD and RMM-DIIS implementations. The performance of our optimizer, in comparison to the most eFcient pure DFT optimization method for the respective system, is summarized in Figure <ref type="figure">4</ref> (representative convergence plots for each system are shown in Figure <ref type="figure">S2</ref>). The Rh FCC (211) surface, consisting of 36 atoms in a hexagonal arrangement, is relaxed by MDMin from ASE in 11 DFT force evaluations, while the ML + UQ optimizer takes an average of 4.5 DFT force calls. The 95-atom BCC bulk Tungsten system with a vacancy is considered a more challenging system due to the need to include second neighbors for an accurate description of the PES. The ML + UQ optimizer requires an average of only 4.1 DFT force calls to converge, around half the number of that required for RMM-DIIS, which is the most eFcient DFT optimizer for this system. For the Au FCC (643) surface, RMM-DIIS requires 12 DFT calls, whereas the ML + UQ optimizer takes on average 6.9 DFT evaluations.</p><p>The presence of two distinct elements in the cluster systems leads to a wider range of bond frequencies and force constants, making optimization more challenging. For the Pd 13 H 2 cluster,  <ref type="formula">643</ref>) and (b) Pd 13 H 2 system using the ML + UQ and pure DFT using the L-BFGS optimization method implemented in the VTST code. <ref type="bibr">48</ref> The inset images represent the corresponding minimum structures. Gold, dark blue and white balls are Au, Pd and H, respectively. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Journal of Chemical Theory and Computation</head><p>VTST-LBFGS requires 38 DFT calls, whereas the ML + UQ method is able to converge in 18.1 single point calculations. For the Pd 20 O 4 cluster, among the DFT optimizers employed, the ASE-BFGS takes least number of force calls and converges in 23 force calls, while our ML + UQ optimizer reduces the number of force calls to 17.1. Despite the higher number of evaluations compared to the periodic systems, the ML + UQ method significantly decreases the number of DFT calls required.</p><p>The performance of the ML optimizer can depend on the random initializations of neural network parameters, potentially aTecting stability of the ML + UQ optimizer. However, based on 10 runs for each system, the variation in number of force calls is small (as shown by magenta lines in Figure <ref type="figure">4</ref>). Therefore, the ML method with modified uncertainty quantification consistently provides reliable acceleration across all systems, eTectively converging from the high force region to the harmonic region.</p><p>To gain deeper insight into how the algorithm works, we revisited the optimization procedure for the Rh(211) system given its relatively lower computational cost compared to the other systems. Figure <ref type="figure">5</ref> shows the variation in energy, maximum force error, uncertainty and uncertainty tolerance over optimization steps, respectively. Note that optimization on the ML surrogate model (denoted as the MLP loop) is counted in the optimization steps.</p><p>As shown in Figure <ref type="figure">5c</ref>, the first three MLP refinements were triggered (marked as 1, 2 and 3) when the uncertainty exceeded the tolerance value (red line in Figure <ref type="figure">5c</ref>). Although the potential energy from the NNP model aligned well with the DFT reference in the first two triggers (Figure <ref type="figure">5a</ref>), the force error increased significantly, indicating poor reliability of the MLP. Upon each refinement, the force error consistently decreased and rose again as the structure moved away from the training region, leading to the next refinement (Figure <ref type="figure">5b</ref>). Thus, each trigger of MLP refinement corresponds to the maximum force error in that MLP loop.</p><p>The fourth refinement of the MLP was triggered not due to uncertainty, but because the maximum number of optimization steps (set to 100) using the MLP was reached without achieving the machine learning converge criterion. The resulting DFT maximum atomic force (0.062 eV/&#197;) was higher than the DFT convergence criterion of 0.05 eV/&#197;, so this structure was considered uncertain, and was added to the training set for model refinement. Overall, our uncertainty quantification algorithm accurately identified points for model refinement. As optimization proceeded, the uncertainty tolerance decreased consistently, indicating that the model became increasingly accurate in describing the system's local PES.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">ML-Hessian Preconditioned</head><p>Optimizer for Geometry Refinement. We have shown that the ML + UQ optimizer eFciently accelerates convergence of the atomic systems to the harmonic region with atomic forces below 0.05 eV/&#197;. However, further relaxation of geometry to lower convergence criterion is challenging. In the harmonic regions where forces are small, localized models such as in the BPNN can lack the precision needed to accurately converge to the minimum. To mitigate this problem, we switch to a ML-Hessian preconditioned BFGS optimizer and conduct optimization using the true energy and forces of the system. Figure <ref type="figure">6</ref> shows the comparative performance (orange bars) of pure DFT optimizers and our ML-Hessian preconditioned BFGS optimizer in converging from the harmonic region (F max DFT &lt; 0.05 eV/&#197;) to the precise minimum (F max DFT &lt; 0.01 eV/&#197;) for the Au FCC (643) and Pd 13 H 2 cluster systems. This is an extension of Figure <ref type="figure">S3</ref>, where the DFT optimizers are not reset so that the memory from previous data points are retained for curvature approximating methods including BFGS or CG. The blue bars represent the number of DFT force evaluations required to converge the system to the harmonic region, in the same way as in Figure <ref type="figure">S3</ref>.</p><p>Figure <ref type="figure">6</ref> shows that the ML-Hessian preconditioned BFGS optimizer facilitates convergence for the Au FCC (643) surface and Pd 13 H 2 systems to minima with a tighter criterion of 0.01 eV/&#197;. For the Au FCC (643) surface, it requires only 2 extra steps for convergence, much fewer than 11 steps needed for the RMM-DIIS optimizer, which is the most eFcient DFT optimizer for this system. For Pd 13 H 2 , the optimization performance in the harmonic region is similar between VTST-LBFGS (the most eFcient pure DFT method) and ML-Hessian preconditioned BFGS. But this is still significant because the ML Hessians are obtained from the ML force field trained on an average of 18.1 DFT points, whereas the LBFGS </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Journal of Chemical Theory and Computation pubs.acs.org/JCTC Article</head><p>Hessian has been approximated using 38 DFT points along the minimization trajectory. We also continue the minimization for the Rh FCC (211), W-vacancy BCC and Pd 20 O 4 cluster (Figure <ref type="figure">S4</ref>) to a tighter tolerance using the DFT and ML-Hessian preconditioned BFGS optimizer; the number of DFT calls is summarized in Figure <ref type="figure">7</ref>. Using the most eFcient pure DFT method, 2 extra steps are needed to converge Rh FCC (211) and W-vacancy BCC systems from 0.05 to 0.01 eV/&#197;. The ML-Hessian BFGS optimizer takes 1.9 steps for Rh FCC (211) and 1.8 steps for W-vacancy BCC on average over 10 runs. For the Pd 20 O 4 cluster, for the overall most eFcient DFT method (the FIRE method in Figure <ref type="figure">S4c</ref>) requires an additional 23 steps in the harmonic region to reach the precise minimum. Remarkably,  Journal of Chemical Theory and Computation pubs.acs.org/JCTC Article</p><p>The VTST-LBFGS optimizer initializes the Hessian using a finite-diTerence steepest descent step and updates the Hessian with geometries encountered during optimization. Quick-Min is a force-based first order optimizer. The results are summarized in Figure <ref type="figure">8</ref>. On average, the ML-Hessian BFGS approach is the most eFcient, followed by the VTST-LBFGS optimizer. The first order Quick-Min method has the lowest performance due to a limited step size in the harmonic region caused by small atomic forces. Moreover, the ML-Hessian BFGS approach is more stable, as indicated by a smaller variation in the 10 runs (colored error bars in Figure <ref type="figure">8</ref>).</p><p>We have demonstrated that our ML-Hessian preconditioned BFGS optimizer shows accelerated or similar quadratic convergence in harmonic regions compared to second order DFT methods, despite having access to fewer DFT configurations and the corresponding forces and energies. We attribute this performance to the ability of the ML potential to actively learn the true curvatures of the system with suFcient accuracy to help with the preconditioned quasi-Newton methods, despite having no explicit Hessian information included in the training process. Figure <ref type="figure">9</ref> compares the ML and DFT Hessian matrices, their eigenvalues, and the resulting frequencies for Pd 13 H 2 upon convergence to the harmonic region. The ML Hessian matrix (right panel in Figure <ref type="figure">9a</ref>) shows remarkable agreement with the DFT Hessian (left panel in Figure <ref type="figure">9a</ref>). Eigenvalues and frequencies calculated from the ML force field also align well with those obtained from the reference DFT method. Similar agreement between ML and DFT Hessian information is observed for other systems (Figures <ref type="figure">S6-S9</ref>). Consequently, after ensuring positive definitiveness, the ML Hessians serve as good preconditioners for the BFGS optimizer, accelerating convergence in the harmonic regions.</p><p>3.3. Overall Performance of the Uncertainty Guided ML Algorithm. To summarize, the full (ML + UQ + H) method ensures accuracy of the MLP and convergence of the system to the harmonic region with F max DFT &lt; 0.05 eV/&#197; and then uses the ML-Hessian preconditioned BFGS optimizer to further relax the geometry until F max DFT &lt; 0.01 eV/&#197;. Figure <ref type="figure">10</ref> summarizes the total number of DFT force calls and total runtimes required for the method to optimize each system as compared to the most eFcient benchmarked DFT optimizer and GPR-based active learning optimizer developed previously. <ref type="bibr">54</ref> For the periodic systems, we have compared our hybrid optimizer with universal sparse preconditioners 55 (summarized in Table <ref type="table">S2</ref>). The full ML optimizer rapidly converges all systems below F max DFT of 0.01 eV/&#197;, including simple metallic surfaces and multielement cluster systems. Compared to the most eFcient DFT method for each system, the ML + UQ + H approach shows a 2-3 times DFT force call Journal of Chemical Theory and Computation pubs.acs.org/JCTC Article</p><p>saving and has small variation in the number of DFT force calls over 10 independent runs (Figure <ref type="figure">10a</ref>). Moreover, our ML approach exhibit more consistent improvements in reducing the number of DFT calls compared to the GPR-based optimizer.</p><p>The ML + UQ + H optimizer reduces the number of DFT evaluations during structure optimization, but it shows limited improvement in total runtime (Figure <ref type="figure">10b</ref>). A similar issue is observed with the GPR-based optimizer developed previously <ref type="bibr">54</ref> (Figure <ref type="figure">10b</ref>), which is less eFcient than our ML + UQ + H optimizer. This is primarily due to ineFcient preconditioning during the SCF calculations, stemming from significant structural diTerences between successive iterations. This issue is likely common to optimizers relying on ML surrogate models. Further method development, such as the eFcient reuse of the electronic density and KS orbitals, needed to improve overall computational eFciency, will be investigated in future work. The UQ algorithm developed here is particularly valuable for eFcient on-the-fly training of surrogate models in simulations requiring extensive DFT calculations, such as molecular dynamics simulations. Additionally, the ML-Hessian preconditioned BFGS provide a reliable acceleration in optimizing with on-the-fly optimizers near critical points.</p><p>For eTective and robust application of the algorithm developed here, eTorts have been made in this work to establish reliable default values for the hyperparameters associated with the ML-based optimization. These hyperparameters include neural-network structures, type of activation function, etc. Most of the hyperparameters are independent of the application system and have been kept constant (refer to section "Optimizer Hyperparameter" for details). In other systems, adjustment of these hyperparameters may be required, particularly those associated with the symmetry functions (fingerprints). For a better understanding of hyperparameter selection more benchmarking is required.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">CONCLUSION</head><p>In this work, we developed an uncertainty-guided ML-DFT hybrid geometry optimizer that provides reliable acceleration in both the high-and low-force regions. Improving upon previously reported active learning approaches, we implemented an atomistic force-informed delta method for uncertainty estimation. This method demonstrates an eFcient and easily applicable single model-based approach, thus eliminating the need for multiple models. Guided by this modified delta method, the ML model can be eTectively refined and accelerate the convergence of atomic systems from high-force region to the low-force region (the harmonic region). Applying the ML Hessian as a preconditioner for the BFGS optimizer ensures the convergence of atomic systems to precise minima from the harmonic region, which is hard to achieve with a traditional active-learning approach.</p><p>We benchmarked our hybrid optimizer against eight commonly used optimizers and a GPR-accelerated active learning method for minimizing five diTerent systems. The hybrid optimizer converges to the minimum for each system and oTers a stable 2-3 times reduction in DFT force evaluations compared to the system-specific most eFcient DFT optimizer. Our results suggest that further advancements in eFciently reusing electronic density and Kohn-Sham orbitals are needed to enhance overall computational eFciency.</p><p>) ASSOCIATED CONTENT</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>https://doi.org/10.1021/acs.jctc.4c00953 J. Chem. Theory Comput. 2024, 20, 10022-10033</p></note>
		</body>
		</text>
</TEI>
