원시데이터 수집 시스템
선정목록으로

Efficient training of ANN potentials by including atomic forces via Taylor expansion and application to water and a transition-metal oxide

간접 관련 수소연료전지 · (6) PEM(고분자전해질막) (7) MEA(막전극접합체)(21) 에폭시수지

기본 정보

저자
  1. April M. Cooper — School of Chemistry, University of St Andrews, St Andrews, UK
  2. Johannes Kästner — Institute for Theoretical Chemistry, University of Stuttgart, Stuttgart, Germany
  3. Alexander Urban — School of Chemistry, University of St Andrews, St Andrews, UK
  4. Nongnuch Artrith — School of Chemistry, University of St Andrews, St Andrews, UK
DOI
10.1038/s41524-020-0323-8
저널
npj Computational Materials
발행년도
2020
발행기관
Nature Portfolio
피인용수
66
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41524-020-0323-8
토픽
Fuel Cells and Related Materials
OpenAlex ID
W3098862241

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (6) PEM(고분자전해질막)
부 분야
(7) MEA(막전극접합체), (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Artificial neural network (ANN) potentials, molecular dynamics simulations, transition-metal oxide, interatomic forces, atomistic modeling
판단 근거
이 논문은 인공신경망(ANN)을 이용해 원자 간 힘과 에너지를 효율적으로 예측하는 모델링 기법을 다룹니다. 직접적인 제품 연구는 아니나, 수소연료전지(PEMFC)의 핵심 소재인 이온전도성 고분자나 전극 촉매, 혹은 화학/수지 분야의 고분자 물성 예측을 위한 분자 동역학(MD) 시뮬레이션 방법론으로 응용 가능합니다.
R&D 활용 포인트
고분자 전해질막(PEM)이나 촉매층의 미세 구조 및 화학적 열화 메커니즘을 분자 수준에서 시뮬레이션하여 신소재 설계 및 성능 예측 시간을 단축하는 데 활용할 수 있습니다.
평가 입력
본문 91,632자 중 30,032자 발췌

초록

Abstract Artificial neural network (ANN) potentials enable the efficient large-scale atomistic modeling of complex materials with near first-principles accuracy. For molecular dynamics simulations, accurate energies and interatomic forces are a prerequisite, but training ANN potentials simultaneously on energies and forces from electronic structure calculations is computationally demanding. Here, we introduce an efficient alternative method for the training of ANN potentials on energy and force information, based on an extrapolation of the total energy via a Taylor expansion. By translating the force information to approximate energies, the quadratic scaling with the number of atoms exhibited by conventional force-training methods can be avoided, which enables the training on reference datasets containing complex atomic structures. We demonstrate for different materials systems, clusters of water molecules, bulk liquid water, and a lithium transition-metal oxide that the proposed force-training approach provides substantial improvements over schemes that train on energies only. Including force information for training reduces the size of the reference datasets required for ANN potential construction, increases the transferability of the potential, and generally improves the force prediction accuracy. For a set of water clusters, the Taylor-expansion approach achieves around 50% of the force error improvement compared to the explicit training on all force components, at a much smaller computational cost. The alternative force-training approach thus simplifies the construction of general ANN potentials for the prediction of accurate energies and interatomic forces for diverse types of materials, as demonstrated here for water and a transition-metal oxide.

본문 91,632자

본문 펼치기
/ pj p ARTICLE OPEN # Efficient training of ANN potentials by including atomic forces via Taylor expansion and application to water and a transition-metal oxide April M. Cooper <sup>1,2</sup>, Johannes Kästner <sup>2</sup>, Alexander Urban [1,3](http://orcid.org/0000-0002-9021-279X) and Nongnuch Artrith [1,3](http://orcid.org/0000-0003-1153-6583) ✉ Artificial neural network (ANN) potentials enable the efficient large-scale atomistic modeling of complex materials with near firstprinciples accuracy. For molecular dynamics simulations, accurate energies and interatomic forces are a prerequisite, but training ANN potentials simultaneously on energies and forces from electronic structure calculations is computationally demanding. Here, we introduce an efficient alternative method for the training of ANN potentials on energy and force information, based on an extrapolation of the total energy via a Taylor expansion. By translating the force information to approximate energies, the quadratic scaling with the number of atoms exhibited by conventional force-training methods can be avoided, which enables the training on reference datasets containing complex atomic structures. We demonstrate for different materials systems, clusters of water molecules, bulk liquid water, and a lithium transition-metal oxide that the proposed force-training approach provides substantial improvements over schemes that train on energies only. Including force information for training reduces the size of the reference datasets required for ANN potential construction, increases the transferability of the potential, and generally improves the force prediction accuracy. For a set of water clusters, the Taylor-expansion approach achieves around 50% of the force error improvement compared to the explicit training on all force components, at a much smaller computational cost. The alternative force-training approach thus simplifies the construction of general ANN potentials for the prediction of accurate energies and <mark>interatomic</mark> <mark>forces</mark> <mark>for</mark> <mark>diverse</mark> <mark>types</mark> <mark>of</mark> <mark>materials,</mark> <mark>as</mark> <mark>demonstrated</mark> <mark>here</mark> <mark>for</mark> <mark>water</mark> <mark>and</mark> <mark>a</mark> <mark>transition-metal</mark> <mark>oxide.</mark> <mark>npj</mark> <mark>Computational</mark> <mark>Materials</mark> <mark>(2020)6:54</mark> <mark>;</mark> <mark>[https://doi.org/10.1038/s41524-020-0323-8](https://doi.org/10.1038/s41524-020-0323-8)</mark> INTRODUCTION During the past decade, machine-learning potentials (MLP) trained on accurate first principles and quantum chemistry methods have become an integral part of computational materials science <sup>1–11</sup> . Carefully constructed MLPs can be as accurate as their first principles reference method but at a fraction of the computational cost and with an effort that scales linearly with the number of atoms, which enables the modeling of complex materials that are not accessible with first principles methods such as densityfunctional theory (DFT) <sup>12–15</sup> . MLPs can also be trained on results from highly accurate ab initio methods such as coupled-cluster calculations <sup>16–18</sup> . One popular MLP variant is the high dimensional artificial neural network (ANN) potential method initially introduced by Behler and Parrinello for elemental Si in 2007 <sup>1</sup> and extended to multiple chemical species by Artrith and coworkers <sup>19,20</sup>, exploring also the effect of long-ranged electrostatic interactions <sup>19</sup> . ANN potentials have been successfully used to model many complex materials, such as elemental metals <sup>21,22</sup>, alloys <sup>23,24</sup>, oxides <sup>25</sup>, molecular systems <sup>26–29</sup>, amorphous phases <sup>30–33</sup>, interfaces <sup>34–37</sup>, and nanoporous materials <sup>38</sup> . Once trained, the computational cost of ANN potentials does not scale with the number of data points used for training, so that training sets can be as large as necessary to sample the relevant and potentially diverse chemical and structural space. Often, ANN potentials are trained on total energy information, i.e., a single piece of information per DFT calculation is used as reference for the potential training. As a result, a large number of DFT reference calculations, possibly tens to hundreds of thousands <sup>33</sup>, may be needed to achieve the desired interpolation accuracy for applications in Monte Carlo (MC) sampling or molecular dynamics (MD) simulations. Large training sets are needed to accurately capture the gradient of the potential energy surface (PES) and thus the interatomic forces. An accurate representation of the atomic forces is crucial for MD simulations and geometry optimizations, and hence the force prediction error is an important target parameter for potential construction. At the same time, the energy is what determines the most stable structure or phase and other materials properties, and energy conservation needs to be obeyed by any interatomic potential, so that an accurate representation of the structural energy is also needed. In ANN potential training, the force prediction accuracy is typically converged by increasing the number of reference structures used for training until the relevant structure space is sampled sufficiently fine to also represent the gradient of the PES <sup>21,34</sup> . This strategy does not only increase the training set size but also makes the training technically more challenging, since relevant structures have to be carefully selected without adding redundancies to the training set. In principle, atomic forces or higher derivatives of the energy from first principles can also be used as reference data for ANN potential training. To train on force information, the loss function for the ANN potential training has to include the force prediction error, i.e., the error of the negative gradient of the energy. However, including the gradient in the loss function introduces a significant computational overhead because training requires the 1School of Chemistry, University of St Andrews, St Andrews, UK. 2Institute for Theoretical Chemistry, University of Stuttgart, Stuttgart, Germany. 3Department of Chemical Engineering, Columbia University, New York, NY, USA. <sup>✉</sup> email: [nartrith@atomistic.net](mailto:nartrith@atomistic.net) 2 A.M. Cooper et al. Fig. 1 Flowchart of the construction of artificial neural network (ANN) potentials. a Often, ANN potentials are trained on total energies from reference electronic structure calculations, since direct training of gradients (interatomic forces) is computationally demanding. This approach requires large numbers of reference calculations to converge the slope of the potential energy surface. b In this work, a new scheme for ANN potential training is introduced, in which interatomic forces are used to extend the training set with energies approximated by Taylor expansion. The method is computationally as efficient as the conventional energy training and can significantly reduce the number of required reference calculations. gradient of the loss function and thus the second derivative of the ANN potential is needed (i.e., the Hessian matrix). Therefore, in practice sometimes hybrid approaches are used in which the atomic forces of a subset of atoms are included in the loss function <sup>39</sup> . Such approaches are especially useful in combination with online training methods that allow the selection of different force components for each training iteration (epoch). In the present article, we introduce a new scheme for including atomic force information in the ANN potential training that avoids the computationally demanding evaluation of higher order derivatives (see flowchart in Fig. 1). The approach, which is based on a Taylor extrapolation of the total energy, is detailed in the following. In the Results section, we first demonstrate the basic principle of the methodology for an analytical example and then apply it to systems with increasing complexity (clusters of water molecules, bulk water, and a quaternary metal oxide), finding that a smaller number of reference structures compared to energy-only training is sufficient for converging the force error in ANN potential construction. structure, and (ii) exchange of equivalent atoms. In the present work, we employed the Chebyshev descriptors by Artrith, Urban, and Ceder <sup>20</sup>, and the symmetry function descriptor by Behler and Parrinello <sup>1,42</sup> . Further details of the ANN architecture and the descriptor parameters are given in the Methods section. ANN potential training with reference energies ANN potentials are trained to reproduce the structural energies of reference datasets containing atomic structures σ (input) and energies E(σ) (output) from first principles calculations. The atomic energy Eatom is not uniquely defined from first principles, so that no reference for the direct training of ANNtðeσ <sup>R</sup> i <sup>c</sup> <sup>Þ is available. Note</sup> that there are non-unique approaches that can be used to decompose the total structural energy from first principles into atomic contributions <sup>43</sup> . To avoid ambiguities and additional model complexity, it is more straightforward to implement the ANN potential training such that it minimizes a loss function based on the total energy E(σ) X σ <u>1</u> 2 ½ <sup>ΔEðσÞ</sup> - <sup>2</sup> with ΔEðσÞ ¼ E <sup>ANN</sup> ðσÞ � EðσÞ; (3) RESULTS ANN potentials ANN potentials are a type of many-body interatomic potential for atomistic simulations <sup>1,5,40</sup> . In contrast to conventional potentials that are based on an approximate representation of the physical atomic interactions, such as embedded atom models <sup>41</sup>, ANN potentials employ general flexible functions, ANNs, for the interpolation between reference data points from first-principles calculations. ANN potentials represent the total energy E(σ) of an atomic structure σ ¼ f <sup>!</sup> R i <sup>g (! R</sup> i <sup>is the position vector of atom i) as</sup> the sum of atomic energies L ¼ where E <sup>ANN</sup> (σ) is the energy of structure σ predicted by the ANN potential of Eq. (1). Gradient-based optimization methods require the derivative of the loss function with respect to the ANN parameters, the ANN weights {wk} X σ ΔEðσÞ X σ ΔEðσÞ <sup><u>∂</u></sup> ∂wk E <sup>ANN</sup> ðσÞ ¼ X i2σ <u>∂</u> ∂wk ANNtðσe <sup>R</sup> i <sup>c</sup> <sup>Þ</sup> i <sup>g (! R</sup> i <u>∂</u> ∂wk L ¼ (4) where the weight derivatives of the ANNs can be obtained using the standard backpropagation method <sup>44</sup> . The computational complexity of backpropagation scales as OðNwÞ where Nw is the number of weight parameters. For a training set containing a total of Natom atoms, the computational cost of one training epoch is therefore proportional to OðNatomNwÞ. Training with reference atomic forces Density-functional theory (DFT) <sup>12,13</sup> calculations with local or semilocal density functionals provide the interatomic forces at minimal overhead. Considering the importance of accurate forces for structure optimizations and MD simulations, it is desirable to include the force error in the loss function L of Eq. (3). In addition, each atomic structure has only one total energy but three atomic force components per atom. Hence, using the atomic forces as EðσÞ � E <sup>ANN</sup> ðσÞ ¼ X Eatomðσ <sup>R</sup> i <sup>c</sup> <sup>Þ</sup> (1) Eatomðσ <sup>R</sup> i <sup>c</sup> i where σ <sup>R</sup> i <sup>c</sup> is the local atomic environment of atom i, i.e., the atomic positions and chemical species of all atoms within a given cutoff radius Rc of atom i <sup>1,5,40</sup> . The atomic energy function Eatom in Eq. (1) is given by an ANN specific for each chemical species t (i.e., t is the type of atom i) <sup>R</sup> i <sup>c</sup> <sup>Þ ¼ ANNtðeσR</sup> i <sup>c</sup> Eatomðσ <sup>R</sup> i <sup>c</sup> <sup>R</sup> i <sup>c</sup> <sup>Þ</sup> for atom type t: (2) ANNs require an input of constant size, but the number of atoms within the local a tomic environment of an atom i, σ <sup>R</sup> i <sup>c</sup> <sup>, can</sup> vary. A suitable input feature vector is obtained by transforming σ <sup>R</sup> i <sup>c</sup> to a descriptor σe <sup>R</sup> i <sup>c</sup> with constant dimension that is also invariant with respect to (i) translation/rotation of the entire 3 additional reference data increases the data points available for training per atomic structure by a factor of 3N, where N is the number of atoms in the structure. The Cartesian vector of the force acting on atom i is given by the negative gradient of the total energy A.M. Cooper et al. expressed as the Taylor series i <sup>EðσÞ þ</sup> <sup><u>1</u></sup> <sup>2</sup> i <sup>EðσÞ þ</sup> <sup>¼</sup> with <sup>!</sup> δ i <sup>:</sup> 2 X i i <sup>¼</sup> <sup>!R</sup> <sup>0</sup> i <sup>0</sup> i <sup>�</sup> <sup>!R</sup> Eðσ <sup>0</sup> Þ ¼ EðσÞ þ X i <sup>!</sup> δ i ! i <sup>∇</sup> <sup>!</sup> δ <sup>2</sup> i <sup>2</sup> i ! <sup>∇</sup> <sup>2</sup> i <sup>!</sup> F ! i <sup>EðσÞ</sup> with ∇ i ! i <sup>ðσÞ ¼ �</sup> <sup>∇</sup> <u>∂</u> i <sup>¼</sup> ∂ <sup>~~!~~</sup> R i (10) Substituting the atomic force of Eq. (5) for the negative gradient of the energy and truncating after the first order, we arrive at the approximation (5) where <sup>!</sup> R <sup>x</sup> i <sup>; Ry</sup> i i where <sup>!</sup> R i <sup>¼ ðRx</sup> i <sup>; Ry</sup> i <sup>; R</sup> i <sup>zÞ</sup> T is the Cartesian position vector of atom i. Including the atomic forces in training can thus be accomplished with the loss function where E(σ) and <sup>!</sup> F i <sup>!F</sup> i <sup>zÞ</sup> i <sup>ðσÞ;</sup> (11) i <sup>¼ ðRx</sup> i <sup>y</sup> i <sup>; R</sup> i <sup>z</sup> Eðσ <sup>0</sup> Þ � EðσÞ � X <sup>!</sup> δ i X L <sup>0</sup> ¼ L þ a σ " #2 X� ! - ∇ j <sup>EANNðσÞ �</sup> <sup>!F</sup> j <sup>ðσÞ</sup> ! - ∇ j j <sup>EANNðσÞ �</sup> <sup>!F</sup> j (6) <u>1</u> 2 X j where E(σ) and <sup>!</sup> F i <sup>ðσÞ are the energies and atomic forces from the</sup> original reference electronic structure calculations. The first-order approximation is valid for small displacements f <sup>!</sup> δ i <sup>g.</sup> Equation (11) provides a mechanism for incorporating approximate force information in the ANN potential training as additional structure-energy pair records. What remains is to decide on a recipe for generating such additional structures by atom displacement. In the present work, we considered two strategies: (A) displacing one individual atom to generate one additional structure, and (B) randomly displacing all atoms. In strategy (A), we select an atom i in structure σ and displace its coordinates by a small amount ± δ in each Cartesian direction to generate six additional structures. For example, displacing atom i in structure σ ¼ <sup>!</sup> R 1 <sup>;</sup> <sup>!R</sup> 2 <sup>;</sup> <sup>¼ ;</sup> <sup>!R</sup> N <sup>in</sup> <sup>the</sup> <sup>negative</sup> <sup>Cartesian</sup> <sup>x</sup> <sup>direction</sup> <sup>would</sup> j <u>12</u> h <sup>Δ F!ðσÞ</sup> i2 ! - ∇ j j <sup>EANNðσÞ �</sup> <sup>!F</sup> X - ! - ∇ j <sup>EANNðσÞ �</sup> <sup>!F</sup> j <sup>ðσÞ</sup> ; ¼ L þ a X σ with Δ F <sup>!</sup> ðσÞ ¼ (7) where a is an adjustable parameter that determines the contribution of the force error to the loss function L <sup>45</sup> . The gradient of the new loss function L <sup>0</sup> with respect to the weight parameters is ! ∇ j <sup>EANNðσÞ:</sup> ! - ∇ i <sup>EANNðσÞ �</sup> <sup>!F</sup> j X <u>∂</u> ∂wk L <sup>0</sup> ¼ <u>∂</u> ∂wk X σ additional structures. For example, displacing atom i in structure σ ¼ <sup>!</sup> R 1 <sup>;</sup> <sup>!R</sup> 2 <sup>;</sup> <sup>¼ ;</sup> <sup>!R</sup> N <sup>in</sup> <sup>the</sup> <sup>negative</sup> <sup>Cartesian</sup> <sup>x</sup> <sup>direction</sup> <sup>would</sup> yield the new structure–energy pair L � a " X� ! �# X - ∇ i <sup>EANNðσÞ �</sup> <sup>!F</sup> j j2σ j2σ <u>∂</u> ∂wk N <sup>g</sup> (12) (8) As seen in Eq. (8), evaluating the weight gradient of the new loss function L <sup>0</sup> requires taking the derivative of the position gradient of the ANN potential σ <sup>0</sup> ¼ f <sup>!</sup> R 1 <sup>;</sup> <sup>¼ ;</sup> <sup>!R</sup> i <sup>�</sup> <sup>δ^x;</sup> <sup>¼ ;</sup> <sup>!R</sup> Eðσ <sup>0</sup> Þ ¼ EðσÞ � δF <sup>x</sup> i <sup>ðσÞ;</sup> X i2σ X j2σ <u>∂</u> ∂wk ! ∇ j <sup>EANNðσÞ ¼</sup> X j2σ <u>∂</u> ∂wk ! ∇ j j <sup>ANN</sup> t <sup>ðeσR</sup> i <sup>c</sup> <sup>R</sup> i <sup>c</sup> <sup>Þ</sup> (9) where ^x is the unit vector in the Cartesian x direction, and F <sup>x</sup> i <sup>is the</sup> x component of the force acting on atom i. A similar approach has previously been used by Vlcek et al. for molecular force-field optimization with energy and force information <sup>46</sup> . which scales quadratic with the number of atoms in the reference structure. Note that only the cross terms for atoms within two times the cutoff radius of the potential (2Rc) are different from zero <sup>21</sup> . For very large or periodic structures the scaling of the derivative evaluation therefore eventually becomes linear but with a large prefactor of Nlocal that is the average number of atoms within 2Rc and can be several hundred to thousands depending on the density of the material and the cutoff radius. The quadratic scaling and the often large number of atoms in reference datasets typically makes it infeasible to train all force components using the loss function in Eq. (7). One option is to include a fraction of all force components in the loss function, e.g., only 0.41% of the atomic forces were included in ref. <sup>39</sup>, and Artrith et al. have previously used only 10% or less of the force information for ANN potential training <sup>19,21,34</sup> . This strategy can work especially well with online training methods that allow selecting different force components at each epoch, which is not possible using batch training methods. The importance of atomic force information and the unfavorable scaling of direct force training prompted us to consider alternative means of including force information in ANN potential training. <sup>!</sup> δ iIn strategy (B), all atoms are displaced <sup>where</sup> <sup>the</sup> <sup>total</sup> <sup>displacement</sup> <sup>is</sup> <sup>such</sup> by small random vectors <sup>that</sup> <sup>j δ!</sup> i <sup>j �</sup> <sup>δ</sup> max <sup>for</sup> <sup>all</sup> atoms. Since a net translation of the entire structure does not affect the energy, the center-of-mass displacement is subtracted from the combined atomic displacements. The energy of the resulting structure is evaluated according to Eq. (11). The optimal values of the displacement δ in strategy (A) and the maximal displacement δmax in strategy (B) are parameters and will be determined in the following. To assess the efficacy of the Taylor-expansion approach laid out in the previous section, we considered a series of materials systems with increasing complexity: An analytic Lennard-Jones dimer molecule as test case, clusters of water molecules, a periodic bulk water box, and a complex oxide system with five different chemical species. Diatomic molecule Our first test case is a diatomic molecule with atomic interactions described by the analytic Lennard-Jones potential <sup>47</sup> ���12 ��6� <u>r0</u> - 2 <sup><u>r0</u></sup> (13) ��12 �� <u>r0</u> - 2 <sup><u>r0</u></sup> r r <u>r0</u> VðrÞ ¼ ε r Including atomic force information via Taylor expansion Training of the energy with the loss function of Eq. (3) is efficient, so that a translation of the force information to (approximate) energy information is advantageous. Such a translation can be accomplished using a first-order Taylor expansion to estimate the energy of additionally generated atomic structures without the need to perform additional electronic structure calculations. The energy of a structure σ <sup>0</sup> ¼ f <sup>!</sup> R <sup>0</sup> i <sup>g</sup> <sup>that</sup> <sup>was</sup> <sup>generated</sup> <sup>by</sup> displacing the atoms in the original structure σ ¼ f <sup>!</sup> R i <sup>g</sup> <sup>can</sup> <sup>be</sup> to perform additional electronic The energy of a structure σ <sup>0</sup> ¼ f <sup>!</sup> R <sup>0</sup> i i <sup>g</sup> <sup>can</sup> <sup>be</sup> with binding energy ε = 3.607 eV and equilibrium distance r0 = 1.54 Å. The binding energy and bond distance were chosen such that they correspond to a typical covalent bond, approximately the carbon–carbon bond, so that the magnitude of the displacement in the Taylor expansion will be comparable to an actual compound. An analytic interatomic potential has the advantage that the gradient and the Taylor expansion can be calculated analytically. Further, the one-dimensional dimer molecule makes it straightforward to visualize the PES, i.e., the bondenergy curve, so that the analytic potential and the ANN interpolation can be visually compared with each other. 4 A.M. Cooper et al. Fig. 2 Analytic dimer example illustrating the Taylor expansion approach. The gray lines indicate the energy vs. bond length curve of the model Lennard–Jones potential discussed in the text, and the seven samples used for ANN potential training are shown as blue circles. The red line in panel a corresponds to an ANN potential trained only on the energy of the reference data points (blue circles). In panel b the ANN potential (red line) was additionally trained on 14 displaced structures (black crosses) with displacements of δ = ±0.02 Å, the energies of which were approximated by a first-order Taylor expansion using the analytic gradient at the blue reference data points. Figure 2a shows the bond energy in a range close to the equilibrium distance and an ANN potential that was trained on seven equidistant reference points between 1.4 Å and 2.8 Å. As seen in the figure, the ANN potential approximates the Lennard–Jones potential well at distances above 1.8 Å, but is unable to reproduce the minimum region and predicts an incorrect larger equilibrium distance as well as an incorrect slope and curvature near the minimum. The result of training the ANN potential with the Taylor expansion approach is shown in Fig. 2b, where additional data points were generated by approximating the energy for slightly longer and slightly shorter bond distances using the first-order Taylor expansion of Eq. (11) using a displacement of δ = 0.02 Å. As seen in the figure, the additional approximate data points guide the ANN potential, and the resulting fit is visually much better and reproduces the correct bond minimum as well as the slope and the curvature within the minimum well. Also apparent in Fig. 2b are the deviations of the first-order Taylor expansion from the true bond energy curve. The approach is approximate and will give rise to noise in the reference data, and the optimal amount of additional approximate data points per exact energy data point has to be determined such that the accuracy of the ANN potential does not suffer. In the following, we will assess the Taylor expansion method for real materials systems to quantify both the improvement of the force prediction accuracy and the effect of noise in the reference energies. Water clusters While the analytic dimer example is useful for illustrative purposes, our objective is the training on first-principles energies and forces. As a second test case, we therefore consider a reference dataset based on structures obtained from MD simulations of water clusters with six water molecules. MD simulations at 300 K and 800 K were performed on the semiempirical Geometry, Frequency, Noncovalent, eXtended TB (GFN-xTB) <sup>48</sup> level of theory. The atomic forces and energies of a subset of the structures along the MD trajectories were recalculated using a first-principles densityfunctional theory (DFT) approach (BLYP-D3/def2-TZVP) to be used as reference data for ANN potential construction. See the Methods section for the details of our MD and DFT calculations. As a baseline for the assessment of the force-training method, we first quantify the error in the atomic forces if only total energies are trained using the methodology and loss function for energy training described at the beginning of the Results section. As a second point of reference the error in the atomic forces is quantified for ANN potentials that were trained by including the error in the atomic forces in the loss function as described above. Total energy training with increasingly large training sets. As mentioned in the introduction, a common way to improve the force prediction error of ANN potentials is by increasing the reference dataset size to sample the configurational space more finely. We therefore investigated first the influence of the size of the reference dataset on the quality of the force prediction of ANN potentials that were trained on the total energy only. In order to study how the size of the reference dataset affects the quality of the force prediction, three different reference datasets with increasing number of data points were assembled from the MD reference dataset: (i) a subset containing 471 reference structures referred to as the train_0500 dataset in the following, (ii) a set with 943 structures (train_1000), and (iii) a set with 1886 structures (train_2000). The structures within these subsets were chosen evenly spaced along the MD trajectories to ensure a maximum decorrelation of the reference data. For each training set, the ANN potential training was repeated 10 times with different random initial weight parameters {wk} to obtain statistics on the prediction quality of the atomic forces for the resulting ANN potentials. Details on the ANN potential training are given in the methods section. All errors reported in the following were obtained for the same independent validation dataset containing 2000 structures that are not included in any of the training sets. Figure 3a shows the distributions of the error in the norm of the predicted atomic forces for the structures within the validation set after training on the energies in the train_0500, train_1000, and train_2000 datasets. Only the energy error entered the loss function, so that the interatomic forces were not directly trained. As seen in the figure, for the smallest train_0500 set interpolating the ANN PES using only the energies of the reference structures leads to a wide distribution of errors in the prediction of the absolute value of the atomic forces. Especially, the pronounced tail of the distribution implies that there is a large fraction of atoms for which the absolute value of the force is predicted with an error greater than 1.0 eV/Å. Increasing the size of the training set to ~1000 and ~2000 structures reduces the tail of the error distribution significantly. Figure 3b–d shows a corresponding analysis of the error in the direction of the predicted atomic forces and the mean absolute 5 a 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0 A.M. Cooper et al. b c d train_1000 MAE = 0.51 eV/Å train_2000 MAE = 0.40 eV/Å 1.00 0.75 0.50 0.25 ~500 Structures ~1000 Structures ~2000 Structures train_0500 MAE = 0.73 eV/Å 1.0 2.5 4.0 1.0 2.5 4.0 1.0 Absolute Atomic Force (eV/Å) 1.0 2.5 4.0 0.0 0.5 1.0 1.5 2.0 2.5 3.0 180 150 120 90 60 30 0 0.00 1.0 2.5 4.0 Error in Absolute Force (eV/Å) Fig. 3 Impact of the training set size on the ANN force prediction errors for clusters of six water molecules. a Force error distribution after training on the three different training sets with ~500 (train_0500, red shaded), ~1000 (train_1000, dark red stars), and ~2000 (train_2000, violet squares) structures. The inset shows a representative water cluster structure. b–d Frequency of occurrence of a given error in the direction of the force in degrees as a function of the absolute atomic force for energy training and varying training set size. Panels b–d also show the mean absolute errors (MEA) of the predicted forces for the three different training sets. All statistics shown are based on 10 ANN potentials trained for each scenario. error (MAE) of the atomic forces. High relative frequencies of occurrence are shown in yellow and red, whereas low relative frequencies are colored in shades of gray. The errors are shown as a function of the absolute value of the atomic force, and it can be seen that the reliability of the prediction of the direction of the atomic forces increases for increasing absolute values of the force vectors. This means, the error in the force direction is greater for small force vectors than for large force vectors. Especially for atoms with atomic forces with absolute values of less than 1.0 eV/Å, the direction of the force vector predicted by the ANN potential scatters strongly. This scattering is significantly decreased for atomic forces with large absolute values. As seen in panel a, for the small train_0500 set the error distribution has a shallow maximum between 0 and 25° depending on the absolute force value, but the heat map shows much larger errors of nearly 180° for force vectors with small absolute value. Additionally, increasing the size of the reference dataset reduces the scattering in the predictions notably. Particularly, the scattering in the prediction of atomic forces with absolute values smaller than 1.0 eV is notably decreased in comparison to the results obtained from the train_0500 reference dataset. Furthermore, the number of atoms for which the error is 15 <sup>∘</sup> or less increases significantly when the ANN potential is trained with the train_2000 reference data instead of the train_0500 dataset. Depending on the reference method and the size of the atomic structures, increasing the number of structures in the training set may entail a massive computational overhead. Therefore, we next investigate whether the Taylor-expansion formalism could alleviate the need for large training set sizes. Optimal meta-parameters for the Taylor-expansion approach. Next, we investigate the efficacy of approximate force training using the Taylor-expansion approach. In order to apply the two displacement strategies, i.e., (A) the displacement of single atoms in the three Cartesian directions and (B) the displacement of all atoms in random directions, suitable displacement parameters δ and δmax have to be determined. Finally, the optimal number of additional structures with approximate energies to be generated using the Taylor-expansion approach needs to be determined, as the computational effort for ANN potential training scales with the size of the training set. The number of additional structures is given in terms of a multiple a of the original training set, so that a = X means that the number of generated structures is X times the number of the original structures. For example, the train_0500 dataset contains 471 structures, so that for a = 10 a total of 10 × 471 = 4710 0.00 0.01 0.02 0.03 0.04 δmax (Å) Fig. 4 Relative mean absolute error (MAE) of the atomic forces for different force-training parameters. The MAE is shown as a function of the atomic displacement δmax for different multiples a of additionally generated structures. The graph shows the MAE relative to the DFT reference. Results are shown for displacement strategy (B) and for the smallest reference dataset (train_0500). The red dashed line indicates the reduction of the force error that can be achieved by direct force training. additional structures with approximate energy will be generated by atomic displacement. For each possible choice of a parameter pair (a, δ) or ða; δmaxÞ 10 ANN potentials were trained to obtain statistics on the resulting ANN potentials. The optimal parameter pair was chosen by calculating the MAE of the atomic forces for the validation dataset and thereby averaging the errors obtained from all 10 potentials fitted for each parameter pair. Figure 4 shows the MAE of the atomic forces obtained after training with the Taylor-expansion approach as function of the maximum displacement δmax for different multiples of additional structures a. The ANN potentials used to quantify this error were fitted to the train_0500 reference dataset using random displacement strategy (B) for the given δmax parameters. In the figure, the MAE are given relative to the one obtained if no force information is used for training. As seen in Fig. 4, the values of δmax that lead to the greatest reduction of the MAE are independent of the number of additionally generated structures a and are close to δmax ¼ 0:01 Å. If the displacement parameter is chosen too large, the firstorder Taylor expansion is no longer a good approximation and the force error increases. Additionally, the MAE decreases with increasing number of generated structures until a multiple of a = 22 has been reached. For multiples a greater than 22 no a = 32 a = 54 Energy Training Direct force Training <u>Worse</u> Better 150 125 100 75 50 25 a = 1 a = 5 a = 11 a = 22 6 A.M. Cooper et al. a b 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0 Energy training Cartesian displacement Random displacement Direct force training ~500 Structures 0.0 0.5 1.0 1.5 2.0 2.5 3.0 Error in Absolute Force (eV/Å) Energy training Cartesian displacement Random displacement ~500 Structures 0.0 0.5 1.0 1.5 2.0 2.5 3.0 18.0 16.0 14.0 12.0 10.0 8.0 6.0 4.0 2.0 0.0 Error in Absolute Force (eV/Å) c d e train_1000 MAE = 0.36 eV/Å train_2000 MAE = 0.32 eV/Å 1.00 0.75 0.50 0.25 180 150 120 90 60 30 0 1.0 2.5 4.0 1.0 2.5 4.0 Absolute Atomic Force (eV/Å) train_0500 MAE = 0.42 eV/Å 0.00 1.0 2.5 4.0 Fig. 5 Impact of force training on the ANN force prediction errors for clusters of six water molecules. a Force error distribution for training on the train_0500 training set only with energy information (Energy training, red shade) and using approximate force training with the Taylor-expansion approach and the Cartesian (green crosses) and random (blue triangles) displacement strategies. b The same data as in panel a but in addition the error distribution resulting from direct (exact) force training is shown as thick black line. c–e Frequency of occurrence of a given error in the direction of the force in degrees as a function of the absolute atomic force, using approximate force training with the Taylor-expansion approach. The optimal values for the displacement and the multiple a were used (Cartesian displacement: δ = 0.03 Å, a = 11, Random displacement: δmax ¼ 0:008 Å, a = 22). All statistics shown are based on 10 ANN potentials trained for each scenario. significant further improvement was found. Based on this analysis we conclude that, for the train_0500 reference dataset, the optimal parameter choice that leads to the smallest MAE with the Taylor-expansion approach is a = 22 and δmax = 0.008 Å. The optimization of the meta-parameters was repeated for the larger training sets train_1000 and train_2000 and for the second Taylor-expansion displacement strategy (A), and the optimal parameters are given in Table S1 in the Supplementary Information. In summary, the optimal displacement δ and multiple a do not appear to depend on the size of the reference dataset. Out of the considered values, the optimal multiple of generated structures is a = 22, and optimal displacements are δ(A) = 0.03 Å for strategy (A) and δ(B) = 0.008 Å for strategy (B). The heatmaps in Supplementary Fig. 1 show the similarity of the error in the force direction for varying displacements. Energy and force training with the Taylor-expansion approach. Using the optimal parameters for the displacement δ and fraction of generated structures a for each of the three reference datasets and both displacement strategies, we studied the errors in the prediction of the atomic forces in order to compare both displacement strategies with each other, and to quantify the improvement of the predicted forces with respect to the conventional approach where only total energies of the reference structures are fitted. Figure 5a compares the distribution of absolute force errors in the validation set after training on the train_0500 set with and without force information. As seen in the figure, the errors in the absolute force are drastically reduced by both displacement strategies. Especially the tail of the error distribution with errors greater than 1.0 eV/Å has nearly disappeared for the ANN potentials that were trained using the Taylor-expansion approach. In addition, the prediction of the direction of the force vectors also improves distinctly, as seen in Fig. 5c–e. Comparing the results obtained with the Taylor-expansion approach to those for conventional energy training (Fig. 3b–d), a general decrease of the error in the predicted forces can be observed that is also reflected by a reduction of the MAE. Based on the error distributions in Fig. 5a, both displacement strategies perform nearly equally well. Displacing atoms along the Cartesian directions (strategy A) generating 5088 additional structures results in a slightly smaller improvement than displacing atoms in random directions (strategy B) generating 10,362 structures, but both Taylor-expansion strategies are a significant improvement over energy-only training. For the small water cluster system, the Cartesian displacement strategy requires generating far fewer additional structures than the random displacement approach. We found that this is not generally the case and instead depends on the number of atoms in the reference structures. With increasing structure size, the optimal multiple a increases more rapidly for displacement strategy (A), and thus for larger structures displacement strategy (B) becomes more efficient. Comparison of Fig. 5a with Fig. 3a and the heatmap in Fig. 5c with that in Fig. 3d shows that training the train_0500 dataset with approximate force information results in quantitatively similar error distributions as training on the energies in the fourtimes larger train_2000 dataset. Hence, the approximate force training reduces the number of training data points by a factor of four for the example of the water cluster dataset. 7 In principle, both the size of the reference dataset as well as the force training can be expected to affect also the error in the predicted energy. In the case of the water cluster dataset, even training on the energies of the train_0500 dataset without force information results in energy errors in the validation set that are well below 2 × 10 <sup>−3</sup> eV/atom, which is an order of magnitude below chemical accuracy (1 kcal/mol ≈ 0.04 eV). Therefore, the water cluster dataset is not well suited to investigate the impact of force training on the energy prediction, and we will return to this question when discussing more complex datasets in the following section. For the water cluster dataset, Supplementary Fig. 2 shows that the distribution of the energy error is not significantly affected by force training using the Taylor-expansion approach. Comparison of approximate and direct force training. For the small water cluster structure (18 atoms) and the smallest (train_0500) dataset, direct force training by including all force errors in the loss function is computationally feasible. Note that even for this simple system, the direct force training took on average eight times more computer time per iteration (training epoch) than the Taylor-expansion method with data multiple a = 22 on our computer system. The force error distribution resulting from direct force training is shown in Fig. 5b. Comparing the results obtained by approximate force training to those from direct force training, it is obvious that direct force training improves the force prediction even further. The tail of the distribution of the absolute force error approaches zero at around 0.5 eV/Å, and as a result the error distribution is significantly narrower than the ones obtained by the other methods with its maximum being closer to 0. The same trend is also found for the improvement of the prediction of the direction of the force vector by direct force training compared to the approximate Taylor-expansion approach. The mean absolute force error for direct force training is 0.18 eV/Å, and a heatmap of the direction error is shown in Supplementary Fig. 3. Quantitatively measured by the MAE, approximate force training using the Taylor-expansion methodology gives around half the reduction of the force error that is achieved by direct force training. This can be most clearly seen in Fig. 4, in which the relative MAE obtained after direct force training is indicated by a red dashed line. Even though direct force training leads to yet better predictions of the forces, one has to take into account that it is significantly more computationally demanding. For larger and more complex systems for which direct force training would be challenging or even infeasible, approximate force training with the Taylorexpansion approach offers an alternative to improve the force prediction significantly in comparison to conventional energy training. Therefore, we investigate condensed phases in the following sections. Bulk water We applied the Taylor-expansion methodology to a reference dataset of a periodic bulk water system with 64 water molecules (192 atoms) that was generated by running an ab initio MD (AIMD) simulation at a temperature of 400 K over a simulation time of 100 ps with time steps of 1 fs, producing a total of 100,000 MD frames. The simulations employed a Γ-point k-point mesh for the numerical Brillouin-zone integration. All parameters of the DFT calculations are detailed in the methods section. Seven hundred structures along the AIMD trajectory were selected for potential training. Ninety percent of the reference dataset were used for ANN potential training, and the remaining 10% were used as an independent test set to monitor training progress, and to detect overfitting. Two thousand different equally spaced MD frames from the complete trajectory were compiled into a third independent set for validation, and all results within A.M. Cooper et al. this section are based on the validation set none of which was used for training. Since the nature of the bonds in the water bulk is the same as in the water clusters of the previous section, a maximal displacement of δmax ¼ 0:01 Å was used for the water bulk system, which was found to be close to optimal for water clusters (see Fig. 4). Additionally, we limit the discussion to random displacement strategy (B), since it performed better than displacing individual atoms for water clusters. Instead, here we focus on the impact of increasing the number of additional structures generated by the Taylor-expansion approach. In general, two competing effects can be expected: On the one hand, the force training should become more effective with increasing multiple a, i.e., with an increasing number of additional structures per original structure generated by our approach. On the other hand, the first-order Taylor-expansion is approximate, and the energies of the additional structures are less accurate and noise is introduced into the training set. Thus, the accuracy of the energy fit could be expected to decrease after introducing too many additional structures via atomic displacement. To determine the balance of these two effects, data multiples between a = 12 and a = 64 were considered, which corresponds to ~12 × 700 = 8400 to 64 × 700 = 44,800 additional structures generated by Taylor expansion for the 700-structure reference dataset. See the Methods section for details of the ANN potential construction. Figure 6a, b shows, as solid lines, the best energy and force prediction errors out of 10 ANN potentials trained on the same data but with different initial weight parameters. Additionally, the median ANN potential error is shown (dashed lines) as a proxy for the likely result of a single ANN potential training run. As seen in the figures, both the energy and force errors initially decrease with increasing amount of additional data. For small data multiples a, the force error improves significantly from 1.26 eV/Å (energy training only) to 0.88 eV/Å (30% improvement) for a = 12 and 0.69 eV/Å (45%) for a = 24 (Fig. 6b). Increasing a beyond 24 only yields marginal further improvement, and for a = 48 the force error has decreased to 0.61 eV/Å (52%). Interestingly, the energy RMSE decreases simultaneously from 2.6 meV/atom (energy training) to 2.1 meV/atom (19%) for a = 36 (Fig. 6a). This improvement indicates that the displaced structures added to the training set via Taylor expansion have improved the transferability of the resulting ANN potential. Increasing a further does not result in further improvement of the energy error, and an increase of the error is observed for a = 64, which is in-line with our expectation that too many additional structures introduce noise in the training set. Having quantified the general improvement of the predicted atomic forces with the force-training approach, we analyze next where these improvements originate from. Figure 7a shows the distribution of absolute force errors in the validation set with and without force training. In the case of energy training only, the force errors are widely spread out, and for some atoms the force error is greater than 3.0 eV/Å. The largest atomic forces in the dataset are around 5.0 eV/Å, so that 3.0 eV/Å corresponds to an error of at least 60%. As discussed above, the force prediction error depends on the size of the reference dataset, and thus the analysis in Fig. 7a shows that the 700-structure dataset is not sufficient for robust force prediction. Force training with the Taylor-expansion approach results in a strong improvement of the force prediction, and training with a data multiple of a = 16 already removes the high-error tail of the error distribution. Increasing a to 36 further reduces the width of the distribution significantly. The error distributions for a large data multiple of a = 64 is nearly identical to the distribution for a = 36 and both are centered around 0.6 eV/Å, showing that the force training has converged for this dataset in agreement with Fig. 6. 8 A.M. Cooper et al. a b 2.8 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 Best Median 0 10 20 30 40 50 60 70 Additional Data (Multiple _a_ ) 0 10 20 30 40 50 60 70 Additional Data (Multiple _a_ ) Best Median Energy Error 1.0 Force Error 1.4 1.3 1.2 1.1 1.0 0.9 0.8 0.7 0.6 Fig. 6 Change of the energy and force error with increasing number of additional structures from Taylor expansion for bulk water. a Root mean squared error (RMSE) of the energy relative to the DFT reference energies for ANN potentials trained with and without force information. The solid line shows the error of the best potential out of 10 training runs, and the dashed line indicates the corresponding median. b The equivalent analysis for the error in the norm of the interatomic forces. A representative bulk water structure is shown as inset in panel a (oxygen atoms are red, and hydrogen is white). a 1.4 b No force information 180 160 140 120 100 80 60 40 20 0 1.0 0.8 0.6 0.4 0.2 _a_ = 64 0.0 0 1 2 3 4 0 1 2 3 4 5 Absolute Atomic Force (eV/Å) Energy Only 1.2 1.0 0.8 0.6 0.4 0.2 a=16 a=36 a=64 0.0 0.0 0.5 1.0 1.5 2.0 2.5 3.0 Error in Absolute Force (eV/Å) Fig. 7 Error in the force norm and direction for bulk water. a Distribution of the absolute error of the atomic forces without force training (red area) and with force training using increasingly more additional structures generated by displacement. b Distribution of the error in the force direction without (left) and with (right) force training. For the force training, a maximal displacement of δmax ¼ 0:01 Å and a structure multiple of a = 64 were used. Figure 7b shows a heatmap of the distribution of the errors in the direction of the atomic forces for all atoms in the validation set for training without forces (left) and with forces (right). The results for a = 64 are shown in the figure, though a = 36 yielded a qualitatively equivalent error distribution. As seen in the figure, when training only energies the errors in the force direction are spread out over nearly the entire angle range. In contrast, the force training improves the error distribution significantly, yielding a maximum at around 15° and a strong decay of the error with the norm of the force vectors. As another test, we constructed preliminary ANN potentials trained with and without force information on a larger reference dataset of 10,000 frames taken from the same AIMD trajectory to evaluate the radial distribution function (RDF) of liquid water. In Fig. 8, the results are compared to a literature reference for an equivalent DFT approach <sup>49</sup> . Note that the construction of robust ANN potentials for water requires datasets with very diverse structures and phases that include also short O–H bond lengths that occur rarely in MD simulations <sup>26,29,50</sup>, and the preliminary potentials can only be considered a starting point for the ANN potential construction and will require further refinement. As seen in Fig. 8, the ANN potential trained with the Taylorexpansion approach yielded improvements in the RDF peak of the first coordination shell. Importantly, the stability of the MD simulations improved significantly with force training. Simulations using potentials trained on energies only were unstable due to frequent extrapolation, whereas the potentials trained with force information allowed for more robust MD simulations. It is clear 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 O–O Distance (Å) Fig. 8 O–O radial distribution functions (RDF) for bulk water. The RDF was calculated using preliminary ANN potentials trained with the Taylor-expansion approach (red line) and using energies only (blue line), respectively. The gray region indicates results from ab initio MD simulations with the same density functional at 300 K from ref. <sup>49</sup> . The ANN-potential RDFs were evaluated for simulation cells with 128 water molecules. that the potential that was trained using forces via the Taylorexpansion method performed better than the one that was trained on energies only. Direct force training of all atomic force components was not feasible for the bulk water system. As detailed above, for 3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0 Marsalek 2017 (300 K) Force Training (300 K) Energy Training (300 K) 9 a c b A.M. Cooper et al. 0.95 0.90 0.85 0.80 0.75 0.70 0.65 O Best Median 8.00 7.50 7.00 6.50 6.00 5.50 5.00 4.50 4.00 3.50 3.00 Mo Li Ni Ti Best Median 0.00 0.01 0.02 0.03 0.04 0.60 0.00 0.01 0.02 0.03 0.04 Maximal Displacement δmax (Å) 1.6 1.4 1.2 1.0 0.8 0.6 0.4 0.2 Maximal Displacement δmax (Å) No force information a=14 a=20 a=28 a=70 δmax= 0.03 Å d Energy Only a = 70 Energy Only δmax= 0.03 Å 1.0 0.8 0.6 0.4 0.2 0.0 0.0 0.5 1.0 1.5 2.0 2.5 3.0 Error in Absolute Force (eV/Å) 180 160 140 120 100 80 60 40 20 0 Absolute Atomic Force (eV/Å) 0.01.02.03.04.0 0.01.02.03.04.05.0 <sup>0.0</sup> Fig. 9 Approximate force training applied to a lithium transition-metal oxide. Change of a, the root mean squared error (RMSE) of the energy and b, the mean error in the force norm as function of the maximal displacement δmax. c Distribution of the absolute force error for different training parameters. d Distribution of the error in the force direction. A representative crystal structure of the Li–Mo–Ni–Ti oxide is shown as inset of panel a. condensed phases direct force training scales with the number of atoms within twice the potential cutoff radius. For Rc = 6.5 Å, there are on average 960 atoms within range, so that direct force training of all atomic forces would take ~1000 times the computer time of energy-only training. As shown above, the Taylor-expansion approach for force training works robustly for both isolated water clusters and water bulk. For materials with more complex compositions, sampling the structural space with sufficient resolution is challenging, and force training becomes even more important, as discussed in the next section. Quaternary metal oxide To determine the performance of the force-training approach for a material with complex chemical composition we finally investigated a quaternary transition metal oxide. Our benchmark system, the LiMo-Ni-Ti oxide (LMNTO), is of technological relevance as prospective high-capacity positive electrode material for lithium-ion batteries <sup>51</sup> . The compound exhibits substitutional disorder in which all four metal species, Li, Mo, Ni, and Ti, share the same sublattice. We generated a reference dataset for LMNTO with composition Li8Mo2Ni7Ti7O32 by running a 50 ps long AIMD simulation at 400 K as described in detail in the methods section, yielding a total of 50,000 MD frames. Again, training (~720 structures), test (~80 structures), and validation (1800 structures) sets were generated. A representative structure of the LMNTO unit cell is shown as inset in Fig. 9a. The bonding in lithium transition-metal oxides exhibits mostly ionic character, and the bond strength cannot be expected to be the same as in the water systems of the previous sections. Therefore, the maximal displacement δmax for the Taylorexpansion approach first needs to be optimized for LMNTO. Figure 9a, b shows the change of the energy and force errors as function of δmax for a fixed additional data multiple of a = 70. As seen in subfigure b, the mean error in the predicted force decreases with increasing maximal displacement and has not yet converged for δmax ¼ 0:04 Å, which is four times greater than the optimal displacement found for water. On the other hand, the median energy RMSE has a minimum at around δmax ¼ 0:02 Å beyond which the energy error increases. A maximal displacement of δmax ¼ 0:03 Å is a good compromise for LMNTO, resulting in a small decrease in accuracy for the energy from 4.6 meV/atom to 4.9 meV/atom (increase by 6.5%) but a strong improvement in the accuracy of force prediction from 0.92 eV/Å to 0.66 eV/Å (28.3%). The distribution of errors in the absolute values and directions of the atomic forces are shown in Fig. 9c, d, respectively. The results for δmax ¼ 0:03 Å are shown. Qualitatively, the same improvement of the absolute force error as in the case of the water systems is seen, though even without force training the error distribution does not exhibit any high-error tail. The force training also results in an improved accuracy in the direction of the predicted forces, though the maximum of the error distribution is at a slightly higher value of around ~20°. Towards application in MD simulations of LMNTO. The MAE of the forces and the RMSE of the energy are abstract quality measures of the ANN potential, but in practice the robustness and reliability of the potential in an actual application is most important. To construct a preliminary ANN potential for LMNTO, we compiled a dataset of ~4000 AIMD frames that were used as reference for training three ANN potentials with force information (δmax ¼ 0:015 Å, a = 20) and three without force information. The construction of accurate ANN potentials for materials with complex structures and compositions typically requires training sets with tens of thousands of reference structures <sup>24,33,34</sup> . Four thousands reference structures taken from a single AIMD trajectory can function as an initial dataset for the construction of a preliminary ANN potential as a starting point for subsequent iterative refinement <sup>5,40</sup> . The robustness of an interatomic potential and the smoothness of the predicted PES is reflected by the numerical energy conservation in MD simulations. To test energy conservation, we carried out MD A.M. Cooper et al. 10 a b Li Mn Ni Ti O 0.03 0.02 0.01 0.00 -0.01 -0.02 Energy Training (MD 1) Energy Training (MD 2) Force Information Included -0.03 0.0 0.2 0.4 0.6 0.8 1.0 Time (ns) Fig. 10 Energy conservation in microcanonical molecular dynamics (MD). a Representative LMNTO structure taken from MD simulation (colors as in Fig. 9). b Change of the total energy during MD simulations in the microcanonical (NVE) statistical ensemble using ANN potentials trained on energy information only (orange and red lines) and trained using the Taylor-expansion approach (green line). simulations in the microcanonical (NVE) statistical ensemble using a time step of 1.0 fs, and the resulting change of the total energy over the course of 1.0 ns is shown in Fig. 10 for different ANN potentials. The MD simulations were performed for a 2 × 2 × 1 LMNTO supercell containing 224 atoms (Fig. 10a) that was previously thermally equilibrated at a temperature of 400 K with AIMD simulation. All of the ANN potentials trained with approximate force information conserved the total energy well with fluctuations on the order of 10 <sup>−3</sup> meV/atom (one example is shown in Fig. 10b). However, those potentials that were trained only on the energies showed numerical instabilities of varying degree, and two examples are plotted in Fig. 10b. This experiment demonstrates that the additional structure-energy data points generated from force information using the Taylorexpansion approach contribute to the transferability of the ANN potential and improve the smoothness of the potential interpolation. DISCUSSION We introduced a computationally efficient method for the simultaneous training of energies and interatomic forces for the construction of accurate ANN potentials. We assessed the methodology for three relevant complex materials systems: water cluster structures, bulk liquid water, and a solid metal oxide. We demonstrated that the approach increases the accuracy of predicted forces, reduces the number of first principles reference data points needed, and can improve the transferability of ANN potentials. In general, we find that force training has the greatest impact for small reference datasets. With force training, a small reference dataset of ~500 water cluster structures could achieve nearly the same predictive power as training only the energy on a reference dataset with ~2000 structures. Using the force-training approach, the structural and chemical space can thus be more coarsely sampled than using energy-only training. This has important implications for the construction of ANN potentials for materials with complex compositions, such as the quaternary metal oxide of the previous section, for which an exhaustive sampling of the structural and chemical space is infeasible. The Taylor-expansion methodology is approximate, and it is meant as a computationally more efficient alternative to the direct training of force information with a modified loss function. Direct force training also incurs a significant memory overhead if the derivatives of the atomic-structure descriptors are stored in memory, whereas the Taylor-expansion approach uses exactly the same amount of memory as training with energy information only. As demonstrated for the water cluster dataset, direct force training can further improve the force prediction when it is computationally feasible. However, even for the small water cluster system, direct force training was already eight times more computationally demanding than approximate force training, and owing to its formal quadratic scaling this difference will be even greater for larger systems. We discussed two different strategies for the generation of additional approximate reference energy data points from force information by approximating the energy of structures with slightly displaced atoms using a first-order Taylor expansion. The two strategies differ in the number of atoms that are displaced, but both rely on randomization, either for the selection of atoms or to decide the direction and magnitude of atomic displacements. Displacing all atoms in a reference structure by small random vectors with maximal length δmax is shown to be a robust scheme for the generation of derived structures. However, this strategy does, in principle, not rule out that multiple additional structures with similar information content (i.e., similar displacements) are generated. The generated atomic displacements are not necessarily linearly independent. The atomic forces of a structure with N atoms comprise 3N pieces of information from the three force components of all atoms. Hence, at most 3N structures with independent information content can be derived from any given structure with energy and force information. One set of generated structures with linearly independent atomic displacements is given by the set of 3N normal modes <sup>52,53</sup> . Excluding the three translations and three rotations that do not change the energy, one could employ displacements in the remaining (3N - 6) normal mode directions as a third strategy for our force training approach. Normal-mode sampling has previously been shown to be a useful strategy for the generation of reference datasets, especially for molecular systems <sup>17,27</sup> . However, we found empirically that far fewer than 3N additional structures are required to converge the error of the interatomic forces for a given reference dataset. For the bulk water system with 64 molecules, N = 3 × 64 = 192, so that the number of normal modes is 3 × 192 − 6 = 570, but our computational experiments show that the force error already plateaus for 24–48 additional structures with random atomic displacements. An exhaustive enumeration of all degrees of freedom would therefore be suboptimal for our force-training methodology, and it is not obvious which normal modes should be selected if a subset was to be used. The random displacement strategy offers a reasonable compromise of information density and generality. As evident from the water clusters and the oxide system, the optimal maximal displacement δmax for use in the Taylor extrapolation is system dependent. The energy change with atomic displacement depends on the material-specific bond strength, i.e., the force constants of the interatomic bonds. The covalent O–H bonds in water are more rigid than the ionic bonds in LMNTO, so that smaller displacements are needed for water 11 than for the oxide. As a rule of thumb, we expect the optimal value of δmax to be approximately proportional to the smallest interatomic distances (bond lengths) in the reference dataset, which is ~0.9 Å for the O–H bond in water and ~1.7 Å for O-metal bonds in LMNTO, though the nature of the bonds (covalent, ionic, metallic, or dispersive) will also have an impact. A related point is the dependence of the energy error on the value of δmax. As discussed for the oxide system and shown in Fig. 9a, b, the optimal displacement can be a compromise of force and energy accuracy. If the displacement is chosen too large, it is no longer a good approximation that the PES is linear, and the error of the first-order Taylor expansion becomes too large. For each materials system, it is thus necessary to benchmark different displacement values to determine the value that is optimal for both force and energy training. It is important to note that the Taylor expansion extrapolation approach does not have to be limited to first order. If higher derivatives of the potential energy are available, e.g., if the Hessian matrix has been calculated for the reference structures, then higher-order Taylor expansions can be used to improve the accuracy of the energy extrapolation. The methodology could be further extended and refined for specific applications. Atomic displacement could be limited to atoms with high force components to avoid introducing noise in shallow regions of the PES. Structures from geometry optimizations are generally not useful for our approach as the atomic forces are near zero, and such structures should not be considered for displacement. It could also be useful to allow selection of specific atoms for displacement, so that the force prediction accuracy can be increased for select substructures. Similarly, the maximal displacement δmax could be made a species-specific parameter, which would be especially useful in interface systems containing domains with different types of bonding, such as solidliquid interfaces. These directions will be explored in future work. In conclusion, we introduced a new computationally efficient method for the training of accurate artificial neural network (ANN) potentials on interatomic force information and established its effectiveness for different classes of materials. The methodology is based on a Taylor extrapolation of the total energy using the atomic forces from the reference calculations without the need for additional electronic structure calculations. Training occurs on approximate energies, and the computationally demanding evaluation of the second derivatives of the ANN function is not required. Translating the force information to approximate energies makes it possible to bypass the quadratic scaling with the number of atoms that conventional forcetraining methods exhibit, so that the Taylor-expansion approach can be used for reference datasets containing complex atomic structures. We showed that approximate force training can improve the force prediction error by around 50% of direct force training, and is computationally efficient even for systems for which the latter is challenging or infeasible. We demonstrated for three example systems, a cluster of six water molecules, liquid water, and a complex metal oxide, that the force-training approach (i) allows to substantially reduce the size of the reference datasets for ANN potential construction, by nearly 75% in the case of the water cluster dataset; (ii) increases the transferability of the ANN potential by improving the energy prediction accuracy for unseen structures; and (iii) generally improves the force prediction accuracy, leading to improved stability of MD simulations. The alternative force training approach simplifies the construction of general ANN potentials for the prediction of accurate energies and interatomic forces and is in principle applicable to any type of material. A.M. Cooper et al. METHODS Electronic structure calculations Water clusters. The reference dataset was generated by performing ab initio molecular dynamics (MD) simulations with DL_POLY <sup>54</sup> via Chemshell <sup>55,56</sup> . The reference dataset was generated in an iterative manner. First three MD simulation runs were performed, where the semiemperical GFNxTB <sup>48,57</sup> was used as ab initio method. All of these simulations were run for 30 ps with a time step of 0.5 fs. The initial velocities were chosen randomly according to a Maxwell–Boltzmann distribution. The temperature simulated was 300 K for the first two simulations, the third MD simulation run was performed at 800 K. The temperature was in all cases controlled by a Nosé–Hoover thermostat <sup>58,59</sup> . During the simulations, a harmonic restraint was applied on all atoms to keep the cluster of water molecules confined to a sphere with a radius of about 5 Å. For the restraint a harmonic force with force constant 190.5 eV was applied to any atom that has a distance greater than 0.0005 Å to the 1st atom of the structure (central atom). In order to get a realistic approximation of the energy for the structures obtained from the MD simulation runs, the energies and forces for all structures were recalculated using the BLYP-D3 functional <sup>60–65</sup> with the basis set def2-TZVP. For the single point energy calculations Turbomole <sup>66</sup> was used via Chemshell <sup>55,56</sup> . Using this reference dataset, two neural networks were trained to obtain a first approximation of the ANN potential. On each of the obtained ANN potentials a MD simulation at 300 K was performed for 75 ps. The other parameters for the MD simulation were chosen as discussed before. From these MD simulations on the ANN potentials 4420 additional reference structures were obtained. As for the AIMD reference structures the energies and forces were recalculated on BLYP-D3/def2-TZVP level of theory. Periodic AIMD simulations. The periodic AIMD simulations were carried out with the Vienna Ab initio simulation package (VASP) <sup>67,68</sup> and projectoraugmented wave (PAW) pseudopotentials <sup>69</sup> . For the bulk water system the revised Perdew–Burke–Ernzerhof density functional <sup>70</sup> with the Grimme D3 van-der-Waals correction <sup>64</sup> (revPBE+D3) was used that has previously been shown to be reliable for water <sup>26</sup> . The AIMD simulations of the Li–Mo–Ni–Ti–O system employed the strongly constrained and appropriately normed (SCAN) semilocal density functional <sup>71</sup> . For both periodic systems, the plane-wave cutoff was 400 eV, and Γ-point only k-point meshes were employed. A time step of 1 fs was used for the integration of the equation of motion, and a Nosé–Hoover thermostat <sup>58,59</sup> was used to maintain the temperature at 400 K. The bulk water dataset was compiled by collecting every 100th frame from the first 70 ps of the AIMD trajectory, yielding a reference dataset of 700 structures. Reference data and ANN potential training The Taylor-expansion approach for force training was implemented in the atomic energy network (ænet) package <sup>40</sup>, which was used for the construction and application of the reported ann potentials. in the present work, the limited memory bfgs algorithm <sup>72,73</sup> was used for the ann weight optimization (training). the artrith–urban–ceder chebyshev descriptor for local atomic environments <sup>20</sup> was employed if not otherwise noted. Further details for the different materials systems follow. Lennard–Jones dimer. For the dimer dataset, a Chebyshev descriptor with radial expansion order 10 was employed. No angular expansion was used since the dimer does not have any bond angles. The ANN was comprised of two hidden layers with each five nodes and hyperbolic tangent activation, i.e., the ANN architecture was 11–5–5–1. Water clusters. For the water clusters symmetry functions by Behler and Parrinello <sup>1,42</sup> were used as descriptor. The parameters for the symmetry functions for water were taken from the publication of T. Morawietz et al. <sup>26</sup> . For the training of the ANN the reference set was divided randomly into a training and a test set. Thereby 90% of the structures were used as the training set and the remaining 10% of the structures were used as the test set which was used to measure the quality of the predictions obtained from the ANN potential for structures that have not been used in the fit of the potential. The ANN architecture Nsymm–10–10–1 was used, where Nsymm is given by the descriptor <sup>26</sup> with Nsymm = 27 for hydrogen and Nsymm = 30 for oxygen. The hyperbolic tangent was used as activation function. Each ANN was trained for 5000 epochs, then the weights and biases for the epoch that that lead to the smallest test set error during training were used. 12 A.M. Cooper et al. Water bulk. For the bulk water ANN potential, a Chebyshev descriptor with a radial expansion order of 18 and an angular expansion order of 4 was used. The interaction cutoffs were 6.5 Å and 3.0 Å for the radial and angular expansion, respectively, and the ANN architecture was 48–10–10–1, i.e., two hidden layers with each ten nodes were used. This corresponds to a total of 611 weight parameters. Li–Ni–Ti–Mo–O system. A descriptor with an interaction range of 6.5 Å and an expansion order of 20 for the radial distribution function and a range of 3.5 Å and an expansion order of 2 for the angular interactions was used. For the 700-structure dataset, the best balance of model complexity and accuracy was obtained for an ANN potential with two hidden layers and each 10 nodes (48–10–10–1). ANN potential MD simulations All ANN potential MD simulations were carried out using the Tinker software <sup>74</sup> and ANN potentials via an interface with the ænet package and used the Verlet algorithm <sup>75</sup> for the integration of the equation of motion. The ANN potentials for the water bulk MD simulations were trained on a dataset of ~10,000 frames taken from an AIMD trajectory at 400 K and were based on a 48–20–20–1 ANN architecture. The radial distribution functions (RDF) shown in Fig. 8 were evaluated for a simulation cell with 128 water molecules using MD simulations in the canonical (NVT) ensemble by averaging over a total of 10 ps after a 2 ps equilibration period. A time step of 0.25 fs was used. A Bussi-Parrinello thermostat <sup>76</sup> was employed for the NVT sampling, and the target temperature was 300 K. For the MD simulations in Fig. 10, a larger Li–Ni–Ti–Mo–O reference dataset with ~4000 structure was used for training. For this dataset, we employed a 48–20–20–1 ANN architecture. A time-step of 1 fs was used. DATA AVAILABILITY The reference datasets of the water cluster, bulk water, and transition-metal oxide systems can be obtained from the Materials Cloud repository [(https://doi.org/](https://doi.org/10.24435/materialscloud:2020.0037/v1) [10.24435/materialscloud:2020.0037/v1). These datasets contain atomic structures and](https://doi.org/10.24435/materialscloud:2020.0037/v1) interatomic forces in the XCrySDen <sup>77</sup> structure format (XSF), and total energies are included as additional meta information. CODE AVAILABILITY This work made use of the free and open-source atomic energy network (ænet) package. The ænet source code can be obtained either from the ænet website [(http://ann.atomistic.net)](http://ann.atomistic.net) or from [GitHub.](https://github.com/atomisticnet/aenet) The Taylor-expansion approach will be made available in the next release of the ænet package. Received: 11 November 2019; Accepted: 10 April 2020; REFERENCES 1. Behler, J. & Parrinello, M. Generalized neural-network representation of highdimensional potential-energy surfaces. Phys. Rev. Lett. 98, 146401 (2007). 2. Bartók, A. P., Payne, M. C., Kondor, R. & Csányi, G. Gaussian approximation potentials: the accuracy of quantum mechanics, without the electrons. Phys. Rev. Lett. 104, 136403 (2010). 3. Thompson, A., Swiler, L., Trott, C., Foiles, S. & Tucker, G. Snap: automated generation of quantum-accurate interatomic potentials. J. Comput. Phys. 285, 316–330 (2014). 4. Bartók, A. P. & Csányi, G. Gaussian approximation potentials: a brief tutorial introduction. Int. J. Quantum Chem. 115, 1051–1057 (2015). 5. Behler, J. First principles neural network potentials for reactive simulations of large molecular and condensed systems. Angew. Chem. Int. Ed. 56, 12828–12840 (2017). 6. Zong, H., Pilania, G., Ding, X., Ackland, G. J. & Lookman, T. Developing an interatomic potential for martensitic phase transformations in zirconium by machine learning. npj Comput. Mater. 4, 48 (2018). 7. Himanen, L., Geurts, A., Foster, A. S. & Rinke, P. Data-driven materials science: status, challenges, and perspectives. Adv. Sci. 6, 1900808 (2019). 8. Nyshadham, C. et al. Machine-learned multi-system surrogate models for materials prediction. npj Comput. Mater. 5, 51 (2019). 9. Kostiuchenko, T., Körmann, F., Neugebauer, J. & Shapeev, A. Impact of lattice relaxations on phase transitions in a high-entropy alloy studied by machinelearning potentials. npj Comput. Mater. 5, 55 (2019). 10. Deng, Z., Chen, C., Li, X.-G. & Ong, S. P. An electrostatic spectral neighbor analysis potential for lithium nitride. npj Comput. Mater. 5, 75 (2019). 11. Schmidt, J., Marques, M. R. G., Botti, S. & Marques, M. A. L. Recent advances and applications of machine learning in solid-state materials science. npj Comput. Mater. 5, 83 (2019). 12. Hohenberg, P. & Kohn, W. Inhomogeneous electron gas. Phys. Rev. 136, B864–B871 (1964). 13. Kohn, W. & Sham, L. J. Self-consistent equations including exchange and correlation effects. Phys. Rev. 140, A1133–A1138 (1965). 14. Burke, K. Perspective on density functional theory. J. Chem. Phys. 136, 150901 (2012). 15. Jones, R. O. Density functional theory: its origins, rise to prominence, and future. Rev. Mod. Phys. 87, 897–923 (2015). 16. Cooper, A. M. & Kästner, J. Low-temperature kinetic isotope effects in CH3 OH . H → CH2 OH . H2 shed light on the deuteration of methanol in space. J. Phys. Chem. A 123, 9061–9068 (2019). 17. Smith, J. S. et al. Approaching coupled cluster accuracy with a general-purpose neural network potential through transfer learning. Nat. Commun. 10, 2903 (2019). 18. Schran, C., Behler, J. & Marx, D. Automated fitting of neural network potentials at coupled cluster accuracy: Protonated water clusters as testing ground. J. Chem. Theory Comput. 16, 88–99 (2019). 19. Artrith, N., Morawietz, T. & Behler, J. High-dimensional neural-network potentials for multicomponent systems: applications to zinc oxide. Phys. Rev. B 83, 153101 (2011). 20. Artrith, N., Urban, A. & Ceder, G. Efficient and accurate machine-learning interpolation of atomic energies in compositions with many species. Phys. Rev. B 96, 014112 (2017). 21. Artrith, N. & Behler, J. High-dimensional neural network potentials for metal surfaces: a prototype study for copper. Phys. Rev. B 85, 045439 (2012). 22. Sun, G. & Sautet, P. Metastable structures in cluster catalysis from first-principles: structural ensemble in reaction conditions and metastability triggered reactivity. J. Am. Chem. Soc. 140, 2812–2820 (2018). 23. Sosso, G. C., Miceli, G., Caravati, S., Behler, J. & Bernasconi, M. Neural network interatomic potential for the phase change material GeTe. Phys. Rev. B 85, 174103 (2012). 24. Artrith, N. & Kolpak, A. M. Understanding the composition and activity of electrocatalytic nanoalloys in aqueous solvents: A combination of DFT and accurate neural network potentials. Nano Lett. 14, 2670–2676 (2014). 25. Elias, J. S. et al. Elucidating the nature of the active phase in copper/ceria catalysts for CO oxidation. ACS Catalysis 6, 1675–1679 (2016). 26. Morawietz, T., Singraber, A., Dellago, C. & Behler, J. How van der Waals interactions determine the unique properties of water. Proc. Natl Acad. Sci. USA 113, 8368–8373 (2016). 27. Smith, J. S., Isayev, O. & Roitberg, A. E. ANI-1: an extensible neural network potential with DFT accuracy at force field computational cost. Chem. Sci. 8, 3192–3203 (2017). 28. Cooper, A. M., Hallmen, P. P. & Kästner, J. Potential energy surface interpolation with neural networks for instanton rate calculations. J. Chem. Phys. 148, 094106 (2018). 29. Morawietz, T. et al. Hiding in the crowd: spectral signatures of overcoordinated hydrogen-bond environments. J. Phys. Chem. Lett. 10, 6067–6073 (2019). 30. Li, W., Ando, Y., Minamitani, E. & Watanabe, S. Study of Li atom diffusion in amorphous Li3 PO4 with neural network potential. J. Chem. Phys. 147, 214106 (2017). 31. Artrith, N., Urban, A. & Ceder, G. Constructing first-principles phase diagrams of amorphous Lix Si using machine-learning-assisted sampling with an evolutionary algorithm. J. Chem. Phys. 148, 241711 (2018). 32. Lacivita, V., Artrith, N. & Ceder, G. The structural and compositional factors that control the Li-ion conductivity in LiPON electrolytes. Chem. Mater. 30, 7077–7090 (2018). 33. Artrith, N., Urban, A., Wang, Y. & Ceder, G. Atomic-scale factors that control the rate capability of nanostructured amorphous si for high-energy-density batteries. arxiv [https://arxiv.org/abs/1901.09272](https://arxiv.org/abs/1901.09272) (2019). 34. Artrith, N., Hiller, B. & Behler, J. Neural network potentials for metals and oxides— ffirst applications to copper clusters at zinc oxide. Phys. Status Solidi B 250, 1191–1203 (2013). 35. Natarajan, S. K. & Behler, J. Neural network molecular dynamics simulations of solid–liquid interfaces: water at low-index copper surfaces. Phys. Chem. Chem. Phys. 18, 28704–28725 (2016). 13 36. Quaranta, V. et al. Maximally resolved anharmonic OH vibrational spectrum of the water/ZnO(10-10) interface from a high-dimensional neural network potential. J. Chem. Phys. 148, 241720 (2018). 37. Artrith, N. Machine learning for the modeling of interfaces in energy storage and conversion materials. J. Phys. Energy 1, 032002 (2019). 38. Eckhoff, M. & Behler, J. From molecular fragments to the bulk: development of a neural network potential for MOF-5. J. Chem. Theory Comput. 15, 3793–3809 (2019). 39. Singraber, A., Morawietz, T., Behler, J. & Dellago, C. Parallel multistream training of high-dimensional neural network potentials. J. Chem. Theory Comput. 15, 3075–3092 (2019). 40. Artrith, N. & Urban, A. An implementation of artificial neural-network potentials for atomistic materials simulations: Performance for TiO2. Comput. Mater. Sci. 114, 135–150 (2016). 41. Daw, M. S. & Baskes, M. I. Embedded-atom method: derivation and application to impurities, surfaces, and other defects in metals. Phys. Rev. B 29, 6443–6453 (1984). 42. Behler, J. Atom-centered symmetry functions for constructing high-dimensional neural network potentials. J. Chem. Phys. 134, 074106 (2011). 43. Huang, Y., Kang, J., Goddard, W. A. & Wang, L.-W. Density functional theory based neural network force fields from energy decompositions. Phys. Rev. B 99, 064103 (2019). 44. LeCun, Y., Bottou, L., Orr, G.B. & Müller, K.-R. In Neural Networks: Tricks of the Trade, vol. 1524 of Lecture Notes in Computer Science (eds. Orr, G. B. & Müller, K.-R.) 9–50 (Springer Berlin Heidelberg, 1998). 45. Lorenz, S. Reactions on Surfaces with Neural Networks. Phd thesis, Technischen Universität Berlin, Fakultät II - Mathematik und Naturwissenschaften. [http://](http://opus4.kobv.de/opus4-tuberlin/frontdoor/index/index/docId/202) [opus4.kobv.de/opus4-tuberlin/frontdoor/index/index/docId/202](http://opus4.kobv.de/opus4-tuberlin/frontdoor/index/index/docId/202) (2001). 46. Vlcek, L., Sun, W. & Kent, P. R. C. Combining configurational energies and forces for molecular force field optimization. J. Chem. Phys. 147, 161713 (2017). 47. Lennard-Jones, J. E. The electronic structure of some diatomic molecules. Trans. Faraday Soc. 25, 668–686 (1929). 48. Grimme, S., Bannwarth, C. & Shushkov, P. A robust and accurate tight-binding quantum chemical method for structures, vibrational frequencies, and noncovalent interactions of large molecular systems parametrized for all spd -block elements (z = 1-86). J. Chem. Theory Comput. 13, 1989–2009 (2017). 49. Marsalek, O. & Markland, T. E. Quantum dynamics and spectroscopy of ab initio liquid water: the interplay of nuclear and electronic quantum effects. J. Phys. Chem. Lett. 8, 1545–1551 (2017). 50. Morawietz, T. et al. The interplay of structure and dynamics in the raman spectrum of liquid water over the full frequency and temperature range. J. Phys. Chem. Lett. 9, 851–857 (2018). 51. Lee, J. et al. A new class of high capacity cation-disordered oxides for rechargeable lithium batteries: Li-Ni-Ti-Mo oxides. Energy Environ. Sci. 8, 3255–3265 (2015). 52. Togo, A. & Tanaka, I. First principles phonon calculations in materials science. Scr. Mater. 108, 1–5 (2015). 53. Urban, A., Abdellahi, A., Dacek, S., Artrith, N. & Ceder, G. Electronic-structure origin of cation disorder in transition-metal oxides. Phys. Rev. Lett. 119, 176402 (2017). 54. Todorov, I. T., Smith, W., Trachenko, K. & Dove, M. T. DL_POLY_3: new dimensions in molecular dynamics simulations via massive parallelism. J. Mater. Chem. 16, 1911–1918 (2006). 55. Sherwood, P. et al. QUASI: a general purpose implementation of the QM/MM approach and its application to problems in catalysis. J. Mol. Struct. THEOCHEM 632, 1 (2003). 56. Metz, S., Kästner, J., Sokol, A. A., Keal, T. W. & Sherwood, P. Chemshell–a modular software package for QM/MM simulations. WIREs Comput. Mol. Sci. 4, 101 (2014). 57. Bannwarth, C., Ehlert, S. & Grimme, S. GFN2-xTB—an accurate and broadly parametrized self-consistent tight-binding quantum chemical method with multipole electrostatics and density-dependent dispersion contributions. J. Chem. Theory Comput. 15, 1652–1671 (2019). 58. Nosé, S. A unified formulation of the constant temperature molecular dynamics methods. J. Chem. Phys. 81, 511–519 (1984). 59. Hoover, W. G. Canonical dynamics: equilibrium phase-space distributions. Phys. Rev. A 31, 1695–1697 (1985). 60. Becke, A. D. Density-functional exchange-energy approximation with correct asymptotic behavior. Phys. Rev. A 38, 3098–3100 (1988). 61. Lee, C., Yang, W. & Parr, R. G. Development of the Colle-Salvetti correlationenergy formula into a functional of the electron density. Phys. Rev. B 37, 785–789 (1988). 62. Johnson, B. G., Gill, P. M. W. & Pople, J. A. The performance of a family of density functional methods. J. Chem. Phys. 98, 5612–5626 (1993). 63. Russo, T. V., Martin, R. L. & Hay, P. J. Density functional calculations on first-row transition metals. J. Chem. Phys. 101, 7729–7737 (1994). A.M. Cooper et al. 64. Grimme, S., Antony, J., Ehrlich, S. & Krieg, H. A consistent and accurate ab initio parametrization of density functional dispersion correction (DFT-D) for the 94 elements H-Pu. J. Chem. Phys. 132, 154104 (2010). 65. Smith, D. G. A., Burns, L. A., Patkowski, K. & Sherrill, C. D. Revised damping parameters for the D3 dispersion correction to density functional theory. J. Phys. Chem. Lett. 7, 2197–2203 (2016). 66. Furche, F. et al. Turbomole. WIREs Comput. Mol. Sci. 4, 91–100 (2014). 67. Kresse, G. & Furthmüller, J. Efficient iterative schemes for ab initio total-energy calculations using a plane-wave basis set. Phys. Rev. B 54, 11169–11186 (1996). 68. Kresse, G. & Furthmüller, J. Efficiency of ab-initio total energy calculations for metals and semiconductors using a plane-wave basis set. Comput. Mater. Sci. 6, 15–50 (1996). 69. Blöchl, P. E. Projector augmented-wave method. Phys. Rev. B 50, 17953–17979 (1994). 70. Zhang, Y. & Yang, W. Comment on Generalized Gradient Approximation Made Simple. Phys. Rev. Lett. 80, 890–890 (1998). 71. Sun, J., Ruzsinszky, A. & Perdew, J. Strongly constrained and appropriately normed semilocal density functional. Phys. Rev. Lett. 115, 036402 (2015). 72. Byrd, R., Lu, P., Nocedal, J. & Zhu, C. A limited memory algorithm for bound constrained optimization. SIAM J. Sci. Comput. 16, 1190–1208 (1995). 73. Zhu, C., Byrd, R. H., Lu, P. & Nocedal, J. Algorithm 778: L-BFGS-B: fortran subroutines for large-scale bound-constrained optimization. ACM T. Math Softw. 23, 550–560 (1997). 74. Ponder, J. W. & Richards, F. M. An efficient newton-like method for molecular mechanics energy minimization of large molecules. J. Comput. Chem. 8, 1016–1024 (1987). 75. Verlet, L. Computer "experiments” on classical fluids. i. thermodynamical properties of lennard–jones molecules. Phys. Rev. 159, 98–103 (1967). 76. Bussi, G., Donadio, D. & Parrinello, M. Canonical sampling through velocity rescaling. J. Chem. Phys. 126, 014101 (2007). 77. Kokalj, A. XCrySDen—a new program for displaying crystalline structures and electron densities. J. Mol. Graph. Model. 17, 176–179 (1999). ACKNOWLEDGEMENTS N.A. and A.U. acknowledge financial support by the U.S. Department of Energy (DOE) Office of Energy Efficiency and Renewable Energy, Vehicle Technologies Office, Contract No. DE-SC0012704. A.C. and J.K. acknowledge financial support by the European Union’s Horizon 2020 research and innovation programme (Grant Agreement No. 646717, TUNNELCHEM) and the German Research Foundation (DFG) through the Cluster of Excellence in Simulation Technology (No. EXC 310/2) at the University of Stuttgart. Computational resources for the water cluster DFT calculations were provided by the state of Baden-Württemberg through bwHPC and the German Research Foundation (DFG) through grant no INST 40/467-1 FUGG. Development of ænet used the Extreme Science and Engineering Discovery Environment (XSEDE), which is supported by National Science Foundation grant number ACI-1053575. The LMNTO DFT calculations used resources of the Center for Functional Nanomaterials, which is a U.S. DOE Office of Science Facility, at Brookhaven National Laboratory under Contract No. DE-SC0012704. For the simulations of bulk water, we acknowledge computing resources from Columbia University’s Shared Research Computing Facility project, which is supported by NIH Research Facility Improvement Grant 1G20RR030893-01, and associated funds from the New York State Empire State Development, Division of Science Technology and Innovation (NYSTAR) Contract C090171, both awarded April 15, 2010. N.A. and A.U. thank Dr. Penghao Xiao for valuable discussions. We thank Dr. Tobias Morawietz for testing our implementation and for insightful discussions. AUTHOR CONTRIBUTIONS N.A. designed and planned the study. N.A. and A.U. supervised all aspects of the project. A.C., A.U., and N.A. implemented the methodology into ænet, and performed extensive tests. A.C. and N.A. performed DFT calculations and constructed the ANN potentials. A.C., A.U., and N.A. analyzed the results. The manuscript was written by A. C., A.U., and N.A. with the help of J.K. All authors contributed to discussions and commented on the manuscript. COMPETING INTERESTS The authors declare no competing interests. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly [from the copyright holder. To view a copy of this license, visit http://creativecommons.](http://creativecommons.org/licenses/by/4.0/) [org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2020 14 A.M. Cooper et al. ADDITIONAL INFORMATION Supplementary information is available for this paper at [https://doi.org/10.1038/](https://doi.org/10.1038/s41524-020-0323-8) [s41524-020-0323-8.](https://doi.org/10.1038/s41524-020-0323-8) Correspondence and requests for materials should be addressed to N.A. Reprints and permission information is available at [http://www.nature.com/](http://www.nature.com/reprints) [reprints](http://www.nature.com/reprints) Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

섹션 본문 88문단 · 60,427자

(제목 없음)

1Artificial neural network (ANN) potentials enable the efficient large-scale atomistic modeling of complex materials with near first-principles accuracy. For molecular dynamics simulations, accurate energies and interatomic forces are a prerequisite, but training ANN potentials simultaneously on energies and forces from electronic structure calculations is computationally demanding. Here, we introduce an efficient alternative method for the training of ANN potentials on energy and force information based on an extrapolation of the total energy via a Taylor expansion. By translating the force information to approximate energies, the quadratic scaling with the number of atoms exhibited by conventional force-training methods can be avoided, which enables the training on reference data sets containing complex atomic structures. We demonstrate for different materials systems, clusters of water molecules, bulk liquid water, and a lithium transition-metal oxide, that the proposed force-training approach provides substantial improvements over schemes that train on energies only. Including force information for training reduces the size of the reference data sets required for ANN potential construction, increases the transferability of the potential, and generally improves the force prediction accuracy. For a set of water clusters, the Taylor-expansion approach achieves around 50% of the force error improvement compared to the explicit training on all force components, at a much smaller computational cost. The alternative force training approach thus simplifies the construction of general ANN potentials for the prediction of accurate energies and interatomic forces for diverse types of materials, as demonstrated here for water and a transition-metal oxide.

I. INTRODUCTION

2During the past decade, machine-learning potentials (MLP) trained on accurate first principles and quantum chemistry methods have become an integral part of computational materials science. [1][2][3][4][5][6][7][8][9][10][11] Carefully constructed MLPs can be as accurate as their first principles reference method but at a fraction of the computational cost and with an effort that scales linearly with the number of atoms, which enables the modeling of complex materials that are not accessible with first principles methods such as density-functional theory (DFT). [12][13][14][15] MLPs can also be trained on results from highly accurate ab-initio methods such as coupled-cluster calculations. [16][17][18] One popular MLP variant is the high dimensional artificial neural network (ANN) potential method initially introduced by Behler and Parrinello for elemental Si in 2007 1 and extended to multiple chemical species by Artrith and coworkers, 19,20 exploring also the effect of longranged electrostatic interactions. 19 ANN potentials have been successfully used to model many complex materials, such as elemental metals, 21,22 alloys, 23,24 oxides, 25 molecular systems, [26][27][28][29] amorphous phases, [30][31][32][33] interfaces, [34][35][36][37] and nanoporous materials. 38 Once trained, the computational cost of ANN potentials does not scale with the number of data points used for a) Electronic mail: nartrith@atomistic.net training, so that training sets can be as large as necessary to sample the relevant and potentially diverse chemical and structural space. Often, ANN potentials are trained on total energy information, i.e., a single piece of information per DFT calculation is used as reference for the potential training. As a result, a large number of DFT reference calculations, possibly tens to hundreds of thousands, 33 may be needed to achieve the desired interpolation accuracy for applications in Monte Carlo (MC) sampling or molecular dynamics (MD) simulations.

