## Abstract

Decades of advancements in strategies for the calculation of atomic interactions have culminated in a class of methods known as machine-learning interatomic potentials (MLIAPs). MLIAPs dramatically widen the spectrum of materials systems that can be simulated with high physical fidelity, including their microstructural evolution and kinetics. This framework, in conjunction with cross-scale simulations and in silico microscopy, is poised to bring a paradigm shift to the field of atomistic simulations of materials. In this prospective article we summarize recent progress in the application of MLIAPs to crystal defects.

### Graphical abstract

## Introduction

Numerical modeling of materials is performed at its most accurate level when each atom is accounted for individually. Such *atomistic simulations* enable the investigation of defects in crystalline solids, some of which are illustrated in Fig. 1. The collection of all defects within a material—known as its microstructure morphology—controls most of its properties. Historically, atomistic simulations of crystal defects have been performed under a variety of simplifying assumptions, such as limited microstructural complexity and low-fidelity atomic interactions. The rationale behind these simplifications often revolves around reducing computational costs, streamlining post-processing analyses, and facilitating physical-modeling efforts. Developments in computational materials science over the course of the last decade have alleviated the need for many of the traditional simplifying assumptions. Such developments are poised to bring nothing short of a paradigm shift to the field of atomistic simulations of materials. These changes will be supported by the ongoing progress in three distinct directions, which are discussed next.

The first direction is—unsurprisingly—the steady improvement of computational hardware, which resulted in widespread access to computing capabilities that were not long ago available only to select research centers. This made possible for large-scale atomistic simulations to be performed routinely and broadly in our community. When such simulations contain a large number of atoms—typically more than \(10^5\)—they enable the investigation of unique materials properties not accessible at smaller scales.^{[2,3,4,5,6]} Such simulations are *cross-scale*, i.e., they allow the simultaneous examination of materials properties across different length scales. They are not to be mistaken with multi-scale simulations, where the atom-by-atom description of the material is given up and substituted by a coarser—and consequently, less accurate—representation in order to decrease computational costs. Cross-scale atomistic simulations allow one to investigate crystal defects with geometrical complexities akin to the microstructures observed in laboratory experiments.

The second direction is the development of approaches—and their accompanying high-performance software implementations^{[7,8]}—that aid and augment human intuition in interpreting atomistic simulations and extracting physical information from them.^{[6,9,10,11,12]} It is difficult to identify and quantity crystal defects in atomistic simulations because of their structural complexity. These difficulties are further amplified when the microstructural evolution in time (i.e., kinetics) is considered. Thus, specialized structure characterization techniques are required, namely *in silico microscopy* methods. While these have historically been challenging to construct, requiring significant intuition and effort, recent progress favoring data-centric approaches and the employment of machine learning (ML) techniques over heuristic rules of classification have shown promise in simplifying the development of novel techniques.^{[13,14]}

In silico microscopy is particularly relevant to cross-scale atomistic simulations. The complex microstructures considered in such simulations render the visualization and physical modeling of the results challenging to perform. Information about crystal defects and their evolution is buried within an astronomical amount of data describing the motion and interaction of all atoms. The importance of accessing such atomistic information is further amplified by the fact that this level of simultaneous resolution of defect structure and kinetics—atom-by-atom *and* femtosecond-by-femtosecond—is virtually impossible to achieve experimentally.

Finally, the third direction, and focus of this article, is the convergence of decades of advancements in strategies for the calculation of atomic interactions (i.e., the energy and forces between atoms) into a class of methods known as machine-learning interatomic potentials (MLIAPs). Crystalline defects display dramatically different behaviors depending on subtle differences in bonding of the underlying atoms. Capturing such features accurately is essential for physically realistic descriptions of the microstructure, including their evolution and kinetics. In fact, the physical fidelity of atomistic simulations is often considered tantamount to the accuracy with which atomic interactions are represented.

Progress along the three directions described above is highly synergistic. For example, the prevalence of cross-scale atomistic simulations has heightened the need for in silico microscopy algorithms, while access to better computational resources enabled the employment of high-fidelity MLIAPs routinely. Similarly, MLIAPs have widened the spectrum of systems that can be realistically simulated in order to investigate their microstructural elements, at the same time as in silico microscopy algorithms facilitate the quantitative evaluation of MLIAPs for crystal defects. Together, these developments enable the investigation of the formation and evolution of the material’s mesoscale morphology as dictated solely by the fundamental quantum and statistical mechanical laws governing atomic interactions.

In this prospective article we review the application of MLIAPs to crystal defects. Our focus is on aspects of the development of MLIAPs that are particularly relevant for systems containing extended crystal defects, especially when they differ from conventional approaches employed for molecules and liquids. We start with a brief introduction to MLIAPs in the “Machine-learning interatomic potentials” section with the intention of highlighting how MLIAPs are fundamentally changing how investigations of microstructural evolution with atomistic simulations are carried out. The “Dislocations” and “Grain boundaries” sections cover in depth the development of MLIAPs for these two classes of extended defects. Finally, the “Improving MLIAPs accuracy for crystal defects” section offers a forward-looking view of promising methods and strategies, including notable applications of MLIAP to other defects and complex systems.

## Machine-learning interatomic potentials

High-fidelity atomic interactions can be obtained directly from ab initio techniques, but those are computationally costly and scale poorly with system size. For example, density-functional theory (DFT) scaling is typically \({\mathcal{O}}({N}_{\hbox{e}}^3)\), where \({N}_{\hbox{e}}\) is the number of electrons. This has limited the application of ab initio atomistic simulations to systems with only a few hundred atoms. Investigation of extended crystal defects with such methods is notoriously challenging and—when possible at all—is often limited to static simulations. The development of linear-scaling DFT methods,^{[41,42,43]} i.e., \({\mathcal{O}}({N}_{\hbox{e}})\), has been an active area of research that often extends DFT calculations to \({N}_{\rm a} \approx 1000\) atoms. While linear-scaling DFT has enabled the investigation of electronic properties of larger system, this approach has not reduced the computational cost enough to account for extended crystal defects.

