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

Performance of two complementary machine-learned potentials in modelling chemically complex systems

관련 산업용 섬유 · (10) 아라미드

기본 정보

저자
  1. Konstantin Gubaev — Institute for Materials Science, University of Stuttgart, Pfaffenwaldring 55, 70569, Stuttgart, Germany|||Institute for Materials Science, University of Stuttgart, Stuttgart, Germany
  2. Viktor Zaverkin — Institute for Theoretical Chemistry, University of Stuttgart, Pfaffenwaldring 55, 70569, Stuttgart, Germany|||NEC Laboratories Europe GmbH, Heidelberg, Germany|||Institute for Theoretical Chemistry, University of Stuttgart, Stuttgart, Germany
  3. Prashanth Srinivasan — Institute for Materials Science, University of Stuttgart, Pfaffenwaldring 55, 70569, Stuttgart, Germany|||Institute for Materials Science, University of Stuttgart, Stuttgart, Germany
  4. Andrew Ian Duff — Scientific Computing Department, STFC Daresbury Laboratory, Warrington, WA4 4AD, UK|||Scientific Computing Department, STFC Daresbury Laboratory, Warrington, UK
  5. Johannes Kästner — Institute for Theoretical Chemistry, University of Stuttgart, Pfaffenwaldring 55, 70569, Stuttgart, Germany|||Institute for Theoretical Chemistry, University of Stuttgart, Stuttgart, Germany
  6. Blazej Grabowski — Institute for Materials Science, University of Stuttgart, Pfaffenwaldring 55, 70569, Stuttgart, Germany|||Institute for Materials Science, University of Stuttgart, Stuttgart, Germany
DOI
10.1038/s41524-023-01073-w
저널
npj Computational Materials
발행년도
2023
발행기관
Nature Portfolio
피인용수
25
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41524-023-01073-w
토픽
Electrocatalysts for Energy Conversion
OpenAlex ID
W4385252615

평가 내용

관련도
관련
사업분야
산업용 섬유 · (10) 아라미드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 아라미드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract Chemically complex multicomponent alloys possess exceptional properties derived from an inexhaustible compositional space. The complexity however makes interatomic potential development challenging. We explore two complementary machine-learned potentials—the moment tensor potential (MTP) and the Gaussian moment neural network (GM-NN)—in simultaneously describing configurational and vibrational degrees of freedom in the Ta-V-Cr-W alloy family. Both models are equally accurate with excellent performance evaluated against density-functional-theory. They achieve root-mean-square-errors (RMSEs) in energies of less than a few meV/atom across 0 K ordered and high-temperature disordered configurations included in the training. Even for compositions not in training, relative energy RMSEs at high temperatures are within a few meV/atom. High-temperature molecular dynamics forces have similarly small RMSEs of about 0.15 eV/Å for the disordered quaternary included in, and ternaries not part of training. MTPs achieve faster convergence with training size; GM-NNs are faster in execution. Active learning is partially beneficial and should be complemented with conventional human-based training set generation.

본문 87,271자