3Large training sets are needed to accurately capture the gradient of the potential energy surface (PES) and thus the interatomic forces. An accurate representation of the atomic forces is crucial for MD simulations and geometry optimizations, and hence the force prediction error is an important target parameter for potential construction. At the same time, the energy is what determines the most stable structure or phase and other materials properties, and energy conservation needs to be obeyed by any interatomic potential, so that an accurate representation of the structural energy is also needed.

4In ANN potential training, the force prediction accuracy is typically converged by increasing the number of reference structures used for training until the relevant structure space is sampled sufficiently fine to also represent the gradient of the PES. 21,34 This strategy does not only increase the training set size it also makes the training technically more challenging since relevant structures have to be carefully selected without adding redundancies to the training set. is computationally demanding. This approach requires large numbers of reference calculations to converge the slope of the potential energy surface. b, In this work, a new scheme for ANN potential training is introduced, in which interatomic forces are used to extend the training set with energies approximated by Taylor expansion. The method is computationally as efficient as the conventional energy training and can significantly reduce the number of required reference calculations.

5In principle, atomic forces or higher derivatives of the energy from first principles can also be used as reference data for ANN potential training. To train on force information, the loss function for the ANN potential training has to include the force prediction error, i.e., the error of the negative gradient of the energy. However, including the gradient in the loss function introduces a significant computational overhead because training requires the gradient of the loss function and thus the second derivative of the ANN potential is needed (i.e., the Hessian matrix). Therefore, in practice sometimes hybrid approaches are used in which the atomic forces of a subset of atoms are included in the loss function. 39 Such approaches are especially useful in combination with online training methods that allow the selection of different force components for each training iteration (epoch).