Interatomic potentials (IAPs) are functional representations of atomic interactions that are considerably cheaper to evaluate and scale linearly with the number of atoms \({\mathcal{O}}({N}_{\hbox{a}})\). For this reason they are often employed to circumvent the size and time limitations of ab initio methods. The functional form of traditional IAPs is often rooted, or at least motivated, by the underlying quantum nature of chemical bonds. But, ultimately, such functional forms are simplifications of the quantum mechanics of electrons; invariably leading to lower physical fidelity than ab initio methods. The degree of physical fidelity of an IAP depends not only on its functional form, but also on the choice of parameters defining the IAP. Parameters are chosen with the goal for calculations with the IAP to reproduce certain target material properties such as elastic constants for example, which can be obtained experimentally or through ab initio calculations.

The introduction of the force-matching technique in Ref. 44 represented an important development that paved the way to the advent of MLIAPs. With this approach the parameters of an IAP are fitted to reproduce the forces obtained from ab initio calculations as closely as possible. Atomic configurations employed during the optimization process define—albeit indirectly—which materials properties one can expect the potential to reproduce accurately. The force-matching method was successful in deriving IAPs with improved physical-fidelity with respect to ab initio calculations. Careful design of the data set of atomic configurations led to smaller errors. Yet, the ultimate accuracy was still limited by the IAP functional form.

Several attempts were made to develop more flexible IAPs while still adhering to some underlying physical motivation for the functional form. For example, the embedded-atom method^{[45]} (EAM) IAP for metals was derived through rigorous approximations based on DFT. Its successor, the modified embedded-atom method^{[46]} (MEAM), was obtained through a much less rigorous approach where angular forces were added to EAM in order to account for the covalent character of bonds in certain materials, such as in partially filled d-band transition metals. In Ref. 47 physical motivations for the functional form of certain components of the MEAM potentials were abandoned altogether in favor of cubic splines, each with different parameters that were fitted by the force-matching method. However, the numerical problem being solved was still an optimization problem. Consequently, the bias-variance tradeoff was not being considered and the concept of generalization error was ill-defined given the lack of separation between test and training data sets.

MLIAPs made their first appearance in Ref. 24, when Behler and Parrinello trained a neural network potential (NNP) on DFT results to predict energies and forces for silicon. With MLIAPs one abandons any physical motivation for the functional form of the atomic interactions in favor of the unmatched functional flexibility provided by ML models—also referred to as the model capacity. A generalized form of the force-matching method is then employed to train the ML model parameters to reproduce interatomic forces and energies. Standard techniques from the field of ML are also employed to control the bias-variance tradeoff and estimate the generalization error of the model. For a review on technical progress in MLIAPs we refer the reader to Refs. 48,49,50,51.

MLIAPs reproduce atomic interactions from ab initio calculations with high physical fidelity while maintaining the same linear scaling with number of atoms as IAPs, which is an important property for its employment in cross-scale atomistic simulations. Moreover, the accuracy of an MLIAP is systematically improvable to a large extent. However, some of the most important contributions of MLIAPs to the field of computational materials science are not related to their quantitative improvement over IAPs. MLIAPs have made the process of creating IAPs more transparent,^{[15]} standardized, and therefore more reproducible. The systematization of the process of developing MLIAPs also made this approach more accessible to the community. Datasets for MLIAPs are easy to construct because they employ, in most part, simple DFT calculations. Meanwhile, most classes of MLIAPs have their own software implementation available to train and test models given a data set. Many of these practices and techniques were borrowed directly from the field of ML and data science, such as emphasis on open-source distribution of software and data sets, reproducibility, and standard statistical metrics to compare competing models. Together, they facilitate the training of MLIAPs tailored for specific applications.

Because of the lack of physical motivation for MLIAPs functional forms, the set of atomic configurations employed when training the MLIAPs is critically important. The training data determines not only which materials properties will be reproduced accurately, but also the underlying physics of the MLIAP. In the following two sections, “Dislocations” and “Grain boundaries”, we explore how the judicious choice of training configurations and MLIAP models affect the accuracy of MLIAPs in describing these two classes of crystal defects. Table I lists all the MLIAPs discussed here.

## Dislocations

Dislocations^{[53,54]} are linear defects that define the ability of certain crystalline materials to deform plastically. Naturally, many mechanical properties are controlled by dislocations, such as strength and fracture resistance (i.e., toughness). Dislocations also play a role in a surprising variety of other situations, such as ionic transport in ceramics,^{[55,56]} strain relaxation between misfit layers of epitaxial thin films,^{[57]} kinetics of crystal growth,^{[58]} and quantum efficiency loss in semiconductor devices such as light-emitting diodes and solar cells.^{[58]}

Dislocation-mediated plastic deformation is controlled by dislocation interactions through their long-range elastic fields.^{[54]} Because of this, any MLIAP aiming at properly describing plastic yielding must accurately reproduce the elastic constants of the material. Luckily, elastic constants are not only easily calculated through DFT simulations, but also seem to be routinely reproduced with outstanding accuracy by MLIAPs for various materials. For example, in Ref. 15 the three independent elastic constants of cubic materials computed by five different MLIAPs for six materials (Ni, Cu, Li, Mo, Si, and Ge) are typically within \(10\%\) of their DFT values.

While elastic constants depend only on the details of the atomic interactions occurring in the perfect crystal structure, most other factors governing dislocation-mediated plasticity involve atomic environments that are profoundly different from the structure of the underlying host lattice. Such environments occur in a region within a few lattices spacings of the dislocation line known as the dislocation core. The atomic structure and interactions at the dislocation core define a variety of properties, such as the dislocation mobility, preferred glide planes, propensity to move out of glide planes (i.e., cross-slip), and the short-ranged part of the elastic interaction with other defects.

Screw dislocations have notoriously low mobilities in body-centered cubic (BCC) metals, which makes them the most relevant type of dislocations for plasticity in these materials. This large resistance to glide has its origins precisely at the atomic structure of the screw dislocation core region, which is non-degenerate (i.e., it does not dissociate into partial dislocations). Many IAPs incorrectly predict a degenerate core structure for screw dislocations in BCC metals, with a metastable configuration that the dislocation must go through while gliding [shown in green in Fig. 2(a)]. The reason IAPs for metals have a difficult time capturing the correct structure is because BCC transition metals, in which this is observed, have atomic interactions dominated by d-band electrons with significant directionality (i.e., covalent character), which strongly favors contributions from first neighbors.^{[59]} Hence, dislocation motion in BCC metals depends strongly on the details of the interatomic bonding at the core, making this a good case-study for the effectiveness of MLIAPs.

From the discussion above it is clear that any MLIAP aiming to properly describe plastic yielding in BCC metals must account for the dislocation core properties accurately. Direct DFT calculations of dislocation cores are possible, yet they are not as simple to perform as those for the elastic constants and require specialized methodologies (see Ref. 60 for a review). A promising approach to circumvent the use of dislocations cores in training MLIAPs has its origins in the physics of dislocations itself. It has long been known that many properties of the core are partially defined by the concept of a generalized stacking fault,^{[54,61]} i.e., stacking faults in which the atomic slip between two adjacent atomic planes can assume values that vary continuously from zero (no stacking fault) to one Burgers vector. Given an atomic plane the generalized stacking fault energy for that plane along all possible slip directions is known as the \(\gamma\)-surface. The \(\gamma\)-surface fully characterizes the resistance of a perfect crystal to shear along that crystallographic plane. This approach was employed in Ref. 27, where the \(\{110\}\) and \(\{112\}\) \(\gamma\)-surfaces [shown in Fig. 2(b)] were included in the training set for a gaussian approximation potential^{[34,35]} (GAP) for iron, while no dislocation core structures were employed for training. The resulting core structure for the \(\frac{1}{2}\left<111\right>\) screw dislocation was shown to be compact and nondegenerate, in agreement with DFT calculations. The corresponding Peierls barrier, obtained through nudged-elastic band calculations, was also in good agreement with DFT results and presented a single-hump, as shown in Fig. 2(a).

Despite the promising results described above, evidence suggests that the direct inclusion of dislocation core structure might be indeed necessary. In Ref. 33 a GAP is developed for tungsten that reproduces the core structure of screw dislocations. It is shown there that the error in the final dislocation core structure (RMS error of Nye tensor for the atoms nearest to the dislocation core) is decreased by half by the inclusion of the \(\{110\}\) and \(\{112\}\) \(\gamma\)-surfaces in the training set, and by one quarter when in addition to the \(\gamma\)-surfaces the dislocation core structure itself is included in the training. Notably, the inclusion of the dislocation core did not affect the Peierls barrier, indicating that the \(\gamma\)-surfaces are sufficient to capture important dislocation core properties that dictate dislocation mobility. Yet, the direct inclusion of dislocation cores in the training set led to accuracy improvements in the description of the core structure that cannot be obtained otherwise, indicating that certain subtleties of the atomic structure of dislocation cores cannot be obtained from \(\gamma\)-surface structures alone.

The direct inclusion of dislocation cores in the training set has some important limitations due to the size limitation of DFT. Dislocation core structures in DFT are restricted to straight dislocations with well-defined line directions, while dislocations generally carry a degree of curvature that affects their properties. Additionally, the inclusion of a single dislocation line direction in the training set does not guarantee that the resulting MLIAP will generalize well to other directions because the dislocation core atomic structure—and consequently, the dislocation properties—is strongly dependent on the dislocation direction.^{[62,63]} For example, Fig. 2(e) shows the variation of the dislocation core energy as a function of its character angle (i.e., the angle between the line tangent vector and the Burgers vector). Another consideration that must be taken into account is the fact that dislocation cores present polymorphism,^{[64]} with different structures being thermally accessible, potentially leading to DFT zero-temperature dislocation core structure not being the structures governing dislocation mobility at finite temperatures.^{[65]}

In order for dislocation motion to occur, the dislocation must overcome the lattice resistance to its motion (i.e., the Peierls barrier), which has its origins in the structural transformations that the core must undergo while moving. Accurate reproduction of dislocation mobility with MLIAPs requires accounting for the dislocation structure along the entire Peierls barrier—as opposed to only the Peierls valleys. For example, screw dislocations in BCC metals move by thermally activated kink-pair formation due to the large Peierls barrier in these materials, resulting in strong temperature and strain-rate dependencies of the yield stress.^{[66]}

The atomic structure near a kink [Fig. 2(c)] is markedly different from the structure along the straight dislocation line and might not be adequately extrapolated by MLIAP from the straight dislocation core structure. Yet, simulation cells containing kinks pairs are too large to be employed in DFT simulations. Nevertheless, promising results were obtained from kink-pair simulations with MLIAPs. For example, in Ref. 26 a NNP was employed to compute the formation energy of a double-kink pair in iron for a \(\frac{1}{2} \left<111\right>\) screw dislocation gliding on the \(\{110\}\) plane. The result, \(0.94\;{\hbox{eV}}\), is reasonably close to an estimation employing a line-tension model and DFT calculations: \(0.73\) to \(0.86\;{\hbox{eV}}\). While a direct comparison is not possible, the good agreement of the energy profile along the migration path for a straight dislocation [Fig. 2(d)] is consistent with this result since this profile controls the energetics of double-kink formation. It is interesting to notice that this NNP shows a substantial improvement in the description of this energy profile over a similar GAP for the same system.^{[27]} Because there are no substantial differences in the training sets, one is led to assume that the methodology of the MLIAP itself is responsible for the observed improvements.

The role of thermal effects on the dislocation slip behavior in iron was thoroughly investigated in Ref. 52 employing the same GAP from Fig. 2(a) and (b). First, the nucleation and migration of kink pairs was observed directly from molecular dynamics simulations at finite temperatures, in which the glide plane was also observed to be consistent with DFT analyses. Nudged-elastic band calculations were then performed to compute the stress-dependent enthalpy barrier for kink-pair nucleation. The results, shown in Fig. 2(c), are consistent with DFT calculations and line-tension theoretical models.

Other notable MLIAPs for BCC metals have also reproduced various properties of \(\frac{1}{2}\left<111\right>\) screw dislocations, including the magnitude and single saddle-point shape of the migration of the Peierls barrier, \(\gamma\)-surfaces, and the kink-pair formation energies (always in comparison with line tension models parametrized by DFT calculations). The metals considered include iron,^{[28]} tungsten,^{[28]} tantalum,^{[30,66]} molybdenum,^{[30]} and niobium.^{[30]}

