Introduction

The electrode-electrolyte interface is a critical region where various physical and chemical processes occur, encompassing activities from energy conversion and storage to electrochemistry1,2,3. Li metal is widely regarded as an ideal anode material for next-generation secondary batteries due to its extremely low electrochemical potential (−3.04 V vs. the standard hydrogen electrode) and ultrahigh theoretical capacity (3860 mAh g1)4,5,6,7. However, the commercial application of the Li metal anode remains challenging due to several key issues, including uncontrollable Li dendrite growth, irreversible interface reactions, and mechanical instability of solid-electrolyte interphase (SEI)7,8. These issues are closely tied to the interface between the Li metal anode and liquid or solid-state electrolytes. The complexity of these challenges stems from the dynamic nature of the interface, which is further complicated by the nanoscale dimensions of the involved reactions, as well as the complex physicochemical interactions that occur. For instance, element doping is commonly used to improve the lithium-ion conductivity of solid-state electrolytes (SSEs). Furthermore, element doping has also been shown to modify the interface properties such as the stability of the Li|SSE interface, which in turn affects the overall cycling performance of the battery9,10. However, the universal principles governing the dynamic evolution of the interface after element doping remain unclear.

Experimental characterizations of the interface reactions remain challenging due to their nanoscale dimensions, dynamic nature, and the interplay of multiple physicochemical processes11,12. Theoretical simulations have emerged as indispensable tools for investigating the mechanisms governing interface reactions, potentially serving as realistic in situ characterization techniques11,13,14. Therefore, efficiently modeling these complex interface reactions is crucial for the development of a safe and stable Li metal anode. There are several approaches to model interface reactions on the Li metal anode. Ab initio molecular dynamics (AIMD) simulations, known for accurately describing atomic interactions, have been utilized to explore the microscopic intricacies of the interface between Li metal and electrolyte15,16,17,18. Nevertheless, the accessible space and time scales of simulations are constrained by the high computational cost19. Conversely, molecular dynamics (MD) simulations serve as an ideal tool for investigating dynamic processes at a higher speed. However, MD simulations are often hindered by the limited availability and accuracy of classical force fields, which rely on physical approximations20,21. In recent years, artificial intelligence technologies have become increasingly mature22. As an effective tool, machine learning potential (MLP) has significantly enhanced the atomic-scale understanding of mechanisms behind many physical phenomena20,23,24. The MLP method has demonstrated its potential as a promising alternative, combining speed and accuracy. It has been implemented in battery systems, such as Li metal systems25,26, solid-state electrolytes,27,28 and liquid electrolytes29. However, the challenges still remain in sampling the vast configuration space and ensuring that MLP is trained on a sufficiently diverse dataset to maintain its reliability in complex simulations, such as distribution shift, particularly for the electrode-electrolyte interface reactions30,31,32,33.

The active learning (AL) strategy has been proposed as an effective sampling method, significantly advancing the development of MLP, through approaches such as on-the-fly AL34, uncertainty-driven dynamics,35 and hyperactive learning36. However, its application to interface reactions presents several challenges31,32. Interface reactions require the simultaneous exploration of the chemical diversity and non-equilibrium thermodynamic pathways, such as reaction intermediates and ion migration3,37. However, AL strategies often prioritize the exploration of high-energy or high-variance regions, which do not necessarily align with the actual reaction pathway, thereby introducing sampling bias38,39. Additionally, during interface reactions, the continuous evolution of atomic configurations shifts the distribution of training data away from the actual reaction pathway40,41. Although adequate sampling can partially alleviate this problem, it struggles to adapt to the abrupt structural changes in non-equilibrium processes and leads to increased computational costs. The key contradiction lies in the conflict between AL’s strategy of exploring unknown atomic structures and the need to focus on key reaction pathways in interface reactions, leading to inefficient sampling41. On the other hand, electrode-electrolyte interfaces involve multi-element doping, solvation effects, and charge transfer, resulting in a highly complex configuration space3. The sampling density of AL often falls short of requirements and does not sufficiently cover enough high-energy transition states or extreme configurations, leading to incomplete local fitting of the potential energy surface. This may lead to instability in simulations and ultimately cause simulation collapse40,41,42. Addressing these challenges requires refining AL strategies to focus on targeted sampling aligned with interface reaction mechanisms and critical configurations.