본문 펼치기
/ pj p ARTICLE OPEN # Performance of two complementary machine-learned potentials in modelling chemically complex systems Konstantin Gubaev [1,5](http://orcid.org/0000-0003-2612-8515) ✉, Viktor Zaverkin [2,4,5](http://orcid.org/0000-0001-9940-8548) ✉, Prashanth Srinivasan [1,](http://orcid.org/0000-0002-9199-4340) Andrew Ian Duff [3,](http://orcid.org/0000-0002-5073-4112) Johannes Kästner [2](http://orcid.org/0000-0001-6178-7669) and Blazej Grabowski 1 Chemically complex multicomponent alloys possess exceptional properties derived from an inexhaustible compositional space. The complexity however makes interatomic potential development challenging. We explore two complementary machine-learned potentials—the moment tensor potential (MTP) and the Gaussian moment neural network (GM-NN)—in simultaneously describing configurational and vibrational degrees of freedom in the Ta-V-Cr-W alloy family. Both models are equally accurate with excellent performance evaluated against density-functional-theory. They achieve root-mean-square-errors (RMSEs) in energies of less than a few meV/atom across 0 K ordered and high-temperature disordered configurations included in the training. Even for compositions not in training, relative energy RMSEs at high temperatures are within a few meV/atom. High-temperature molecular dynamics forces have similarly small RMSEs of about 0.15 eV/Å for the disordered quaternary included in, and ternaries not part of training. MTPs achieve faster convergence with training size; GM-NNs are faster in execution. Active learning is partially beneficial and should <mark>be</mark> <mark>complemented</mark> <mark>with</mark> <mark>conventional</mark> <mark>human-based</mark> <mark>training</mark> <mark>set</mark> <mark>generation.</mark> <mark>npj</mark> <mark>Computational</mark> <mark>Materials</mark> <mark>(2023)9:129</mark> <mark>;</mark> <mark>[https://doi.org/10.1038/s41524-023-01073-w](https://doi.org/10.1038/s41524-023-01073-w)</mark> INTRODUCTION Alloys consisting of multiple principal components have attracted considerable attention over the last decade <sup>1–8</sup> . Apart from the conventional subsystems like binary and ternary alloys, one can also access the interior regions of the highly complex compositional space of such alloys, revealing a multitude of untapped compositions. High entropy alloys (HEAs) are one such class of alloys consisting of at least four to five elements in near-equal proportions. They are known for remarkable properties such as high tensile and yield strength, high ductility, and fracture toughness <sup>9,10</sup> . A high mixing entropy stabilises the disordered phase of a HEA wherein elements randomly occupy sites of the simple lattices, i.e., bcc <sup>11,12</sup>, fcc <sup>7,13</sup>, or hcp <sup>14</sup> . However, this is the predominant effect only at high temperatures, accompanied by large vibrations in the system. At lower temperatures, there is a possibility of segregation of individual elements, short-range ordering, and phase decomposition <sup>15–19</sup> . Therefore, to fully analyse the thermodynamics of the alloy across the entire temperature range, both vibrational and configurational entropy contributions are critical, and one needs to study both the high-temperature disordered phase and the low-temperature segregated sub-phases. In addition, the properties of a HEA cannot be deduced by simply performing a linear combination of properties of individual elements and subsystems, as the interaction between the elements leads to unusual behaviour. Computational techniques can assist in a rapid exploration of complex compositional spaces. However, the accuracy of results relies critically on the computational method. Running ab initio molecular dynamics (AIMD) simulations using density-functional theory (DFT) to obtain accurate results is computationally demanding. In particular, studying configurations with shortrange order requires much larger length scales making DFT prohibitively expensive. Atomistic simulations employing interatomic potentials are a possible alternative. Most potentials assume the locality of interatomic interactions, facilitating much faster computation and better scaling with system size than DFT. The key challenge lies in developing accurate and robust interatomic potentials. In particular, simultaneously accounting for both the vibrational and configurational degrees of freedom is extremely difficult. Conventional potentials, e.g., based on the embedded-atom method (EAM) <sup>20</sup> or the modified embeddedatom method (MEAM) <sup>21</sup>, are restricted to simple fixed analytical forms for the energy with a small number of parameters. The sparsity of the respective parameter space does not provide enough flexibility to model complex systems. In this regard, state-of-the-art machine learning (ML)-based models have a more systematic approach toward the parameterization of interatomic interactions. The atomic environment around a central atom is encoded by a local representation, which depends on vibrational (coordinates) and configurational (atomic types) degrees of freedom. Typically, local representations are composed of a radial part (depending only on interatomic distances) and an angular part (depending on the angles). The representations are invariant with respect to atomic permutations, translations and rotations of physical space and form a set of functions that describe the local atomic arrangement. This set of functions provides suitable input to an ML model. The mapping from this input to the energy is determined by the values of model parameters, which are obtained by training on DFT energies, atomic forces, and stresses. ML-based models can also robustly estimate the uncertainty in their predicted energies and forces <sup>22–28</sup> . Such estimations are used to develop active learning algorithms to select the data most informative to the model. The data are obtained from the 1Institute for Materials Science, University of Stuttgart, Pfaffenwaldring 55, 70569 Stuttgart, Germany. 2Institute for Theoretical Chemistry, University of Stuttgart, Pfaffenwaldring 55, 70569 Stuttgart, Germany. 3Scientific Computing Department, STFC Daresbury Laboratory, Warrington WA4 4AD, UK. 4Present address: NEC Laboratories Europe GmbH, Kurfürsten-Anlage 36, 69115 Heidelberg, Germany. <sup>5</sup> These authors contributed equally: Konstantin Gubaev, Viktor Zaverkin. <sup>✉</sup> email: [yamir4eg@gmail.com;](mailto:yamir4eg@gmail.com) [zaverkin@theochem.uni-stuttgart.de](mailto:zaverkin@theochem.uni-stuttgart.de) 2 K. Gubaev et al. configurational and vibrational spaces sampled during, e.g., a molecular dynamics (MD) simulation using the existing model, either beforehand or in an on-the-fly fashion. The model is then retrained with the updated training data set, which includes DFT values of these sampled configurations. Hence, in addition to their unique way of accurately describing a complex multidimensional phase space with a certain number of model parameters, the learning-on-the-fly feature allows ML-based models to be a more robust and reliable approximation of the DFT potential energy surface. Several ML-based models have been proposed in the literature, each with its own representation of the atomic environment <sup>29–32</sup> . In the present work, we analyse two complementary ML-based approaches, the moment tensor potential (MTP) <sup>23,33</sup> and the Gaussian moment neural network (GM-NN) <sup>34,35</sup> . MTPs have been developed for thermodynamic property prediction up to the melting point of a single disordered phase of a TaVCrW HEA <sup>36</sup> . MTPs have also been built to study partial compositional spaces of a TiZrHfTax HEA <sup>37</sup> . GM-NNs, on the other hand, have so far been developed for a different class of chemical structures. For instance, they were used to study the dynamics of N and H2 on water and CO ice surfaces, respectively <sup>38–40</sup>, and the dynamic behaviour of magnetic anisotropy tensors of ½CoðN2S2O4C8H10Þ2� <sup>2�</sup>, ½FeðtpaÞ <sup>Ph</sup> ��, and ½NiðHIM2 � pyÞ2NO3�þ molecular crystals <sup>41</sup> . However, they have not been tested for metallic, let alone, complex HEA systems. Here, we develop and compare an MTP and a GM-NN potential for the Ta-V-Cr-W HEA family, and assess their performance in modelling chemically-complex multicomponent systems. We include the vibrational and configurational degrees of freedom of the system in the potential development. We do so by attempting to predict energies and forces in Ta-V-Cr-W subsystems under two scenarios: (i) the 0 K energies and forces in binaries, ternaries and quaternaries; (ii) near-melting temperature energies and forces in 3- and 4-component disordered alloys. The subsystems are categorized into two groups—the in-distribution, and the out-of-distribution subsystems, where the former includes those subsystems used for training, and the latter includes nonequiatomic ternaries that are not a part of the training. In addition to the energy and force estimates, we assess the quality of the potentials by also computing thermodynamic properties. The MTP and the GM-NN models are equally accurate in describing the Ta-V-Cr-W HEA family. The 0 K energies and forces of the in-distribution subsystems are predicted extremely accurately, while the RMS errors are slightly larger for the outof-distribution subsystems. The high-temperature configurational space of the disordered quaternary (part of the in-distribution subsystems) is accurately captured to within 0.18 eV/Å RMS error in forces. Likewise, even non-equiatomic ternaries (part of the outof-distribution subsystems) are accurately predicted, with RMS errors in forces of less than 0.16 eV/Å. While the absolute energies of the out-of-distribution subsystems are not predicted well, the relative energies—which are relevant for thermodynamics properties—are accurate to within 5.5 meV/atom. Classical EAM/MEAM potentials are unsuitable for such a complex phase space and have errors one to two orders higher in magnitude. Finally, we investigate the role of active learning strategies applied to HEAs and find that human-based inspection is crucial in this specific case. RESULTS Features of the two ML models Figure 1 is a schematic illustration of the similarities and differences between the MTP and the GM-NN approaches. MTPs and GM-NNs assume locality of interatomic interactions. The total energy of an atomic system is split into the contributions of individual atoms. For every atom, only the interactions within a cutoff Rcut are explicitly considered, as shown in Fig. 1a. Since the total energies (written as a sum of site energies for all atoms) are trained on DFT systems which include long-range effects, the interactions beyond Rcut get implicitly included during the fitting. The building blocks of the MTPs and GM-NNs are the atomic environment descriptors, shown in Fig. 1b. MTPs and GM-NNs encode the structural and chemical composition of a local atomic environment by utilizing symmetry preserving representations motivated by invariant polynomials and Cartesian Gaussian-type orbitals (GTOs) <sup>42</sup>, respectively. Interestingly, both approaches lead to a common representation invariant to translations and permutations but equivariant to rotations. Descriptors, invariant to rotations, are obtained by computing tensor contractions and eliminating possible linear dependencies; see Fig. 1c. For MTP, the selected contractions are restricted to the ones of a particular level levmax <sup>33</sup>, providing restriction on both radial and angular parts and thus defining the basis in which the atomic energy is expanded. Larger values of levmax account for high-order tensors participating in contractions, thereby producing more descriptors and increasing the fitting capabilities of the potential. In fact, the EAM and MEAM potentials can be viewed as reduced MTP potentials with levmax ¼ 0 and levmax ¼ 2, respectively. For GM-NN, linear dependencies are eliminated by identifying unique generating graphs corresponding to the tensor contractions <sup>43</sup> and taking into account the permutational symmetry of the respective tensors or, equivalently, nodes on the graph <sup>34,35</sup> . The intermediate equivariant representation relates MTP and GM-NN to the recently proposed equivariant message passing neural network (NN) architectures <sup>44,45</sup> . The invariant features of the atomic environments computed within both approaches are then used as an input to linear regression or a neural network-based model for MTP and GM-NN, respectively, as illustrated in Fig. 1d. The GM-NN has ~500 times more parameters as it utilizes artificial NNs to map the structure and the respective properties. Finally, the models are trained on DFT data (energies, atomic forces and stresses) by minimizing a specified loss function. The reader is referred to the ‘Methods’ section for more details about the construction of the ML-based models, and the relation of the MTP and GM-NN models to other ML potentials. From configurations generated by the trained model, new samples are iteratively selected for active learning based on uncertainty quantification. In the MTP and GM-NN approach, uncertainty measures are based on gradient feature maps, i.e., ∇θE with θ being the model’s parameters. In the simplest case, ∇θE would correspond to input features of the linear regression in Fig. 1d. Specifically, for MTP, the uncertainty measure is based on the maximum volume (MaxVol) principle for the matrix of the basis function derivatives with respect to the fitting coefficients <sup>46</sup> . The actual measure of the uncertainty is the determinant of the corresponding MaxVol submatrix. For GM-NN, the uncertainty is computed by employing gradient features of a trained NN (with θ being the weights and biases) <sup>26–28</sup>, corresponding to the finitewidth neural tangent kernel <sup>47</sup> . In this work, the largest cluster maximum distance (LCMD) method <sup>28</sup> for selecting new structures and last-layer gradient features (FEAT(LL)) to compute the similarity between structures and the model’s uncertainty from it is used. Other active learning approaches are also possible <sup>27,28</sup> . Evaluation strategy The objective of the ML-potentials is to capture both the vibrational and configurational degrees of freedom at near-DFT accuracy. The TaVCrW HEA stabilizes as a fully disordered structure at high temperature. As the temperature decreases, there is shortrange ordering in the alloy, followed by segregation of individual elements or phases <sup>18</sup> . Hence, a robust ML model that accurately K. Gubaev et al. Fig. 1 Schematic representation of the moment tensor potential (MTP) and the Gaussian moment neural network (GM-NN) approaches. a Both methods rely on the assumption of locality of interatomic interactions but implicitly include interactions beyond the cutoff radius Rcut. b As an intermediate step in constructing invariant features, both methods obtain a common representation equivariant to rotations. c Invariant features are obtained by computing tensor contractions and eliminating linear dependencies specific to the considered approach. d Utilizing linear regression or neural networks, which take invariant features as an input, mapping from a structure to the respective energy is modelled. 3 4 K. Gubaev et al. Fig. 2 RMS errors in predicted energies and forces for the MTP model evaluated on the test data for different in-distribution subsystems of Ta-V-Cr-W. Energy RMS errors in meV/atom are shown in bold, while the atomic force RMS errors in eV/Å are in grey. The numbers with arrows indicate the RMS errors for the energy per atom for strained binary structures. predicts the complete HEA behaviour should be able to predict both the high-temperature disordered phase, and the lowtemperature ordered phases. Hence, we choose structures that represent both these temperature regimes for training and evaluation of the ML potentials. The training data includes 0 K energies and forces of ordered phases—binaries, ternaries and quaternaries. In addition, we also include configurations of strained binaries and of the disordered TaVCrW alloy at 2500 K. These subsystems that form the training set are classified as in-distribution subsystems. To further investigate the generalization capabilities of the MLpotentials, we also evaluate their performance on subsystems from different parts of the compositional space of the Ta-V-Cr-W family that do not form a part of the training set. For this, we choose a set of non-equiatomic ternaries, and evaluate both the 0 K and high-temperature energy and force predictions of the MLpotentials. These subsystems are classified as out-of-distribution subsystems. The structures in the training and validation data set of the in-distribution and out-of-distribution subsystems are detailed in the ‘Methods’ section. Accuracy for the in-distribution subsystems Figure 2 shows the root-mean-square (RMS) errors in the predicted energies and forces for all in-distribution subsystems using the MTP. The RMS error-tetrahedra for the GM-NN potential and the EAM/MEAM potentials are compiled in the Supplementary Information. In addition to the 0 K subsystems (binaries, ternaries, quaternary), Fig. 2 also shows errors for the 0 K strained binaries and the 2500 K disordered HEA, all of which form the indistribution subsystems. The ‘Overall errors’ correspond to the RMS errors on all configurations put together. The results are additionally compiled in Table 1. To guarantee reliable statistics, all values refer to averages over ten separately fitted MTPs and GMNNs. From Fig. 2 and Table 1 (and Fig. S1 in the Supplementary Information), we see that both ML-based models MTP and GM-NN are almost equally accurate and reproduce DFT values extremely well for the in-distribution subsystems. For the 0 K subsystems, the RMS errors in energies and forces range from 1–4 meV/atom and 0.02–0.06 eV/Å, respectively, and for the 2500 K disordered structure, the RMS errors are around 2.5 meV/atom and 0.16 eV/Å, respectively. The strained binary structures are also predicted to within 4.5 meV/atom error in energy, with some binaries (CrW, TaCr, and VW) being predicted more accurately than the others, irrespective of the model chosen. The MTP is marginally better than the GM-NN in predicting the 2500 K structure (i.e., the vibrational degrees of freedom). The GM-NN predicts the 0 K structures marginally better (i.e., the configurational degrees of freedom). Figure 3 shows the correlation between the predicted forces for the 0 K and the 2500 K TaVCrW structures. The 0 K data in the training and validation data set include a combination of relaxed and unrelaxed structures, and they span a broad range of force values. For example, as seen in Fig. 3, the forces range from −2 to 2 eV/Å for the TaVCrW 0 K structures. For the 2500 K MD structure, they range from −10.5 to 10.5 eV/Å. Irrespective of this, there is an excellent agreement in the forces predicted by the ML-based models for all structures of the in-distribution subsystems. The overall accuracy achieved by the MTP and the GM-NN with respect to the DFT values is remarkable, given the complexity of the configurational phase space (which includes both 0 K subsystems and a 2500 K disordered quaternary). To put it into perspective, Table 1 also shows the RMS errors of an EAM that was fit to a combination of the 2500 K 4-component structure and 0 K subsystems. Both the energy and force errors are one to two orders of magnitude higher, deeming them almost unusable for 5 Table 1. RMS errors in the predicted energies/forces for the individual Ta-V-Cr-W in-distribution subsystems. Subsystem MTP <sup>a</sup> GM-NN <sup>b</sup> EAM <sup>a</sup> TaV 1.94/0.050 1.54/0.029 32.0/0.404 TaCr 3.26/0.057 2.98/0.038 43.6/0.343 TaW 2.72/0.038 2.99/0.025 44.8/0.248 VCr 2.29/0.036 2.82/0.025 44.8/0.270 VW 2.50/0.037 2.00/0.023 21.3/0.292 CrW 4.35/0.041 2.87/0.029 23.4/0.248 TaVCr 2.43/0.054 1.97/0.045 34.1/0.313 TaVW 1.67/0.043 1.70/0.034 39.6/0.321 TaCrW 2.08/0.051 2.19/0.039 23.6/0.327 VCrW 1.37/0.040 1.94/0.031 19.4/0.314 TaVCrW (0 K) 2.09/0.049 2.16/0.037 50.8/0.488 TaVCrW (2500 K) 2.40/0.156 2.67/0.179 59.4/0.521 Overall 2.43/0.054 2.32/0.043 37.14/0.443 Deformed Structures <sup>c</sup> TaV 4.43 3.63 56.8 CrW 1.25 1.04 27.1 TaCr 1.89 0.49 13.3 VW 0.41 0.52 66.1 TaW 3.74 3.11 161.9 VCr 4.29 2.70 283.2 Overall 2.67 1.91 101.4 The results are provided for the MTP, GM-NN, and EAM models. Atomic energies are given in meV/atom, while forces are given in eV/Å. The best training result is written in boldface. aThe results for MTP and EAM are obtained by averaging over ten splits of the original data set, except for the deformed structures. The latter were obtained for all models trained on the whole data set (training + test). bFor GM-NN models, 500 structures were selected randomly from the respective training set to prevent overfitting using the early stopping technique <sup>54</sup> . Thus, GM-NN models were trained on 500 structures less than MTP and EAM. This procedure was repeated ten times for each of the original data splits and resulted in averaging over 100 splits in total. For the deformed structures, the results are averaged over ten splits. cBinary structures are strained along the [100] direction and used as a part of the validation set. For different binaries, the strains are chosen based on certain accommodation rules (see ‘Methods’ section). The strains can vary up to 4.71%. any accurate property prediction. The last column in Fig. 3 shows the force correlation between the EAM-predicted forces and the DFT forces on both 0 K and 2500 K TaVCrW structures. The 0 K forces predicted by the EAM are highly uncorrelated to the DFT values, and the 2500 K forces have a much broader distribution (larger RMS error) compared to the two ML-based models. Heat capacity prediction for the HEA Having shown the remarkable accuracy in energies and forces achievable with the ML-based models for the in-distribution subsystems, we now test their reliability and robustness in predicting thermodynamic properties of the disordered TaVCrW HEA. In particular, we analyse the isobaric heat capacity, Cp(T), up to 2500 K (close to the melting point). The heat capacity is calculated numerically using thermodynamic integration, the details of which are in the ‘Methods’ section. Figure 4 shows the heat capacity curves obtained using the MTP and the GM-NN. The curves are compared to the DFT results from literature <sup>36</sup> . We have removed the electronic part from the full DFT K. Gubaev et al. curve to be able to directly compare to the results predicted by the current potentials. Both the MTP and the GM-NN predict almost the same behaviour of the heat capacity with temperature. The curves are also very close to the full DFT curve up to around 2200 K after which the ML-based curves diverge. The heat capacity, calculated as the second derivative of the Gibbs energy with temperature, is extremely sensitive to small changes in the free energy. Hence, given that only 25% of the training set comprised of disordered quaternary structures (0 K and 2500 K), the accuracy achieved by both the MTP and GM-NN for the heat capacity is outstanding. The curves are also compared to the heat capacity calculated using the EAM in Fig. 4. The EAM that was fitted to the entire training set whose RMS errors were compared in Table 1 was not stable enough to run TI across the entire temperature and volume range. Hence, we have fitted an EAM only to the 2500 K disordered TaVCrW structures to calculate the heat capacity. Even then, the heat capacity calculated by the EAM diverges from the DFT curve after 750 K and is much less accurate. Accuracy for the out-of-distribution subsystems Figure 5 shows the errors in the predicted energies and forces (finite-temperature results at 2000 K and 0 K results) for the out-ofdistribution subsystems (non-equiatomic ternaries on the x-axis) using both the MTP and the GM-NN potential. The first row of plots contains the errors in absolute energies of the various subsystems. It is observed that the prediction of the absolute energies by the ML-based potentials is off by as much as 20 meV/atom in some cases. The out-of-distribution subsystems are not a part of the training set. The ML-potentials—although trained on absolute energies of configurations of the in-distribution subsystems— cannot accurately predict the large, absolute chemical potentials. Hence, we observe these much higher errors in the absolute energies of the out-of-distribution subsystems compared to those from the in-distribution subsystems. However, the temperature dependence of thermodynamic properties such as the heat capacity discussed in the previous section, are numerical functions of energy differences instead of absolute energies. Thus the absolute energy predictions do not serve as a rigorous assessment of the accuracy of the ML-based potentials in predicting thermodynamic properties. In the second row in Fig. 5, we show the respective RMS errors in the relative energy (with respect to the corresponding relaxed structure) of the out-of-distribution subsystems, and find that the errors are less than 5.5 meV/atom. In the third row of Fig. 5, we also show the errors in atomic forces at both 2000 K (left) and 0 K (right). The errors observed in the 2000 K forces are similar to those for the in-distribution systems with values not exceeding 0.16 eV/Å. Accurate prediction of MD trajectories at elevated temperatures can be thus expected for various alloy compositions in the Ta-V-Cr-W family. The errors in the 0 K forces are even smaller, and comparable to the 0 K subsystems in the in-distribution set. An exception is the Cr17W17V66 alloy, where the higher error comes from the distinctly higher absolute value of the force in the corresponding configuration (marked on the top of the plot). Hence, relative force errors are comparable among the different out-of-distribution subsystems. In clear contrast to the ML models, the performance of the EAM on the out-of-distribution subsystems is much worse. The absolute energies are off by 120–200 meV/atom, while even the relative energies are off by 60–80 meV/atom. The RMS error in the forces in the ternaries is similar to the error observed for the TaVCrW quaternary with values ranging from 0.5 to 0.7 eV/Å. Such errors make the EAM unsuitable, even more so, for thermodynamic property predictions of out-of-distribution subsystems. Overall, the performance of the ML-based potentials is equally and remarkably good even for out-of-distribution subsystems. The observed larger errors in the absolute energies could be, for 6 K. Gubaev et al. Fig. 3 Correlation between the predicted forces (by the MTP, the GM-NN and the EAM potential) and the DFT forces in eV/Å for the 0 K and 2500 K structures of the TaVCrW alloy. The colours indicate the relative density as estimated by a kernel density estimator. lines), on the other hand, shows a continuous (nearly linear) decrease in the error on the energies as the size of the training set increases. The final accuracy of the two models is similar. The reason for the faster convergence of the MTP can be attributed to the difference in the inherent nature of the two ML-based models—the relatively simpler formalism of the MTP with ~500 times fewer trainable parameters favoring quicker convergence versus the enhanced non-linear NN formalism of the GM-NN model making it continuously more accurate with increasing training data. Indeed, the MTP reaches convergence in the energy already with a seemingly very small training set size of 128 structures. However, one should note that each structure contains several tens to hundreds of atoms with many distinct local chemical environments. The total number of atoms in each training set is tabulated in Table 2. For example, the MTP trained on 128-atom structures constitutes around 11,000 atoms. Hence, even with 128 structures, the MTP is trained on a sufficiently large number of atomic neighbourhoods, allowing it to make accurate predictions on every part of the configurational space. Fig. 4 Isobaric heat capacity as a function of temperature computed by employing the MTP, the GM-NN, and the EAM interatomic potentials. The reference DFT values (without the electronic contribution) are taken from literature <sup>36</sup> . example, corrected in an additional step by single static DFT calculations at the respective compositions. Active learning applied to the TaVCrW HEA Figure 6 compares the learning curves obtained by training the MTP and the GM-NN models on randomly and actively selected data. Figure 6a, b shows the RMS and MAX errors in energies. It can be seen that the MTP (orange lines) needs significantly fewer data to reach its final accuracy in the energies. The GM-NN model (blue Comparison of the dashed and solid lines in Fig. 6a, b reveals that there is no improvement in the RMS errors in energies using the active learning approach for neither of the two ML models. Since the random data selection was made across the entire diverse configurational space (with data chosen from all 0 K subsystems and MD), it is already sufficient to reach good energy accuracy for the Ta-V-Cr-W alloy family. An advanced active learning approach is superfluous for obtaining good energies. Figure 6c, d show the errors in forces with increasing training set size. Once again, the MTP converges faster to its minimum RMS error in the forces in comparison to the GM-NN which has a more gradual decrease. The reason for this is the same as above, i.e., the simpler formalism of the MTP. However, unlike in the energies, here we notice a difference in convergence in the RMS error between the random and actively learnt MTP (dashed and solid orange lines respectively). The MTP trained on actively learnt training sets converges faster than the MTP trained on randomly selected training data. There is no such clear difference seen in the GM-NN curves (dashed and solid blue lines). To explain the improvement of K. Gubaev et al. Fig. 5 Errors in predicted energies and atomic forces for finite-temperature (2000 K) and 0 K out-of-distribution non-equiatomic ternaries. For the 2000 K data, twelve structures have been sampled for each system. Thus, ΔE and ΔFij denote the respective RMS errors. For the relative energy, we used the first structure in each subsystem as a reference. Therefore, RMS errors ΔErel are evaluated for the remaining eleven structures. For the 0 K test, we employed a single configuration such that ΔE denotes the mean-absolute error, while ΔFij denotes the RMS error. 7 active learning over a random selection for the MTP and the absence of such an improvement for the GM-NN, we track the number of 2500 K configurations in the actively learnt training set. Table 2 shows the fraction of 2500 K configurations, given in brackets, at different stages of the MTP and GM-NN active learning process. The active learning scheme of the MTP selects a higher fraction of 2500 K configurations in comparison to the GM-NN model, especially as the training set size increases. For example, for the MTP trained on 256 structures, 34% of the training set comprises of 2500 K configurations. This is reflected in the considerably better performance of the actively learnt MTP in predicting atomic forces at small training set sizes. In contrast, the active learning approach employed by GM-NN selects roughly the same amount of 2500 K data across all active learning steps, but a much smaller fraction than the corresponding MTP scheme. The GM-NN method constrains representativity of the selected batch, i.e. takes data distribution into account, and almost 80% of the total training set comprises of 0 K data. Thus, there is only a very small decrease in the RMS error in forces using the GM-NN model coming from the actively learnt training set. In conclusion, active learning might be beneficial as long as multiple structures are provided before labelling, i.e., computing DFT energies and forces. One can only take advantage of active learning in combination with a conventional human-based training set generation. Training and inference times The time taken to train an ML-based model and to perform MD calculations with it depends on the number of model parameters. In the case of the GM-NN potential, this number is dictated by the neural network representation, whereas for an MTP the contractions are decisive (check ‘Methods’ section for details). To elucidate the training and inference times, we compare five GM-NNs and five MTPs built with different numbers of model parameters. The GM-NNs are designated as: 593-512-512-1, 593128-128-1, 593-32-32-1, 360-512-512-1, and 910-512-512-1. Here the first number represents the number of input features, the following two numbers represent the number of hidden neurons, while the 1 in the end stands for the single output neuron (which corresponds to the energy of the system). For the MTP, we compare potentials with levels 16, 20, 24, 26, and 28 (see Equation (6)) resulting in 92, 288, 864, 1464, and 2445 descriptors, respectively. Table 3 lists the training times for the different MTP and GM-NN models fitted to the in-distribution subsystems. Naturally, the time taken to train the MTP increases with the level as the number of parameters increase. Similarly, the time taken to fit a GM-NN potential increases with the number of input features, and with the number of neurons. The lev24 MTP—which is used eventually for the thermodynamic properties—takes eight hours to reach convergence in 400 iterations of the Broyden-Fletcher-GoldfarbShanno (BFGS) algorithm <sup>48</sup> . The corresponding GM-NN model takes four hours for 1000 epochs. In addition, in every epoch, the GM-NN evaluates 500 other configurations to avoid overfitting. Figure 7 shows the inference time of the ML-models in comparison to the classical potentials and in relation to the achievable accuracy. In general, the MTPs (orange circles) are faster than the GM-NN potentials (blue triangles). However, the 8 K. Gubaev et al. Fig. 6 Learning curves for MTP and GM-NN models. Shaded areas denote the standard error on the mean evaluated over 10 or 100 independent runs for MTP and GM-NN, respectively. An additional factor of ten appears for GM-NN as for each of the ten data splits, another ten splits for early stopping have been performed. The root-mean-squared (RMS) and maximal (MAX) errors for energies are shown in (a) and (b) respectively in meV/atom; The RMS and MAX errors for atomic force are shown in (c) and (d) respectively in eV/Å. Table 2. The average number of atoms in the differently sized training sets during active learning (Ntrain = number of training structures). Ntrain MTP GM-NN 64 5845 (0.21) 3101 (0.17) 128 10784 (0.18) 6427 (0.16) 256 20322 (0.34) 12222 (0.17) 512 45371 (0.53) 23601 (0.19) 1024 99549 (0.66) 46249 (0.19) The fraction of 2500 K MD structures contained in the resulting training set are shown in brackets. GM-NNs have been designed to run on graphical processing units (GPUs), which makes them faster (blue stars) than the higher-level MTPs. More specifically, the MTP used in this work for the HEA modelling—the lev24 MTP—is faster by a factor of 2.5 than the corresponding GM-NN—(593-512-512-1)—on the same CPU. However, on an NVIDIA GeForce RTX 3090 Ti 12GB GPU, the GM-NN is 2.5 times faster than the lev24 MTP. It can also be observed that the inference time of an MTP gradually increases as the level of the MTP increases, although the accuracy (normalized error) saturates to a minimum after lev24. On the other hand, all GM-NN models are comparably computationally efficient on a GPU, and only minor differences in inference times have been observed on CPU nodes. The accuracy of GM-NN deteriorates when decreasing the number of hidden neurons or input features. For example, decreasing the number of neurons by a factor of 16 leads to similar results as decreasing the number of features by a factor of 1.6. Thus, the employed representation affects the final result more than the network size. Obviously, the ML-based models are slower than conventional potentials such as the EAM and the MEAM model. For example, the lev24 MTP is slower by a factor of 35 in comparison to the EAM. However, the speed of the classical potentials is accompanied by an extreme inaccuracy compared to the ML potentials, at least an order of magnitude in the normalized error. DISCUSSION We have developed two ML-based interatomic potentials—an MTP and a GM-NN—that can accurately capture the atomic interactions of the Ta-V-Cr-W alloy family. This is the first instance of exploring the limits of applicability of ML-based models to an extent where both the configurational and the vibrational degrees of freedom are included in the training and testing data sets for a chemically complex system. Specifically, the MTP and the GM-NN are able to extremely accurately reproduce energies and forces of both the 0 K subsystems, and the high-temperature (2500 K) 9 Table 3. Training times for both ML-based models evaluated for different numbers of model parameters on two Intel Xeon E6252 Gold (Cascade Lake) CPUs. Model No. parameters No. cfgs No. epochs/iterations Time (h) MTP Models lev16 608 5373 400 iterations 0.9 lev20 932 5373 400 iterations 2.1 lev24 1636 5373 400 iterations 7.1 lev26 2236 5373 400 iterations 9.2 lev28 3217 5373 400 iterations 10.8 GM-NN Models 593-32-32-1 20032 4873 1000 epochs 2.8 593-128-128-1 92416 4873 1000 epochs 3.0 <u>593-512-512-1</u> <u>566272</u> <u>4873</u> <u>1000</u> <u>epochs</u> <u>3.4</u> 360-512-512-1 446976 4873 1000 epochs 3.0 593-512-512-1 566272 4873 1000 epochs 3.4 910-512-512-1 728576 4873 1000 epochs 3.9 The bold font emphasizes the default potentials used throughout this work. disordered equiatomic TaVCrW HEA, which make up the indistribution sets. They are also able to accurately predict the energies of the 0 K strained binaries. The accuracy achieved in the present work is very similar to the MTP errors obtained in ref. <sup>36</sup> for the same disordered alloy, although their MTP was trained only on the equiatomic 2500 K structures. Adding the configurational degrees of freedom by introducing many 0 K structures in the training data set does not affect the predictive capabilities of the MTP (nor the GM-NN) on the HEA behaviour, suggesting that there is scope for further expanding the training set. The models have also been tested on out-of-distribution subsystems (not a part of the training set) comprising of nonequiatomic ternaries. Both models successfully provide a similar performance for the out-of-distribution subsystems as compared to the in-distribution subsystems in the prediction of hightemperature MD forces. The observed RMS errors in absolute energies are larger than for the in-distribution cases, arising from the inability to predict accurate absolute chemical potentials. Nevertheless, the relative energies relevant for calculating temperature-dependent thermodynamic properties are still predicted with a low RMS error. These results indicate a good generalization of the MTP and GM-NN models even to out-ofdistribution data. In an earlier work <sup>18</sup>, lattice-based Monte Carlo and cluster expansion techniques were used to predict chemical SRO and phase separation below 1300 K in the TaVCrW alloy. With the here developed ML-based potentials, we can now model off-lattice behaviour that enables us to capture strong lattice relaxations. In phase-separated structures, lattice mismatch at the interface can lead to strained subsystems, which are likewise well-predicted by the MTP and GM-NN. Consequently, the low-temperature phaseseparated structures in combination with strained interfaces, the intermediate SRO structures, as well as the high-temperature fully disordered structure can now be simultaneously and more accurately modelled with a single potential. The here-developed ML models also offer scope to combine MD with Monte Carlo methods to further enhance the sampling of phase spaces of chemically complex alloys. The vibrational degrees of freedom that the ML-based models entail enable, for example, a more accurate prediction of the order-disorder transition temperature. A well-determined transition temperature is crucial in deciding the K. Gubaev et al. Fig. 7 The trade-off between computational cost and normalized error (Equation (13)) evaluated for MTP, GM-NN, EAM, and MEAM. For the normalized error, the overall errors from Table 1 have been chosen. The darkened colour represents the default MTP and GMNN models used throughout this work. Blurred colours show models with varying hidden neurons and/or input features. For MTP, the respective level defines the number of employed input features; see Equation (6). For GM-NN, we use a convention where the first number indicates the number of features, while all following numbers define the number of neurons in the respective layer (two hidden and one output layer). operational temperature of the HEA since ordering and phase segregation can lead to changes in mechanical behaviour <sup>15</sup> . The robustness of the ML-based models is also noticeable in the heat capacity curves shown in Fig. 4. Even small differences in the free energies are known to cause large deviations in the computed heat capacity <sup>49</sup> . Nevertheless, the MTPs and GM-NNs are reasonably accurate (< few meV/atom) in the free energy prediction that they are able to predict the heat capacities to DFT accuracy (without electronic contributions) up to around 2200 K. Even though the ML-based models are remarkable in their free energy and the eventual thermodynamic property prediction, one needs to keep in mind they have been fitted to DFT data that only contain the vibrational and configurational degrees of freedom. To reach ‘full DFT’ accuracy, one also needs to include the electronic degrees of freedom (electronic free energy and the impact of vibrations on it) and the magnetic degrees of freedom. The stateof-the-art method to include the electronic contribution uses the direct upsampling technique <sup>49</sup>, wherein we can perform DFT calculations (including electronic contributions) on snapshots generated by the ML-based models. The number of snapshots needed to reach a certain accuracy in the free energy can be roughly estimated based on the RMS errors in our models. In the current case, for an RMS error of 3 meV/atom, we can reach to within ± 1 meV/atom accuracy using approximately 35 snapshots <sup>49</sup> for a given volume and temperature. By doing so, we can include the temperature-dependent (and vibration-coupled) electronic degree of freedom into the thermodynamics of the alloy. To 10 K. Gubaev et al. account for the magnetic free energy, there have been propositions put forth in the literature, such as the magnetic MTP <sup>50</sup>, that can be used for magnetic systems. In consequence, on top of the predictions of the currently fitted ML-based models, further expanding the configurational space of the training set (e.g., also including temperature-dependent behaviour of binaries and ternaries) and adding the electronic and magnetic degrees of freedom would lead to a more complete and accurate picture of the behaviour of chemically complex multicomponent alloys. For a complex system such as the Ta-V-Cr-W family, active learning is only partially beneficial. The RMS errors in predicted energies converge similarly irrespective of an active or random selection of configurations. This is true for both ML models. The random selection done uniformly across the diverse set of subsystems is already sufficient to reach good accuracy in the energies. The advantage of active learning is more evident in the convergence of the atomic forces, arising likely from the data set size and complexity of the atomic-force landscape compared to the energies. The active learning algorithm employed by MTP preferably selects more high-temperature configurations which have large force values. In contrast, the algorithm employed by GM-NN has been designed to select new data considering the data distribution. Thus, the GM-NN scheme selects almost equal portions of MD data in every iteration. The convergence of the current models with respect to the training set size is also the result of the number of trainable parameters. The MTP has ~ 500 times fewer fitting parameters than the GM-NN model. Hence, it reaches its final accuracy faster while showing no improvement when increasing the training set size above a certain amount. On the other hand, the GM-NN model shows gradual yet continuous improvement in accuracy with the training set size, owing to a larger number of trainable parameters. This fact allows us to assume that the GM-NN would outperform the MTP on larger data set sizes. However, the accuracy of the MTP on larger data sets can be improved by increasing the level of the selected MTP model, i.e., by increasing the effective number of trainable parameters. Ultimately, in complex systems such as the TaVCrW HEA, which require large simulation cells to allow for events such as SRO to occur, the choice of the interatomic model is an interplay between the accuracy and the inference (simulation) time. Although the MLbased models are one to two orders slower than classical potentials (yet negligibly small in comparison to ab initio simulation times), they are at least an order of magnitude more accurate. Classical empirical potentials such as the EAM/MEAM are restricted in their functional form. Although such potentials need a smaller training set leading to less severe phase space sampling problems, their inaccuracy far outweighs their partial benefits. The inaccuracy of classical models might not only affect their robustness and stability while running MD across the volume and temperature range but would also highly alter, for example, the order-disorder transition temperature, making them unsuitable for such applications. Hence, for predicting challenging multicomponent system behaviour, one needs to resort to ML-based models. In summary, despite certain prominent differences between MTP and GM-NN, they provide similar results, evaluated on a test data set or during a real-time simulation. Considering that the two models are cutting-edge representatives of the ML-potential family, these results may reflect the constantly growing boundaries of the machine-learning potentials applied to current material systems of interest. METHODS Local interatomic potentials An atomic structure is defined by S ¼ fri; Zig <sup>N</sup> i¼ <sup>at</sup> 1 <sup>,</sup> <sup>where</sup> <sup>Nat</sup> <sup>is</sup> <sup>the</sup> number of atoms, ri 2 R <sup>3</sup> denotes the Cartesian coordinates of atom i, and Zi 2 N is the respective atomic number. We consider the mapping f from the atomic structure to a scalar electronic energy E, i.e., f : S7!E 2 R. All models employed here assume locality of interatomic interactions (Fig. 1a), thus the total energy of the system is split into contributions from individual atoms E ¼ XNat Ei: (1) i¼1 The energy contributed by atom i is defined by a parameterized function, i.e., Ei ¼ EiðSi; θÞ, where θ are trainable parameters and Si is the local atomic environment of atom i. The parameters θ are learned from the training data by minimizing a predefined loss function LðθÞ. The data set typically contains total energies, atomic forces, and stresses obtained by an ab initio method. The local environment, Si ¼ fri; Zi; frj; Zjgj2Rcut g <sup>N</sup> i¼ <sup>at</sup> 1 <sup>, is defined by the chosen</sup> cutoff radius Rcut. In this work, we choose a cutoff radius of 5.0 Å. Moment tensor potential—MTP The MTP site energy for each atom i is linearly expanded through a set of basis functions Bα: Ei ¼ Xαmax α¼1 ξαB <sup>ð</sup> α <sup>iÞ;</sup> (2) ξαB <sup>ð</sup> α <sup>iÞ</sup> which are contractions (e.g., dot products of vectors and matrices, see below) of the moment tensor descriptors Mμ,ν <sup>33</sup> . The ξα are expansion coefficients and the parameter αmax is determined from Equation (6) below. Each descriptor Mμ,ν is composed of a radial part (scalar function depending only on the interatomic distances) and an angular part (a tensor of a certain rank) (Fig. 1b), angular zf f l f f l f f l f f lffl}|f f l f f l f f l f f lffl{ rij - ¼ - rij |f f l f f l f f l f f lffl{zf f l f f l f f l f f lffl} ν times zf f l f f l f f l fradial f l }|f f l f f l f f l f f l { fμðjrijj; Zi; ZjÞ Mμ;νðniÞ ¼ X j ; (3) where ni stands for the neighbourhood of the atom i (all atoms within the radius Rcut around atom i), μ stands for the number of the radial functions, ν is the rank of the tensor in the angular part, and rij the vector between atom i and j. The radial functions fμ(∣rij∣, Zi, Zj) are expanded in a basis of Chebyshev polynomials, usually up to rank seven, c <sup>k</sup> μ;Zi ;Zj <sup>QkðjrijjÞ;</sup> (4) f μðjrijj; Zi; ZjÞ ¼ X k where c <sup>k</sup> μ;Zi ;Zj <sup>are</sup> <sup>expansion</sup> <sup>coefficients</sup> <sup>and</sup> Q <sup>k</sup> ðrÞ ¼ T kðrÞðRcut � rÞ <sup>2</sup> : (5) Here Tk(r) are the Chebyshev polynomials of order k and the ðRcut � rÞ <sup>2</sup> term is introduced to ensure a smooth decreasing to 0 at Rcut. Although the moment tensor descriptors themselves are twobody functions (depending only on rij), many-body interactions get included into the basis functions Bα by building various contractions of the Mμ,ν, under the condition that each contraction has to yield a scalar value. Note that the coefficients c <sup>k</sup> μ;Zi ;Zj <sup>enter</sup> Equation (2) non-linearly, as the basis functions Bα contain multiplications of different radial functions, see examples below. This way, the MTP fitting parameters θ ¼ fξα; c <sup>k</sup> μ;Zi ;Zj <sup>g</sup> are composed of the coefficients ξα and c <sup>k</sup> μ;Zi;Zj <sup>,</sup> <sup>which</sup> <sup>enter</sup> <sup>Equation</sup> (2) linearly and non-linearly, respectively. For the purpose of choosing which (out of the infinite number of) basis functions to include in the interatomic potential, we define a degree-like measure, ‘level’, of Mμ,ν defined by levMμ,ν = 2μ + ν and the level of Bα obtained by contracting Mμ1;ν1, Mμ2;ν2 ; ¼, as levBα ¼ ð2μ1 þ ν1Þ þ ð2μ2 þ ν2Þ þ ¼: (6) K. Gubaev et al. 11 Thus, to define an MTP we choose a particular levmax and expand the site energy function linearly through such Bα, which satisfy levBα - levmax. The MTP part of Fig. 1c (left-hand side) has examples of how some of the basis functions are constructed: - For the 2-body case, the scalar moments M0,0, M1,0, and M2,0 already serve as basis functions, which differ by the radial functions involved. - For the 3-body case, the moments M0,1 and M1,1 produce basis functions M0,1 ⋅ M0,1 and M1,1 ⋅ M1,1, respectively, which differ by the radial functions involved. - For the 5-body case (the most complex case for MTP in this work), the basis function has the form M0,1 ⋅ M0,2 ⋅ M0,2 ⋅ M0,1. Note how the condition specified in Equation (6) reduces the number of different radial functions involved in the many-body moments (Fig. 1c left). By increasing levmax, MTPs with more parameters emerge, which are capable of more accurately fitting or handling a larger training set, but which require more computational time for fitting and inference (simulation time). In this work, we use an MTP with levmax ¼ 24. The parameters of an MTP are obtained as those minimizing the mean squared loss on the training data (Fig. 1d). We use the second-order quasi-Newton BFGS <sup>48</sup> optimization method, which requires exact first derivatives of the loss function with respect to the model parameters and approximates the second derivatives by constructing the so-called hessian matrix. To balance the relative contributions of energies, forces, and stresses for a configuration j with N <sup>ð</sup> at <sup>jÞ</sup> <sup>atoms,</sup> <sup>weight</sup> <sup>factors</sup> <sup>of</sup> <sup>Ce</sup> <sup>¼ 1=Nð</sup> at <sup>jÞ,</sup> Cf = 0.001 Å <sup>2</sup>, and Cs ¼ 0:0001=N <sup>ð</sup> at <sup>jÞ</sup> <sup>are</sup> <sup>used,</sup> <sup>respectively.</sup> computed for the normalized distances, RZi ;Zj;s rij; β �rij; β�^r�ij L <sup>;</sup> (9) Ψi;L;s ¼ X j≠i where� ^r <sup>�</sup> ij <sup>L</sup> �� where� ^r <sup>�</sup> ij - <sup>L</sup> ¼ ^rij ����� ^rij. The non-linear radial functions�� RZi ;Zj ;s rij; β are defined as a finite sum of Gaussians Φs <sup>0</sup> rij - ^r <sup>�</sup> ij - <sup>L</sup> ¼ ^rij ����� ^rij. The non-linear radial functions�� s rij; β are defined as a finite sum of Gaussians Φs <sup>0</sup> rij (NGauss = 8 for this work) <sup>35</sup> �� βZi ;Zj;s;s0 Φs <sup>0</sup> rij : (10) - - <u>1</u> rij; β ¼ ~~pf~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f NGauss f f f f f f NXGauss s <sup>0</sup> ¼1 RZi;Zj ;s rij; β pf f i f f i f f i f f i f f i f f The factor 1= NGauss influences the effective learning rate and is inspired by the neural tangent parameterization <sup>47</sup> . The individual radial functions are centred at an equidistant grid of points between Rmin ¼ 1:5 Å (specific to this work) and Rcut, and are rescaled by a cosine cutoff function <sup>29</sup> . The chemical information is encoded in the GM representation by trainable parameters βZi;Zj;s;s0 . The index s runs over the number of independent radial basis functions, set to Nbasis = 6 for this work. The features invariant to rotations Gi (Fig. 1c right) are obtained by computing contractions of the respective tensors, as any full contraction of Cartesian tensors ^r <sup>�</sup> ij <sup>L</sup> yields a rotationally invariant scalar <sup>34</sup> . For the employed GM-NN model, contractions of up to three tensors of the maximum rank of three are used. Thus, the many-body expansion is restricted to the maximum of four-body terms, e.g., - a <sup>Ψi;1;s2</sup> - - Gi;s1;s2;s3 ¼ Ψi;1;s1 b <sup>Ψi;2;s3</sup> a;b <sup>;</sup> (11) <sup>ð</sup> at <sup>jÞ</sup> <sup>atoms,</sup> <sup>weight</sup> <sup>factors</sup> <sup>of</sup> <sup>Ce</sup> <sup>¼ 1=Nð</sup> at <sup>jÞ,</sup> <sup>ð</sup> at <sup>jÞ</sup> <sup>are</sup> <sup>used,</sup> <sup>respectively.</sup> Gaussian moment neural network—GM-NN GM-NN uses an artificial NN to map an atomic structure S to the total energy EðS; θÞ. Specifically, GM-NN employs a fullyconnected feed-forward NN consisting of two hidden layers <sup>34,35</sup> yi ¼ 0:1 � b <sup>ð3Þ</sup> þ ~~p~~ <u>1</u> ~~f~~ d f i 2 ~~f~~ W <sup>ð3Þ</sup> ϕ 0:1 � b <sup>ð2Þ</sup> - �� þ ~~p~~ <u>1</u> ~~f~~ d f i 1 ~~f~~ W <sup>ð2Þ</sup> ϕ 0:1 � b <sup>ð1Þ</sup> þ ~~p~~ <u>1</u> ~~f~~ d f i 0 ~~f~~ W <sup>ð1Þ</sup> Gi ; (7) where we use Einstein notation, i.e., the right-hand sides are summed over a, b ∈ {1, 2, 3}. Particular contractions are defined by identifying unique generating graphs <sup>43</sup> . In a practical implementation all GM features are computed at once providing tensors G <sup>ðjÞ</sup> 2 fR <sup>Nbasis</sup> ; R <sup>Nbasis ´ Nbasis</sup> ; ¼ g. However, the number of invariant features used as input to NNs is reduced by considering the permutational symmetries of the respective graphs (see Fig. 1c right) <sup>34</sup>, i.e., only tensors of the same rank can be exchanged. The parameters θ = {W, b, β, σ, μ} of the NN, i.e., weights W and biases b, as well as the trainable parameters β of the local representation and the parameters that scale, σ, and shift, μ, the output of the NN, are optimized by minimizing the mean squared loss on training data (Fig. 1d). We employ the Adam optimizer <sup>53</sup> to minimize the loss function. The respective parameters of the optimizer are β1 = 0.9, β2 = 0.999, and ϵ = 10 <sup>−7</sup> . We use a minibatch of 32 molecules. The layer-wise learning rates are set to 0.0075 for the parameters of the fully connected layers, 0.005 for the trainable representation, as well as 0.0125 and 0.00025 for the shift and scale parameters of atomic energies, respectively. The training is performed for 1000 training epochs. To balance the relative contributions of energies, forces, and stresses, weight factors of Ce ¼ 1=N <sup>ð</sup> at <sup>jÞ,</sup> <sup>C</sup> f <sup>= 0.005 Å2,</sup> <sup>and</sup> <sup>Cs</sup> <sup>¼ 0:0001=N</sup> at <sup>ðjÞ</sup> are used, respectively. To prevent overfitting during training, we employ the early stopping technique <sup>54</sup> . All models are trained within the TensorFlow framework <sup>55</sup> . with W <sup>ðlþ1Þ</sup> 2 R <sup>dlþ1 ´ dl</sup> and b <sup>ðlþ1Þ</sup> 2 R <sup>dlþ1</sup> being the weights and biases of the layer l + 1, respectively. The default network in this work consists of d0 = 593 input neurons (dimension of the feature vector Gi ¼ GiðSiÞ), d1 = d2 = 512 hidden neurons, and a single output neuron d3 = 1. The weights of the network W <sup>(l+1)</sup> are initialized by picking the respective entries from a normal distribution with zero mean and unit variance. In contrast, the trainable bias vectors b <sup>(l+1)</sup> are initialized to zero. To improve the accuracy and convergence of the GM-NN model, we employ a neural tangent parameterization (factors of 0.1 and 1=pfd f i fl f i )47. For the activation function ϕ, we use the Swish/SiLU function <sup>51,52</sup> . The network’s output is scaled and shifted to aid the training process even further, EiðGi; θÞ ¼ c �ðσZi yi þ μZi Þ; (8) where the trainable shift parameters μZi are initialized by solving a linear regression problem, and the trainable scale parameters σZi are initialized to 1. The constant c is given by the RMS error per atom of the regression solution <sup>35</sup> . To encode the invariance of the total energy to translations, rotations, and permutations of the same species, we employ the Gaussian moment (GM) representation <sup>34</sup> . The construction of GM features is based mainly on defining pairwise distance vectors rij = ri − rj and splitting them into their radial and angular components: rij = ∥rij∥2 and ^rij ¼ rij=rij. Thus, the equation from Fig. 1b takes a slightly different form as the L-fold outer product is This expression describes a four-body interaction but scales cubically with the number of atoms within Rcut. It is reminiscent of, e.g., atom-centred symmetry functions <sup>57</sup> . However, by writing the definition of scalar products h^rij^riki explicitly and pulling out the sum with respect to spatial coordinates we arrive at expressions proposed in ref. <sup>33</sup> and ref. <sup>34</sup>, which scale linearly with the number of atoms within Rcut. Specifically, for GM-NN the expression is Relation of MTP and GM-NN to other ML potentials Interestingly, the MTP and GM representations can be related to many other approaches of modelling interactions proposed in the literature by considering a general function, e.g., ref. <sup>56</sup> X f rij j;k;l �� rij f ðrikÞf ðrilÞh^rij^rikih^rik^rili: (12) structures from enumlib, representing different atomic combinations of each of the TaV, TaCr, TaW, VCr, VW, and CrW subsystems on the BCC lattice. To obtain the 4-component structures, we take 8-atom binaries from above and substitute the elements giving 248 equiatomic quarternary structures. 2. 0 K configurations in medium to large supercells (16, 128, 432, 8192 atoms): These configurations are designed to mimic the possible low-temperature ordering in TaVCrW. For each of these sizes, we create certain types of binaries and quaternaries. Binary structures for each of TaV, TaCr, TaW, VCr, VW, CrW subsystems include: - B2 ordering - B32 ordering - random binary solid solution - BCC interface: half of the cubic supercell is one unary, and the other half is the other unary Quaternary structures represent all possible phase separations on the TaVCrW BCC lattice, i.e., half of the cubic supercell is one binary system (e.g., TaV) and the other half is another binary system (e.g., CrW), and they include: - B2/B2 ordering - B2/B32 ordering - B32/B32 ordering - B2/random binary ordering - B32/random binary ordering - random binary/random binary ordering 3. High-temperature (2500 K) disordered structures (128 and 432 atom supercells): We use the MTP from ref. <sup>36</sup> to run NPT MD at 2500 K. From the obtained MD trajectories, we sample 983 and 48 structures with 128 and 432 atoms in the supercell, respectively. Sampling is performed by employing active learning designed for MTP models <sup>76,77</sup>, with MTP potentials initialized by training on 0 K data. Thus, the selected data may introduce some bias towards MTP performance. However, a more thorough investigation may be required to prove this hypothesis and is postponed to future works. The energies, forces and stresses of the sampled structures are calculated using DFT without relaxation. 4. Deformed structures (432 atoms): Equiatomic TaVCrW can phase segregate at low temperatures into: Ta+Cr/V+W (predicted by MTP in this work), Ta+W/Cr+V (predicted in ref. <sup>18</sup> ), and Ta+V/Cr+W. Each binary part undergoes certain strain in the [100] direction to accommodate the same cross-section between the two parts. Hence we also create deformed binaries as a part of the test data set (whose RMS errors are in Table 1) to accurately replicate such a phase-segregated B2/B2 quaternary structure. The strains applied along the [100] direction corresponding to the different binaries are: TaV 3.7%, CrW −1.28%, TaCr 0.27%, VW −0.14%, TaW 4.06% and VCr −4.71%. In total, 6711 configurations are computed with DFT for usage as training and validation sets. More precisely, there are 5680 0 K structures: 4491 binary, 595 ternary, and 594 quaternary structures, along with 1031 structures sampled from MD at 2500 K. The number of binary and ternary structures is more or less equally distributed between the subsystems, and the difference comes from the non-convergence of some DFT calculations for some subsystems. Testing the models To assess the accuracy of the models, we compute the RMS error in energies and atomic forces on every Ta-V-Cr-W in-distribution 12 K. Gubaev et al. obtained in Equation (11), while for MTP the analogue is contracting the tensor moments from Equation (3), each of which scales linearly with the number of atoms. Since a Cartesian tensor of rank L can be written as a linear combination of spherical harmonics up to angular momentum L <sup>58</sup>, both MTP and GM-NN representations (which use Cartesian tensors) are closely related to linear ACE <sup>59</sup> and message-passing NequIP and MACE models <sup>45,60</sup>, which use spherical harmonics. Note that for message-passing models, the resulting many-body order and the effective cutoff radius increase with the increasing number of interaction blocks. While it often leads to a better performance in terms of error metrics such as RMS errors, it may lead to larger inference times and, thus, less efficient potentials. The recently proposed extension of HIP-NN models <sup>61</sup> with tensor sensitivity information is closely related to MTP and GM-NN potentials, as it employs irreducible Cartesian tensors to pass tensor information between atomic sites <sup>62</sup> . Another example of local representations based on spherical harmonics is SOAP or the respective GAP model <sup>63</sup> . Unlike the above-mentioned models, it employs Gaussian process regression to map the structure to the respective energy. A more detailed overview of existing interatomic ML potentials is out of the scope of this work, and the reader is referred elsewhere <sup>32,64,65</sup> . EAM and MEAM potentials Classical interatomic potentials based on the embedded-atom method (EAM) <sup>20</sup> and the modified embedded-atom method (MEAM) <sup>21</sup> are well understood in the literature and are not discussed here. We just draw attention to their relation to the MLbased models. EAM can be viewed as an MTP potential with one radial function per species pair and without the angular part, i.e., levmax ¼ 0, see Equation (6). In turn, MEAM would be close to an MTP with levmax ¼ 2 (see Equation (6)), allowing for different radial functions, and a vectorial angular part (rank 1 tensor). In the main text, we compare the performance of the ML-based models to an EAM that is fitted to the same training data. In addition, in the Supplementary Information, we also compare to a reference-free MEAM in order to test whether there is any improvement coming from the angular three-body terms. The EAM and reference-free MEAM fitting is performed with MEAMfit <sup>66,67</sup> . Fitting weights for the energies, atomic forces and stresses are 1=Nat <sup>ðjÞ,</sup> <sup>0.1,</sup> <sup>and</sup> <sup>0.001,</sup> <sup>respectively.</sup> Data set generation - DFT calculations All DFT calculations are performed using VASP <sup>68,69</sup>, with projector augmented wave (PAW) potentials <sup>70</sup>, within the generalized gradient approximation (GGA) <sup>71–73</sup>, and in the spin-unpolarized state. We use Methfessel-Paxton smearing of order 1 with σ = 0.1, a 350 eV energy cutoff and an automatic k-mesh generation with KSPACING = 0.12. The number of valence electrons is 11 for Ta and V, and 12 for Cr and W. Description of the data set The training and test data set includes energies, atomic forces and stresses from the DFT calculations. For the 0 K configurations with small supercells (item 1 below), we perform structural relaxation with DFT. For the 0 K configurations with large supercells (item 2 below), we have a combination of relaxed and unrelaxed structures. All configurations sampled from MD (item 3 below) are unrelaxed. We generate 2-, 3-, and 4-component BCC configurations in the following categories: 1. 0 K configurations in small supercells (2–8 atoms): These configurations are sampled with the enumlib library <sup>74,75</sup>, which enumerates all possible symmetries to obtain non-repetitive structures. We first pick 2500 binary 13 subsystem, including the TaVCrW alloy at 0 K and the equiatomic TaVCrW disordered alloy sampled at 2500 K. The RMS errors are obtained by the 10-fold cross-validation method. From each subsystem and disordered alloy, 80% of the respective data set is selected for training and 20% for testing the resulting models. The selected training data is gathered into a final training set consisting of 5373 configurations. Then the potentials are tested on the selected test data set including 1336 configurations. We perform ten such instances with different combinations of the (80%, 20%) splitting to obtain a reasonable statistical averaging. The RMS errors presented in Table 1 and Fig. 2 are averaged over the 10 independent splits. We also train a single potential for each MTP/GM-NN/EAM/MEAM model to the entire data set (100%) to calculate the heat capacity of the disordered alloy. While the above strategy applies to the in-distribution data, for the out-of-distribution subsystems (Fig. 5), we generate nine random ternary A17B17C66 structures with 54 atoms, for each possible non-equiatomic ternary except for the Cr-rich ones to avoid magnetism-related issues. For the 0 K case we take one sample per composition, while for the MD case we sample 12 structures per composition using NPT MD at 2000 K. It should be mentioned here that the NN-based models are over-parametrized given a larger number of parameters than MTPs. The possibility of overfitting is accounted for by, e.g., employing a separate holdout or a validation data set and the early stopping technique <sup>54</sup> . For the GM-NN, we take 500 structures from the resulting training data sets as validation data sets, i.e., the GM-NNs are trained on fewer structures compared to the other potentials. We make ten independent splits for each training set to avoid any bias in the final models. Thus, the RMS errors for the GM-NNs are averaged over 100 runs. The normalized error (NE) in Fig. 7 is calculated as K. Gubaev et al. TensorFlow framework <sup>55</sup> and is published at [gitlab.com/zaverkin_v/gmnn,](https://gitlab.com/zaverkin_v/gmnn) including examples of usage. Received: 16 September 2022; Accepted: 25 June 2023; REFERENCES 1. Ikeda, Y., Grabowski, B. & Körmann, F. Ab initio phase stabilities and mechanical properties of multicomponent alloys: a comprehensive review for high entropy alloys and compositionally complex alloys. Mater. Charact. 147, 464–511 (2019). 2. George, E. P., Curtin, W. & Tasan, C. C. High entropy alloys: a focused review of mechanical properties and deformation mechanisms. Acta Mater. 188, 435–474 (2020). 3. George, E. P., Raabe, D. & Ritchie, R. O. High-entropy alloys. Nat. Rev. Mater. 4, 515–534 (2019). 4. Li, Z., Körmann, F., Grabowski, B., Neugebauer, J. & Raabe, D. Ab initio assisted design of quinary dual-phase high-entropy alloys with transformation-induced plasticity. Acta Mater. 136, 262–270 (2017). 5. Feng, R. et al. Phase stability and transformation in a light-weight high-entropy alloy. Acta Mater. 146, 280–293 (2018). 6. Yang, Y.-C., Liu, C., Lin, C.-Y. & Xia, Z. Core effect of local atomic configuration and design principles in AlxCoCrFeNi high-entropy alloys. Scr. Mater. 178, 181–186 (2020). 7. Yin, B. & Curtin, W. Origin of high strength in the CoCrFeNiPd high-entropy alloy. Mater. Res. Lett. 8, 209–215 (2020). 8. Zherebtsov, S., Yurchenko, N., Panina, E., Tikhonovsky, M. & Stepanov, N. Gum-like mechanical behavior of a partially ordered Al5Nb24Ti40V5Zr26 high entropy alloy. Intermetallics 116, 106652 (2020). 9. Oh, H. S. et al. Lattice distortions in the FeCoNiCrMn high entropy alloy studied by theory and experiment. Entropy 18, 321 (2016). 10. Zaddach, A., Niu, C., Koch, C. & Irving, D. Mechanical properties and stacking fault energies of NiFeCrCoMn high-entropy alloy. JOM 65, 1780–1789 (2013). 11. Laube, S. et al. Controlling crystallographic ordering in Mo–Cr–Ti–Al high entropy alloys to enhance ductility. J. Alloys Compd. 823, 153805 (2020). 12. Bhandari, U., Zhang, C., Zeng, C., Guo, S. & Yang, S. Computational and experimental investigation of refractory high entropy alloy Mo15Nb20Re15Ta30W20. J. Mater. Res. Technol. 9, 8929–8936 (2020). 13. Chen, S. et al. Simultaneously enhancing the ultimate strength and ductility of high-entropy alloys via short-range ordering. Nat. Commun. 12, 1–11 (2021). 14. Rogal, L. et al. Computationally-driven engineering of sublattice ordering in a hexagonal AlHfScTiZr high entropy alloy. Sci. Rep. 7, 1–14 (2017). 15. Wu, Y. et al. Short-range ordering and its effects on mechanical properties of high-entropy alloys. J. Mater. Sci. Technol. 62, 214–220 (2021). 16. Ma, Y. et al. Chemical short-range orders and the induced structural transition in high-entropy alloys. Scr. Mater. 144, 64–68 (2018). 17. Huang, S. The chemical ordering and elasticity in FeCoNiAl1−xTix high-entropy alloys. Scr. Mater. 168, 5–9 (2019). 18. Sobieraj, D. et al. Chemical short-range order in derivative Cr–Ta–Ti–V–W high entropy alloys from the first-principles thermodynamic study. Phys. Chem. Chem. Phys. 22, 23929–23951 (2020). 19. El-Atwani, O. et al. Outstanding radiation resistance of tungsten-based highentropy alloys. Sci. Adv. 5, eaav2002 (2019). 20. 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). 21. Kim, Y.-M., Lee, B.-J. & Baskes, M. I. Modified embedded-atom method interatomic potentials for Ti and Zr. Phys. Rev. B 74, 014101–014112 (2006). 22. Gastegger, M., Behler, J. & Marquetand, P. Machine learning molecular dynamics for the simulation of infrared spectra. Chem. Sci. 8, 6924–6935 (2017). 23. Gubaev, K., Podryabinkin, E. V. & Shapeev, A. V. Machine learning of molecular properties: locality and active learning. J. Chem. Phys. 148, 241727 (2018). 24. Janet, J. P., Duan, C., Yang, T., Nandy, A. & Kulik, H. J. A quantitative uncertainty metric controls error in neural network-driven chemical discovery. Chem. Sci. 10, 7913–7922 (2019). 25. Vandermause, J. et al. On-the-fly active learning of interpretable Bayesian force fields for atomistic rare events. NPJ Comput. Mater. 6, 20 (2020). 26. Zaverkin, V. & Kästner, J. Exploration of transferable and uniformly accurate neural network interatomic potentials using optimal experimental design. Mach. Learn.: Sci. Technol. 2, 035009 (2021). 27. Zaverkin, V., Holzmüller, D., Steinwart, I. & Kästner, J. Exploring chemical and [conformational spaces by batch mode deep active learning. Digit. Discov. https://](https://doi.org/10.1039/D2DD00034B) [doi.org/10.1039/D2DD00034B](https://doi.org/10.1039/D2DD00034B) (2022). <sup><u>1</u></sup> <u>F �</u> <u>RMSE</u> <u>E �</u> <u>RMSE</u> 2 max F � RMS E <sup>þ</sup> max E � RMSE NE ¼ <sup><u>1</u></sup> - <u>F �</u> <u>RMSE</u> <u>E �</u> <u>RMSE</u> max F � RMS E <sup>þ</sup> ; (13) where E-RMSE and F-RMSE are overall energy and force errors, respectively, taken from Table 1. Heat capacity simulations The heat capacity of the TaVCrW HEA up to 2500 K is numerically calculated as the second derivative of the Gibbs free energy with respect to temperature. The Gibbs free energy is calculated by a Legendre transformation of the Helmholtz energy. The Helmholtz energy up to the level of the interatomic model is calculated using thermodynamic integration using Langevin dynamics (TILD). For a set of volume and temperature (V, T) points, we run TILD on a 128atom special quasi-random structure (SQS) of the TaVCrW alloy. TILD is performed from a reference effective quasiharmonic model <sup>78,79</sup> (fitted to 2500 K MD forces) to the interatomic potential to obtain the free energy difference. By summing the effective quasiharmonic reference energy with the free energy difference, we obtain the full Helmholtz energy for that (V, T) point. After doing the same for the different (V, T) points, we parametrize the Helmholtz energy surface using a fourth-order polynomial in V and T, on which the transformation and numerical derivatives are performed. Further details on the TILD methodology can be found in ref. <sup>36</sup> . DATA AVAILABILITY [All data sets used in this study can be accessed via the link: https://doi.org/10.18419/](https://doi.org/10.18419/darus-3516) [darus-3516.](https://doi.org/10.18419/darus-3516) CODE AVAILABILITY [MTPs can be used as a part of the MLIP package accessible through mlip.skoltech.ru/](https://mlip.skoltech.ru/download/) [download/.](https://mlip.skoltech.ru/download/) The GM-NN software employed in this work is implemented within the 14 K. Gubaev et al. 28. Holzmüller, D., Zaverkin, V., Kästner, J. & Steinwart, I. A framework and benchmark for deep batch active learning for regression. J. Mach. Learn. Res. 24, 1–81 (2023). 29. Behler, J. & Parrinello, M. Generalized neural-network representation of highdimensional potential-energy surfaces. Phys. Rev. Lett. 98, 146401 (2007). 30. 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). 31. Thompson, A., Swiler, L., Trott, C., Foiles, S. & Tucker, G. Spectral neighbor analysis method for automated generation of quantum-accurate interatomic potentials. J. Comput. Phys. 285, 316–330 (2015). 32. Musil, F. et al. Physics-inspired structural representations for molecules and materials. Chem. Rev. 121, 9759–9815 (2021). 33. Shapeev, A. Moment tensor potentials: a class of systematically improvable interatomic potentials. Multiscale Model. Simul. 14, 1153–1173 (2016). 34. Zaverkin, V. & Kästner, J. Gaussian moments as physically inspired molecular descriptors for accurate and scalable machine learning potentials. J. Chem. Theory Comput. 16, 5410–5421 (2020). 35. Zaverkin, V., Holzmüller, D., Steinwart, I. & Kästner, J. Fast and sample-efficient interatomic neural network potentials for molecules and materials based on Gaussian moments. J. Chem. Theory Comput. 17, 6658–6670 (2021). 36. Zhou, Y. et al. Thermodynamics up to the melting point in a TaVCrW high entropy alloy: systematic ab initio study aided by machine learning potentials. Phys. Rev. B 105, 214302 (2022). 37. Gubaev, K. et al. Finite-temperature interplay of structural stability, chemical complexity, and elastic properties of bcc multicomponent alloys from ab initio trained machine-learning potentials. Phys. Rev. Mater. 5, 073801 (2021). 38. Molpeceres, G., Zaverkin, V. & Kästner, J. Neural-network assisted study of nitrogen atom dynamics on amorphous solid water - I. adsorption and desorption. Mon. Not. R. Astron. Soc. 499, 1373–1384 (2020). 39. Molpeceres, G., Zaverkin, V., Watanabe, N. & Kästner, J. Binding energies and sticking coefficients of H2 on crystalline and amorphous CO ice. Astron. Astrophys. 648, A84 (2021). 40. Zaverkin, V., Molpeceres, G. & Kästner, J. Neural-network assisted study of nitrogen atom dynamics on amorphous solid water - II. Diffusion. Mon. Not. R. Astron. Soc. 510, 3063–3070 (2022). 41. Zaverkin, V., Netz, J., Zills, F., Köhn, A. & Kästner, J. Thermally averaged magnetic anisotropy tensors via machine learning based on Gaussian moments. J. Chem. Theory Comput. 18, 1–12 (2022). 42. Boys, S. F. & Egerton, A. C. Electronic wave functions - I. A general method of calculation for the stationary states of any molecular system. Proc. R. Soc. Lond. A 200, 542–554 (1950). 43. Suk, T. & Flusser, J. in Computer Analysis of Images and Patterns (eds. Real, P., DiazPernil, D., Molina-Abril, H., Berciano, A. & Kropatsch, W.) Vol. 6855, 212–219 (Springer, 2011). 44. Schütt, K. T., Unke, O. T. & Gastegger, M. Equivariant message passing for the prediction of tensorial properties and molecular spectra. ICML 1–13, 9377–9388 (2021). 45. Batzner, S. et al. E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials. Nat. Commun. 13, 2453 (2022). 46. Shapeev, A., Gubaev, K., Tsymbalov, E. & Podryabinkin, E. Active Learning and Uncertainty Estimation 309–329 (Springer International Publishing, 2020). 47. Jacot, A., Gabriel, F. & Hongler, C. in NeurIPS (eds. Bengio, S. et al.) Vol. 31, 8580–8589 (Curran Associates, Inc., 2018). 48. Liu, D. C. & Nocedal, J. On the limited memory BFGS method for large scale optimization. Math. Program. 45, 503–528 (1989). 49. Hyun Jung, J., Srinivasan, P., Forslund, A. & Grabowski, B. High-accuracy thermodynamic properties to the melting point from ab initio calculations aided by machine-learning potentials. Npj Comput. Mater. (2022, submitted). 50. Novikov, I., Grabowski, B., Körmann, F. & Shapeev, A. Magnetic Moment Tensor Potentials for collinear spin-polarized materials reproduce different magnetic states of bcc Fe. Npj Comput. Mater. 8, 13 (2022). 51. Elfwing, S., Uchibe, E. & Doya, K. Sigmoid-Weighted linear units for neural network function approximation in reinforcement learning. Neural Netw. 107, 3–11 (2018). 52. Ramachandran, P., Zoph, B. & Le, Q. V. Searching for activation functions. Preprint at http://arXiv:1710.05941 (2017). 53. Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. Preprint at [http://arxiv.org/abs/1412.6980](http://arxiv.org/abs/1412.6980) (2015). 54. Prechelt, L. Early Stopping—But When? 53–67 (Springer, 2012). 55. Abadi, M. et al. TensorFlow: Large-Scale Machine Learning on Heterogeneous Systems. [https://www.tensorflow.org/](https://www.tensorflow.org/) (2015). 56. Zaverkin, V. Investigation of Chemical Reactivity by Machine-learning Techniques. Ph.D. thesis, University of Stuttgart. [https://doi.org/10.18419/opus-12182](https://doi.org/10.18419/opus-12182) (2022). 57. Behler, J. Atom-centered symmetry functions for constructing high-dimensional neural network potentials. J. Chem. Phys. 134, 074106 (2011). 58. Drautz, R. Atomic cluster expansion of scalar, vectorial, and tensorial properties including magnetism and charge transfer. Phys. Rev. B 102, 024104 (2020). 59. Drautz, R. Atomic cluster expansion for accurate and transferable interatomic potentials. Phys. Rev. B 99, 014104 (2019). 60. Batatia, I., Kovacs, D. P., Simm, G. N. C., Ortner, C. & Csanyi, G. in Advances in Neural Information Processing Systems (eds. Oh, A. H., Agarwal, A., Belgrave, D. & Cho, K.) [https://openreview.net/forum?id=YPpSngE-ZU](https://openreview.net/forum?id=YPpSngE-ZU) (2022). 61. Lubbers, N., Smith, J. S. & Barros, K. Hierarchical modeling of molecular energies using a deep neural network. J. Chem. Phys. 148, 241715 (2018). 62. Chigaev, M. et al. Lightweight and effective tensor sensitivity for atomistic neural networks. J. Chem. Phys. 158, 18 (2023). 63. 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). 64. Unke, O. T. et al. Machine learning force fields. Chem. Rev. 121, 10142–10186 (2021). PMID: 33705118. 65. Langer, M. F., Goeßmann, A. & Rupp, M. Representations of molecules and materials for interpolation of quantum-mechanical simulations via machine learning. Npj Comput. Mater. 8, 41 (2022). 66. Duff, A. I., Finnis, M., Maugis, P., Thijsse, B. J. & Sluiter, M. H. MEAMfit: a referencefree modified embedded atom method (RF-MEAM) energy and force-fitting code. Comput. Phys. Commun. 196, 439–445 (2015). 67. Srinivasan, P. et al. The effectiveness of reference-free modified embedded atom method potentials demonstrated for NiTi and NbMoTaW. Model. Simul. Mater. Sci. Eng. 27, 065013 (2019). 68. Kresse, G. & Hafner, J. Ab initio molecular-dynamics simulation of the liquidmetal–amorphous-semiconductor transition in germanium. Phys. Rev. B 49, 14251–14269 (1994). 69. 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 (1996). 70. Blöchl, P. E. Projector augmented-wave method. Phys. Rev. B 50, 17953–17979 (1994). 71. Ceperley, D. M. & Alder, B. J. Ground state of the electron gas by a stochastic method. Phys. Rev. Lett. 45, 566–569 (1980). 72. Perdew, J. P. & Zunger, A. Self-interaction correction to density-functional approximations for many-electron systems. Phys. Rev. B 23, 5048–5079 (1981). 73. Perdew, J. P., Burke, K. & Ernzerhof, M. Generalized gradient approximation made simple. Phys. Rev. Lett. 77, 3865–3868 (1996). 74. Hart, G. L. & Forcade, R. W. Algorithm for generating derivative structures. Phys. Rev. B 77, 224115 (2008). 75. Morgan, W. S., Hart, G. L. & Forcade, R. W. Generating derivative superstructures for systems with high configurational freedom. Comput. Mater. Sci. 136, 144–149 (2017). 76. Podryabinkin, E. V. & Shapeev, A. V. Active learning of linearly parametrized interatomic potentials. Comput. Mater. Sci. 140, 171–180 (2017). 77. Novikov, I. S., Gubaev, K., Podryabinkin, E. V. & Shapeev, A. V. The MLIP package: moment tensor potentials with MPI and active learning. Mach. Learn.: Sci. Technol. 2, 025002 (2020). 78. Hellman, O., Abrikosov, I. A. & Simak, S. I. Lattice dynamics of anharmonic solids from first principles. Phys. Rev. B 84, 180301 (2011). 79. Hellman, O., Steneteg, P., Abrikosov, I. A. & Simak, S. I. Temperature dependent effective potential method for accurate free energy calculations of solids. Phys. Rev. B 87, 104111 (2013). ACKNOWLEDGEMENTS This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. 865855). The authors acknowledge support by the state of BadenWürttemberg through bwHPC and the German Research Foundation (DFG) through grant No. INST 40/575-1 FUGG (JUSTUS 2 cluster). We thank the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) for supporting this work by funding - EXC2075 - 390740016 under Germany’s Excellence Strategy. We acknowledge the support by the Stuttgart Center for Simulation Science (SimTech). K.G. and B.G. acknowledge support from the collaborative DFG-RFBR Grant (Grants No. DFG KO 5080/3-1, DFG GR 3716/6-1). K.G. also acknowledges the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) - Project-ID 358283783 - SFB 1333/2 2022. V.Z. acknowledges financial support received in the form of a PhD scholarship from the Studienstiftung des Deutschen Volkes (German National Academic Foundation). P.S. would like to thank the Alexander von Humboldt Foundation for their support through the Alexander von Humboldt Postdoctoral Fellowship Program. A.D. acknowledges support through EPSRC grant EP/S032835/1. 15 AUTHOR CONTRIBUTIONS All authors designed the project, discussed the results, and wrote the manuscript. K.G., V.Z. and P.S. performed the calculations. FUNDING Open Access funding enabled and organized by Projekt DEAL. COMPETING INTERESTS The authors declare no competing interests. ADDITIONAL INFORMATION Supplementary information The online version contains supplementary material available at [https://doi.org/10.1038/s41524-023-01073-w.](https://doi.org/10.1038/s41524-023-01073-w) Correspondence and requests for materials should be addressed to Konstantin Gubaev or Viktor Zaverkin. K. Gubaev et al. 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. 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://](http://creativecommons.org/licenses/by/4.0/) [creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2023