Investigations of dislocation properties with MLIAPs for face-centered cubic (FCC) and hexagonal close packed (HCP) materials seem to be less common. Dislocation cores in FCC metals are planar and dissociate from \(\frac{1}{2} \left<110\right>\{111\}\) dislocations into a pair of Shockley partial dislocations \(\frac{1}{6} \left<112\right>\{111\}\) separated by a stacking fault. The separation between partials is often too large to be investigated with direct DFT calculations, making it challenging to include the dislocation cores directly in the MLIAPs training sets. Yet, the separation distance is decided by an energy balance between the stacking fault energy and the energy associated with the elastic repulsion between partials. This makes the inclusion of \(\gamma\)-surfaces in the training data set even more important than in the case of BCC metals. Dislocations in HCP materials pose an excellent challenge to MLIAPs due to the several potential dislocation slip systems available, with the choice of which one will be active being material-dependent. Similarly to FCC, the inclusion of \(\gamma\)-surfaces in the training set of MLIAPs is critical because the predominant dislocations, \(\left<{\mathrm{a}}\right>\) (i.e., \(\frac{1}{3}\left< 1{\bar{2}}10\right>\)), can dissociate into partials on the prismatic \(\{1010\}\) or basal \(\{0001\}\) planes depending on the ratio of the stacking fault energy of these planes. \(\left<{\mathrm{c+a}}\right>\) (i.e., \(\frac{1}{3}\left< 2{\bar{1}}{\bar{1}}3\right>\)) dislocations are also observed in HCP materials to accommodate deformation along the \(\left<0001\right>\) direction. Examples of investigation of dislocation properties with MLIAPs for HCP materials can be found in Refs. 16 and 29.

## Grain boundaries

Grain boundaries (GBs) are interfaces between differently oriented crystals of the same phase. The atomic structure near GBs is complex and diverse,^{[67,68]} which makes these defects as challenging for MLIAPs as dislocations. GB properties are often rationalized in terms of the extent of misfit between the lattice of the two grains in contact, with the key quantity being the reciprocal density of coincident lattice sites between the two grains, denoted by \(\Sigma\). For example, for a \(\Sigma 3\) GB one third of atom sites are shared between two lattices. GBs with low \(\Sigma\) values (such as \(\Sigma 3\)) are expected to exhibit simpler structures than high-\(\Sigma\) GBs. Naturally, low-\(\Sigma\) GBs are more amenable to DFT calculations since their simpler structures often result in smaller simulation cells. Consideration of complex GBs such as high-misfit and asymmetric GBs is more limited in the literature.

Nishiyama et al.^{[18]} constructed MLIAPs for a set of FCC elemental metals (Ag, Al, Au, Cu, Pd, and Pt) using gaussian-type pairwise features and polynomial invariant features. The MLIAPs were employed to systematically compute the structure and excess energy of a family of GBs spanning symmetric-tilt GBs (\(\Sigma 5 \left< 100\right>\), \(\Sigma 3 \left< 110\right>\), and \(\Sigma 9\left<110\right>\)) and pure-twist GBs (\(\Sigma 9 \left< 100\right>\)). The MLIAP showed great predictive power [Fig. 3(a)], despite the surprising fact that the training dataset did not contain any GB structure. Following this approach, one could employ the repository of MLIAPs created by Seko^{[19]} (that contains no defect structures in the training data) to evaluate the GB structure excess energies for various material systems.

In Ref. 21 Fujii and Seko investigated low and high-\(\Sigma\) GBs in silicon using MLIAPs that were trained using datasets with and without GB structures. MLIAPs trained without GB structures typically overestimate the GB energies, similarly to the behavior observed in IAPs. Meanwhile, appending only four GB structure to the 10, 000-structure dataset markedly enhanced the potential performance and the prediction accuracy of GB energies [Figs. 3(c) and (d)]. The dependence of GB properties such as lattice thermal conductivity, phonon frequency, and GB energy with respect to the model complexity (or computational cost) of the MLIAPs was also computed [Fig. 3(b)].

Alternative approaches to the inclusion of GB structures in the training dataset have been shown to improve the accuracy of GB predictions by MLIAPs, such as optimized structural features^{[20,69,70]} and physically informed training processes.^{[40,71]} For example, Rosenbrock et al.^{[69]} introduced two revised versions of SOAP descriptors specialized in predicting GB energies and structures. Pun et al.^{[40]} developed a physically-informed neural networks (PINN) potential that combines physics-based models with neural-network regression that has good transferability to complicated structures such as GBs, stacking faults, and solid–liquid interfaces.^{[17]}

Besides the technical developments in improving MLIAP accuracy in the description of GBs, MLIAPs have also been employed directly in the analyses of GB behaviors and relevant features in perovskites,^{[72]} 2D materials,^{[73]} GB complexion systems,^{[74]} refractory high-entropy alloys,^{[75,76]} Si,^{[21,22,23]} Fe,^{[25]} CdTe,^{[77]} W,^{[32]} Li\(_{3}\)N,^{[78]} Ta,^{[31]} and Al.^{[17,18,20]}

## Improving MLIAPs accuracy for crystal defects

The physical fidelity of atomistic simulations is often considered tantamount to the accuracy with which atomic interactions are represented. But evaluating the accuracy of a MLIAP for the simulation of crystal defects is not trivial. In this section we briefly review promising new approaches to evaluate and improve the accuracy of MLIAPs. Focus is given to approaches that are agnostic to the specific class of MLIAPs being employed.

During the development of a MLIAP one includes in the training data set a variety of atomic configurations with the goal of sampling local atomic environments (LAEs) of relevance for defects. But, if the crystal defect of interest requires simulation cells too large to be solved by DFT, such as in the case of dislocations with kink-pairs, the configurations including the defect cannot be directly included in the training set. One approach to circumvent this problem is to use knowledge of the crystal defect physics in order to include surrogate configurations that approximate the LAEs of interest while being amenable to DFT calculations. For example, in the “Dislocations” section it was shown that the inclusion of \(\gamma\)-surface configurations leads to large improvements in the description of dislocation cores by MLIAPs.