6In the present article, we introduce a new scheme for including atomic force information in the ANN potential training that avoids the computationally demanding evaluation of higher order derivatives (see flowchart in Figure 1). The approach, which is based on a Taylor extrapolation of the total energy, is detailed in the following Background section. In the Results section, we first demonstrate the basic principle of the methodology for an analytical example and then apply it to systems with increasing complexity (clusters of water molecules, bulk water, and a quaternary metal oxide), finding that a smaller number of reference structures compared to energy-only training is sufficient for converging the force error in ANN potential construction.

A. Artificial neural network potentials

7Artificial neural network (ANN) potentials are a type of many-body interatomic potential for atomistic simulations. 1,5,40 In contrast to conventional potentials that are based on an approximate representation of the physical atomic interactions, such as embedded atom models, 41 ANN potentials employ general flexible functions, ANNs, for the interpolation between reference data points from first-principles calculations. ANN potentials represent the total energy E(σ) of an atomic structure σ = { R i } ( R i is the position vector of atom i) as the sum of atomic energies

8where σ Rc i is the local atomic environment of atom i, i.e., the atomic positions and chemical species of all atoms within a given cutoff radius R c of atom i. 1,5,40 The atomic energy function E atom in equation (1) is given by an ANN specific for each chemical species t (i.e., t is the type of atom i)