섹션 본문 105문단 · 59,683자

(제목 없음)

1Chemically complex multicomponent alloys possess exceptional properties derived from an inexhaustible compositional space.The complexity however makes interatomic potential development challenging.We explore two complementary machine-learned potentials-the moment tensor potential (MTP) and the Gaussian moment neural network (GM-NN)-in simultaneously describing configurational and vibrational degrees of freedom in the Ta-V-Cr-W alloy family.Both models are equally accurate with excellent performance evaluated against density-functional-theory.They achieve root-mean-square-errors (RMSEs) in energies of less than a few meV/atom across 0 K ordered and high-temperature disordered configurations included in the training.Even for compositions not in training, relative energy RMSEs at high temperatures are within a few meV/atom.High-temperature molecular dynamics forces have similarly small RMSEs of about 0.15 eV/Å for the disordered quaternary included in, and ternaries not part of training.MTPs achieve faster convergence with training size; GM-NNs are faster in execution.Active learning is partially beneficial and should be complemented with conventional human-based training set generation.

INTRODUCTION

2Alloys consisting of multiple principal components have attracted considerable attention over the last decade [1][2][3][4][5][6][7][8] .Apart from the conventional subsystems like binary and ternary alloys, one can also access the interior regions of the highly complex compositional space of such alloys, revealing a multitude of untapped compositions.High entropy alloys (HEAs) are one such class of alloys consisting of at least four to five elements in near-equal proportions.They are known for remarkable properties such as high tensile and yield strength, high ductility, and fracture toughness 9,10 .