Finding physically motivated surrogate configurations requires significant intuition (i.e., expert knowledge) and effort. An automated version of the approach described above has been proposed in Ref. 79 by Goryaeva et al. Given the atomic configuration of a crystal defect the authors in Ref. 79 employ ML outlier detection algorithms to generate a metric for the deviation of defect LAEs from the LAEs included in the training data set. Thus, given a MLIAP and its corresponding training data set one can evaluate its reliability when modeling a given defect structure. For example, in Fig. 4(a) this metric is evaluated for four different types of defects for a GAP potential, indicating that two of the defects are not well-described by the MLIAP. A similar approach has also been suggested in Ref. 22, where an error for the prediction of GAPs can be obtained along with the prediction itself [Fig. 4(b)].

If the crystal defect of interest can be processed by DFT calculations, one is able to directly evaluate the MLIAP error by calculating the difference in the energy and force computed by the MLIAP when compared to DFT results. While minimizing this error—and concurrently avoiding overfitting—is important, it does not guarantee that the MLIAP will perform well in practice because simulations employing MLIAP might explore LAEs outside of the domain of LAEs covered by the training set, i.e., the MLIAP would be performing an extrapolation for unknown LAEs instead of an interpolation between known LAEs. For example, one might include a certain dislocation core structure in the training set, but during simulations at finite temperatures the core might undergo a structural transformation to a different structure unseen during training.

The general solution to this problem is to identify such LAEs and include similar configurations in the training set. In Ref. 80 this process is automated and performed over the course of a molecular dynamics simulation involving the defect (i.e., active learning). Figure 4c demonstrates this for the case of vacancy migration in aluminum, where after an initial period where many calls for DFT calculations are performed to improve the MLIAP, the simulation proceeds without any additional DFT calculations. The accuracy of the resulting MLIAP is compared to DFT by measuring the activation barrier for vacancy migration. In Ref. 81 an interesting approach to active learning is introduced where small subregions of large-scale simulations are identified and periodic configurations small enough for DFT calculations are constructed out of these subregions.

The balance between computational cost and accuracy of a MLIAP is critical for their employment in cross-scale simulations of crystal defects. Given a fixed training set, the accuracy of a MLIAP can be systematically improvable to a large extent by increasing the underlying ML model complexity. When adequately controlling for the bias-variance tradeoff, increasing the model complexity leads to an overall better performance of the MLIAP, but it also increases its computational cost. For example, with MTPs the degree of the polynomial employed can be varied systematically in order to increase the model complexity. Yet, improving the MLIAP accuracy beyond a certain point might have no physically distinguishable effect, while making the simulations more costly, consequently limiting the applicability of the MLIAP in cross-scale atomistic simulations. For example, in Fig. 3(c) it is clear that increasing the model capacity beyond the point highlighted in the figure leads to negligible changes in the lattice thermal conductivity, phonon frequencies, and GB energetics. Notice, however, that one could still increase the capacity of the MLIAP to the point where calculations would be one order of magnitude more expensive. In Ref. 19 Seko constructed a repository of MLIAPs in which each MLIAP is trained with three different model capacities, where Pareto optimality is estimated through a grid search based on the energy prediction error. This allows for users to select the accuracy tradeoff with computational costs that best fit their goals. One could envision the same approach being applied to crystal defects, where the convergence of relevant defect properties would be evaluated.

## Conclusions

The introduction of MLIAPs have dramatically widened the spectrum of materials systems that can be simulated with high physical fidelity. In this prospective article we have highlighted recent successes in training MLIAPs that accurately capture a variety of crystal defect properties, including their kinetics. Focus was given to examples including dislocations and grain boundaries. The summary in Table I makes it clear that similar work has been performed for a variety of other extended and native defects. Yet, the frontier of MLIAPs for crystal defects includes a large variety of materials systems and defects that have not yet been investigated in depth. This includes MLIAPs for solid-liquid interfaces and strategies for tackling defects in chemically complex systems.^{[82,83,84]} Recent progress in accounting for degrees of freedom other than coordinates will soon enable the simulation of defects in systems with magnetic transitions^{[85]} and space charge effects.^{[86]}

Different state-of-the-art MLIAP classes present similar levels of performance and accuracy for crystal defects. Specific classes of MLIAPs (e.g., physically informed MLIAPs^{[40]} or MLIAPs employing different atomic representations^{[87]}) do not seem able to learn the physics of crystal defects better than others, with the few exceptions identified [Fig. 2(d)] not being comprehensive enough to warrant definitive conclusions. This suggests that, if the goal is to create more accurate MLIAPs for crystal defects, one should focus on the development of better training strategies—including training sets—instead of pushing for incremental improvements in accuracy through the development of a new class of MLIAPs altogether.

The lack of physical motivation for MLIAPs functional forms makes the training data set critically important for determining which materials properties will be reproduced accurately. Recent developments reviewed in the “Improving MLIAPs accuracy for crystal defects” section show promising methods for improving MLIAPs accuracy for crystal defects by automating the analysis of training data sets. Yet, no approach has leaped ahead and provided a “MLIAP panacea” for crystal defects (i.e., an unbiased and automated approach for creating optimal training sets for multiple defect types). For now one still needs to rely on expert knowledge regarding the underlying defect physics in order to develop good quality MLIAPs.

## Data availibility

No data was generated for this article.

## References

W. Cai, W.D. Nix,

*Imperfections in Crystalline Solids*(Cambridge University Press, Cambridge, 2016)B. Sadigh, L. Zepeda-Ruiz, J.L. Belof, Metastable-solid phase diagrams derived from polymorphic solidification kinetics. Proc. Natl. Acad. Sci.

**118**, 9 (2021)Y. Shibuta, M. Ohno, T. Takaki, Advent of cross-scale modeling: high-performance computing of solidification and grain growth. Adv. Theory Simul.

**1**(9), 1800065 (2018)L.A. Zepeda-Ruiz, A. Stukowski, T. Oppelstrup, N. Bertin, N.R. Barton, R. Freitas, V.V. Bulatov, Atomistic insights into metal hardening. Nat. Mater.

**20**(3), 315–320 (2021)L. Zepeda-Ruiz, B. Sadigh, A. Chernov, T. Haxhimali, A. Samanta, T. Oppelstrup, S. Hamel, L. Benedict, J. Belof, Extraction of effective solid-liquid interfacial free energies for full 3D solid crystallites from equilibrium MD simulations. J. Chem. Phys.

**147**(19), 194704 (2017)R. Freitas, E.J. Reed, Uncovering the effects of interface-induced ordering of liquid on crystal growth using machine learning. Nat. Commun.

**11**(1), 1–10 (2020)A.P. Thompson, H.M. Aktulga, R. Berger, D.S. Bolintineanu, W.M. Brown, P.S. Crozier, P.J. Int Veld, A. Kohlmeyer, S.G. Moore, T.D. Nguyen et al., LAMMPS-a exible simulation tool for particle based materials modeling at the atomic, meso, and continuum scales. Comput. Phys. Commun.

**271**, 108171 (2022)A. Stukowski, Visualization and analysis of atomistic simulation data with OVITO-the Open Visualization Tool. Modell. Simul. Mater. Sci. Eng.

**18**(1), 150 (2010)A. Stukowski, V.V. Bulatov, A. Arsenlis, Automated identification and indexing of dislocations in crystal interfaces. Modell. Simul. Mater. Sci. Eng.

**20**(8), 085007 (2012)N. Bertin, L. Zepeda-Ruiz, V. Bulatov, Sweeptracing algorithm: in silico slip crystallography and tension-compression asymmetry in BCC metals. Mater. Theory

**6**(1), 1–23 (2022)P.M. Larsen, S. Schmidt, J. Schiøtz, Robust structural identification via polyhedral template matching. Modell. Simul. Mater. Sci. Eng.

**24**(5), 055007 (2016)A. Stukowski, Structure identification methods for atomistic simulations of crystalline materials. Modell. Simul. Mater. Sci. Eng.

**20**(4), 045021 (2012)H.W. Chung, R. Freitas, G. Cheon, E.J. Reed, Data-centric framework for crystal structure identification in atomistic simulations using machine learning. Phys. Rev. Mater.

**6**(4), 043801 (2022)M. Spellings, S.C. Glotzer, Machine learning for crystal identification and discovery. AIChE J.

**64**(6), 2198–2206 (2018)Y. Zuo, C. Chen, X. Li, Z. Deng, Y. Chen, J. Behler, G. Csányi, A.V. Shapeev, A.P. Thompson, M.A. Wood, S.P. Ong, Performance and cost assessment of machine learning interatomic potentials. J. Phys. Chem. A

**124**(4), 731–745 (2020)M. Stricker, B. Yin, E. Mak, W. Curtin, Machine learning for metallurgy II. A neural-network potential for magnesium. Phys. Rev. Mater.

**4**(10), 103–602 (2020)G.P. Pun, V. Yamakov, J. Hickman, E. Glaessgen, Y. Mishin, Development of a general-purpose machine-learning interatomic potential for aluminum by the physically informed neural network method. Phys. Rev. Mater.

**4**(11), 113807 (2020)T. Nishiyama, A. Seko, I. Tanaka, Application of machine learning potentials to predict grain boundary properties in fcc elemental metals. Phys. Rev. Mater.

**4**(12), 123607 (2020)A. Seko, Machine learning potential repository. arXiv:2007.14206 (2020)

H. Gao, J. Wang, J. Sun, Improve the performance of machine-learning potentials by optimizing descriptors. J. Chem. Phys.

**150**(24), 244110 (2019)S. Fujii, A. Seko, Structure and lattice thermal conductivity of grain boundaries in silicon by using machine learning potential and molecular dynamics. Comput. Mater. Sci.

**204**, 111137 (2022)A.P. Bartók, J. Kermode, N. Bernstein, G. Csányi, Machine learning a general-purpose interatomic potential for silicon. Phys. Rev. X

**8**(4), 041048 (2018)T. Yokoi, Y. Noda, A. Nakamura, K. Matsunaga, Neural-network interatomic potential for grain boundary structures and their energetics in silicon. Phys. Rev. Mater.

**4**(1), 014605 (2020)J. Behler, M. Parrinello, Generalized neural network representation of high-dimensional potential-energy surfaces. Phys. Rev. Lett.

**98**(14), 146401 (2007)Y. Shiihara, R. Kanazawa, D. Matsunaka, I. Lobzenko, T. Tsuru, M. Kohyama, H. Mori, Artificial neural network molecular mechanics of iron grain boundaries. Scripta Mater.

**207**, 114268 (2022)H. Mori, T. Ozaki, Neural network atomic potential to investigate the dislocation dynamics in bcc iron. Phys. Rev. Mater.

**4**(4), 040601 (2020)D. Dragoni, T.D. Daff, G. Csányi, N. Marzari, Achieving DFT accuracy with a machine-learning interatomic potential: thermomechanics and defects in bcc ferromagnetic iron. Phys. Rev. Mater.

**2**(1), 013808 (2018)A.M. Goryaeva, J. Dérès, C. Lapointe, P. Grigorev, T.D. Swinburne, J.R. Kermode, L. Ventelon, J. Baima, M.-C. Marinica, Efficient and transferable machine learning potentials for the simulation of crystal defects in bcc Fe and W. Phys. Rev. Mater.

**5**(10), 103803 (2021)T. Okita, S. Terayama, K. Tsugawa, K. Kobayashi, M. Okumura, M. Itakura, K. Suzuki, Construction of machine-learning Zr interatomic potentials for identifying the formation process of c-type dislocation loops. Comput. Mater. Sci.

**202**, 110865 (2022)A.P. Thompson, L.P. Swiler, C.R. Trott, S.M. Foiles, G.J. Tucker, Spectral neighbor analysis method for automated generation of quantum accurate interatomic potentials. J. Comput. Phys.

**285**, 316–330 (2015)Y.-S. Lin, G.P.P. Pun, Y. Mishin, Development of a physically-informed neural network interatomic potential for tantalum. Comput. Mater. Sci.