Herein, we introduce a hybrid framework that combines AIMD and MLP to model the electrode-electrolyte interface. The innovation of HAML lies in its ability to guide reaction pathways in situ, with the coupled AIMD steering the MLP toward physically relevant configurations. This architecture enables HAML to achieve stable long-timescale simulations of interface reactions, addressing the distribution shift challenge in MLP when dealing with complex interface configurations. HAML significantly enhances efficiency and streamlines the simulation process. We applied the method to model interface reactions between Li metal and both liquid electrolytes and solid-state electrolytes, demonstrating its high accuracy and efficiency in capturing key reaction processes and products over extended time scales. Furthermore, we highlight the role of element doping in modifying the interface properties and improving the cycling stability of the Li metal anode. Similarity analysis was employed to assess the severity of the interface reaction, revealing that the changes in the interface reaction kinetics are the essential reason for interface modification. These efforts will deepen the understanding of the Li metal anode interface and facilitate the design of more stable electrode-electrolyte interfaces for safer Li metal batteries.

Results

Hybrid AIMD-MLP method for addressing challenges in interface modeling

Several challenges exist in modeling electrode-electrolyte interfaces due to the inherent complexity of the system, as illustrated in Fig. 1a, b. The primary challenges arise from distribution shift, inefficient sampling of interface configurations, and direction bias. These may result in unrealistic interface behaviors, ultimately leading to the collapse of MD simulations42. To address these challenges, we propose a hybrid approach that combines AIMD with MLP, termed HAML, which is primarily inspired by the architecture of HAIR43. The workflow of HAML, as illustrated in Fig. 1c, consists of several steps including geometry optimization, AIMD, MLP training, and MLP-driven molecular dynamics (MLP-MD). The essence of HAML lies in the iterative cycles between AIMD, MLP training, and MLP-MD. In each cycle, the final configuration from AIMD serves as the initial configuration for MLP-MD, while the final configuration from MLP-MD becomes the initial configuration for AIMD. This iterative process continues until the predefined simulation time or number of cycles is reached.

Fig. 1: Schematic of the HAML method.
figure 1

a Schematic illustrating the challenges in understanding the interfaces between Li metal anode and liquid or solid-state electrolytes. b Schematic depicting the challenges in modeling these interfaces. c Schematic of the HAML, the workflow comprises geometry optimization as well as the iterative cycle of AIMD, MLP training, and MLP-MD.

In this method, the purposes of AIMD are to provide training data for subsequent MLP training and enhance the accuracy of critical steps in the reaction process. The role of MLP-MD is to accelerate the reaction process, with its main focus on ensuring the reliability of the MLP-MD simulations. To ensure reliability, we adopt the Maxvol algorithm used in moment tensor potential (MTP)44,45, which monitors the reliability of MLP predictions during MLP-MD simulations to determine whether the MLP-MD should be interrupted. During MLP-MD, the extrapolation grade, denoted as γ, is computed for each assessed configuration. Configurations well-represented in the training dataset, and thus likely well described by MTP, exhibit a low value of γ. When γ exceeds a predefined threshold \({{\rm{\gamma }}}_{{break}}\), the MLP-MD simulation is interrupted to prevent unreasonable configurations and reactions. This treatment ensures the accuracy and reliability of the HAML approach.