3A high mixing entropy stabilises the disordered phase of a HEA wherein elements randomly occupy sites of the simple lattices, i.e., bcc 11,12 , fcc 7,13 , or hcp 14 .However, this is the predominant effect only at high temperatures, accompanied by large vibrations in the system.At lower temperatures, there is a possibility of segregation of individual elements, short-range ordering, and phase decomposition [15][16][17][18][19] .Therefore, to fully analyse the thermodynamics of the alloy across the entire temperature range, both vibrational and configurational entropy contributions are critical, and one needs to study both the high-temperature disordered phase and the low-temperature segregated sub-phases.In addition, the properties of a HEA cannot be deduced by simply performing a linear combination of properties of individual elements and subsystems, as the interaction between the elements leads to unusual behaviour.

4Computational techniques can assist in a rapid exploration of complex compositional spaces.However, the accuracy of results relies critically on the computational method.Running ab initio molecular dynamics (AIMD) simulations using density-functional theory (DFT) to obtain accurate results is computationally demanding.In particular, studying configurations with shortrange order requires much larger length scales making DFT prohibitively expensive.Atomistic simulations employing interatomic potentials are a possible alternative.Most potentials assume the locality of interatomic interactions, facilitating much faster computation and better scaling with system size than DFT.

5The key challenge lies in developing accurate and robust interatomic potentials.In particular, simultaneously accounting for both the vibrational and configurational degrees of freedom is extremely difficult.Conventional potentials, e.g., based on the embedded-atom method (EAM) 20 or the modified embeddedatom method (MEAM) 21 , are restricted to simple fixed analytical forms for the energy with a small number of parameters.The sparsity of the respective parameter space does not provide enough flexibility to model complex systems.