9ANNs require an input of constant size, but the number of atoms within the local atomic environment of an atom i, σ Rc i , can vary. A suitable input feature vector is obtained by transforming σ Rc i to a descriptor σ Rc i with constant dimension that is also invariant with respect to (i) translation/rotation of the entire structure and (ii) exchange of equivalent atoms. In the present work, we employed the Chebyshev descriptors by Artrith, Urban, and Ceder, 20 and the symmetry function descriptor by Behler and Parrinello. 1,42 Further details of the ANN architecture and the descriptor parameters are given in the methods section VI.

10B. ANN potential training with reference energies ANN potentials are trained to reproduce the structural energies of reference data sets containing atomic structures σ (input) and energies E(σ) (output) from first principles calculations. The atomic energy E atom is not uniquely defined from first principles, so that no reference for the direct training of ANN t ( σ Rc i ) is available. Note that there are non-unique approaches that can be used to decompose the total structural energy from first principles into atomic contributions. 43 To avoid ambiguities and additional model complexity, it is more straightforward to implement the ANN potential training such that it minimizes a loss function based on the total energy E(σ)

11where E ann (σ) is the energy of structure σ predicted by the ANN potential of equation (1). Gradient-based optimization methods require the derivative of the loss function with respect to the ANN parameters, the ANN weights