The key innovation of HAML lies in its ability to guide the reaction pathway in situ, with AIMD steering the MLP toward physically relevant configurations. Therefore, HAML offers accuracy similar to that of AIMD while significantly improving efficiency. Compared to pure MLP/AL, HAML eliminates the need for repeated exploration of the configuration space, significantly enhancing efficiency. Moreover, it can conveniently predict the interface evolution through a single simulation. Thus, HAML provides a new opportunity to achieve efficient in situ observation of interface reactions while ensuring high accuracy.

Demonstration of the advancements of the HAML method

In this section, we demonstrate the advantages, accuracy, and efficiency of the HAML through its application to interface reactions between Li metal and both liquid and solid-state electrolytes. The LiFSI, DME mixed solution system, the Li6PS5Cl (LPSC) system, and their element-doped systems were selected as research subjects. The initial structures are shown in Supplementary Figs.1 and2. To highlight the advantages of the HAML method, we compared the computational time required for these simulations. We recorded the total CPU time for HAML and AIMD in each simulation (Supplementary Tables 15). For comparison, we further calculated the average time used by HAML and AIMD and plotted the acceleration ratio curve. As shown in Fig. 2, the real-time computational cost relative to the simulation time was reduced to 0.558 h ps1 compared to the AIMD simulation cost of 7.398 h ps1 for the interface between Li metal and LiFSI, DME mixed solution system. For the interfaces between Li metal and LPSC system as well as their element-doped variants (LPSC_Se, LPSC_F, LPSC_O), the real-time computational cost relative to the simulation time was reduced to 0.13~0.16 h ps1 compared to the AIMD simulation cost of 3.29~4.79 h ps1. The results indicate that HAML achieved a speedup of more than 10 times compared to AIMD for the Li metal and liquid electrolyte system, while for the solid-state electrolyte system, a speedup of over 20 times is achieved. The acceleration performance of HAML simulations in these interfaces demonstrates the generality of the HAML method. Additionally, the temperature stability of AIMD and MLP-MD during HAML simulations shows smooth transitions between the cycles, indicating that the HAML simulations are continuous and smooth (Supplementary Figs. 37).

Fig. 2: Comparison of HAML and AIMD in terms of the average time used and acceleration ratio.
figure 2

The tested systems include interface between Li metal and LiFSI, DME mixed solution (Li|LiFSI,DME), interfaces between Li metal and LPSC system (Li|LPSC), Se-doped system (Li|LPSC_Se), F-doped system (Li|LPSC_F), O-doped system (Li|LPSC_O).

As an example, we demonstrate the application of HAML to model the interface reactions between Li metal and LiFSI, DME mixed solution. We conducted 90 cycles of HAML, extending the reaction time to 420 ps (Fig. 3a), with the NVT canonical ensemble at 300 K. Figure 3b, c presents the trajectory snapshots at 12 ps and 420 ps, respectively. The results show that while some decomposition of the salt occurs at 12 ps, it is incomplete, and many Li atoms at the bottom have not yet participated in the reaction. In contrast, at the extended timescale of 420 ps, the system undergoes a more complete reaction. Combining the radial distribution functions (Fig. 3d–f), the deep reaction products of LiFSI, such as Li2S and Li3N, are observed at 420 ps. The complete product statistics and comparison are listed in Supplementary Table 6. These products have been observed in previous experimental studies46,47,48. The results confirm the accuracy and efficiency of HAML. Furthermore, they emphasize the necessity of long-timescale simulations for studying the interface.

Fig. 3: Demonstration of HAML for simulation of Li metal and LiFSI, DME mixed solution interface system.
figure 3

a The relationship between HAML cycles and simulation time. The snapshots of HAML simulations for Li metal and LiFSI, DME mixed solution interface system after 12 ps (b) and after 420 ps (c). The comparison of radial distribution functions for Li–F (d), Li–O (e), and Li–S (f) after 12 ps and 420 ps.

These results demonstrate that HAML has the potential to become a comprehensive framework that can achieve stable long-timescale simulations of interface reactions and efficiently predict the interface evolution in various scenarios. This would be essential for optimizing interface properties and the ultimate battery performance in practical applications.