6In this regard, state-of-the-art machine learning (ML)-based models have a more systematic approach toward the parameterization of interatomic interactions.The atomic environment around a central atom is encoded by a local representation, which depends on vibrational (coordinates) and configurational (atomic types) degrees of freedom.Typically, local representations are composed of a radial part (depending only on interatomic distances) and an angular part (depending on the angles).The representations are invariant with respect to atomic permutations, translations and rotations of physical space and form a set of functions that describe the local atomic arrangement.This set of functions provides suitable input to an ML model.The mapping from this input to the energy is determined by the values of model parameters, which are obtained by training on DFT energies, atomic forces, and stresses.

7ML-based models can also robustly estimate the uncertainty in their predicted energies and forces [22][23][24][25][26][27][28] .Such estimations are used to develop active learning algorithms to select the data most informative to the model.The data are obtained from the configurational and vibrational spaces sampled during, e.g., a molecular dynamics (MD) simulation using the existing model, either beforehand or in an on-the-fly fashion.The model is then retrained with the updated training data set, which includes DFT values of these sampled configurations.Hence, in addition to their unique way of accurately describing a complex multidimensional phase space with a certain number of model parameters, the learning-on-the-fly feature allows ML-based models to be a more robust and reliable approximation of the DFT potential energy surface.

8Several ML-based models have been proposed in the literature, each with its own representation of the atomic environment [29][30][31][32] .In the present work, we analyse two complementary ML-based approaches, the moment tensor potential (MTP) 23,33 and the Gaussian moment neural network (GM-NN) 34,35 .MTPs have been developed for thermodynamic property prediction up to the melting point of a single disordered phase of a TaVCrW HEA 36 .MTPs have also been built to study partial compositional spaces of a TiZrHfTa x HEA 37 .GM-NNs, on the other hand, have so far been developed for a different class of chemical structures.For instance, they were used to study the dynamics of N and H 2 on water and CO ice surfaces, respectively [38][39][40] , and the dynamic behaviour of magnetic anisotropy tensors of ½CoðN 2 S 2 O 4 C 8 H 10 Þ 2 2À , ½FeðtpaÞ Ph À , and ½NiðHIM 2 À pyÞ 2 NO 3 þ molecular crystals 41 .However, they have not been tested for metallic, let alone, complex HEA systems.

9Here, we develop and compare an MTP and a GM-NN potential for the Ta-V-Cr-W HEA family, and assess their performance in modelling chemically-complex multicomponent systems.We include the vibrational and configurational degrees of freedom of the system in the potential development.We do so by attempting to predict energies and forces in Ta-V-Cr-W subsystems under two scenarios: (i) the 0 K energies and forces in binaries, ternaries and quaternaries; (ii) near-melting temperature energies and forces in 3-and 4-component disordered alloys.The subsystems are categorized into two groups-the in-distribution, and the out-of-distribution subsystems, where the former includes those subsystems used for training, and the latter includes nonequiatomic ternaries that are not a part of the training.In addition to the energy and force estimates, we assess the quality of the potentials by also computing thermodynamic properties.

10The MTP and the GM-NN models are equally accurate in describing the Ta-V-Cr-W HEA family.The 0 K energies and forces of the in-distribution subsystems are predicted extremely accurately, while the RMS errors are slightly larger for the outof-distribution subsystems.The high-temperature configurational space of the disordered quaternary (part of the in-distribution subsystems) is accurately captured to within 0.18 eV/Å RMS error in forces.Likewise, even non-equiatomic ternaries (part of the outof-distribution subsystems) are accurately predicted, with RMS errors in forces of less than 0.16 eV/Å.While the absolute energies of the out-of-distribution subsystems are not predicted well, the relative energies-which are relevant for thermodynamics properties-are accurate to within 5.5 meV/atom.Classical EAM/MEAM potentials are unsuitable for such a complex phase space and have errors one to two orders higher in magnitude.Finally, we investigate the role of active learning strategies applied to HEAs and find that human-based inspection is crucial in this specific case.

Features of the two ML models

11Figure 1 is a schematic illustration of the similarities and differences between the MTP and the GM-NN approaches.MTPs and GM-NNs assume locality of interatomic interactions.The total energy of an atomic system is split into the contributions of individual atoms.For every atom, only the interactions within a cutoff R cut are explicitly considered, as shown in Fig. 1a.Since the total energies (written as a sum of site energies for all atoms) are trained on DFT systems which include long-range effects, the interactions beyond R cut get implicitly included during the fitting.