12where the weight derivatives of the ANNs can be obtained using the standard backpropagation method. 44 The computational complexity of backpropagation scales as O(N w ) where N w is the number of weight parameters. For a training set containing a total of N atom atoms, the computational cost of one training epoch is therefore proportional to O(N atom N w ).

C. Training with reference atomic forces

13Density-functional theory (DFT) 12,13 calculations with local or semi-local density functionals provide the in-teratomic forces at minimal overhead. Considering the importance of accurate forces for structure optimizations and MD simulations, it is desirable to include the force error in the loss function L of equation (3). In addition, each atomic structure has only one total energy but 3 atomic force components per atom. Hence, using the atomic forces as additional reference data increases the data points available for training per atomic structure by a factor of 3 N , where N is the number of atoms in the structure.

14The Cartesian vector of the force acting on atom i is given by the negative gradient of the total energy

15where a is an adjustable parameter that determines the contribution of the force error to the loss function L. 45 The gradient of the new loss function L with respect to the weight parameters is

16As seen in equation (7), evaluating the weight gradient of the new loss function L requires taking the derivative of the position gradient of the ANN potential

17which scales quadratic with the number of atoms in the reference structure. Note that only the cross terms for atoms within two times the cutoff radius of the potential (2R c ) are different from zero. 21 For very large or periodic structures the scaling of the derivative evaluation therefore eventually becomes linear but with a large pre-factor of N local that is the average number of atoms within 2R c and can be several hundred to thousands depending on the density of the material and the cutoff radius. The quadratic scaling and the often large number of atoms in reference data sets typically makes it infeasible to train all force components using the loss function in equation (6). One option is to include a fraction of all force components in the loss function, e.g., only 0.41% of the atomic forces were included in reference 39, and Artrith et al. have previously used only 10% or less of the force information for ANN potential training. 19,21,34 This strategy can work especially well with online training methods that allow selecting different force components at each epoch which is not possible using batch training methods.

18The importance of atomic force information and the unfavorable scaling of direct force training prompted us to consider alternative means of including force information in ANN potential training.

D. Including atomic force information via Taylor expansion

19Training of the energy with the loss function of equation (3) is efficient, so that a translation of the force information to (approximate) energy information is advantageous. Such a translation can be accomplished using a first-order Taylor expansion to estimate the energy of additionally generated atomic structures without the need to perform additional electronic structure calculations.

20The energy of a structure σ = { R i } that was generated by displacing the atoms in the original structure σ = { R i } can be expressed as the Taylor series

21Substituting the atomic force of equation (5) for the negative gradient of the energy and truncating after the first order, we arrive at the approximation

22where E(σ) and F i (σ) are the energies and atomic forces from the original reference electronic structure calculations. The first-order approximation is valid for small displacements { δ i }. Equation (10) provides a mechanism for incorporating approximate force information in the ANN potential training as additional structure-energy pair records. What remains is to decide on a recipe for generating such additional structures by atom displacement. In the present work, we considered two strategies: (A) displacing one individual atom to generate one additional structure, and (B) randomly displacing all atoms. In strategy (A), we select an atom i in structure σ and displace its coordinates by a small amount ±δ in each Cartesian direction to generate 6 additional structures. For example, displacing atom i in structure σ = R 1 , R 2 , . . . , R N in the negative Cartesian x direction would yield the new structure-energy pair

23wherex is the unit vector in the Cartesian x direction, and F x i is the x component of the force acting on atom i. A similar approach has previously been used by Vlcek et al. for molecular force-field optimization with energy and force information. 46 In strategy (B), all atoms are displaced by small random vectors δ i where the total displacement is such that | δ i | ≤ δ max for all atoms. Since a net translation of the entire structure does not affect the energy, the center-of-mass displacement is subtracted from the combined atomic displacements. The energy of the resulting structure is evaluated according to equation (10).

24The optimal values of the displacement δ in strategy (A) and the maximal displacement δ max in strategy (B) are parameters and will be determined in the following.

III. RESULTS

25To assess the efficacy of the Taylor-expansion approach laid out in the previous section, we considered a series of materials systems with increasing complexity: An analytic Lennard-Jones dimer molecule as test case, clusters of water molecules, a periodic bulk water box, and a complex oxide system with five different chemical species.

A. Diatomic Molecule

26Our first test case is a diatomic molecule with atomic interactions described by the analytic Lennard-Jones potential 47

27with binding energy ε = 3.607 eV and equilibrium distance r 0 = 1.54 Å. The binding energy and bond distance were chosen such that they correspond to a typical covalent bond, approximately the carbon-carbon bond, so that the magnitude of the displacement in the Taylor expansion will be comparable to an actual compound. An analytic interatomic potential has the advantage that the gradient and the Taylor expansion can be calculated analytically. Further, the one-dimensional dimer molecule makes it straightforward to visualize the PES, i.e., the bond-energy curve, so that the analytic potential and the ANN interpolation can be visually compared with each other. Figure 2a shows the bond energy in a range close to the equilibrium distance and an ANN potential that was trained on seven equidistant reference points between 1.4 Å and 2.8 Å. As seen in the figure, the ANN potential approximates the Lennard-Jones potential well at distances above 1.8 Å, but is unable to reproduce the minimum region and predicts an incorrect larger equilibrium distance as well as an incorrect slope and curvature near the minimum. The result of training the ANN potential with the Taylor expansion approach is shown in Figure 2b, where additional data points were generated by approximating the energy for slightly longer and slightly shorter bond distances using the first-order Taylor expansion of equation (10) using a displacement of δ = 0.02 Å. As seen in the figure, the additional approximate data points guide the ANN potential, and the resulting fit is visually much better and reproduces the correct bond minimum as well as the slope and the curvature within the minimum well. Also apparent in Figure 2b are the deviations of the first-order Taylor expansion from the true bond energy curve. The approach is approximate and will give rise to noise in the reference data, and the optimal amount of additional approximate data points per exact energy data point has to be determined such that the accuracy of the ANN potential does not suffer. In the following, we will assess the Taylor expansion method for real materials systems to quantify both the improvement of the force prediction accuracy and the effect of noise in the reference energies.

B. Water clusters

28While the analytic dimer example is useful for illustrative purposes, our objective is the training on firstprinciples energies and forces. As a second test case, we therefore consider a reference data set based on structures obtained from MD simulations of water clusters with six water molecules. MD simulations at 300 K and 800 K were performed on the semiempirical Geometry, Frequency, Noncovalent, eXtended TB (GFN-xTB) 48 level of theory. The atomic forces and energies of a subset of the structures along the MD trajectories were recalcu-lated using a first-principles density-functional theory (DFT) approach (BLYP-D3/def2-TZVP) to be used as reference data for ANN potential construction. See the methods section VI A for the details of our MD and DFT calculations.

29As a baseline for the assessment of the force-training method, we first quantify the error in the atomic forces if only total energies are trained using the methodology and loss function of section II B. As a second point of reference the error in the atomic forces is quantified for ANN potentials that were trained by including the error in the atomic forces in the loss function as described in section II C.

Total energy training with increasingly large training sets

30As mentioned in the introduction, a common way to improve the force prediction error of ANN potentials is by increasing the reference data set size to sample the configurational space more finely. We therefore investigated first the influence of the size of the reference data set on the quality of the force prediction of ANN potentials that were trained on the total energy only.

31In order to study how the size of the reference data set affects the quality of the force prediction, three different reference data sets with increasing number of data points were assembled from the MD reference data set:

32(i ) a subset containing 471 reference structures referred to as the train_0500 data set in the following, The structures within these subsets were chosen evenly spaced along the MD trajectories to ensure a maximum decorrelation of the reference data. For each training set, the ANN potential training was repeated ten times with different random initial weight parameters {w k } to obtain statistics on the prediction quality of the atomic forces for the resulting ANN potentials. Details on the ANN potential training are given in section VI B. All errors reported in the following were obtained for the same independent validation data set containing 2000 structures that are not included in any of the training sets. Figure 3a shows the distributions of the error in the norm of the predicted atomic forces for the structures within the validation set after training on the energies in the train_0500, train_1000, and train_2000 data sets. Only the energy error entered the loss function, so that the interatomic forces were not directly trained.

33As seen in the figure, for the smallest train_0500 set interpolating the ANN PES using only the energies of the reference structures leads to a wide distribution of errors in the prediction of the absolute value of the atomic forces. Especially, the pronounced tail of the distribution implies that there is a large fraction of atoms for which the absolute value of the force is predicted with an error greater than 1.0 eV/Å. Increasing the size of the training set to ∼1000 and ∼2000 structures reduces the tail of the error distribution significantly.

34Figures 3b-d show a corresponding analysis of the error in the direction of the predicted atomic forces and the mean absolute error (MAE) of the atomic forces. High relative frequencies of occurrence are shown in yellow and red, whereas low relative frequencies are colored in shades of gray. The errors are shown as a function of the absolute value of the atomic force, and it can be seen that the reliability of the prediction of the direction of the atomic forces increases for increasing absolute values of the force vectors. This means, the error in the force direction is greater for small force vectors than for large force vectors. Especially for atoms with atomic forces with absolute values of less than 1.0 eV/Å, the direction of the force vector predicted by the ANN potential scatters strongly.

35This scattering is significantly decreased for atomic forces with large absolute values. As seen in panel a, for the small train_0500 set the error distribution has a shallow maximum between 0 and 25 • depending on the absolute force value, but the heat map shows much larger errors of nearly 180 • for force vectors with small absolute value.

36Additionally, increasing the size of the reference data set reduces the scattering in the predictions notably. Particularly, the scattering in the prediction of atomic forces with absolute values smaller than 1.0 eV is notably decreased in comparison to the results obtained from the train_0500 reference data set. Furthermore, the number of atoms for which the error is 15 • or less increases significantly when the ANN potential is trained with the train_2000 reference data instead of the train_0500 data set.

37Depending on the reference method and the size of the atomic structures, increasing the number of structures in the training set may entail a massive computational overhead. Therefore, we next investigate whether the Taylor-expansion formalism of section II D could alleviate the need for large training set sizes. The MAE is shown as a function of the atomic displacement δmax for different multiples a of additionally generated structures. The graph shows the MAE relative to the DFT reference. Results are shown for displacement strategy (B) and for the smallest reference data set (train_0500). The red dashed line indicates the reduction of the force error that can be achieved by direct force training.

Optimal meta-parameters for the Taylor-expansion approach

38Next, we investigate the efficacy of approximate force training using the Taylor-expansion approach of section II D. In order to apply the two displacement strategies, i.e., (A) the displacement of single atoms in the three Cartesian directions and (B) the displacement of all atoms in random directions, suitable displacement parameters δ and δ max have to be determined. Finally, the optimal number of additional structures with approximate energies to be generated using the Taylor-expansion approach needs to be determined, as the computational effort for ANN potential training scales with the size of the training set.

39The number of additional structures is given in terms of a multiple a of the original training set, so that a = X means that the number of generated structures is X times the number of the original structures. For example, the train_0500 data set contains 471 structures, so that for a = 10 a total of 10 × 471 = 4, 710 additional structures with approximate energy will be generated by atomic displacement.

40For each possible choice of a parameter pair (a, δ) or (a, δ max ) ten ANN potentials were trained to obtain statistics on the resulting ANN potentials. The optimal parameter pair was chosen by calculating the MAE of the atomic forces for the validation data set and thereby averaging the errors obtained from all ten potentials fitted for each parameter pair. Figure 4 shows the MAE of the atomic forces obtained after training with the Taylor-expansion approach as function of the maximum displacement δ max for dif-ferent multiples of additional structures a. The ANN potentials used to quantify this error were fitted to the train_0500 reference data set using random displacement strategy (B) for the given δ max parameters. In the figure, the MAE are given relative to the one obtained if no force information is used for training.

41As seen in Figure 4, the values of δ max that lead to the greatest reduction of the MAE are independent of the number of additionally generated structures a and are close to δ max = 0.01 Å. If the displacement parameter is chosen too large, the first-order Taylor expansion is no longer a good approximation and the force error increases. Additionally, the MAE decreases with increasing number of generated structures until a multiple of a = 22 has been reached. For multiples a greater than 22 no significant further improvement was found. Based on this analysis we conclude that, for the train_0500 reference data set, the optimal parameter choice that leads to the smallest MAE with the Taylor-expansion approach is a = 22 and δ max = 0.008 Å.

42The optimization of the meta-parameters was repeated for the larger training sets train_1000 and train_2000 and for the second Taylor-expansion displacement strategy (A), and the optimal parameters are given in Table S1 in the supplementary information. In summary, the optimal displacement δ and multiple a do not appear to depend on the size of the reference data set. Out of the considered values, the optimal multiple of generated structures is a = 22, and optimal displacements are δ (A) = 0.03 Å for strategy (A) and δ (B) = 0.008 Å for strategy (B). The heat maps in supplementary Figure S1 show the similarity of the error in the force direction for varying displacements.

Energy and force training with the Taylor-expansion approach

43Using the optimal parameters for the displacement δ and fraction of generated structures a for each of the three reference data sets and both displacement strategies, we studied the errors in the prediction of the atomic forces in order to compare both displacement strategies with each other and to quantify the improvement of the predicted forces with respect to the conventional approach where only total energies of the reference structures are fitted. Figure 5a compares the distribution of absolute force errors in the validation set after training on the train_0500 set with and without force information. As seen in the figure, the errors in the absolute force are drastically reduced by both displacement strategies. Especially the tail of the error distribution with errors greater than 1.0 eV/Å has nearly disappeared for the ANN potentials that were trained using the Taylor-expansion approach. In addition, the prediction of the direction of the force vectors also improves distinctly, as seen in energy training (Figure 3b-d), a general decrease of the error in the predicted forces can be observed that is also reflected by a reduction of the MAE.

44Based on the error distributions in Figure 5a, both displacement strategies perform nearly equally well. Displacing atoms along the Cartesian directions (strategy A) generating 5,088 additional structures results in a slightly smaller improvement than displacing atoms in random directions (strategy B) generating 10,362 structures, but both Taylor-expansion strategies are a significant improvement over energy-only training. For the small water cluster system, the Cartesian displacement strategy requires generating far fewer additional structures than the random displacement approach. We found that this is not generally the case and instead depends on the number of atoms in the reference structures. With increasing structure size, the optimal multiple a increases more rapidly for displacement strategy (A), and thus for larger structures displacement strategy (B) becomes more efficient. Figure 5a with Figure 3a and the heat map in Figure 5c with that in Figure 3d shows that training the train_0500 data set with approximate force information results in quantitatively similar error distributions as training on the energies in the four-times larger train_2000 data set. Hence, the approximate force training reduces the number of training data points by a factor of four for the example of the water cluster data set.

Comparison of

45In principle, both the size of the reference data set as well as the force training can be expected to affect also the error in the predicted energy. In the case of the water cluster data set, even training on the energies of the train_0500 data set without force information results in energy errors in the validation set that are well below 2 × 10 −3 eV/atom, which is an order of magnitude below chemical accuracy (1 kcal/mol ≈ 0.04 eV). Therefore, the water cluster data set is not well suited to investigate the impact of force training on the energy prediction, and we will return to this question when discussing more complex data sets in the following section III C. For the water cluster data set, supplementary Figure S2 shows that the distribution of the energy error is not significantly affected by force training using the Taylor-expansion approach.

Comparison of approximate and direct force training

46For the small water cluster structure (18 atoms) and the smallest (train_0500) data set, direct force training by including all force errors in the loss function as described in section II C is computationally feasible. Note that even for this simple system, the direct force training took on average eight times more computer time per iteration (training epoch) than the Taylor-expansion method with data multiple a = 22 on our computer system. The force error distribution resulting from direct force training is shown in Figure 5b.

47Comparing the results obtained by approximate force training to those from direct force training, it is obvious that direct force training improves the force prediction even further. The tail of the distribution of the absolute force error approaches zero at around 0.5 eV/Å, and as a result the error distribution is significantly narrower than the ones obtained by the other methods with its maximum being closer to 0.

48The same trend is also found for the improvement of the prediction of the direction of the force vector by direct force training compared to the approximate Taylorexpansion approach. The mean absolute force error for direct force training is 0.18 eV/Å, and a heat map of the direction error is shown in supplementary Figure S3.

49Quantitatively measured by the MAE, approximate force training using the Taylor-expansion methodology gives around half the reduction of the force error that is achieved by direct force training. This can be most clearly seen in Figure 4, in which the relative MAE obtained after direct force training is indicated by a red dashed line.

50Even though direct force training leads to yet better predictions of the forces, one has to take into account that it is significantly more computationally demanding. For larger and more complex systems for which direct force training would be challenging or even infeasible, approximate force training with the Taylor-expansion approach offers an alternative to improve the force prediction significantly in comparison to conventional energy training. Therefore, we investigate condensed phases in the following sections.

C. Bulk water

51We applied the Taylor-expansion methodology to a reference data set of a periodic bulk water system with 64 water molecules (192 atoms) that was generated by running an ab initio MD (AIMD) simulation at a temperature of 400 K over a simulation time of 100 ps with time steps of 1 fs, producing a total of 100,000 MD frames. The simulations employed a Γ-point k-point mesh for the numerical Brillouin-zone integration. All parameters of the DFT calculations are detailed in the methods section VI. 700 structures along the AIMD trajectory were selected for potential training. 90% of the reference data set were used for ANN potential training, and the remaining 10% were used as an independent test set to monitor training progress, and to detect overfitting. 2,000 different equallyspaced MD frames from the complete trajectory were compiled into a third independent set for validation, and all results within this section are based on the validation set none of which was used for training.

52Since the nature of the bonds in the water bulk is the same as in the water clusters of the previous section, a maximal displacement of δ max = 0.01 Å was used for the water bulk system, which was found to be close to optimal for water clusters (see Figure 4). Additionally, we limit the discussion to random displacement strategy (B), since it performed better than displacing individual atoms for water clusters. Instead, here we focus on the impact of increasing the number of additional structures generated by the Taylor-expansion approach.

53In general, two competing effects can be expected: On the one hand, the force training should become more effective with increasing multiple a, i.e., with an increasing number of additional structures per original structure generated by our approach. On the other hand, the firstorder Taylor-expansion is approximate, and the energies of the additional structures are less accurate and noise is introduced into the training set. Thus, the accuracy of the energy fit could be expected to decrease after introducing too many additional structures via atomic displacement.

54To determine the balance of these two effects, data multiples between a = 12 and a = 64 were considered, which corresponds to approximately 12 × 700 = 8, 400 to 64 × 700 = 44, 800 additional structures generated by Taylor expansion for the 700-structure reference data set. See section VI B for details of the ANN potential construction. Figures 6a and b show, as solid lines, the best energy and force prediction errors out of ten ANN potentials trained on the same data but with different initial weight parameters. Additionally, the median ANN potential error is shown (dashed lines) as a proxy for the likely result of a single ANN potential training run. As seen in the figures, both the energy and force errors initially decrease with increasing amount of additional data. For small data multiples a, the force error improves significantly from 1.26 eV/Å (energy training only) to 0.88 eV/Å (30% improvement) for a = 12 and 0.69 eV/Å (45%) for a = 24 (Fig. 6b). Increasing a beyond 24 only yields marginal further improvement, and for a = 48 the force error has decreased to 0.61 eV/Å (52%).

55Interestingly, the energy RMSE decreases simultaneously from 2.6 meV/atom (energy training) to 2.1 meV/atom (19%) for a = 36 (Fig. 6a). This improvement indicates that the displaced structures added to the training set via Taylor expansion have improved the transferability of the resulting ANN potential. Increasing a further does not result in further improvement of the energy error, and an increase of the error is observed for a = 64, which is in line with our expectation that too many additional structures introduce noise in the training set.

56Having quantified the general improvement of the predicted atomic forces with the force-training approach, we analyze next where these improvements originate from. Figure 7a shows the distribution of absolute force errors in the validation set with and without force training. In the case of energy training only, the force errors are widely spread out, and for some atoms the force error is greater than 3.0 eV/Å. The largest atomic forces in the data set are around 5.0 eV/Å, so that 3.0 eV/Å corresponds to an error of at least 60%. As discussed above, the force prediction error depends on the size of the reference data set, and thus the analysis in Figure 7a shows that the 700-structure data set is not sufficient for robust force prediction.

57Force training with the Taylor-expansion approach results in a strong improvement of the force prediction, and training with a data multiple of a = 16 already removes the high-error tail of the error distribution. Increasing a to 36 further reduces the width of the distribution significantly. The error distributions for a large data multiple of a = 64 is nearly identical to the distribution for a = 36 and both are centered around 0.6 eV/Å, showing that the force training has converged for this data set in agreement with Fig. 6. Figure 7b shows a heat map of the distribution of the errors in the direction of the atomic forces for all atoms in the validation set for training without forces (left) and with forces (right). The results for a = 64 are shown in the figure, though a = 36 yielded a qualitatively equivalent error distribution. As seen in the figure, when training only energies the errors in the force direction are spread out over nearly the entire angle range. In contrast, the force training improves the error distribution significantly, yielding a maximum at around 15 • and a strong decay of the error with the norm of the force vectors.

58As another test, we constructed preliminary ANN potentials trained with and without force information on a larger reference data set of 10,000 frames taken from the same AIMD trajectory to evaluate the radial distribution function (RDF) of liquid water. In Figure 8, the results are compared to a literature reference for an equivalent DFT approach. 49 Note that the construction of robust ANN potentials for water requires data sets with very diverse structures and phases that include also short O-H bond lengths that occur rarely in MD simulations, 26,29,50 and the preliminary potentials can only be considered a starting point for the ANN potential construction and will require further refinement.

59As seen in Figure 8, the ANN potential trained with the Taylor-expansion approach yielded improvements in the RDF peak of the first coordination shell. Importantly, the stability of the MD simulations improved significantly with force training. Simulations using potentials trained on energies only were unstable due to frequent extrapolation, whereas the potentials trained with force information allowed for more robust MD simulations. It is clear that the potential that was trained using forces via the Taylorexpansion method performed better than the one that was trained on energies only.

60Direct force training of all atomic force components was not feasible for the bulk water system. As in section II C, for condensed phases direct force training scales with the number of atoms within twice the potential cutoff radius. For R c = 6.5 Å, there are on average 960 atoms within range, so that direct force training of all atomic forces would take ∼1,000 times the computer time of energy-only training.

61As shown above, the Taylor-expansion approach for force training works robustly for both isolated water clusters and water bulk. For materials with more complex compositions, sampling the structural space with sufficient resolution is challenging, and force training becomes even more important, as discussed in the next section.

D. Quaternary metal oxide

62To determine the performance of the force-training approach for a material with complex chemical composition we finally investigated a quaternary transition metal oxide. Our benchmark system, the Li -Mo -Ni -Ti oxide (LMNTO), is of technological relevance as prospective high-capacity positive electrode material for lithium-ion batteries. 51 The compound exhibits substitutional disorder in which all four metal species, Li, Mo, Ni, and Ti, share the same sublattice.

63We generated a reference data set for LMNTO with composition Li 8 Mo 2 Ni 7 Ti 7 O 32 by running a 50 ps long AIMD simulation at 400 K as described in detail in the methods section VI, yielding a total of 50,000 MD frames. Again, training (∼720 structures), test (∼80 structures), and validation (1,800 structures) sets were generated. A representative structure of the LMNTO unit cell is shown as inset in Fig. 9a.

64The bonding in lithium transition-metal oxides exhibits mostly ionic character, and the bond strength cannot be expected to be the same as in the water systems of the previous sections. Therefore, the maximal displacement δ max for the Taylor-expansion approach first needs to be optimized for LMNTO. Figure 9a and b show the change of the energy and force errors as function of δ max for a fixed additional data multiple of a = 70. As seen in subfigure b, the mean error in the predicted force decreases with increasing maximal displacement and has not yet converged for δ max = 0.04 Å, which is four times greater than the optimal displacement found for water. On the other hand, the median energy RMSE has a minimum at around δ max = 0.02 Å beyond which the energy error increases. A maximal displacement of δ max = 0.03 Å is a good compromise for LMNTO, resulting in a small decrease in accuracy for the energy from 4.6 meV/atom to 4.9 meV/atom (increase by 6.5%) but a strong improvement in the accuracy of force prediction from 0.92 eV/Å to 0.66 eV/Å (28.3%). Qualitatively, the same improvement of the absolute force error as in the case of the water systems is seen, though even without force training the error distribution does not exhibit any high-error tail. The force training also results in an improved accuracy in the direction of the predicted forces, though the maximum of the error distribution is at a slightly higher value of around ∼20 • .

Towards application in MD simulations of LMNTO

65The MAE of the forces and the RMSE of the energy are abstract quality measures of the ANN potential, but in practice the robustness and reliability of the potential in an actual application is most important. To construct a preliminary ANN potential for LMNTO, we compiled a data set of ∼4,000 AIMD frames that were used as reference for training three ANN potentials with force information (δ max = 0.015 Å, a = 20) and three without force information. The construction of accurate ANN potentials for materials with complex structures and compositions typically requires training sets with tens of thousands of reference structures. 24,33,34 4,000 reference structures taken from a single AIMD trajectory can function as an initial data set for the construction of a preliminary ANN potential as a starting point for subsequent iterative refinement. 5,40 The robustness of an interatomic potential and the smoothness of the predicted PES is reflected by the numerical energy conservation in MD simulations. To test energy conservation, we carried out MD simulations in the microcanonical (N V E) statistical ensemble using a time step of 1.0 fs, and the resulting change of the total energy over the course of 1.0 ns is shown in Figure 10 for different ANN potentials. The MD simulations were performed for a 2 × 2 × 1 LMNTO supercell containing 224 atoms (Figure 10a) that was previously thermally equilibrated at a temperature of 400 K with AIMD simulation. All of the ANN potentials trained with approximate force information conserved the total energy well with fluctuations on the order of 10 −3 meV/atom (one example is shown in Figure 10b). However, those potentials that were trained only on the energies showed numerical instabilities of varying degree, and two examples are plotted in Figure 10b. This experiment demonstrates that the additional structure-energy data points generated from force information using the Taylor-expansion approach contribute to the transferability of the ANN potential and improve the smoothness of the potential interpolation.

IV. DISCUSSION

66We introduced a computationally efficient method for the simultaneous training of energies and interatomic forces for the construction of accurate ANN potentials. We assessed the methodology for three relevant complex materials systems: water cluster structures, bulk liquid water, and a solid metal oxide. We demonstrated that the approach increases the accuracy of predicted forces, reduces the number of first principles reference data points needed, and can improve the transferability of ANN potentials.

67In general, we find that force training has the greatest impact for small reference data sets. With force training, a small reference data set of ∼500 water cluster structures could achieve nearly the same predictive power as training only the energy on a reference data set with ∼2,000 structures. Using the force-training approach, the structural and chemical space can thus be more coarsely sampled than using energy-only training. This has important implications for the construction of ANN potentials for materials with complex compositions, such as the quaternary metal oxide of section III D, for which an exhaustive sampling of the structural and chemical space is infeasible.

68The Taylor-expansion methodology is approximate, and it is meant as a computationally more efficient alternative to the direct training of force information with a modified loss function. Direct force training also incurs a significant memory overhead if the derivatives of the atomicstructure descriptors are stored in memory, whereas the Taylor-expansion approach uses exactly the same amount of memory as training with energy information only. As demonstrated for the water cluster data set, direct force training can further improve the force prediction when it is computationally feasible. However, even for the small water cluster system, direct force training was already eight times more computationally demanding than approximate force training, and owing to its formal quadratic scaling this difference will be even greater for larger systems.

69We discussed two different strategies for the generation of additional approximate reference energy data points from force information by approximating the energy of structures with slightly displaced atoms using a first-order Taylor expansion. The two strategies differ in the number of atoms that are displaced, but both rely on randomization, either for the selection of atoms or to decide the direction and magnitude of atomic displacements. Displacing all atoms in a reference structure by small random vectors with maximal length δ max is shown to be a robust scheme for the generation of derived structures. However, this strategy does, in principle, not rule out that multiple additional structures with similar information content (i.e., similar displacements) are generated. The generated atomic displacements are not necessarily linearly independent.

70The atomic forces of a structure with N atoms comprise 3N pieces of information from the three force components of all atoms. Hence, at most 3N structures with independent information content can be derived from any given structure with energy and force information. One set of generated structures with linearly independent atomic displacements is given by the set of 3N normal modes. 52,53 Excluding the 3 translations and 3 rotations that do not change the energy, one could employ displacements in the remaining (3N − 6) normal mode directions as a third strategy for our force training approach. Normal-mode sampling has previously been shown to be a useful strategy for the generation of reference data sets, especially for molecular systems. 17,27 However, we found empirically that far fewer than 3N additional structures are required to converge the error of the interatomic forces for a given reference data set. For the bulk water system with 64 molecules, N = 3 × 64 = 192, so that the number of normal modes is 3 × 192 − 6 = 570, but our computational experiments show that the force error already plateaus for 24-48 additional structures with random atomic displacements. An exhaustive enumeration of all degrees of freedom would therefore be sub-optimal for our force-training methodology, and it is not obvious which normal modes should be selected if a subset was to be used. The random displacement strategy offers a reasonable compromise of information density and generality.

71As evident from the water clusters of section III B and the oxide system of section III D the optimal maximal displacement δ max for use in the Taylor extrapolation is system dependent. The energy change with atomic displacement depends on the material-specific bond strength, i.e., the force constants of the interatomic bonds. The covalent O-H bonds in water are more rigid than the ionic bonds in LMNTO, so that smaller displacements are needed for water than for the oxide. As a rule of thumb, we expect the optimal value of δ max to be approximately proportional to the smallest interatomic distances (bond lengths) in the reference data set, which is ∼0.9 Å for the O -H bond in water and ∼1.7 Å for O -metal bonds in LMNTO, though the nature of the bonds (covalent, ionic, metallic, or dispersive) will also have an impact.

72A related point is the dependence of the energy error on the value of δ max . As discussed for the oxide system and shown in Figs. 9a and b, the optimal displacement can be a compromise of force and energy accuracy. If the displacement is chosen too large, it is no longer a good approximation that the PES is linear, and the error of the first-order Taylor expansion becomes too large. For each materials system, it is thus necessary to benchmark different displacement values to determine the value that is optimal for both force and energy training.

73It is important to note that the Taylor expansion extrapolation approach does not have to be limited to first order. If higher derivatives of the potential energy are available, e.g., if the Hessian matrix has been calculated for the reference structures, then higher-order Taylor expansions can be used to improve the accuracy of the energy extrapolation.

74The methodology could be further extended and refined for specific applications. Atomic displacement could be limited to atoms with high force components to avoid introducing noise in shallow regions of the PES. Structures from geometry optimizations are generally not useful for our approach as the atomic forces are near zero, and such structures should not be considered for displacement. It could also be useful to allow selection of specific atoms for displacement, so that the force prediction accuracy can be increased for select substructures. Similarly, the maximal displacement δ max could be made a species-specific parameter, which would be especially useful in interface systems containing domains with different types of bonding, such as solid-liquid interfaces. These directions will be explored in future work.

V. CONCLUSIONS

75We introduced a new computationally efficient method for the training of accurate artificial neural network (ANN) potentials on interatomic force information and established its effectiveness for different classes of materials. The methodology is based on a Taylor extrapolation of the total energy using the atomic forces from the reference calculations without the need for additional electronic structure calculations. Training occurs on approximate energies, and the computationally demanding evaluation of the second derivatives of the ANN function is not required. Translating the force information to approximate energies makes it possible to bypass the quadratic scaling with the number of atoms that conventional force-training methods exhibit, so that the Taylor-expansion approach can be used for reference data sets containing complex atomic structures. We showed that approximate force training can improve the force prediction error by around 50% of direct force training, and is computationally efficient even for systems for which the latter is challenging or infeasible. We demonstrated for three example systems, a cluster of six water molecules, liquid water, and a complex metal oxide, that the force-training approach (i) allows to substantially reduce the size of the reference data sets for ANN potential construction, by nearly 75% in the case of the water cluster data set; (ii) increases the transferability of the ANN potential by improving the energy prediction accuracy for unseen structures; and (iii) generally improves the force prediction accuracy, leading to improved stability of MD simulations. The alternative force training approach simplifies the construction of general ANN potentials for the prediction of accurate energies and interatomic forces and is in principle applicable to any type of material.

VI. METHODS

76A. Electronic structure calculations a. Water clusters The reference data set was generated by performing ab initio molecular dynamics (MD) simulations with DL_POLY 54 via Chemshell. 55,56 The reference data set was generated in an iterative manner. First three MD simulation runs were performed, where the semiemperical GFN-xTB 48,57 was used as ab initio method. All of these simulations were run for 30 ps with a time step of 0.5 fs. The initial velocities were chosen randomly according to a Maxwell-Boltzmann distribution. The temperature simulated was 300 K for the first two simulations, the third MD simulation run was performed at 800 K. The temperature was in all cases controlled by a Nosé-Hoover thermostat. 58,59 During the simulations, a harmonic restraint was applied on all atoms to keep the cluster of water molecules confined to a sphere with a radius of about 5 Å. For the restraint a harmonic force with force constant 190.5 eV was applied to any atom that has a distance greater than 0.0005 Å to the 1st atom of the structure (central atom). In order to get a realistic approximation of the energy for the structures obtained from the MD simulation runs, the energies and forces for all structures were recalculated using the BLYP-D3 functional [60][61][62][63][64][65] with the basis set def2-TZVP. For the single point energy calculations Turbomole 66 was used via Chemshell. 55,56 Using this reference data set, two neural networks were trained to obtain a first approximation of the ANN potential. On each of the obtained ANN potentials a MD simulation at 300 K was performed for 75 ps. The other parameters for the MD simulation were chosen as discussed before. From these MD simulations on the ANN potentials 4420 additional reference structures were obtained. As for the AIMD reference structures the energies and forces were recalculated on BLYP-D3/def2-TZVP level of theory.