Interface reaction kinetics for promoting interface stability

SSEs have been extensively studied as key components of solid-state Li metal batteries due to their enhanced safety and energy density. Among them, LPSC is a widely used SSE, owing to its high ionic conductivity (~102 S cm1 at room temperature) and cost-effectiveness49,50,51. However, the cycling performance of LPSC in Li metal batteries is limited due to interface side reactions, which can lead to an increase in interfacial resistance and poor electrochemical performance51,52,53,54. The detailed and accurate micro-mechanism of these interface reactions remains unclear, primarily due to the lack of characterization tools. Consequently, AIMD simulations have been employed to investigate the dynamic reaction mechanism at the interface between Li metal and SSEs55,56. However, AIMD simulations are computationally expensive and unsuitable for long-term simulations. To address this limitation, we apply the proposed HAML method to investigate the reactions at the interface between Li metal and LPSC.

We constructed a Li|LPSC interface model consisting of 112 atoms with a mismatch rate of 3.9%. The detailed construction of the model is described in the Supplementary Note 1. Following the HAML simulation at 300 K, completed 528 ps HAML simulation within 20 cycles (Fig. 4a), the Li|LPSC interface underwent significant reactions. As shown in Fig. 4b–d, the structure of the LPSC layer near the Li metal slab exhibited continuous distortion and decomposition, leading to the formation of products. The PS₄²⁻ polyhedron underwent significant breakdown, as evidenced by the disappearance of P–S bonds and the P–S peak at approximately 2 Å after 528 ps (Fig. 4e, f), which aligns with XPS characterization findings that show the instability of P–S bonds57. The number of Li–Cl bonds and Li–S bonds is also reduced after 528 ps simulation as a result of the decomposition of LPSC. As shown in Supplementary Fig. 8, the newly formed Li–Cl peak at around 4.5 Å indicates the presence of a Li–Cl interaction in the second coordination sphere, which corresponds to the LiCl product at the interface. Additionally, the increase in Li–P bond number after the reaction corresponds to the formation of Li3P. The observed final products include Li3P, Li2S, and LiCl, consistent with previous computational and experimental studies55,56,57,58. Furthermore, we extended the simulation time from 528 ps to 1 ns but observed no obvious change in the interface structure (Supplementary Fig. 9). This phenomenon is similar to former computational researches55,58,59, which indicates the uncomplete reaction between LPSC and Li and the failure in constructing a stable SEI to avoid side reactions, thus make the interface intrinsically unstable when cycling at high rate. In addition, we calculated the ionic conductivity of LPSC (Supplementary Fig. 10), providing quantitative validation for the accuracy of the HAML method.

Fig. 4: HAML simulation of the interface between Li metal and Li6PS5Cl system.
figure 4

a The relationship between HAML cycles and simulation time. bd The snapshots during the simulation process. e The comparison of bond numbers for P–S, Li–P, Li–S, and Li–Cl bonds at initial time and after 528 ps. f The comparison of radial distribution functions for P–S at initial time and after 528 ps.

One of the modification methods to modify the interfacial structure of Li|LPSC is to introduce doping elements. Among the doping elements, Se has been found to improve interface stability and ionic conductivity in LPSC SSEs9,10, while F60 and O61 are also recognized as beneficial doping elements for protecting the interface. Thus, we used the HAML method to systematically study the interfaces between Li metal and three element-doped LPSC electrolytes. The HAML simulation process for these doped systems, including detailed structural evolution and corresponding RDFs, is illustrated in Supplementary Figs. 1113.