12The building blocks of the MTPs and GM-NNs are the atomic environment descriptors, shown in Fig. 1b.MTPs and GM-NNs encode the structural and chemical composition of a local atomic environment by utilizing symmetry preserving representations motivated by invariant polynomials and Cartesian Gaussian-type orbitals (GTOs) 42 , respectively.Interestingly, both approaches lead to a common representation invariant to translations and permutations but equivariant to rotations.

13Descriptors, invariant to rotations, are obtained by computing tensor contractions and eliminating possible linear dependencies; see Fig. 1c.For MTP, the selected contractions are restricted to the ones of a particular level lev max 33 , providing restriction on both radial and angular parts and thus defining the basis in which the atomic energy is expanded.Larger values of lev max account for high-order tensors participating in contractions, thereby producing more descriptors and increasing the fitting capabilities of the potential.In fact, the EAM and MEAM potentials can be viewed as reduced MTP potentials with lev max ¼ 0 and lev max ¼ 2, respectively.For GM-NN, linear dependencies are eliminated by identifying unique generating graphs corresponding to the tensor contractions 43 and taking into account the permutational symmetry of the respective tensors or, equivalently, nodes on the graph 34,35 .The intermediate equivariant representation relates MTP and GM-NN to the recently proposed equivariant message passing neural network (NN) architectures 44,45 .

14The invariant features of the atomic environments computed within both approaches are then used as an input to linear regression or a neural network-based model for MTP and GM-NN, respectively, as illustrated in Fig. 1d.The GM-NN has ~500 times more parameters as it utilizes artificial NNs to map the structure and the respective properties.Finally, the models are trained on DFT data (energies, atomic forces and stresses) by minimizing a specified loss function.The reader is referred to the 'Methods' section for more details about the construction of the ML-based models, and the relation of the MTP and GM-NN models to other ML potentials.

15From configurations generated by the trained model, new samples are iteratively selected for active learning based on uncertainty quantification.In the MTP and GM-NN approach, uncertainty measures are based on gradient feature maps, i.e., ∇ θ E with θ being the model's parameters.In the simplest case, ∇ θ E would correspond to input features of the linear regression in Fig. 1d.Specifically, for MTP, the uncertainty measure is based on the maximum volume (MaxVol) principle for the matrix of the basis function derivatives with respect to the fitting coefficients 46 .The actual measure of the uncertainty is the determinant of the corresponding MaxVol submatrix.For GM-NN, the uncertainty is computed by employing gradient features of a trained NN (with θ being the weights and biases) [26][27][28] , corresponding to the finitewidth neural tangent kernel 47 .In this work, the largest cluster maximum distance (LCMD) method 28 for selecting new structures and last-layer gradient features (FEAT(LL)) to compute the similarity between structures and the model's uncertainty from it is used.Other active learning approaches are also possible 27,28 .

Evaluation strategy

16The objective of the ML-potentials is to capture both the vibrational and configurational degrees of freedom at near-DFT accuracy.The TaVCrW HEA stabilizes as a fully disordered structure at high temperature.As the temperature decreases, there is shortrange ordering in the alloy, followed by segregation of individual elements or phases 18 .Hence, a robust ML model that accurately c Invariant features are obtained by computing tensor contractions and eliminating linear dependencies specific to the considered approach.d Utilizing linear regression or neural networks, which take invariant features as an input, mapping from a structure to the respective energy is modelled.

17predicts the complete HEA behaviour should be able to predict both the high-temperature disordered phase, and the lowtemperature ordered phases.

18Hence, we choose structures that represent both these temperature regimes for training and evaluation of the ML potentials.The training data includes 0 K energies and forces of ordered phases-binaries, ternaries and quaternaries.In addition, we also include configurations of strained binaries and of the disordered TaVCrW alloy at 2500 K.These subsystems that form the training set are classified as in-distribution subsystems.

19To further investigate the generalization capabilities of the MLpotentials, we also evaluate their performance on subsystems from different parts of the compositional space of the Ta-V-Cr-W family that do not form a part of the training set.For this, we choose a set of non-equiatomic ternaries, and evaluate both the 0 K and high-temperature energy and force predictions of the MLpotentials.These subsystems are classified as out-of-distribution subsystems.The structures in the training and validation data set of the in-distribution and out-of-distribution subsystems are detailed in the 'Methods' section.

20Accuracy for the in-distribution subsystems Figure 2 shows the root-mean-square (RMS) errors in the predicted energies and forces for all in-distribution subsystems using the MTP.The RMS error-tetrahedra for the GM-NN potential and the EAM/MEAM potentials are compiled in the Supplementary Information.In addition to the 0 K subsystems (binaries, ternaries, quaternary), Fig. 2 also shows errors for the 0 K strained binaries and the 2500 K disordered HEA, all of which form the indistribution subsystems.The 'Overall errors' correspond to the RMS errors on all configurations put together.The results are additionally compiled in Table 1.To guarantee reliable statistics, all values refer to averages over ten separately fitted MTPs and GM-NNs.

21From Fig. 2 and Table 1 (and Fig. S1 in the Supplementary Information), we see that both ML-based models MTP and GM-NN are almost equally accurate and reproduce DFT values extremely well for the in-distribution subsystems.For the 0 K subsystems, the RMS errors in energies and forces range from 1-4 meV/atom and 0.02-0.06eV/Å, respectively, and for the 2500 K disordered structure, the RMS errors are around 2.5 meV/atom and 0.16 eV/Å, respectively.The strained binary structures are also predicted to within 4.5 meV/atom error in energy, with some binaries (CrW, TaCr, and VW) being predicted more accurately than the others, irrespective of the model chosen.The MTP is marginally better than the GM-NN in predicting the 2500 K structure (i.e., the vibrational degrees of freedom).The GM-NN predicts the 0 K structures marginally better (i.e., the configurational degrees of freedom).

22Figure 3 shows the correlation between the predicted forces for the 0 K and the 2500 K TaVCrW structures.The 0 K data in the training and validation data set include a combination of relaxed and unrelaxed structures, and they span a broad range of force values.For example, as seen in Fig. 3, the forces range from −2 to 2 eV/Å for the TaVCrW 0 K structures.For the 2500 K MD structure, they range from −10.5 to 10.5 eV/Å.Irrespective of this, there is an excellent agreement in the forces predicted by the ML-based models for all structures of the in-distribution subsystems.

23The overall accuracy achieved by the MTP and the GM-NN with respect to the DFT values is remarkable, given the complexity of the configurational phase space (which includes both 0 K subsystems and a 2500 K disordered quaternary).To put it into perspective, Table 1 also shows the RMS errors of an EAM that was fit to a combination of the 2500 K 4-component structure and 0 K subsystems.Both the energy and force errors are one to two orders of magnitude higher, deeming them almost unusable for any accurate property prediction.The last column in Fig. 3 shows the force correlation between the EAM-predicted forces and the DFT forces on both 0 K and 2500 K TaVCrW structures.The 0 K forces predicted by the EAM are highly uncorrelated to the DFT values, and the 2500 K forces have a much broader distribution (larger RMS error) compared to the two ML-based models.

24Heat capacity prediction for the HEA Having shown the remarkable accuracy in energies and forces achievable with the ML-based models for the in-distribution subsystems, we now test their reliability and robustness in predicting thermodynamic properties of the disordered TaVCrW HEA.In particular, we analyse the isobaric heat capacity, C p (T), up to 2500 K (close to the melting point).The heat capacity is calculated numerically using thermodynamic integration, the details of which are in the 'Methods' section.

25Figure 4 shows the heat capacity curves obtained using the MTP and the GM-NN.The curves are compared to the DFT results from literature 36 .We have removed the electronic part from the full DFT curve to be able to directly compare to the results predicted by the current potentials.Both the MTP and the GM-NN predict almost the same behaviour of the heat capacity with temperature.The curves are also very close to the full DFT curve up to around 2200 K after which the ML-based curves diverge.The heat capacity, calculated as the second derivative of the Gibbs energy with temperature, is extremely sensitive to small changes in the free energy.Hence, given that only 25% of the training set comprised of disordered quaternary structures (0 K and 2500 K), the accuracy achieved by both the MTP and GM-NN for the heat capacity is outstanding.The curves are also compared to the heat capacity calculated using the EAM in Fig. 4. The EAM that was fitted to the entire training set whose RMS errors were compared in Table 1 was not stable enough to run TI across the entire temperature and volume range.Hence, we have fitted an EAM only to the 2500 K disordered TaVCrW structures to calculate the heat capacity.Even then, the heat capacity calculated by the EAM diverges from the DFT curve after 750 K and is much less accurate.

26Accuracy for the out-of-distribution subsystems Figure 5 shows the errors in the predicted energies and forces (finite-temperature results at 2000 K and 0 K results) for the out-ofdistribution subsystems (non-equiatomic ternaries on the x-axis) using both the MTP and the GM-NN potential.The first row of plots contains the errors in absolute energies of the various subsystems.It is observed that the prediction of the absolute energies by the ML-based potentials is off by as much as 20 meV/atom in some cases.The out-of-distribution subsystems are not a part of the training set.The ML-potentials-although trained on absolute energies of configurations of the in-distribution subsystemscannot accurately predict the large, absolute chemical potentials.Hence, we observe these much higher errors in the absolute energies of the out-of-distribution subsystems compared to those from the in-distribution subsystems.

27However, the temperature dependence of thermodynamic properties such as the heat capacity discussed in the previous section, are numerical functions of energy differences instead of absolute energies.Thus the absolute energy predictions do not serve as a rigorous assessment of the accuracy of the ML-based potentials in predicting thermodynamic properties.In the second row in Fig. 5, we show the respective RMS errors in the relative energy (with respect to the corresponding relaxed structure) of the out-of-distribution subsystems, and find that the errors are less than 5.5 meV/atom.

28In the third row of Fig. 5, we also show the errors in atomic forces at both 2000 K (left) and 0 K (right).The errors observed in the 2000 K forces are similar to those for the in-distribution systems with values not exceeding 0.16 eV/Å.Accurate prediction of MD trajectories at elevated temperatures can be thus expected for various alloy compositions in the Ta-V-Cr-W family.The errors in the 0 K forces are even smaller, and comparable to the 0 K subsystems in the in-distribution set.An exception is the Cr 17 W 17 V 66 alloy, where the higher error comes from the distinctly higher absolute value of the force in the corresponding configuration (marked on the top of the plot).Hence, relative force errors are comparable among the different out-of-distribution subsystems.

29In clear contrast to the ML models, the performance of the EAM on the out-of-distribution subsystems is much worse.The absolute energies are off by 120-200 meV/atom, while even the relative energies are off by 60-80 meV/atom.The RMS error in the forces in the ternaries is similar to the error observed for the TaVCrW quaternary with values ranging from 0.5 to 0.7 eV/Å.Such errors make the EAM unsuitable, even more so, for thermodynamic property predictions of out-of-distribution subsystems.

30Overall, the performance of the ML-based potentials is equally and remarkably good even for out-of-distribution subsystems.The observed larger errors in the absolute energies could be, for For GM-NN models, 500 structures were selected randomly from the respective training set to prevent overfitting using the early stopping technique 54 .Thus, GM-NN models were trained on 500 structures less than MTP and EAM.This procedure was repeated ten times for each of the original data splits and resulted in averaging over 100 splits in total.For the deformed structures, the results are averaged over ten splits.

31Binary structures are strained along the [100] direction and used as a part of the validation set.For different binaries, the strains are chosen based on certain accommodation rules (see 'Methods' section).The strains can vary up to 4.71%.

32example, corrected in an additional step by single static DFT calculations at the respective compositions.

33Active learning applied to the TaVCrW HEA Figure 6 compares the learning curves obtained by training the MTP and the GM-NN models on randomly and actively selected data.Indeed, the MTP reaches convergence in the energy already with a seemingly very small training set size of 128 structures.However, one should note that each structure contains several tens to hundreds of atoms with many distinct local chemical environments.The total number of atoms in each training set is tabulated in Table 2.For example, the MTP trained on 128-atom structures constitutes around 11,000 atoms.Hence, even with 128 structures, the MTP is trained on a sufficiently large number of atomic neighbourhoods, allowing it to make accurate predictions on every part of the configurational space.

34Comparison of the dashed and solid lines in Fig. 6a, b reveals that there is no improvement in the RMS errors in energies using the active learning approach for neither of the two ML models.Since the random data selection was made across the entire diverse configurational space (with data chosen from all 0 K subsystems and MD), it is already sufficient to reach good energy accuracy for the Ta-V-Cr-W alloy family.An advanced active learning approach is superfluous for obtaining good energies.

35Figure 6c, d show the errors in forces with increasing training set size.Once again, the MTP converges faster to its minimum RMS error in the forces in comparison to the GM-NN which has a more gradual decrease.The reason for this is the same as above, i.e., the simpler formalism of the MTP.However, unlike in the energies, here we notice a difference in convergence in the RMS error between the random and actively learnt MTP (dashed and solid orange lines respectively).The MTP trained on actively learnt training sets converges faster than the MTP trained on randomly selected training data.There is no such clear difference seen in the GM-NN curves (dashed and solid blue lines).To explain the improvement of active learning over a random selection for the MTP and the absence of such an improvement for the GM-NN, we track the number of 2500 K configurations in the actively learnt training set.

36Table 2 shows the fraction of 2500 K configurations, given in brackets, at different stages of the MTP and GM-NN active learning process.The active learning scheme of the MTP selects a higher fraction of 2500 K configurations in comparison to the GM-NN model, especially as the training set size increases.For example, for the MTP trained on 256 structures, 34% of the training set comprises of 2500 K configurations.This is reflected in the considerably better performance of the actively learnt MTP in predicting atomic forces at small training set sizes.In contrast, the active learning approach employed by GM-NN selects roughly the same amount of 2500 K data across all active learning steps, but a much smaller fraction than the corresponding MTP scheme.The GM-NN method constrains representativity of the selected batch, i.e. takes data distribution into account, and almost 80% of the total training set comprises of 0 K data.Thus, there is only a very small decrease in the RMS error in forces using the GM-NN model coming from the actively learnt training set.In conclusion, active learning might be beneficial as long as multiple structures are provided before labelling, i.e., computing DFT energies and forces.One can only take advantage of active learning in combination with a conventional human-based training set generation.

Training and inference times

37The time taken to train an ML-based model and to perform MD calculations with it depends on the number of model parameters.

38In the case of the GM-NN potential, this number is dictated by the neural network representation, whereas for an MTP the contractions are decisive (check 'Methods' section for details).To elucidate the training and inference times, we compare five GM-NNs and five MTPs built with different numbers of model parameters.The GM-NNs are designated as: 593-512-512-1, 593-128-128-1, 593-32-32-1, 360-512-512-1, and 910-512-512-1.Here the first number represents the number of input features, the following two numbers represent the number of hidden neurons, while the 1 in the end stands for the single output neuron (which corresponds to the energy of the system).For the MTP, we compare potentials with levels 16, 20, 24, 26, and 28 (see Equation ( 6)) resulting in 92, 288, 864, 1464, and 2445 descriptors, respectively.

39Table 3 lists the training times for the different MTP and GM-NN models fitted to the in-distribution subsystems.Naturally, the time taken to train the MTP increases with the level as the number of parameters increase.Similarly, the time taken to fit a GM-NN potential increases with the number of input features, and with the number of neurons.The lev24 MTP-which is used eventually for the thermodynamic properties-takes eight hours to reach convergence in 400 iterations of the Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithm 48 .The corresponding GM-NN model takes four hours for 1000 epochs.In addition, in every epoch, the GM-NN evaluates 500 other configurations to avoid overfitting.

40Figure 7 shows the inference time of the ML-models in comparison to the classical potentials and in relation to the achievable accuracy.In general, the MTPs (orange circles) are faster than the GM-NN potentials (blue triangles).However, the Fig. 5 Errors in predicted energies and atomic forces for finite-temperature (2000 K) and 0 K out-of-distribution non-equiatomic ternaries.For the 2000 K data, twelve structures have been sampled for each system.Thus, ΔE and ΔF ij denote the respective RMS errors.For the relative energy, we used the first structure in each subsystem as a reference.Therefore, RMS errors ΔE rel are evaluated for the remaining eleven structures.For the 0 K test, we employed a single configuration such that ΔE denotes the mean-absolute error, while ΔF ij denotes the RMS error.

41GM-NNs have been designed to run on graphical processing units (GPUs), which makes them faster (blue stars) than the higher-level MTPs.More specifically, the MTP used in this work for the HEA modelling-the lev24 MTP-is faster by a factor of 2.5 than the corresponding GM-NN-(593-512-512-1)-on the same CPU.However, on an NVIDIA GeForce RTX 3090 Ti 12GB GPU, the GM-NN is 2.5 times faster than the lev24 MTP.

42It can also be observed that the inference time of an MTP gradually increases as the level of the MTP increases, although the accuracy (normalized error) saturates to a minimum after lev24.On the other hand, all GM-NN models are comparably computationally efficient on a GPU, and only minor differences in inference times have been observed on CPU nodes.The accuracy of GM-NN deteriorates when decreasing the number of hidden neurons or input features.For example, decreasing the number of neurons by a factor of 16 leads to similar results as decreasing the number of features by a factor of 1.6.Thus, the employed representation affects the final result more than the network size.

43Obviously, the ML-based models are slower than conventional potentials such as the EAM and the MEAM model.For example, the lev24 MTP is slower by a factor of 35 in comparison to the EAM.However, the speed of the classical potentials is accompanied by an extreme inaccuracy compared to the ML potentials, at least an order of magnitude in the normalized error.

DISCUSSION

44We have developed two ML-based interatomic potentials-an MTP and a GM-NN-that can accurately capture the atomic interactions of the Ta-V-Cr-W alloy family.This is the first instance of exploring the limits of applicability of ML-based models to an extent where both the configurational and the vibrational degrees of freedom are included in the training and testing data sets for a chemically complex system.Specifically, the MTP and the GM-NN are able to extremely accurately reproduce energies and forces of both the 0 K subsystems, and the high-temperature (2500 K) Fig. 6 Learning curves for MTP and GM-NN models.Shaded areas denote the standard error on the mean evaluated over 10 or 100 independent runs for MTP and GM-NN, respectively.An additional factor of ten appears for GM-NN as for each of the ten data splits, another ten splits for early stopping have been performed.The root-mean-squared (RMS) and maximal (MAX) errors for energies are shown in (a) and (b) respectively in meV/atom; The RMS and MAX errors for atomic force are shown in (c) and (d) respectively in eV/Å.disordered equiatomic TaVCrW HEA, which make up the indistribution sets.They are also able to accurately predict the energies of the 0 K strained binaries.The accuracy achieved in the present work is very similar to the MTP errors obtained in ref. 36 for the same disordered alloy, although their MTP was trained only on the equiatomic 2500 K structures.Adding the configurational degrees of freedom by introducing many 0 K structures in the training data set does not affect the predictive capabilities of the MTP (nor the GM-NN) on the HEA behaviour, suggesting that there is scope for further expanding the training set.The models have also been tested on out-of-distribution subsystems (not a part of the training set) comprising of nonequiatomic ternaries.Both models successfully provide a similar performance for the out-of-distribution subsystems as compared to the in-distribution subsystems in the prediction of hightemperature MD forces.The observed RMS errors in absolute energies are larger than for the in-distribution cases, arising from the inability to predict accurate absolute chemical potentials.Nevertheless, the relative energies relevant for calculating temperature-dependent thermodynamic properties are still predicted with a low RMS error.These results indicate a good generalization of the MTP and GM-NN models even to out-ofdistribution data.

45In an earlier work 18 , lattice-based Monte Carlo and cluster expansion techniques were used to predict chemical SRO and phase separation below 1300 K in the TaVCrW alloy.With the here developed ML-based potentials, we can now model off-lattice behaviour that enables us to capture strong lattice relaxations.In phase-separated structures, lattice mismatch at the interface can lead to strained subsystems, which are likewise well-predicted by the MTP and GM-NN.Consequently, the low-temperature phaseseparated structures in combination with strained interfaces, the intermediate SRO structures, as well as the high-temperature fully disordered structure can now be simultaneously and more accurately modelled with a single potential.The here-developed ML models also offer scope to combine MD with Monte Carlo methods to further enhance the sampling of phase spaces of chemically complex alloys.The vibrational degrees of freedom that the ML-based models entail enable, for example, a more accurate prediction of the order-disorder transition temperature.A well-determined transition temperature is crucial in deciding the operational temperature of the HEA since ordering and phase segregation can lead to changes in mechanical behaviour 15 .

46The robustness of the ML-based models is also noticeable in the heat capacity curves shown in Fig. 4.Even small differences in the free energies are known to cause large deviations in the computed heat capacity 49 .Nevertheless, the MTPs and GM-NNs are reasonably accurate (< few meV/atom) in the free energy prediction that they are able to predict the heat capacities to DFT accuracy (without electronic contributions) up to around 2200 K.

47Even though the ML-based models are remarkable in their free energy and the eventual thermodynamic property prediction, one needs to keep in mind they have been fitted to DFT data that only contain the vibrational and configurational degrees of freedom.To reach 'full DFT' accuracy, one also needs to include the electronic degrees of freedom (electronic free energy and the impact of vibrations on it) and the magnetic degrees of freedom.The stateof-the-art method to include the electronic contribution uses the direct upsampling technique 49 , wherein we can perform DFT calculations (including electronic contributions) on snapshots generated by the ML-based models.The number of snapshots needed to reach a certain accuracy in the free energy can be roughly estimated based on the RMS errors in our models.In the current case, for an RMS error of 3 meV/atom, we can reach to within ± 1 meV/atom accuracy using approximately 35 snapshots 49 for a given volume and temperature.By doing so, we can include the temperature-dependent (and vibration-coupled) electronic degree of freedom into the thermodynamics of the alloy.To The bold font emphasizes the default potentials used throughout this work.

48Fig. 7 The trade-off between computational cost and normalized error (Equation ( 13)) evaluated for MTP, GM-NN, EAM, and MEAM.

49For the normalized error, the overall errors from Table 1 have been chosen.The darkened colour represents the default MTP and GM-NN models used throughout this work.Blurred colours show models with varying hidden neurons and/or input features.For MTP, the respective level defines the number of employed input features; see Equation (6).For GM-NN, we use a convention where the first number indicates the number of features, while all following numbers define the number of neurons in the respective layer (two hidden and one output layer).

50account for the magnetic free energy, there have been propositions put forth in the literature, such as the magnetic MTP 50 , that can be used for magnetic systems.In consequence, on top of the predictions of the currently fitted ML-based models, further expanding the configurational space of the training set (e.g., also including temperature-dependent behaviour of binaries and ternaries) and adding the electronic and magnetic degrees of freedom would lead to a more complete and accurate picture of the behaviour of chemically complex multicomponent alloys.For a complex system such as the Ta-V-Cr-W family, active learning is only partially beneficial.The RMS errors in predicted energies converge similarly irrespective of an active or random selection of configurations.This is true for both ML models.The random selection done uniformly across the diverse set of subsystems is already sufficient to reach good accuracy in the energies.The advantage of active learning is more evident in the convergence of the atomic forces, arising likely from the data set size and complexity of the atomic-force landscape compared to the energies.The active learning algorithm employed by MTP preferably selects more high-temperature configurations which have large force values.In contrast, the algorithm employed by GM-NN has been designed to select new data considering the data distribution.Thus, the GM-NN scheme selects almost equal portions of MD data in every iteration.

51The convergence of the current models with respect to the training set size is also the result of the number of trainable parameters.The MTP has ~500 times fewer fitting parameters than the GM-NN model.Hence, it reaches its final accuracy faster while showing no improvement when increasing the training set size above a certain amount.On the other hand, the GM-NN model shows gradual yet continuous improvement in accuracy with the training set size, owing to a larger number of trainable parameters.This fact allows us to assume that the GM-NN would outperform the MTP on larger data set sizes.However, the accuracy of the MTP on larger data sets can be improved by increasing the level of the selected MTP model, i.e., by increasing the effective number of trainable parameters.

52Ultimately, in complex systems such as the TaVCrW HEA, which require large simulation cells to allow for events such as SRO to occur, the choice of the interatomic model is an interplay between the accuracy and the inference (simulation) time.Although the MLbased models are one to two orders slower than classical potentials (yet negligibly small in comparison to ab initio simulation times), they are at least an order of magnitude more accurate.Classical empirical potentials such as the EAM/MEAM are restricted in their functional form.Although such potentials need a smaller training set leading to less severe phase space sampling problems, their inaccuracy far outweighs their partial benefits.The inaccuracy of classical models might not only affect their robustness and stability while running MD across the volume and temperature range but would also highly alter, for example, the order-disorder transition temperature, making them unsuitable for such applications.Hence, for predicting challenging multicomponent system behaviour, one needs to resort to ML-based models.

53In summary, despite certain prominent differences between MTP and GM-NN, they provide similar results, evaluated on a test data set or during a real-time simulation.Considering that the two models are cutting-edge representatives of the ML-potential family, these results may reflect the constantly growing boundaries of the machine-learning potentials applied to current material systems of interest.

Local interatomic potentials

54An atomic structure is defined by S ¼ fr i ; Z i g Nat i¼1 , where N at is the number of atoms, r i 2 R 3 denotes the Cartesian coordinates of atom i, and Z i 2 N is the respective atomic number.We consider the mapping f from the atomic structure to a scalar electronic energy E, i.e., f : S7 !E 2 R. All models employed here assume locality of interatomic interactions (Fig. 1a), thus the total energy of the system is split into contributions from individual atoms

55The energy contributed by atom i is defined by a parameterized function, i.e., E i ¼ E i S i ; θ ð Þ, where θ are trainable parameters and S i is the local atomic environment of atom i.The parameters θ are learned from the training data by minimizing a predefined loss function L θ ð Þ.The data set typically contains total energies, atomic forces, and stresses obtained by an ab initio method.The local environment, S i ¼ fr i ; Z i ; fr j ; Z j g j2Rcut g Nat i¼1 , is defined by the chosen cutoff radius R cut .In this work, we choose a cutoff radius of 5.0 Å.

Moment tensor potential-MTP

56The MTP site energy for each atom i is linearly expanded through a set of basis functions B α :

57which are contractions (e.g., dot products of vectors and matrices, see below) of the moment tensor descriptors M μ,ν 33 .The ξ α are expansion coefficients and the parameter α max is determined from Equation ( 6) below.Each descriptor M μ,ν is composed of a radial part (scalar function depending only on the interatomic distances) and an angular part (a tensor of a certain rank) (Fig. 1b),

58where n i stands for the neighbourhood of the atom i (all atoms within the radius R cut around atom i), μ stands for the number of the radial functions, ν is the rank of the tensor in the angular part, and r ij the vector between atom i and j.The radial functions f μ (|r ij |, Z i , Z j ) are expanded in a basis of Chebyshev polynomials, usually up to rank seven,

59where c k μ;Zi ;Zj are expansion coefficients and Q k ðrÞ ¼ T k ðrÞðR cut À rÞ 2 :

60(

61Here T k (r) are the Chebyshev polynomials of order k and the ðR cut À rÞ 2 term is introduced to ensure a smooth decreasing to 0 at R cut .

62Although the moment tensor descriptors themselves are twobody functions (depending only on r ij ), many-body interactions get included into the basis functions B α by building various contractions of the M μ,ν , under the condition that each contraction has to yield a scalar value.Note that the coefficients c k μ;Zi ;Zj enter Equation (2) non-linearly, as the basis functions B α contain multiplications of different radial functions, see examples below.This way, the MTP fitting parameters θ ¼ fξ α ; c k μ;Zi ;Zj g are composed of the coefficients ξ α and c k μ;Zi;Zj , which enter Equation (2) linearly and non-linearly, respectively.

63For the purpose of choosing which (out of the infinite number of) basis functions to include in the interatomic potential, we define a degree-like measure, 'level', of M μ,ν defined by levM μ,ν = 2μ + ν and the level of B α obtained by contracting M μ 1 ;ν1 , M μ 2 ;ν2 ;

64, as

65Thus, to define an MTP we choose a particular lev max and expand the site energy function linearly through such B α , which satisfy levB α lev max .The MTP part of Fig. 1c (left-hand side) has examples of how some of the basis functions are constructed:

66• For the 2-body case, the scalar moments M 0,0 , M 1,0 , and M 2,0 already serve as basis functions, which differ by the radial functions involved.

67• For the 3-body case, the moments M 0,1 and M 1,1 produce basis functions M 0,1 ⋅ M 0,1 and M 1,1 ⋅ M 1,1 , respectively, which differ by the radial functions involved.

68• For the 5-body case (the most complex case for MTP in this work), the basis function has the form M 0,1 ⋅ M 0,2 ⋅ M 0,2 ⋅ M 0,1 .

69Note how the condition specified in Equation ( 6) reduces the number of different radial functions involved in the many-body moments (Fig. 1c left).By increasing lev max , MTPs with more parameters emerge, which are capable of more accurately fitting or handling a larger training set, but which require more computational time for fitting and inference (simulation time).In this work, we use an MTP with lev max ¼ 24.

70The parameters of an MTP are obtained as those minimizing the mean squared loss on the training data (Fig. 1d).We use the second-order quasi-Newton BFGS 48 optimization method, which requires exact first derivatives of the loss function with respect to the model parameters and approximates the second derivatives by constructing the so-called hessian matrix.To balance the relative contributions of energies, forces, and stresses for a configuration j with N Gaussian moment neural network-GM-NN GM-NN uses an artificial NN to map an atomic structure S to the total energy E S; θ ð Þ.Specifically, GM-NN employs a fullyconnected feed-forward NN consisting of two hidden layers 34,35

71with W ðlþ1Þ 2 R d lþ1 d l and b ðlþ1Þ 2 R d lþ1 being the weights and biases of the layer l + 1, respectively.The default network in this work consists of d 0 = 593 input neurons (dimension of the feature vector

72512 hidden neurons, and a single output neuron d 3 = 1.The weights of the network W (l+1) are initialized by picking the respective entries from a normal distribution with zero mean and unit variance.In contrast, the trainable bias vectors b (l+1) are initialized to zero.To improve the accuracy and convergence of the GM-NN model, we employ a neural tangent parameterization (factors of 0.1 and 1= ffiffiffiffi d l p ) 47 .For the activation function ϕ, we use the Swish/SiLU function 51,52 .

73The network's output is scaled and shifted to aid the training process even further,

74where the trainable shift parameters μ Zi are initialized by solving a linear regression problem, and the trainable scale parameters σ Zi are initialized to 1.The constant c is given by the RMS error per atom of the regression solution 35 .

75To encode the invariance of the total energy to translations, rotations, and permutations of the same species, we employ the Gaussian moment (GM) representation 34 .The construction of GM features is based mainly on defining pairwise distance vectors r ij = r i − r j and splitting them into their radial and angular components: r ij = ∥r ij ∥ 2 and rij ¼ r ij =r ij .Thus, the equation from Fig. 1b takes a slightly different form as the L-fold outer product is computed for the normalized distances,

76where rL ij ¼ rij Á Á Á rij .The non-linear radial functions R Zi ;Zj ;s r ij ; β À Á are defined as a finite sum of Gaussians Φ s 0 r ij À Á

77(N Gauss = 8 for this work) 35 R Zi;Zj ;s r ij ;

78The factor 1= ffiffiffiffiffiffiffiffiffiffiffiffi N Gauss p influences the effective learning rate and is inspired by the neural tangent parameterization 47 .The individual radial functions are centred at an equidistant grid of points between R min ¼ 1:5 Å (specific to this work) and R cut , and are rescaled by a cosine cutoff function 29 .The chemical information is encoded in the GM representation by trainable parameters β Zi;Zj;s;s 0 .The index s runs over the number of independent radial basis functions, set to N basis = 6 for this work.

79The features invariant to rotations G i (Fig. 1c right) are obtained by computing contractions of the respective tensors, as any full contraction of Cartesian tensors rL ij yields a rotationally invariant scalar 34 .For the employed GM-NN model, contractions of up to three tensors of the maximum rank of three are used.Thus, the many-body expansion is restricted to the maximum of four-body terms, e.g.,

80where we use Einstein notation, i.e., the right-hand sides are summed over a, b ∈ {1, 2, 3}.Particular contractions are defined by identifying unique generating graphs 43 .In a practical implementation all GM features are computed at once providing tensors G ðjÞ 2 fR N basis ; R N basis N basis ; g.However, the number of invariant features used as input to NNs is reduced by considering the permutational symmetries of the respective graphs (see Fig. 1c right) 34 , i.e., only tensors of the same rank can be exchanged.

81The parameters θ = {W, b, β, σ, μ} of the NN, i.e., weights W and biases b, as well as the trainable parameters β of the local representation and the parameters that scale, σ, and shift, μ, the output of the NN, are optimized by minimizing the mean squared loss on training data (Fig. 1d).We employ the Adam optimizer 53 to minimize the loss function.The respective parameters of the optimizer are β 1 = 0.9, β 2 = 0.999, and ϵ = 10 −7 .We use a minibatch of 32 molecules.The layer-wise learning rates are set to 0.0075 for the parameters of the fully connected layers, 0.005 for the trainable representation, as well as 0.0125 and 0.00025 for the shift and scale parameters of atomic energies, respectively.The training is performed for 1000 training epochs.To balance the relative contributions of energies, forces, and stresses, weight factors of C e ¼ 1=N ðjÞ at , C f = 0.005 Å 2 , and C s ¼ 0:0001=N ðjÞ at are used, respectively.To prevent overfitting during training, we employ the early stopping technique 54 .All models are trained within the TensorFlow framework 55 .

Relation of MTP and GM-NN to other ML potentials

82Interestingly, the MTP and GM representations can be related to many other approaches of modelling interactions proposed in the literature by considering a general function, e.g., ref. 56

83This expression describes a four-body interaction but scales cubically with the number of atoms within R cut .It is reminiscent of, e.g., atom-centred symmetry functions 57 .However, by writing the definition of scalar products hr ij rik i explicitly and pulling out the sum with respect to spatial coordinates we arrive at expressions proposed in ref. 33 and ref. 34 , which scale linearly with the number of atoms within R cut .Specifically, for GM-NN the expression is obtained in Equation ( 11), while for MTP the analogue is contracting the tensor moments from Equation (3), each of which scales linearly with the number of atoms.Since a Cartesian tensor of rank L can be written as a linear combination of spherical harmonics up to angular momentum L 58 , both MTP and GM-NN representations (which use Cartesian tensors) are closely related to linear ACE 59 and message-passing NequIP and MACE models 45,60 , which use spherical harmonics.Note that for message-passing models, the resulting many-body order and the effective cutoff radius increase with the increasing number of interaction blocks.While it often leads to a better performance in terms of error metrics such as RMS errors, it may lead to larger inference times and, thus, less efficient potentials.

84The recently proposed extension of HIP-NN models 61 with tensor sensitivity information is closely related to MTP and GM-NN potentials, as it employs irreducible Cartesian tensors to pass tensor information between atomic sites 62 .Another example of local representations based on spherical harmonics is SOAP or the respective GAP model 63 .Unlike the above-mentioned models, it employs Gaussian process regression to map the structure to the respective energy.A more detailed overview of existing interatomic ML potentials is out of the scope of this work, and the reader is referred elsewhere 32,64,65 .

EAM and MEAM potentials

85Classical interatomic potentials based on the embedded-atom method (EAM) 20 and the modified embedded-atom method (MEAM) 21 are well understood in the literature and are not discussed here.We just draw attention to their relation to the MLbased models.EAM can be viewed as an MTP potential with one radial function per species pair and without the angular part, i.e., lev max ¼ 0, see Equation (6).In turn, MEAM would be close to an MTP with lev max ¼ 2 (see Equation ( 6)), allowing for different radial functions, and a vectorial angular part (rank 1 tensor).

86In the main text, we compare the performance of the ML-based models to an EAM that is fitted to the same training data.In addition, in the Supplementary Information, we also compare to a reference-free MEAM in order to test whether there is any improvement coming from the angular three-body terms.The EAM and reference-free MEAM fitting is performed with MEAMfit 66,67 .Fitting weights for the energies, atomic forces and stresses are 1=N ðjÞ at , 0.1, and 0.001, respectively.

Data set generation -DFT calculations

87All DFT calculations are performed using VASP 68,69 , with projector augmented wave (PAW) potentials 70 , within the generalized gradient approximation (GGA) [71][72][73] , and in the spin-unpolarized state.We use Methfessel-Paxton smearing of order 1 with σ = 0.1, a 350 eV energy cutoff and an automatic k-mesh generation with KSPACING = 0.12.The number of valence electrons is 11 for Ta and V, and 12 for Cr and W.

Description of the data set

88The training and test data set includes energies, atomic forces and stresses from the DFT calculations.For the 0 K configurations with small supercells (item 1 below), we perform structural relaxation with DFT.For the 0 K configurations with large supercells (item 2 below), we have a combination of relaxed and unrelaxed structures.All configurations sampled from MD (item 3 below) are unrelaxed.We generate 2-, 3-, and 4-component BCC configurations in the following categories:

891. 0 K configurations in small supercells (2-8 atoms):

90These configurations are sampled with the enumlib library 74,75 , which enumerates all possible symmetries to obtain non-repetitive structures.We first pick 2500 binary structures from enumlib, representing different atomic combinations of each of the TaV, TaCr, TaW, VCr, VW, and CrW subsystems on the BCC lattice.To obtain the 4-component structures, we take 8-atom binaries from above and substitute the elements giving 248 equiatomic quarternary structures.2. 0 K configurations in medium to large supercells (16, 128, 432, 8192 atoms): These configurations are designed to mimic the possible low-temperature ordering in TaVCrW.For each of these sizes, we create certain types of binaries and quaternaries.Binary structures for each of TaV, TaCr, TaW, VCr, VW, CrW subsystems include: Quaternary structures represent all possible phase separations on the TaVCrW BCC lattice, i.e., half of the cubic supercell is one binary system (e.g., TaV) and the other half is another binary system (e.g., CrW), and they include: We use the MTP from ref. 36 to run NPT MD at 2500 K. From the obtained MD trajectories, we sample 983 and 48 structures with 128 and 432 atoms in the supercell, respectively.Sampling is performed by employing active learning designed for MTP models 76,77 , with MTP potentials initialized by training on 0 K data.Thus, the selected data may introduce some bias towards MTP performance.However, a more thorough investigation may be required to prove this hypothesis and is postponed to future works.The energies, forces and stresses of the sampled structures are calculated using DFT without relaxation.4. Deformed structures (432 atoms):

91Equiatomic TaVCrW can phase segregate at low temperatures into: Ta+Cr/V+W (predicted by MTP in this work), Ta+W/Cr+V (predicted in ref. 18 ), and Ta+V/Cr+W.Each binary part undergoes certain strain in the [100] direction to accommodate the same cross-section between the two parts.Hence we also create deformed binaries as a part of the test data set (whose RMS errors are in Table 1) to accurately replicate such a phase-segregated B2/B2 quaternary structure.The strains applied along the [100] direction corresponding to the different binaries are: TaV 3.7%, CrW −1.28%, TaCr 0.27%, VW −0.14%, TaW 4.06% and VCr −4.71%.

92In total, 6711 configurations are computed with DFT for usage as training and validation sets.More precisely, there are 5680 0 K structures: 4491 binary, 595 ternary, and 594 quaternary structures, along with 1031 structures sampled from MD at 2500 K.The number of binary and ternary structures is more or less equally distributed between the subsystems, and the difference comes from the non-convergence of some DFT calculations for some subsystems.

Testing the models

93To assess the accuracy of the models, we compute the RMS error in energies and atomic forces on every Ta-V-Cr-W in-distribution

Fig. 1

94Fig. 1 Schematic representation of the moment tensor potential (MTP) and the Gaussian moment neural network (GM-NN) approaches.a Both methods rely on the assumption of locality of interatomic interactions but implicitly include interactions beyond the cutoff radius R cut .b As an intermediate step in constructing invariant features, both methods obtain a common representation equivariant to rotations.cInvariant features are obtained by computing tensor contractions and eliminating linear dependencies specific to the considered approach.d Utilizing linear regression or neural networks, which take invariant features as an input, mapping from a structure to the respective energy is modelled.

Fig. 2

95Fig. 2 RMS errors in predicted energies and forces for the MTP model evaluated on the test data for different in-distribution subsystems of Ta-V-Cr-W.Energy RMS errors in meV/atom are shown in bold, while the atomic force RMS errors in eV/Å are in grey.The numbers with arrows indicate the RMS errors for the energy per atom for strained binary structures.

96Figure 6a, b shows the RMS and MAX errors in energies.It can be seen that the MTP (orange lines) needs significantly fewer data to reach its final accuracy in the energies.The GM-NN model (blue lines), on the other hand, shows a continuous (nearly linear) decrease in the error on the energies as the size of the training set increases.The final accuracy of the two models is similar.The reason for the faster convergence of the MTP can be attributed to the difference in the inherent nature of the two ML-based models-the relatively simpler formalism of the MTP with ~500 times fewer trainable parameters favoring quicker convergence versus the enhanced non-linear NN formalism of the GM-NN model making it continuously more accurate with increasing training data.

Fig. 3

97Fig. 3 Correlation between the predicted forces (by the MTP, the GM-NN and the EAM potential) and the DFT forces in eV/Å for the 0 K and 2500 K structures of the TaVCrW alloy.The colours indicate the relative density as estimated by a kernel density estimator.

Fig. 4

98Fig. 4 Isobaric heat capacity as a function of temperature computed by employing the MTP, the GM-NN, and the EAM interatomic potentials.The reference DFT values (without the electronic contribution) are taken from literature 36 .

99ðjÞ at atoms, weight factors of C e ¼ 1=N ðjÞ at , C f = 0.001 Å 2 , and C s ¼ 0:0001=N ðjÞ at are used, respectively.

•

100BCC interface: half of the cubic supercell is one unary, and the other half is the other unary

101-temperature (2500 K) disordered structures (128 and 432 atom supercells):

Table 1 .

102RMS errors in the predicted energies/forces for the individual Ta-V-Cr-W in-distribution subsystems.

103The results are provided for the MTP, GM-NN, and EAM models.Atomic energies are given in meV/atom, while forces are given in eV/Å.The best training result is written in boldface.aTheresults for MTP and EAM are obtained by averaging over ten splits of the original data set, except for the deformed structures.The latter were obtained for all models trained on the whole data set (training + test).b

Table 2 .

104The average number of atoms in the differently sized training sets during active learning (N train = number of training structures).

Table 3 .

105Training times for both ML-based models evaluated for different numbers of model parameters on two Intel Xeon E6252 Gold (Cascade Lake) CPUs.Model No. parameters No. cfgs No. epochs/iterations Time (h)

참고문헌 71건

  1. 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
  2. Early Stopping — But When? Lecture notes in computer science · Springer Science+Business Media · 2012 10.1007/978-3-642-35289-8_5
  3. Algorithm for generating derivative structures Physical Review B · American Physical Society · 2008 10.1103/physrevb.77.224115
  4. Projector augmented-wave method Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.50.17953
  5. 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
  6. Generalized Gradient Approximation Made Simple Physical Review Letters · American Physical Society · 1996 10.1103/physrevlett.77.3865
  7. Mechanical Properties and Stacking Fault Energies of NiFeCrCoMn High-Entropy Alloy JOM · Springer Science+Business Media · 2013 10.1007/s11837-013-0771-4
  8. Generalized Neural-Network Representation of High-Dimensional Potential-Energy Surfaces Physical Review Letters · American Physical Society · 2007 10.1103/physrevlett.98.146401
  9. Ground State of the Electron Gas by a Stochastic Method Physical Review Letters · American Physical Society · 1980 10.1103/physrevlett.45.566
  10. Modified embedded-atom method interatomic potentials for Ti and Zr Physical Review B · American Physical Society · 2006 10.1103/physrevb.74.014101
  11. 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
  12. On the limited memory BFGS method for large scale optimization Mathematical Programming · Springer Science+Business Media · 1989 10.1007/bf01589116
  13. Lattice dynamics of anharmonic solids from first principles Physical Review B · American Physical Society · 2011 10.1103/physrevb.84.180301
  14. Self-interaction correction to density-functional approximations for many-electron systems Physical review. B, Condensed matter · American Physical Society · 1981 10.1103/physrevb.23.5048
  15. 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
  16. Temperature dependent effective potential method for accurate free energy calculations of solids Physical Review B · American Physical Society · 2013 10.1103/physrevb.87.104111
  17. Gaussian Approximation Potentials: The Accuracy of Quantum Mechanics, without the Electrons Physical Review Letters · American Physical Society · 2010 10.1103/physrevlett.104.136403
  18. <i>Ab initio</i>molecular-dynamics simulation of the liquid-metal–amorphous-semiconductor transition in germanium Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.49.14251
  19. Electronic wave functions - I. A general method of calculation for the stationary states of any molecular system Proceedings of the Royal Society of London A Mathematical and Physical Sciences · Royal Society · 1950 10.1098/rspa.1950.0036
  20. Moment Tensor Potentials: A Class of Systematically Improvable Interatomic Potentials Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2016 10.1137/15m1054183
  21. Lattice Distortions in the FeCoNiCrMn High Entropy Alloy Studied by Theory and Experiment Entropy · Multidisciplinary Digital Publishing Institute · 2016 10.3390/e18090321
  22. Generating derivative superstructures for systems with high configurational freedom Computational Materials Science · Elsevier BV · 2017 10.1016/j.commatsci.2017.04.015
  23. Machine learning molecular dynamics for the simulation of infrared spectra Chemical Science · Royal Society of Chemistry · 2017 10.1039/c7sc02267k
  24. Computationally-driven engineering of sublattice ordering in a hexagonal AlHfScTiZr high entropy alloy Scientific Reports · Nature Portfolio · 2017 10.1038/s41598-017-02385-w
  25. Ab initio assisted design of quinary dual-phase high-entropy alloys with transformation-induced plasticity Acta Materialia · Elsevier BV · 2017 10.1016/j.actamat.2017.07.023
  26. Active learning of linearly parametrized interatomic potentials Computational Materials Science · Elsevier BV · 2017 10.1016/j.commatsci.2017.08.031
  27. Machine learning of molecular properties: Locality and active learning The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5005095
  28. Hierarchical modeling of molecular energies using a deep neural network The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5011181
  29. Chemical short-range orders and the induced structural transition in high-entropy alloys Scripta Materialia · Elsevier BV · 2017 10.1016/j.scriptamat.2017.09.049
  30. Phase stability and transformation in a light-weight high-entropy alloy Acta Materialia · Elsevier BV · 2018 10.1016/j.actamat.2017.12.061
  31. Ab initio phase stabilities and mechanical properties of multicomponent alloys: A comprehensive review for high entropy alloys and compositionally complex alloys Materials Characterization · Elsevier BV · 2018 10.1016/j.matchar.2018.06.019
  32. Outstanding radiation resistance of tungsten-based high-entropy alloys Science Advances · American Association for the Advancement of Science · 2019 10.1126/sciadv.aav2002
  33. Atomic cluster expansion for accurate and transferable interatomic potentials Physical review. B./Physical review. B · American Physical Society · 2019 10.1103/physrevb.99.014104
  34. The chemical ordering and elasticity in FeCoNiAl1−Ti high-entropy alloys Scripta Materialia · Elsevier BV · 2019 10.1016/j.scriptamat.2019.04.008
  35. The effectiveness of reference-free modified embedded atom method potentials demonstrated for NiTi and NbMoTaW Modelling and Simulation in Materials Science and Engineering · IOP Publishing · 2019 10.1088/1361-651x/ab2604
  36. High-entropy alloys Nature Reviews Materials · Nature Portfolio · 2019 10.1038/s41578-019-0121-4
  37. A quantitative uncertainty metric controls error in neural network-driven chemical discovery Chemical Science · Royal Society of Chemistry · 2019 10.1039/c9sc02298h
  38. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning Neural Networks · Elsevier BV · 2018 10.1016/j.neunet.2017.12.012
  39. Gum-like mechanical behavior of a partially ordered Al5Nb24Ti40V5Zr26 high entropy alloy Intermetallics · Elsevier BV · 2019 10.1016/j.intermet.2019.106652
  40. Core effect of local atomic configuration and design principles in AlxCoCrFeNi high-entropy alloys Scripta Materialia · Elsevier BV · 2019 10.1016/j.scriptamat.2019.11.016
  41. High entropy alloys: A focused review of mechanical properties and deformation mechanisms Acta Materialia · Elsevier BV · 2019 10.1016/j.actamat.2019.12.015
  42. Controlling crystallographic ordering in Mo–Cr–Ti–Al high entropy alloys to enhance ductility Journal of Alloys and Compounds · Elsevier BV · 2020 10.1016/j.jallcom.2020.153805
  43. Atomic cluster expansion of scalar, vectorial, and tensorial properties including magnetism and charge transfer Physical review. B./Physical review. B · American Physical Society · 2020 10.1103/physrevb.102.024104
  44. On-the-fly active learning of interpretable Bayesian force fields for atomistic rare events npj Computational Materials · Nature Portfolio · 2020 10.1038/s41524-020-0283-z
  45. Representations of molecules and materials for interpolation of quantum-mechanical simulations via machine learning npj Computational Materials · Nature Portfolio · 2022 10.1038/s41524-022-00721-x
  46. Active Learning and Uncertainty Estimation Lecture notes in physics · Springer Science+Business Media · 2020 10.1007/978-3-030-40245-7_15
  47. Computational and experimental investigation of refractory high entropy alloy Mo15Nb20Re15Ta30W20 Journal of Materials Research and Technology · Elsevier BV · 2020 10.1016/j.jmrt.2020.06.036
  48. Short-range ordering and its effects on mechanical properties of high-entropy alloys Journal of Material Science and Technology · Elsevier BV · 2020 10.1016/j.jmst.2020.06.018
  49. Gaussian Moments as Physically Inspired Molecular Descriptors for Accurate and Scalable Machine Learning Potentials Journal of Chemical Theory and Computation · American Chemical Society · 2020 10.1021/acs.jctc.0c00347
  50. Neural-network assisted study of nitrogen atom dynamics on amorphous solid water – I. adsorption and desorption Monthly Notices of the Royal Astronomical Society · Oxford University Press · 2020 10.1093/mnras/staa2891
  51. Chemical short-range order in derivative Cr–Ta–Ti–V–W high entropy alloys from the first-principles thermodynamic study Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2020 10.1039/d0cp03764h
  52. Machine learning of molecular properties: Locality and active learning The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5005095
  53. Hierarchical modeling of molecular energies using a deep neural network The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5011181
  54. Anomalous collapses of Nares Strait ice arches leads to enhanced export of Arctic sea ice Nature Communications · Nature Portfolio · 2021 10.1038/s41467-020-20314-w
  55. Physics-Inspired Structural Representations for Molecules and Materials Chemical Reviews · American Chemical Society · 2021 10.1021/acs.chemrev.1c00021
  56. Machine Learning Force Fields Chemical Reviews · American Chemical Society · 2021 10.1021/acs.chemrev.0c01111
  57. Binding energies and sticking coefficients of H<sub>2</sub> on crystalline and amorphous CO ice Astronomy and Astrophysics · EDP Sciences · 2021 10.1051/0004-6361/202040023
  58. Finite-temperature interplay of structural stability, chemical complexity, and elastic properties of bcc multicomponent alloys from <i>ab initio</i> trained machine-learning potentials Physical Review Materials · American Physical Society · 2021 10.1103/physrevmaterials.5.073801
  59. Physics-Inspired Structural Representations for Molecules and Materials Chemical Reviews · American Chemical Society · 2021 10.1021/acs.chemrev.1c00021
  60. Fast and Sample-Efficient Interatomic Neural Network Potentials for Molecules and Materials Based on Gaussian Moments Journal of Chemical Theory and Computation · American Chemical Society · 2021 10.1021/acs.jctc.1c00527
  61. Thermally Averaged Magnetic Anisotropy Tensors via Machine Learning Based on Gaussian Moments Journal of Chemical Theory and Computation · American Chemical Society · 2021 10.1021/acs.jctc.1c00853
  62. Neural-network assisted study of nitrogen atom dynamics on amorphous solid water – II. Diffusion Monthly Notices of the Royal Astronomical Society · Oxford University Press · 2021 10.1093/mnras/stab3631
  63. Magnetic Moment Tensor Potentials for collinear spin-polarized materials reproduce different magnetic states of bcc Fe npj Computational Materials · Nature Portfolio · 2022 10.1038/s41524-022-00696-9
  64. E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials Nature Communications · Nature Portfolio · 2022 10.1038/s41467-022-29939-5
  65. Origin of high strength in the CoCrFeNiPd high-entropy alloy Materials Research Letters · Taylor & Francis · 2020 10.1080/21663831.2020.1739156
  66. MEAMfit: A reference-free modified embedded atom method (RF-MEAM) energy and force-fitting code Computer Physics Communications · Elsevier BV · 2015 10.1016/j.cpc.2015.05.016
  67. Thermodynamics up to the melting point in a TaVCrW high entropy alloy: Systematic <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>a</mml:mi><mml:mi>b</mml:mi></mml:mrow><mml:mo> </mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>i</mml:mi><mml:mi>t</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi></mml:mrow></mml:math> study aided by machine learning potentials Physical review. B./Physical review. B · American Physical Society · 2022 10.1103/physrevb.105.214302
  68. Exploring chemical and conformational spaces by batch mode deep active learning Digital Discovery · Royal Society of Chemistry · 2022 10.1039/d2dd00034b
  69. High-accuracy thermodynamic properties to the melting point from ab initio calculations aided by machine-learning potentials npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-022-00956-8
  70. Lightweight and effective tensor sensitivity for atomistic neural networks The Journal of Chemical Physics · American Institute of Physics · 2023 10.1063/5.0142127
  71. Investigation of chemical reactivity by machine-learning techniques OPUS Publication Server of the University of Stuttgart (University of Stuttgart) · University of Stuttgart · 2022 10.18419/opus-12182