**205**, 111180 (2022)S. Pozdnyakov, A.R. Oganov, A. Mazitov, I. Kruglov, E. Mazhnik, Fast general two-and three-body interatomic potential. arXiv:1910.07513 (2019)

W.J. Szlachta, A.P. Bartók, G. Csányi, Accuracy and transferability of Gaussian approximation potential models for tungsten. Phys. Rev. B

**90**(10), 104108 (2014)A.P. Bartók, M.C. Payne, R. Kondor, G. Csányi, Gaussian approximation potentials: the accuracy of quantum mechanics, without the electrons. Phys. Rev. Lett.

**104**(13), 136403 (2010)A.P. Bartók, R. Kondor, G. Csányi, On representing chemical environments. Phys. Rev. B

**87**(18), 184115 (2013)J. Behler, Neural network potential-energy surfaces in chemistry: a tool for large-scale simulations. Phys. Chem. Chem. Phys.

**13**(40), 17930–17955 (2011)M.A. Wood, A.P. Thompson, Extending the accuracy of the SNAP interatomic potential form. J. Chem. Phys.

**148**(24), 241721 (2018)A.V. Shapeev, Moment tensor potentials: a class of systematically improvable interatomic potentials. Multiscale Model. Simul.

**14**(3), 1153–1173 (2016)E.V. Podryabinkin, A.V. Shapeev, Active learning of linearly parametrized interatomic potentials. Comput. Mater. Sci.

**140**, 171–180 (2017)G. Pun, R. Batra, R. Ramprasad, Y. Mishin, Physically informed artificial neural networks for atomistic modeling of materials. Nat. Commun.

**10**(1), 1–10 (2019)G. Galli, M. Parrinello, Large scale electronic structure calculations. Phys. Rev. Lett.

**69**(24), 3547 (1992)S. Goedecker, Linear scaling electronic structure methods. Rev. Mod. Phys.

**71**(4), 1085 (1999)D.R. Bowler, T. Miyazaki, Methods in electronic structure calculations. Rep. Prog. Phys.

**75**(3), 036503 (2012)F. Ercolessi, J.B. Adams, Interatomic potentials from first-principles calculations: the forcematching method. EPL

**26**(8), 583 (1994)M.S. Daw, M.I. Baskes, Embedded-atom method: Derivation and application to impurities, surfaces, and other defects in metals. Phys. Rev. B

**29**(12), 6443 (1984)M.I. Baskes, Modified embedded-atom potentials for cubic materials and impurities. Phys. Rev. B

**46**(5), 2727 (1992)T.J. Lenosky, B. Sadigh, E. Alonso, V.V. Bulatov, T.D. de la Rubia, J. Kim, A.F. Voter, J.D. Kress, Highly optimized empirical potential model of silicon. Modell. Simul. Mater. Sci. Eng.

**8**(6), 825 (2000)V.L. Deringer, M.A. Caro, G. Csányi, Machine learning interatomic potentials as emerging tools for materials science. Adv. Mater.

**31**(46), 1902765 (2019)Y. Mishin, Machine-learning interatomic potentials for materials science. Acta Mater.

**214**, 116980 (2021)T. Mueller, A. Hernandez, C. Wang, Machine learning for interatomic potential models. J. Chem. Phys.

**152**(5), 050902 (2020)J. Behler, Perspective: machine learning potentials for atomistic simulations. J. Chem. Phys.

**145**(17), 170901 (2016)F. Maresca, D. Dragoni, G. Csányi, N. Marzari, W.A. Curtin, Screw dislocation structure and mobility in body centered cubic Fe predicted by a Gaussian Approximation Potential. NPJ Comput. Mater.

**4**(1), 1–7 (2018)N. Bertin, R.B. Sills, W. Cai, Frontiers in the simulation of dislocations. Ann. Rev. Mater. Res.

**50**, 437–464 (2020)P.M. Anderson, J.P. Hirth, J. Lothe,

*Theory of Dislocations*(Cambridge University Press, Cambridge, 2017)D. Marrocchelli, L. Sun, B. Yildiz, Dislocations in SrTiO3: easy to reduce but not so fast for oxygen transport. J. Am. Chem. Soc.

**137**(14), 4735–4748 (2015)M.D. Armstrong, K.-W. Lan, Y. Guo, N.H. Perry, Dislocation-mediated conductivity in oxides: progress, challenges, and opportunities. ACS Nano

**15**(6), 9211–9221 (2021)J. Matthews, A. Blakeslee, Defects in epitaxial multilayers: I. Misfit dislocations. J. Cryst. Growth

**27**, 118–125 (1974)S. Nakamura, The roles of structural imperfections in InGaN-based blue light-emitting diodes and laser diodes. Science

**281**, 956–961 (1998)R. Gröger, V. Vitek, Directional versus central force bonding in studies of the structure and glide of 1/2<111> screw dislocations in bcc transition metals. Philos. Mag.

**89**(34–36), 3163–3178 (2009)D. Rodney, L. Ventelon, E. Clouet, L. Pizzagalli, F. Willaime, Ab initio modeling of dislocation core properties in metals and semiconductors. Acta Mater.

**124**, 633–659 (2017)V. Vitek, Intrinsic stacking faults in body-centred cubic crystals. Philos. Mag.

**18**(154), 773–786 (1968)K. Kang, V.V. Bulatov, W. Cai, Singular orientations and faceted motion of dislocations in bodycentered cubic crystals. Proc. Natl. Acad. Sci.

**109**(38), 15174–15178 (2012)N. Bertin, W. Cai, S. Aubry, V. Bulatov, Core energies of dislocations in bcc metals. Phys. Rev. Mater.

**5**(2), 025002 (2021)E. Clouet, D. Caillard, N. Chaari, F. Onimus, D. Rodney, Dislocation locking versus easy glide in titanium and zirconium. Nat. Mater.

**14**(9), 931–936 (2015)M. Poschmann, I.S. Winter, M. Asta, D. Chrzan, Molecular dynamics studies of-type screw dislocation core structure polymorphism in titanium. Phys. Rev. Mater.

**6**(1), 013603 (2022)M.S. Duesbery, V. Vitek, Plastic anisotropy in bcc transition metals. Acta Mater.

**46**(5), 1481–1492 (1998)P.R. Cantwell, T. Frolov, T.J. Rupert, A.R. Krause, C.J. Marvel, G.S. Rohrer, J.M. Rickman, M.P. Harmer, Grain boundary complexion transitions. Annu. Rev. Mater. Res.

**50**, 465–492 (2020)Frommeyer, L., Brink, T., Freitas, R. et al. Dual phase patterning during a congruent grain boundary phase transition in elemental copper. Nat Commun

**13**, 3331 (2022). https://doi.org/10.1038/s41467-022-30922-3C.W. Rosenbrock, E.R. Homer, G. Csányi, G.L. Hart, Discovering the building blocks of atomic systems using machine learning: application to grain boundaries. NPJ Comput. Mater.

**3**(1), 1–7 (2017)Y. Lysogorskiy, C.V.D. Oord, A. Bochkarev, S. Menon, M. Rinaldi, T. Hammerschmidt, M. Mrovec, A. Thompson, G. Csányi, C. Ortner et al., Performant implementation of the atomic cluster expansion (PACE) and application to copper and silicon. NPJ Comput. Mater.

**7**, 1–12 (2021)J.D. Morrow, V.L. Deringer, Meta-learning of interatomic potential models for accelerated materials simulations. arXiv:2111.11120 (2021)

T. Lee, J. Qi, C.A. Gadre, H. Huyan, S.-T. Ko, Y. Zuo, C. Du, J. Li, T. Aoki, C.J. Stippich, et al., Atomic-scale origin of the low grain-boundary resistance in perovskite solid electrolytes. arXiv:2204.00091 (2022)

B. Mortazavi, E.V. Podryabinkin, S. Roche, T. Rabczuk, X. Zhuang, A.V. Shapeev, Machine learning interatomic potentials enable first-principles multiscale modeling of lattice thermal conductivity in graphene/borophene heterostructures. Mater. Horiz.

**7**(9), 2359–2367 (2020)V. Korolev, A. Mitrofanov, Y. Kucherinenko, Y. Nevolin, V. Krotov, P. Protsenko, Accelerated modeling of interfacial phases in the Ni-Bi system with machine learning interatomic potential. Scripta Mater.

**186**, 14–18 (2020)X.-G. Li, C. Chen, H. Zheng, Y. Zuo, S.P. Ong, Complex strengthening mechanisms in the NbMoTaW multi-principal element alloy. NPJ Comput. Mater.

**6**(1), 1–10 (2020)H. Zheng, L.T. Fey, X.-G. Li, Y.-J. Hu, L. Qi, C. Chen, S. Xu, I.J. Beyerlein, S.P. Ong, Multiscale investigation of chemical short-range order and dislocation glide in the MoNbTi and TaNbTi refractory multi-principal element alloys. arXiv:2203.03767 (2022)

T. Yokoi, K. Adachi, S. Iwase, K. Matsunaga, Accurate prediction of grain boundary structures and energetics in CdTe: a machine-learning potential approach. Phys. Chem. Chem. Phys.

**24**(3), 1620–1629 (2022)Z. Deng, C. Chen, X.-G. Li, S.P. Ong, An electrostatic spectral neighbor analysis potential for lithium nitride. NPJ Comput. Mater.

**5**(1), 1–8 (2019)A.M. Goryaeva, C. Lapointe, C. Dai, J. Dérès, J.-B. Maillet, M.-C. Marinica, Reinforcing materials modelling by encoding the structures of defects in crystalline solids into distortion scores. Nat. Commun.

**11**(1), 1–14 (2020)J. Vandermause, S.B. Torrisi, S. Batzner, Y. Xie, L. Sun, A.M. Kolpak, B. Kozinsky, On-the-fly active learning of interpretable Bayesian force fields for atomistic rare events. NPJ Comput. Mater.

**6**(1), 1–11 (2020)M. Hodapp, A. Shapeev, In operando active learning of interatomic interaction during large-scale simulations. Mach. Learn.

**1**(4), 045005 (2020)D. Marchand, A. Jain, A. Glensk, W. Curtin, Machine learning for metallurgy I. A neural network potential for Al-Cu. Phys. Rev. Mater

**4**, 103601 (2020)A.C. Jain, D. Marchand, A. Glensk, M. Ceriotti, W. Curtin, Machine learning for metallurgy III: a neural network potential for Al-Mg-Si. Phys. Rev. Mater.

**5**(5), 053805 (2021)S. Yin, Y. Zuo, A. Abu-Odeh, H. Zheng, X.-G. Li, J. Ding, S.P. Ong, M. Asta, R.O. Ritchie, Atomistic simulations of dislocation mobility in refractory high-entropy alloys and the effect of chemical shortrange order. Nat. Commun.

**12**(1), 1–14 (2021)I. Novikov, B. Grabowski, F. Körmann, A. Shapeev, Magnetic Moment Tensor Potentials for collinear spin-polarized materials reproduce different magnetic states of bcc Fe. NPJ Comput. Mater.

**8**(1), 1–6 (2022)J. Behler, G. Csányi, Machine learning potentials for extended systems: a perspective. Eur. Phys. J. B

**94**(7), 1–11 (2021)F. Musil, A. Grisafi, A.P. Bartók, C. Ortner, G. Csányi, M. Ceriotti, Physics-inspired structural representations for molecules and materials. Chem. Rev.

**121**(16), 9759–9815 (2021)

## Funding

Open Access funding provided by the MIT Libraries. This work was supported by the School of Engineering and the Department of Materials Science and Engineering at the Massachusetts Institute of Technology.

## Author information

### Authors and Affiliations

### Corresponding author

## Ethics declarations

### Conflict of interest

The author declares no conflict of interests.

## Rights and permissions

**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 licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence 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 licence, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Freitas, R., Cao, Y. Machine-learning potentials for crystal defects.
*MRS Communications* **12**, 510–520 (2022). https://doi.org/10.1557/s43579-022-00221-5

Received:

Accepted:

Published:

Issue Date:

DOI: https://doi.org/10.1557/s43579-022-00221-5

### Keywords

- Computation/computing
- Microstructure
- Crystal
- Defects
- Machine learning
- Modeling