The pristine LPSC remains partially unreacted after 280 ps of simulations (Fig. 5a), while its doped variants, LPSC_Se, LPSC_F, and LPSC_O, exhibit enhanced interface reactivity at room temperature (Fig. 5b–d). This difference in reactivity is quantitatively corroborated by similarity analysis in Fig. 5e. The LPSC demonstrates the highest structural fidelity (>93%) among all systems, indicating that the LPSC interface structure remains relatively stable in the HAML simulation. This stability aligns with previous discussions. In contrast, the doped interfaces undergo significant structural evolutions throughout the simulation. The structural variations during HAML simulation reveal that dopant incorporation (Se, F, O) introduces structural perturbations that destabilize the native equilibrium configuration, which further promote progressive electrolyte decompositions. This inherent instability in the interface structure contributes to rapid reaction kinetics during the early stages of SEI formation at the interfaces of Li metal and LPSC_Se, LPSC_F, and LPSC_O. Despite the disappearance of P–S bonds across all LPSC interfaces indicating the breakdown of the PS₄²⁻ polyhedron, the doped interface structures exhibit significant variations in bonding configurations. As shown in Fig. 5f, the doped systems (LPSC_Se, LPSC_F, and LPSC_O) exhibit a more pronounced increase in Li–S, Li–P, and Li–Cl bond formations compared to the pristine LPSC after 280 ps of HAML simulation. Additionally, the F-doped interface forms stable Li–F bonds, contributing to the formation of a robust SEI. Besides, we analyzed the time-dependent evolution of bond formation to compare interfacial kinetics between doped and undoped systems. As shown in Supplementary Figs. 14 and 15, dopants accelerate interfacial reactions, leading to faster bond-breaking and associated processes.

Fig. 5: Comparison of interface reactions in four researched systems (Li|LPSC, Li|LPSC_Se, Li|LPSC_F, and Li|LPSC_O).
figure 5

Atomic configurations of Li|LPSC (a), Li|LPSC_Se (b), Li|LPSC_F (c), and Li|LPSC_O (d) interfaces after 280 ps HAML simulations. e The quantitative comparison of interface structure similarities between initial (interfaces before relaxation and AIMD simulation) and post-simulation interface configurations (after 280 ps). f The variations in bond numbers at the interfaces during the 280 ps HAML simulations.

During the HAML simulation of Li|LPSC_Se interface for 566 ps at 300 K (Supplementary Fig. 11a), the Li atoms in Li layers were found actively diffused into Li6PS4.75Se0.25Cl layer and reacted obviously, forming Li2S, LiCl, Li3P, and Li4Se (Supplementary Fig. 11b–d), which is further demonstrated by the radial distribution functions in Supplementary Fig. 11e–h. The reactivity is more obvious compared to Li6PS5Cl|Li, and is similar to previous AIMD simulations, indicating that the dopant Se accelerated the reaction kinetics and helped to form ordered SEI62. In detail, Se promoted the diffusion of P and Cl into Li layers and the formation of relatively stable SEI containing more Li3P than in Li|LPSC. The rapid degradation of PS₄²⁻ polyhedron, diffusion of P atoms into Li layers, and formation of Li3P was also observed in F-doped and O-doped interfaces (Supplementary Figs. 12 and 13). These metastable doped configurations facilitate rapid interface reaction kinetics during the initial cycling stages. However, reactivity at the early stages of SEI formation may benefit the overall interfacial stability. The Se-doped, F-doped, and O-doped LPSC lead to the establishment of passive SEI as protection layers at the SSE|Li interface and ensure better electrochemical performance60,61,63.

In addition to the metastable doped structures, the unstable crystal facets at the interface region also facilitate the formation of a relatively stable protective layer. An AIMD study by Golov et al. revealed distinct coordination environments across different crystallographic orientations58. The Li(110)|LPSC(110) and Li(111)|LPSC(111) interfaces exhibit higher interfacial degradation rates compared to Li(100)|LPSC(100) and Li(221)|LPSC(100) models. Specifically, the LPSC(111) facet exhibits higher surface energy than other orientations64, and this observed variation in degradation behavior implies that interfacial degradation rates correlate with surface stability anisotropy. Furthermore, the Li(111)|LPSC(111) interface exhibits a reduced Li-ion migration barrier, facilitating enhanced ionic diffusion across the interface and thereby lowering interfacial resistance. Interestingly, despite LPSC’s thermodynamic instability under standard conditions, experimental studies have successfully used it as a protective interlayer between high-entropy Li2.75Y0.16Er0.16Yb0.16In0.25Zr0.25Cl6 and Li-In anodes65. This implementation indicates that reactivity at the LPSC|Li-In interface could contribute to stable solid-electrolyte interphase (SEI) formation, ultimately enhancing lithium battery cycling performance.

Discussion

In summary, this work presents a novel approach that combines AIMD with MLP, enabling accurate and efficient modeling of electrode-electrolyte interfaces. By applying HAML to representative systems involving both liquid and solid-state electrolytes reacting with Li metal, we demonstrated its advantages in both accuracy and computational efficiency. HAML effectively addresses key challenges in interface modeling and enables stable long-timescale simulation of interface reactions. For exploring interface reactions, an accurate MD simulation is typically sufficient to capture the reaction process and products, while AL may introduce unnecessary complexity. AL strategies still face challenges in exploring unknown reaction configurations and often lead to excessive computational costs. In contrast, HAML is an in situ approach, leveraging AIMD simulations to guide the reaction pathway accurately. This approach eliminates redundant configuration space exploration, allowing researchers to concentrate on key scientific questions within a single simulation. We believe the key advancement of HAML lies in its ability to achieve the desired outcome, regardless of the complexity of the interface reactions, with relatively low cost and effort. This is especially crucial for future high-throughput screening of electrolyte systems or doping elements that enhance interface stability, an area often neglected in previous work due to its high cost. High-throughput screening often involves multiple elements and systems, making it extremely complex and time-consuming when relying on traditional methods. Thus, HAML is well-positioned as a comprehensive framework for efficiently predicting interface evolution across diverse scenarios, playing a crucial role in optimizing interface properties and enhancing overall battery performance in practical applications.

Moreover, we employed HAML to gain deeper insights into the complex mechanisms governing interface reactions in Li metal anode. For liquid electrolytes, HAML accurately captured the dynamic evolution of SEI components with high temporal and spatial resolution. For solid-state electrolytes, HAML revealed the formation and stabilization of interphase layers, providing insights into their compatibility with Li metal. Specifically, for the chloride solid-state electrolyte LPSC, we introduced dopants such as Se, F, and O to modify the interfacial structure and reactivity between the electrolyte and Li metal anode. The intrinsic instability of the doped LPSC structure accelerates interface reaction kinetics and promotes the formation of the interface protection layer, thereby improving the overall stability of the full-cell system. In conjunction with previous studies58,64, unstable crystal facets at the interface can facilitate the formation of a more stable protective layer, with degradation behavior varying across different crystallographic orientations due to surface stability anisotropy. Thus, introducing moderate lattice instability could serve as an effective strategy for modulating interface reaction kinetics, generating the stable SEI layer, and mitigating further degradation. These findings not only deepen our understanding of interface processes but also pave the way for the rational design of strategies to enhance the stability and performance of next-generation energy storage systems.

Despite the promising capabilities of HAML, several considerations are crucial for ensuring its reliable application. Among these, careful selection of key parameters, such as the maximum level levmax and the break threshold \({\gamma }_{{break}}\) of MTP, is essential for ensuring the accuracy and robustness of HAML. Proper tuning of these parameters is essential before applying HAML in practice. In particular, the break threshold may need to be set as small as possible for certain systems to maintain simulation accuracy. In this work, we primarily used the MTP as an example to demonstrate the effectiveness of the HAML framework. It is acknowledged that HAML still has certain limitations. In future research, HAML could be further refined and expanded for broader applications. By coupling alternative potential models, with magnetic or charge information, into the framework while retaining the uncertainty-based thresholding scheme, the performance and applicability of HAML could be further enhanced. Another promising direction is integrating HAML with universal large atomic models, potentially enhancing the transferability among a wide range of systems and eliminating the need for extensive MLP training. This advancement would significantly enhance the efficiency and adaptability of HAML, enabling its rapid application to novel chemistries or interfaces. As for potential applications, HAML simulations can be leveraged for high-throughput screening to identify materials or doping elements from extensive candidate databases that could enhance interface properties.

Methods

AIMD

The core of HAML lies in the iterative cycles between AIMD, MLP training, and MLP-MD. All the AIMD simulations were performed by the Vienna ab initio simulation package (VASP)66,67. The generalized gradient approximation (GGA) with a parametrized exchange-correlation function according to Perdew, Burke, and Ernzerhof (PBE) was used in the calculations68. The valence electron wave functions were expanded in the plane wave basis sets, and the projector augmented wave (PAW) method was used to describe the core-electron interactions69. The Grimme’s D3 method was used to account for dispersion effects70. The energy cutoff for these simulations was 520 eV, and a 1 × 1 × 1 k-point mesh was used. The NVT ensemble was used in all the simulations, and the Nose–Hoover71 thermostat was applied for temperature control. A timestep of 1 fs was used in all AIMD simulations.

MLP

We adopted the MTP44,45 as the MLP module in the HAML framework. The rotationally covariant tensors are as follows,

$${M}_{\mu ,v}({n}_{i})=\sum _{j}{f}_{\mu }(|{r}_{ij}|,{z}_{i},{z}_{j})\mathop{\underbrace{{r}_{ij}\otimes \cdots \otimes {r}_{ij}}}\limits_{v\,times}$$

where \({f}_{\mu }(|{r}_{ij}|,{z}_{i},{z}_{j})\) is the radial function

$${f}_{\mu }\left(|{r}_{ij}|,{z}_{i},{z}_{j}\right)=\sum _{k}{c}_{\mu ,{z}_{i},{z}_{j}}^{\left(k\right)}{T}_{\left(k\right)}(|{r}_{{ij}}|){(|{r}_{ij}|-{r}_{c})}^{2}$$

\({T}_{\left(k\right)}(|{r}_{{ij}}|)\) are the Chebyshev polynomials, \(k\) is the degree of polynomial, \({c}_{\mu ,{z}_{i},{z}_{j}}^{\left(k\right)}\) is the radial coefficients, and \({r}_{c}\) is the cutoff radius. \({r}_{{ij}}\otimes \cdots \otimes {r}_{{ij}}\) is a tensor of rank ν encoding angular information.

The basis functions \({B}_{\alpha }({n}_{i})\) are formulated by contracting the moment tensors \({M}_{\mu ,v}\) to a scalar. The linear regression model is built for the contracted basis functions \({B}_{\alpha }({n}_{i})\) and the atomic energy \(V({n}_{i})\):

$$V\left({n}_{i}\right)=\sum _{\alpha }{C}_{\alpha }{B}_{\alpha }({n}_{i})$$

where \({C}_{\alpha }\) is the linear coefficient.

For MLP training, parameters \({{lev}}_{\max }\) was set as 12, and the \({r}_{c}\) was chosen to be 5.0 in all cases. These settings are designed to balance accuracy and efficiency. For MLP-MD simulations, the break threshold \({\gamma }_{{break}}\) was selected as 10 and 20 in the systems of Li metal and solid-state electrolytes as well as Li metal and liquid electrolytes, respectively. All the MLP-MD simulations were conducted using the large-scale atomic/molecular massively parallel simulator (LAMMPS)72. The NVT ensemble was used in all the simulations, and the temperature was controlled using the Nose–Hoover algorisms71. A timestep of 0.5 fs was used in all MLP-MD simulations. All the configurations were visualized using the VESTA software73.