77b. Periodic AIMD simulations The periodic AIMD simulations were carried out with the Vienna Ab initio simulation package (VASP) 67,68 and projector-augmented wave (PAW) pseudopotentials. 69 For the bulk water system the revised Perdew-Burke-Ernzerhof density functional 70 with the Grimme D3 van-der-Waals correction 64 (revPBE+D3) was used that has previously been shown to be reliable for water. 26 The AIMD simulations of the Li-Mo-Ni-Ti-O system employed the strongly constrained and appropriately normed (SCAN) semilocal density functional. 71 For both periodic systems, the plane-wave cutoff was 400 eV, and Γ-point only k-point meshes were employed. A time step of 1 fs was used for the integration of the equation of motion, and a Nosé-Hoover thermostat 58,59 was used to maintain the temperature at 400 K. The bulk water data set was compiled by collecting every 100th frame from the first 70 ps of the AIMD trajectory, yielding a reference data set of 700 structures.

B. Reference data and ANN potential training

78The Taylor-expansion approach for force training was implemented in the atomic energy network (aenet) package, 40 which was used for the construction and application of the reported ANN potentials. In the present work, the limited memory BFGS algorithm 72,73 was used for the ANN weight optimization (training). The Artrith-Urban-Ceder Chebyshev descriptor for local atomic environments 20 was employed if not otherwise noted. Further details for the different materials systems follow.

79a. Lennard-Jones dimer For the dimer data set, a Chebyshev descriptor with radial expansion order 10 was employed. No angular expansion was used since the dimer does not have any bond angles. The ANN was comprised of two hidden layers with each five nodes and hyperbolic tangent activation, i.e., the ANN architecture was 11-5-5-1.

80b. Water clusters For the water clusters symmetry functions by Behler and Parrinello 1,42 were used as descriptor. The parameters for the symmetry functions for water were taken from the publication of T.Morawietz et al. 26 . For the training of the ANN the reference set was divided randomly into a training and a test set. Thereby 90% of the structures were used as the training set and the remaining 10% of the structures were used as the test set which was used to measure the quality of the predictions obtained from the ANN potential for structures that have not been used in the fit of the potential. The ANN architecture N symm -10-10-1 was used, where N symm is given by the descriptor 26 with N symm = 27 for hydrogen and N symm = 30 for oxygen. The hyperbolic tangent was used as activation function.

81Each ANN was trained for 5000 epochs, then the weights and biases for the epoch that that lead to the smallest test set error during training were used.

82c. Water bulk For the bulk water ANN potential, a Chebyshev descriptor with a radial expansion order of 18 and an angular expansion order of 4 was used. The interaction cutoffs were 6.5 Å and 3.0 Å for the radial and angular expansion, respectively, and the ANN architecture was 48-10-10-1, i.e., two hidden layers with each ten nodes were used. This corresponds to a total of 611 weight parameters.

83d. Li -Ni -Ti -Mo -O system A descriptor with an interaction range of 6.5 Å and an expansion order of 20 for the radial distribution function and a range of 3.5 Å and an expansion order of 2 for the angular interactions was used. For the 700-structure data set, the best balance of model complexity and accuracy was obtained for an ANN potential with 2 hidden layers and each 10 nodes (48-10-10-1).

C. ANN potential MD simulations

84All ANN potential MD simulations were carried out using the Tinker software 74 and ANN potentials via an interface with the aenet package and used the Verlet algorithm 75 for the integration of the equation of motion.

85The ANN potentials for the water bulk MD simulations were trained on a data set of ∼10,000 frames taken from an AIMD trajectory at 400 K and were based on a 48-20-20-1 ANN architecture. The radial distribution functions (RDF) shown in Figure 8 were evaluated for a simulation cell with 128 water molecules using MD simulations in the canonical (N V T ) ensemble by averaging over a total of 10 ps after a 2 ps equilibration period. A time step of 0.25 fs was used. A Bussi-Parrinello thermostat 76 was employed for the NVT sampling, and the target temperature was 300 K.

86For the MD simulations in Figure 10, a larger Li -Ni -Ti -Mo -O reference data set with ∼4,000 structure was used for training. For this data set, we employed a 48-20-20-1 ANN architecture. A time-step of 1 fs was used.

DATA AVAILABILITY

87The reference data sets of the water cluster, bulk water, and transition-metal oxide systems can be obtained from the Materials Cloud repository (doi: 10.24435/materialscloud:2020.0037/v1). These data sets contain atomic structures and interatomic forces in the XCrySDen 77 structure format (XSF), and total energies are included as additional meta information.

CODE AVAILABILITY

88This work made use of the free and open-source atomic energy network (aenet) package. The aenet source code can be obtained either from the aenet website (http://ann. atomistic.net) or from GitHub (https://github.com/ atomisticnet/aenet). The Taylor-expansion approach will be made available in the next release of the aenet package. S1. Robustness of the improvement of the prediction of the direction of the forces with respect to different choices of the maximum displacement δmax for the water-cluster system with six water molecules. The error was obtained from 10 ANN potentials per displacement that were trained using the train_0500 data set employing displacement strategy(ii) for the fraction value optimal for the respective delta.

참고문헌 78건

  1. <scp>C</scp>hem<scp>S</scp>hell—a modular software package for <scp>QM</scp>/<scp>MM</scp> simulations Wiley Interdisciplinary Reviews Computational Molecular Science · Wiley · 2013 10.1002/wcms.1163
  2. A new class of high capacity cation-disordered oxides for rechargeable lithium batteries: Li–Ni–Ti–Mo oxides Energy & Environmental Science · Royal Society of Chemistry · 2015 10.1039/c5ee02329g
  3. Projector augmented-wave method Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.50.17953
  4. Atom-centered symmetry functions for constructing high-dimensional neural network potentials The Journal of Chemical Physics · American Institute of Physics · 2011 10.1063/1.3553717
  5. <scp>G</scp>aussian approximation potentials: A brief tutorial introduction International Journal of Quantum Chemistry · Wiley · 2015 10.1002/qua.24927
  6. Neural network interatomic potential for the phase change material GeTe Physical Review B · American Physical Society · 2012 10.1103/physrevb.85.174103
  7. QUASI: A general purpose implementation of the QM/MM approach and its application to problems in catalysis Journal of Molecular Structure THEOCHEM · Elsevier BV · 2003 10.1016/s0166-1280(03)00285-9
  8. Canonical dynamics: Equilibrium phase-space distributions Physical review. A, General physics · American Institute of Physics · 1985 10.1103/physreva.31.1695
  9. A Limited Memory Algorithm for Bound Constrained Optimization SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 1995 10.1137/0916069
  10. Algorithm 778: L-BFGS-B ACM Transactions on Mathematical Software · Association for Computing Machinery · 1997 10.1145/279232.279236
  11. The performance of a family of density functional methods The Journal of Chemical Physics · American Institute of Physics · 1993 10.1063/1.464906
  12. Efficiency of ab-initio total energy calculations for metals and semiconductors using a plane-wave basis set Computational Materials Science · Elsevier BV · 1996 10.1016/0927-0256(96)00008-0
  13. A unified formulation of the constant temperature molecular dynamics methods The Journal of Chemical Physics · American Institute of Physics · 1984 10.1063/1.447334
  14. Density functional calculations on first-row transition metals The Journal of Chemical Physics · American Institute of Physics · 1994 10.1063/1.468265
  15. Development of the Colle-Salvetti correlation-energy formula into a functional of the electron density Physical review. B, Condensed matter · American Physical Society · 1988 10.1103/physrevb.37.785
  16. Generalized Neural-Network Representation of High-Dimensional Potential-Energy Surfaces Physical Review Letters · American Physical Society · 2007 10.1103/physrevlett.98.146401
  17. Inhomogeneous Electron Gas Physical Review · American Institute of Physics · 1964 10.1103/physrev.136.b864
  18. Embedded-atom method: Derivation and application to impurities, surfaces, and other defects in metals Physical review. B, Condensed matter · American Physical Society · 1984 10.1103/physrevb.29.6443
  19. The electronic structure of some diatomic molecules Transactions of the Faraday Society · Royal Society of Chemistry · 1929 10.1039/tf9292500668
  20. Comment on “Generalized Gradient Approximation Made Simple” Physical Review Letters · American Physical Society · 1998 10.1103/physrevlett.80.890
  21. Canonical sampling through velocity rescaling The Journal of Chemical Physics · American Institute of Physics · 2007 10.1063/1.2408420
  22. Efficient iterative schemes for<i>ab initio</i>total-energy calculations using a plane-wave basis set Physical review. B, Condensed matter · American Physical Society · 1996 10.1103/physrevb.54.11169
  23. Gaussian Approximation Potentials: The Accuracy of Quantum Mechanics, without the Electrons Physical Review Letters · American Physical Society · 2010 10.1103/physrevlett.104.136403
  24. High-dimensional neural-network potentials for multicomponent systems: Applications to zinc oxide Physical Review B · American Physical Society · 2011 10.1103/physrevb.83.153101
  25. Density-functional exchange-energy approximation with correct asymptotic behavior Physical review. A, General physics · American Institute of Physics · 1988 10.1103/physreva.38.3098
  26. A consistent and accurate<i>ab initio</i>parametrization of density functional dispersion correction (DFT-D) for the 94 elements H-Pu The Journal of Chemical Physics · American Institute of Physics · 2010 10.1063/1.3382344
  27. XCrySDen—a new program for displaying crystalline structures and electron densities Journal of Molecular Graphics and Modelling · Elsevier BV · 1999 10.1016/s1093-3263(99)00028-5
  28. An efficient newton‐like method for molecular mechanics energy minimization of large molecules Journal of Computational Chemistry · Wiley · 1987 10.1002/jcc.540080710
  29. Neural network potentials for metals and oxides – First applications to copper clusters at zinc oxide physica status solidi (b) · Wiley · 2012 10.1002/pssb.201248370
  30. DL_POLY_3: new dimensions in molecular dynamics simulations via massive parallelism Journal of Materials Chemistry · Royal Society of Chemistry · 2006 10.1039/b517931a
  31. An implementation of artificial neural-network potentials for atomistic materials simulations: Performance for TiO2 Computational Materials Science · Elsevier BV · 2016 10.1016/j.commatsci.2015.11.047
  32. Self-Consistent Equations Including Exchange and Correlation Effects Physical Review · American Institute of Physics · 1965 10.1103/physrev.140.a1133
  33. Elucidating the Nature of the Active Phase in Copper/Ceria Catalysts for CO Oxidation ACS Catalysis · American Chemical Society · 2016 10.1021/acscatal.5b02666
  34. Density functional theory: Its origins, rise to prominence, and future Reviews of Modern Physics · American Physical Society · 2015 10.1103/revmodphys.87.897
  35. High-dimensional neural network potentials for metal surfaces: A prototype study for copper Physical Review B · American Physical Society · 2012 10.1103/physrevb.85.045439
  36. SNAP: Automated Generation of Quantum-Accurate Interatomic Potentials. Journal of Computational Physics · Elsevier BV · 2014
  37. Computer "Experiments" on Classical Fluids. I. Thermodynamical Properties of Lennard-Jones Molecules Physical Review · American Institute of Physics · 1967 10.1103/physrev.159.98
  38. Understanding the Composition and Activity of Electrocatalytic Nanoalloys in Aqueous Solvents: A Combination of DFT and Accurate Neural Network Potentials Nano Letters · American Chemical Society · 2014 10.1021/nl5005674
  39. Revised Damping Parameters for the D3 Dispersion Correction to Density Functional Theory The Journal of Physical Chemistry Letters · American Chemical Society · 2016 10.1021/acs.jpclett.6b00780
  40. How van der Waals interactions determine the unique properties of water Proceedings of the National Academy of Sciences · National Academy of Sciences · 2016 10.1073/pnas.1602375113
  41. Neural network molecular dynamics simulations of solid–liquid interfaces: water at low-index copper surfaces Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2016 10.1039/c6cp05711j
  42. ANI-1: an extensible neural network potential with DFT accuracy at force field computational cost Chemical Science · Royal Society of Chemistry · 2017 10.1039/c6sc05720a
  43. Quantum Dynamics and Spectroscopy of Ab Initio Liquid Water: The Interplay of Nuclear and Electronic Quantum Effects The Journal of Physical Chemistry Letters · American Chemical Society · 2017 10.1021/acs.jpclett.7b00391
  44. A Robust and Accurate Tight-Binding Quantum Chemical Method for Structures, Vibrational Frequencies, and Noncovalent Interactions of Large Molecular Systems Parametrized for All spd-Block Elements (<i>Z</i> = 1–86) Journal of Chemical Theory and Computation · American Chemical Society · 2017 10.1021/acs.jctc.7b00118
  45. Spectral neighbor analysis method for automated generation of quantum-accurate interatomic potentials Journal of Computational Physics · Elsevier BV · 2014 10.1016/j.jcp.2014.12.018
  46. Efficient and accurate machine-learning interpolation of atomic energies in compositions with many species Physical review. B./Physical review. B · American Physical Society · 2017 10.1103/physrevb.96.014112
  47. Combining configurational energies and forces for molecular force field optimization The Journal of Chemical Physics · American Institute of Physics · 2017 10.1063/1.4986079
  48. First Principles Neural Network Potentials for Reactive Simulations of Large Molecular and Condensed Systems Angewandte Chemie International Edition · Wiley · 2017 10.1002/anie.201703114
  49. Electronic-Structure Origin of Cation Disorder in Transition-Metal Oxides Physical Review Letters · American Physical Society · 2017 10.1103/physrevlett.119.176402
  50. The Interplay of Structure and Dynamics in the Raman Spectrum of Liquid Water over the Full Frequency and Temperature Range The Journal of Physical Chemistry Letters · American Chemical Society · 2018 10.1021/acs.jpclett.8b00133
  51. Study of Li atom diffusion in amorphous Li3PO4 with neural network potential The Journal of Chemical Physics · American Institute of Physics · 2017 10.1063/1.4997242
  52. Constructing first-principles phase diagrams of amorphous Li<i>x</i>Si using machine-learning-assisted sampling with an evolutionary algorithm The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5017661
  53. Metastable Structures in Cluster Catalysis from First-Principles: Structural Ensemble in Reaction Conditions and Metastability Triggered Reactivity Journal of the American Chemical Society · American Chemical Society · 2018 10.1021/jacs.7b11239
  54. Maximally resolved anharmonic OH vibrational spectrum of the water/ZnO(101¯0) interface from a high-dimensional neural network potential The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5012980
  55. Developing an interatomic potential for martensitic phase transformations in zirconium by machine learning npj Computational Materials · Nature Portfolio · 2018 10.1038/s41524-018-0103-x
  56. Structural and Compositional Factors That Control the Li-Ion Conductivity in LiPON Electrolytes Chemistry of Materials · American Chemical Society · 2018 10.1021/acs.chemmater.8b02812
  57. Density functional theory based neural network force fields from energy decompositions Physical review. B./Physical review. B · American Physical Society · 2019 10.1103/physrevb.99.064103
  58. GFN2-xTB—An Accurate and Broadly Parametrized Self-Consistent Tight-Binding Quantum Chemical Method with Multipole Electrostatics and Density-Dependent Dispersion Contributions Journal of Chemical Theory and Computation · American Chemical Society · 2019 10.1021/acs.jctc.8b01176
  59. Machine-learned multi-system surrogate models for materials prediction npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0189-9
  60. Parallel Multistream Training of High-Dimensional Neural Network Potentials Journal of Chemical Theory and Computation · American Chemical Society · 2019 10.1021/acs.jctc.8b01092
  61. Impact of lattice relaxations on phase transitions in a high-entropy alloy studied by machine-learning potentials npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0195-y
  62. Machine learning for the modeling of interfaces in energy storage and conversion materials Journal of Physics Energy · IOP Publishing · 2019 10.1088/2515-7655/ab2060
  63. From Molecular Fragments to the Bulk: Development of a Neural Network Potential for MOF-5 Journal of Chemical Theory and Computation · American Chemical Society · 2019 10.1021/acs.jctc.8b01288
  64. Approaching coupled cluster accuracy with a general-purpose neural network potential through transfer learning Nature Communications · Nature Portfolio · 2019 10.1038/s41467-019-10827-4
  65. An electrostatic spectral neighbor analysis potential for lithium nitride npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0212-1
  66. Strongly Constrained and Appropriately Normed Semilocal Density Functional Physical Review Letters · American Physical Society · 2015 10.1103/physrevlett.115.036402
  67. Recent advances and applications of machine learning in solid-state materials science npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0221-0
  68. Data‐Driven Materials Science: Status, Challenges, and Perspectives Advanced Science · Wiley · 2019 10.1002/advs.201900808
  69. Low-Temperature Kinetic Isotope Effects in CH<sub>3</sub>OH + H → CH<sub>2</sub>OH + H<sub>2</sub> Shed Light on the Deuteration of Methanol in Space The Journal of Physical Chemistry A · American Chemical Society · 2019 10.1021/acs.jpca.9b07013
  70. Hiding in the Crowd: Spectral Signatures of Overcoordinated Hydrogen-Bond Environments The Journal of Physical Chemistry Letters · American Chemical Society · 2019 10.1021/acs.jpclett.9b01781
  71. Automated Fitting of Neural Network Potentials at Coupled Cluster Accuracy: Protonated Water Clusters as Testing Ground Journal of Chemical Theory and Computation · American Chemical Society · 2019 10.1021/acs.jctc.9b00805
  72. Potential energy surface interpolation with neural networks for instanton rate calculations The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5015950
  73. Perspective on density functional theory The Journal of Chemical Physics · American Institute of Physics · 2012 10.1063/1.4704546
  74. Data‐Driven Materials Science: Status, Challenges, and Perspectives Advanced Science · Wiley · 2019 10.1002/advs.201900808
  75. Turbomole Wiley Interdisciplinary Reviews Computational Molecular Science · Wiley · 2013 10.1002/wcms.1162
  76. Efficient BackProp Lecture notes in computer science · Springer Science+Business Media · 1998 10.1007/3-540-49430-8_2
  77. Reactions on Surfaces with Neural Networks Deposit Once (Technische Universität Berlin) · 2001 10.14279/depositonce-295
  78. First principles phonon calculations in materials science Scripta Materialia · Elsevier BV · 2015 10.1016/j.scriptamat.2015.07.021