-
Over the past decades, machine learning methods have made significant strides in representing the potential energy surfaces (PESs) of complex systems based on ab initio data [1-17]. These so-called machine learning potentials (MLPs) have been widely applied to atomistic simulations across chemistry, physics, and materials science. They have demonstrated superior accuracy compared to empirical force fields and substantially lower costs than direct ab initio molecular dynamics simulations (AIMD) [18-36]. The broad applications of MLPs have been possible due largely to the developments of various MLP software packages [37-49].
One very successful family of MLPs is based on an atomistic representation of the PES, first proposed by Behler and Parrinello [2]. This scheme decomposes the total energy of the system into atomic energies, which depend on many-body features within an atom-centered local environment circled by a cutoff radius. Building on this paradigm, numerous MLP software packages have been developed, including Runner [50], GAP [3], MTP [51], ACE [8], LASP [39], DeepPotSE [52], etc. Recently developed message-passing neural network (MPNN)-based potentials [53-56] have gained more popularity for learning the atomistic representation of the PES in an end-to-end manner. In the context of graph neural networks (GNNs) [57], MPNN models depict the atomic environment by iteratively passing messages between nodes (e.g., atoms) connected by edges (e.g., interatomic distances or angles). After multiple iterations, the resulting atomic features capture not only interactions between atoms from outside of the cutoff radius but also higher-order correlations [10]. Early MPNN models like SchNet [5] or DemiNet [58] only pass scalar functions of interatomic distances or angles that are invariant with respect to symmetry transformations. More advanced MPNN versions, such as PaiNN [11], NequIP [12], MACE [13], and NEMP [59], now incorporate equivariant lmax-order spherical or equivalent Cartesian tensorial features that captures orientation-dependent atomic interactions. These developments have greatly improved the structural discrimination, data efficiency, and transferability of MPNNs.
In this wave of MLP development, we have proposed a class of physically inspired models. In this respect, an original embedded atom neural network (EANN) model [7] utilizes the embedded atom density (EAD) feature to encode the atomic environment. The EAD feature is built on a linear combination of atomic orbital functions, which is dependent on the relative positions of neighbor atoms to the central atom. Subsequently, we designed a recursive EANN (REANN) model [10]. This model adopts an MPNN-like form and updates combination orbital coefficients in a message-passing (MP) manner to enhance the descriptive ability of the EAD feature. Implemented within the PyTorch platform, we developed a general-purpose deep learning package—REANN 1.0. This package is capable of accurately representing energies, forces, dipole moments, and polarizabilities across a wide range of atomistic systems [42]. Within this framework, we further proposed a field-induced REANN (FIREANN) [15] method that incorporates the effect of an external electric field. We also made an effective equivariant adaption that includes orbital functions as part of the update function in each MP layer [60]. Nevertheless, the REANN-based architecture was designed for specific systems with a limited number of elements, thus hardly transferable to more complex multi-element systems.
More recently, a new trend of developing universal potentials (UP) models [61-74] applicable for systems across the periodic table has become increasingly popular. UP models like CHGNet [63], DPA-1 [69], and PFP [75] are usually trained with very diversely distributed datasets across molecules and materials including their energies, forces, and stress tensors. A well-known example of such datasets is the Materials Project Trajectory (MPtrj) dataset [63] consisting of over 1.58 million inorganic structures across 89 elements. These UP architectures mainly rely on element-embedded MPNN or GNN models, typically with millions of parameters [33]. Compared to specialized models, they exhibit much slower inference speeds and more memory demands.
In this article, we propose REANN 2.0 with several improvements towards modeling complex multi-element systems. First, like most recent GNN models, an element embedding NN layer is introduced to improve transferability among chemical elements. Second, our computationally efficient equivariant representation is integrated to further improve the performance. Third, the stress tensor—an essential quantity in condensed-phase systems—is included as an optional training target. Numerical tests on a variety of periodic systems demonstrate both the high accuracy and computational efficiency of this software package. With REANN 2.0, we have pretrained a universal model on the MPtrj dataset (referred to as REANN-MPtrj) and successfully applied it to study a solid-state electrolyte.
-
As illustrated in FIG. 1(a), the schematic architecture of the REANN 2.0 program comprises several modules responsible for the EAD descriptor evaluation and property prediction. In general, the Cartesian coordinates of neighboring atoms are converted once into a set of primitive atomic orbital functions. These functions, integrated with element-specific information from the embedding layer, are iteratively combined with recursively updated orbital coefficients to generate both equivariant orbital functions and invariant EAD descriptors within the interaction block in the MP form. After T MP iterations, the output layer predicts the target properties, including atomic energy, forces, and stress tensors. In the following subsections, we will describe these implementations in detail.
-
In REANN 1.0, the atomic environment is characterized by EAD descriptors [42]. For a central atom i, an EAD feature
$ {\rho _i} $ is defined as the square of the linear combination of a set of atomic orbitals centered on its neighboring atoms within a cutoff radius$ r\mathrm{_c} $ ,Here,
$ {\varphi _{{l_x}{l_y}{l_z},m}}({{\mathbf{r}}_{ij}}) $ is the mth primitive Gaussian-type orbital (GTO) of neighbor atom j, which is characterized by its center ($ {r_m} $ ), width ($ {\alpha _m} $ ), and angular momenta (l = lx + ly + lz and$l \leqslant L$ ),in which
${{\mathbf{r}}_{ij}} = {{\mathbf{r}}_i} - {{\mathbf{r}}_j}$ is the position vector of the central atom i relative to a neighbor atom j, with rij, xij, yij, and zij being its norm and three Cartesian components;$ {N_\varphi } $ is the number of contracted GTOs,$ {N_c} $ is the number of neighboring atoms,$ {d_m} $ and$ {c_j} $ are learnable contraction and orbital coefficients, respectively. A radial cutoff function$ f_{\mathrm{c}}(r_{ij}) $ decays the interaction smoothly to zero at$ r\mathrm{_c} $ . In this way, the initial local EAD descriptors only incorporate up to three-body interactions. To introduce higher-order interactions,$ {c_j} $ can be rewritten as the output of an atomic NN associated with atom j, which in turn depends on the EAD features of that atom in an MP form,where
$ {\text{g}}_j^{t - 1} $ is an NN of atom j at the (t−1)th iteration of MP. In this REANN framework, only the scalar orbital coefficients are iteratively updated, corresponding to an invariant MPNN architecture. Moreover, REANN 1.0 has an element-wise architecture, where the parameters in both EAD descriptors and atomic NNs are defined and optimized separately for each element. While this approach is effective for systems with simple compositions, it results in too many parameters for multi-element systems, thus greatly lowering both the training and inference efficiencies. More critically, it hinders the model’s transferability to systems containing elements unseen in the training set.To address these issues, REANN 2.0 explicitly incorporates element-specific information and integrates it with an equivariant MP formalism. As shown in FIG. 1(b), we first apply one-hot encoding to generate an atomic number vector for each central node in the graph, denoted as
$ {{\mathbf{z}}_i} = {\text{one\_hot}}({Z_i}) $ , in which$ {Z_i} $ is the atomic species. This vector is then used to construct the corresponding atomic number vector for each edge connecting the central atom to its neighbors, namely,$ {{\mathbf{z}}_{ij}} = {{\mathbf{z}}_i} + {{\mathbf{z}}_j} $ . To incorporate element-specific information into EAD features,$ {{\mathbf{z}}_i} $ and$ {{\mathbf{z}}_{ij}} $ are passed through NNs in the embedding layer, yielding atom-wise element features$ {a_i} $ and pair-wise features$ p_{ij}^t $ as follows,in which V and Ut are the central and neighbor embedding NNs in tth iteration, respectively.
As illustrated in FIG. 1(c), REANN 2.0 incorporates a computationally efficient equivariant representation to further improve structural discrimination. In this framework, not only invariant orbital coefficients but also the equivariant orbitals are iteratively updated as follows in order to generate the wavefunction [60],
Notably, this adaptation implicitly encodes the spatial information of neighboring atoms while having minimal impact on computational cost, as the number of parameters remains unchanged. The invariant EAD feature can be evaluated using the same form as in Eq.(1) with the atom-wise element embedding
$ {a_i} $ , -
Similar to REANN 1.0, REANN 2.0 adopts the atomic decomposition form of the total energy, namely,
$E = \displaystyle\sum_{i = 1}^N {{E_i}}$ .$ {E_i} $ is expressed as the output of an atomic NN which takes the EAD descriptor as input, and the atomic force$ {{\mathbf{F}}_i} $ is obtained via automatic differentiation of E with respect to the atomic Cartesian coordinates$ {{\mathbf{r}}_i} $ as follows,In REANN 1.0, only energy and forces are used as targets when training PESs. However, many datasets [68, 76, 77] for materials also include stress tensors to describe material’s distortion in response to external stress, which can be expressed as,
in which V denotes the volume of the configuration. The loss function in REANN 2.0 includes the stress tensor as a training target whenever available,
in which the superscript of each variable indicates either the NN prediction or the corresponding reference value, while
$ {N_b} $ ,$ {\lambda _E} $ ,$ {\lambda _F} $ , and$ {\lambda _\sigma } $ denote the size of mini-batch and the weighting factors for energy, force, and stress in training, respectively. -
In the new REANN 2.0 package, all elements share parameters mapping the atomic environment to atomic energy. Although this embedding technique greatly reduces the total number of parameters and promotes transferability, it could reduce the distinguishability of atomic descriptors for the atomic environments of different chemical elements, thereby influencing model accuracy. To validate the REANN 2.0 package in describing multi-component systems, we tested it against various datasets, as discussed below.
-
Li3YCl6 is a simple yet widely used benchmark system for evaluating the MLP performance in modeling solid-state electrolytes [78-81], which are key ingredients in next-generation devices for energy storage and release [82, 83]. Here, we choose to fit the dataset taken from our previous work [81], which consists of PBE energies (E), forces (F) and stresses (S) of 1,845 configurations sampled from AIMD trajectories at temperatures ranging from 500 K to 1000 K. As shown in Table I, the REANN 2.0 model trained solely on energies and forces (EF) achieves root mean square errors (RMSEs) comparable to those of the original REANN 1.0. This indicates that the element embedding layer in REANN 2.0 successfully distinguishes atomic environments across different elements without compromising model accuracy. Remarkably, the REANN 2.0 model has only ~58k parameters compared to ~82k parameters in the REANN 1.0 counterpart, making the training process roughly 1.4 times faster. Moreover, incorporating stress tensors into training (EFS) not only increases the prediction accuracy for stresses (RMSE_S), but also for energy and forces.
-
Next, we used a high-entropy alloy (HEA) dataset that was tested against DeepPotSE [52] and its element-embedding variant DPA-1 [69]. This HEA dataset encompasses a mix of bulk Ta-Nb-W-Mo-V-Al alloy systems with diverse compositions, including 8,255 configurations within a 16-atom unit cell where the former five elements serve as main components and Al acts as an additive [69]. Table II compares the performances of various models on this HEA dataset. Interestingly, Zhang et al. found that incorporating an element embedding scheme into the traditional atomic descriptor of the DeepPotSE model [52] (yielding the DPA-1 model [69]) significantly lowered the test errors in both energy and forces for this HEA dataset, as evidenced in Table II. In comparison, our REANN 1.0 model already outperforms DPA-1, while the REANN 2.0 model exhibits the highest accuracy. Note that both the element embedding and the equivariant representation contribute to the improved accuracy of the REANN 2.0 model.
In addition, the element embedding significantly reduces the number of model parameters. The total number of parameters of the REANN 2.0 model (~94k) is less than one fourth of that of the original REANN 1.0 model (~380k), for the HEA test. This makes REANN 2.0 nearly 4 times faster than the REANN 1.0 in each training epoch on the HEA dataset. The inference of the REANN 2.0 model is also greatly accelerated. FIG. 2 shows the computational costs of REANN 1.0 and REANN 2.0 models for HEA using a single CPU core (Intel Xeon 6132, 2.60 GHz) as a function of the total number of atoms with different compositions of elements. The speedup of REANN 2.0 over REANN 1.0 increases with the system size, up to ~2 for the system size of 1,024 atoms, either with one or multiple elements. It is worth noting that the computational speed of REANN 2.0 is unaffected by increasing the number of elements, whereas REANN 1.0 slows down obviously for multi-element systems with fewer than 128 atoms and becomes equally slow across systems with varying numbers of elements once the CPU core is fully utilized for simulations with more than 512 atoms.
-
The performance of REANN 2.0 was further tested using the high-temperature multi-element 2021 (HME21) dataset with more elements, which was reported by Takamoto et al. in their PFP model [75]. This model is based on TeaNet [84]—an equivariant GNN architecture that treats tensor representations as higher-order geometric features. The HME21 dataset [75] includes 37 elements and consists of 19,956 configurations for training, 2,498 configurations for validation, and 2,498 configurations for testing. The test errors of various MLPs for this dataset are compared in Table III. In Ref.[75], it was argued that TeaNet [84] is more expressive than other invariant and equivariant GNN models such as SchNet [5], PaiNN [11], and NequIP [12]. As seen in Table III, the REANN 2.0 model is as accurate as PFP [75], which yields significantly reduced errors in both energy and forces compared to the original REANN 1.0 model. It is noteworthy that PFP [75] was pre-trained on a larger dataset that includes HEM21, whereas our REANN 2.0 model achieved comparable accuracy from scratch using only HEM21 without any additional pre-training data. These results indicate that the REANN2.0 model excels in multi-element datasets, laying a solid foundation for the subsequent development of UPs across the periodic table.
-
The MPtrj Dataset has served as a critical starting point for constructing UPs and/or pre-training tasks of inorganic materials [63, 64]. This database consists of ~1.58M configurations across ~146k inorganic materials involving 89 elements, generated from DFT calculations [63]. Table IV compares the performance of several popular UPs like CHGNet [63], NequIP [12], with our REANN 2.0 model trained against the MPtrj dataset [63] (referred to as REANN-MPtrj). Note that training a REANN 1.0 model against this MPtrj dataset [63] is very difficult and slow, as its parameter size grows dramatically with the number of elements. Interestingly, REANN-MPtrj reaches a comparable level of accuracy as CHGNet [63]—a highly expressive invariant GNN model—in energy and forces, but a lower level of accuracy in stress tensor. It should be emphasized that the resultant REANN-MPtrj model contains merely 90k parameters, less than one fourth of that of the CHGNet [63] model. In comparison, NequIP [12] is an equivariant MPNN model built on two-body feature tensors (i.e., lmax ≥ 1). It demonstrates a higher accuracy on this dataset, at the price of a very large number of parameters (~1.9M) with equivariant features (lmax=2). This is more than twenty times that of the REANN 2.0 model. These results imply that REANN 2.0 is advantageous in its simple physically inspired structure which can achieve a reasonably high accuracy with a minimal set of parameters. Compared with the more complex equivariant features of the NequIP [12] model, the simple equivariant features of REANN 2.0 and the invariant features of the CHGNet [63] may be less sensitive to the atomic structure variation, resulting in the inferior performance of REANN 2.0 and CHGNet [63] to that of NequIP [12] on the MPtrj dataset [63]. As a pre-trained model, REANN-MPtrj is sufficient and its performance can be further improved by fine-tuning in specific applications.
To test the ability of the UP in practical scenarios, we apply this zero-shot REANN-MPtrj model to study the benchmark Li3YCl6 system. Specifically, machine learning molecular dynamics (MLMD) simulations have been performed with this UP to evaluate the lithium-ion conductivities at different temperatures, in comparison with the earlier results [81] obtained by AIMD. Note that this system is not included in the MPtrj dataset [63]. FIG. 3 clearly shows that the performance of this zero-shot REANN-MPtrj UP is as good as that of a previous EANN [81] and REANN 1.0 potentials specialized to the Li3YCl6 dataset. Indeed, MLMD simulations on both potentials yield similar activation energies and the room-temperature conductivities as AIMD results.
This result indicates that the diffusion dynamics of lithium ions in this solid-state electrolyte could be rather accurately captured by the pre-trained REANN-MPtrj potential without additional sampling and fine-tuning. This success is likely attributed to the good transferability of chemical information introduced by the element embedding. Although the Li3YCl6 configurations are not at all included in the pre-training data, similar configurations exist from Li3ErCl6 or so with element substitution in the MPtrj dataset [63]. Consequently, the pre-trained REANN-MPtrj model can learn the similarities between elements of the same group through massive data to aggregate the transferable information between these elements [69]. As for systems composed of elements that are completely absent from the pre-training data, REANN-MPtrj would likely provide less reliable predictions—yet the accuracy of such predictions is highly reliant on how similar the atomic environments of the new system are to those present in the pre-training dataset.
-
In summary, REANN 2.0 represents a valuable update of the REANN software package, designed for modeling complex multi-element systems. Its core improvement is an explicit embedding of element-specific information into the EAD feature, significantly reducing the model parameter size and enhancing transferability across chemical elements. Its capability has been validated through numerical tests on various periodic systems with up to 89 elements. Notably, the accuracy of REANN 2.0 is ensured by the integration of our recently developed equivariant representation and the incorporation of stress tensors as targets. Built upon this framework, a pre-trained REANN-MPtrj model demonstrates excellent efficiency and competitive accuracy with a very small number of parameters. The REANN-MPtrj potential enables efficient MD simulations of Li3YCl6 for predicting accurate lithium-ion conductivities, even though the training dataset includes no data for this system. These results demonstrate that REANN 2.0 as an efficient platform for constructing high-dimensional PESs of multi-element systems and UPs in the future.
REANN 2.0: An Efficient Package of Neural Network Potentials for Multi-Element Systems†
- Received Date: 31/08/2025
- Available Online: 27/12/2025
-
Key words:
- Machine learning potential /
- Message passing neural network /
- Universal machine learning potential /
- Molecular dynamics
Abstract: Recursively embedded atom neural network (REANN) is a general-purpose atomistic machine learning software package for representing potential energy and other physical properties. The original REANN 1.0 architecture is a physically inspired invariant message passing neural network, which was designed for systems with a limited number of elements. It is efficient but hardly transferable to more complex multi-element systems. In this work, we release REANN 2.0 aimed at multi-element systems and universal potentials, which integrates element embedding and equivariant representation. Compared to the first version, REANN 2.0 demonstrates enhanced element transferability and higher accuracy across various periodic systems with higher efficiency. Built upon this framework, a pre-trained REANN-MPtrj model without fine-tuning accurately predicts the lithium-ion diffusion dynamics in a benchmark solid-state electrolyte Li3YCl6. We hope this open-source software package will facilitate the development of computationally efficient universal potentials in the future.
首页
登录
注册


DownLoad: