-
Density functional theory (DFT) has undergone significant development, with the Thomas-Fermi model [1] and Hohenberg−Kohn theorem [2] establishing its theoretical basis, and the Kohn−Sham equation [3] facilitating its practical use. Because the exact form of the exchange-correlation (XC) functional remains unknown, practical applications can only be carried out using density functional approximations (DFAs). Perdew et al. [4] distinguished DFAs by using the complexity of descriptors as a criterion. These DFAs, ranging from low to high accuracy, collectively form a hierarchy, which is often referred to as the Jacob’s ladder, representing a progressive approach towards chemical accuracy. Particularly, owing to its excellent balance between accuracy and efficiency, the hybrid B3LYP functional has emerged as one of the most popular density functional methods [5–7], and it has remained one of the primary challenges for DFT to develop DFAs that uniformly outperform B3LYP [8].
The descriptor of the local density approximation (LDA),
$ \rho $ , is classified as a local descriptor. In contrast, the representative descriptors of the generalized gradient approximations (GGAs) and meta-GGAs, such as density gradient$ \nabla \rho $ and kinetic energy density$ \tau $ , fall into the category of semilocal descriptors. Hybrid functionals and double-hybrid functionals incorporate nonlocal density descriptors: the former includes the exchange energy involving occupied orbitals [5, 6], while the latter involves the correlation energy of occupied and virtual orbitals [9, 10]. With the increasing complexity of descriptors, the accuracy of the corresponding approximations has also improved progressively, particularly with the fifth-rung methods (e.g., XYG7 [11]) now approaching the accuracy of the gold-standard CCSD(T) [12, 13] method. Since the exact XC functional describes the interactions between electrons and is thus inherently nonlocal in nature, incorporating information about the nonlocal distribution of electron density is of paramount importance in the development of DFAs.Traditional methods that incorporate nonlocal mapping between energy and electron density (or its ingredients), such as the second-order Møller-Plesset perturbation theory (MP2) and random phase approximation (RPA) [14] that both incorporate orbital correlation energies, a van der Waals functional [15] utilizing interaction integrals between electron densities, and a density functional model [16] based on exchange-hole dipole moments, often face challenges when applied to large complex systems due to their high computational costs. A more cost-effective dispersion correction approach has been developed [17–21], which explicitly accounts for the nonlocal dependence of XC energy on the electron density. However, this dispersion correction approach is inherently empirical in nature and is generally not regarded as a standard DFA. Consequently, constructing DFAs that manifest nonlocal density dependence while maintaining a high computational efficiency remains a significant challenge.
In contrast to the development of DFAs through traditional analytical derivations, with the rapid development of artificial intelligence technology, machine learning (ML) has attracted widespread attention from theoretical researchers for its excellent function mapping capabilities and computational efficiency [22–26]. These advantages endow ML with significant potential to advance the development of DFT [27–64]. In this work, we aim to further improve the performance of B3LYP by using ML correction that incorporates nonlocal density descriptors.
Previously, Wang et al. have proposed an ML correction strategy using semilocal descriptors as characteristic input to modify B3LYP, resulting in an ML-corrected B3LYP functional [65]. Recently, Zhang et al. further designed an ML correction for B3LYP to be compatible with the empirical dispersion correction [66]. Despite the efforts, there is still much room for improvement regarding the accuracy of the ML-corrected B3LYP functional. Furthermore, Nagai et al. have designed an ML-based DFA and proposed a near-region approximation [63]. The latter integrates a nonlocal density descriptor constructed as
${\cal{R}}( {\bf{r}}) \equiv \int \text{d} {\bf{r}}' \rho( {\bf{r}}') \exp(-| {\bf{r}}- {\bf{r}}'|/\sigma)$ . Here,$ \sigma $ is a positive constant derived from the inverse of the Fermi wavenumber, which represents the spatial scale at which contributions to the XC hole centered at$ {\bf{r}}' $ decay as a function of distance$ | {\bf{r}}- {\bf{r}}'| $ [67].It has been demonstrated that, while the integration of
$ {\cal{R}}( {\bf{r}}) $ enhances the accuracy of the ML-based DFA, it significantly increases the computational cost even for small systems. This is because the complexity for computing$ {\cal{R}}( {\bf{r}}) $ is$ {\cal{O}}(N_{\mathrm{grid}}^2) $ , where$ N_{\mathrm{grid}} $ represents the number of non-uniform$ {\bf{r}} $ grids used to perform the real-space convolution integration. Even though the convolution kernel,$ \exp(-| {\bf{r}}- {\bf{r}}'|/ \sigma) $ , could be made very narrow by choosing a small$ \sigma $ or imposing a spatial truncation— thereby limiting the convolution to a small number of neighboring grid points (much fewer than$ N_{\mathrm{grid}} $ )—this approach may not significantly improve computational efficiency. This is because one must still compute$ | {\bf{r}}- {\bf{r}}'| $ to determine whether two points are neighbors in the first place. Therefore, a potentially more efficient approach for constructing$ {\cal{R}}( {\bf{r}}) $ is needed.In this study, we address two key challenges: (i) developing a nonlocal density descriptor
$ {\cal{R}}( {\bf{r}}) $ with potentially enhanced computational efficiency, and (ii) more importantly, determining whether integrating$ {\cal{R}}( {\bf{r}}) $ into an ML model improves the accuracy of the ML-corrected DFA.The remainder of this paper is organized as follows: Section II describes the methodology for constructing nonlocal density descriptors. Section III presents the design of a dual-network model. Section IV provides the results and discussion. Finally, we summarize the findings and provide an outlook in Section V.
-
The high computational complexity of
$ {\cal{R}}( {\bf{r}}) $ resulted from the construction proposed in Ref.[63] is due to the non-separability of variables within the convolution kernel function. Therefore, if the two variables ($ {\bf{r}} $ and$ {\bf{r}}' $ ) of the convolution kernel function are separable, such asthe cost for computing
$ {\cal{R}}( {\bf{r}}) $ will be lowered. In Eq.(1), it is important that$ {\bf{k}} $ is completely determined by$ \rho $ and thus invariant with respect to the translation and rotation of the chemical species under study, which guarantees the resulting$ {\cal{R}}( {\bf{r}}) $ be equivariant with the electron density$ \rho( {\bf{r}}) $ . However, in practice, it is difficult to find such a$ {\bf{k}} $ that preserves the translational and rotational invariance.To address this difficulty, we construct a convolution kernel function
$ f( {\bf{r}}- {\bf{r}}') $ by using multiple$ {\bf{k}} $ vectors. Specifically, a number of$ {\bf{k}} $ vectors are chosen by sampling in the reciprocal space (analogous to Fourier transform methods), as follows,The equivariance between
$ {\cal{R}}( {\bf{r}}) $ and$ \rho( {\bf{r}}) $ is well preserved provided that the sampling of the$ {\bf{k}} $ vectors is done adequately. This is verified by the extensive numerical tests conducted in this work, where the uncertainty in the total energies of chemical species is kept below$ 0.1 $ kcal/mol with a sufficiently large set of$ {\bf{k}} $ vectors.In practice, the kernel function
$ f( {\bf{r}}- {\bf{r}}') = \exp(-| {\bf{r}}- {\bf{r}}'|/\sigma) $ utilized in Ref.[63] can be reconstructed via an inverse discrete Fourier transform using$ N^3 $ uniformly distributed$ {\bf{k}} $ -vectors, where$ N $ denotes the number of sample points along each of the$ x $ ,$ y $ , and$ z $ directions. The reconstructed kernel function$ \tilde{f}( {\bf{r}}) $ is confined within a cubic domain of edge length$ 2a $ , such that$ -a\leqslant (x, y, z) \leqslant a $ . Atomic units are employed in this study unless otherwise noted. According to the Nyquist sampling theorem [68], a larger$ N $ is required to accurately reproduce$ f( {\bf{r}}) $ for a smaller value of$ \sigma $ or a larger value of$ a $ . This leads to a computational cost scaling as$ {\cal{O}}(N^3N_{\mathrm{grid}}) $ , which becomes prohibitively high for large systems.To tackle this challenge, we propose using approximation methods to reconstruct the kernel function with high accuracy while keeping computational costs low. Widely adopted strategies include compressed sensing [69], Gaussian quadrature [70], and the sparse Fourier transform (SFT) [71, 72]. The SFT is particularly well-suited to this scenario, as it reconstructs
$ f( {\bf{r}} - {\bf{r}}') $ using a minimal set of non-uniform frequency samples. The sampling strategy focuses on frequency points with the largest amplitude values. Specifically, we select$ N_{\mathrm{freq}} $ frequency points from the original$ N^3 $ uniformly distributed points to approximate$ f( {\bf{r}} - {\bf{r}}') $ as follows:where
$ \mathrm{Re}\{z\} $ denotes the real part of the complex number$ z $ , and${{\cal{\boldsymbol K}}}_i = \left[ {{\cal{\boldsymbol K}}}_{ix}\;\; {{\cal{\boldsymbol K}}}_{iy}\;\;{{\cal{\boldsymbol K}}}_{iz} \right]^{\mathrm{T}}$ . Here, the components are defined as:${{\cal{\boldsymbol K}}}_{ix} \equiv \dfrac{2\pi k_{ix}}{N\Delta x }$ ,${{\cal{\boldsymbol K}}}_{iy}\equiv \dfrac{2\pi k_{iy}}{N\Delta y }$ ,${{\cal{\boldsymbol K}}}_{iz}\equiv \dfrac{2\pi k_{iz}}{N\Delta z }$ , where$ k_{ix} $ ,$ k_{iy} $ , and$ k_{iz} $ are the components of the selected$ {\bf{k}} $ -vector, and$ \Delta x $ ,$ \Delta y $ , and$ \Delta z $ represent the uniform real-space sampling intervals along the$ x $ ,$ y $ , and$ z $ directions, respectively. The term$ A({{\cal{\boldsymbol K}}}_i) $ represents the amplitude value at frequency$ {{\cal{\boldsymbol K}}}_i $ , directly quantifying the contribution of its corresponding frequency component. The magnitude of$ A({{\cal{\boldsymbol K}}}_i) $ determines the significance of$ {{\cal{\boldsymbol K}}}_i $ in reconstructing the original signal.Using Eq.(3), the computational scaling of
$ {\cal{R}}( {\bf{r}}) $ is reduced to$ {\cal{O}}(N_{\mathrm{freq}}N_{\mathrm{grid}}) $ , where$ N_{\mathrm{freq}} $ denotes the number of non-uniform frequency points identified by the SFT method for kernel reconstruction. For clarity, we denote the reconstructed function as$ \tilde{f}( {\bf{r}};a,N_{\mathrm{freq}}) $ , where the semicolon emphasizes its parametric dependence on$ a $ and$ N_{\mathrm{freq}} $ . The corresponding nonlocal density descriptor is analogously denoted as$ {\cal{R}}( {\bf{r}};a,N_{\mathrm{freq}}) $ .Both the lineshape of the reconstructed kernel
$ \tilde{f}( {\bf{r}}) $ and its computational complexity depend on the parameters$ a $ and$ N_{\mathrm{freq}} $ . As shown in FIG. 1,$ \tilde{f}( {\bf{r}}) $ exhibits periodic mirror images with a minimal separation of$ 2a $ . Achieving a narrower kernel, characterized by a smaller full width at half maximum (FWHM)$ w $ , typically requires a larger$ N_{\mathrm{freq}} $ . Similarly, maintaining a larger separation$ 2a $ between neighboring mirror images also demands an increased$ N_{\mathrm{freq}} $ . FIG. 2 quantifies the relationship between$ w $ and$ N_{\mathrm{freq}} $ for varying$ a $ . Clearly, the FWHM$ w $ decreases rapidly as larger$ N_{\mathrm{freq}} $ increases, but asymptotically approaches a plateau as$ N_{\mathrm{freq}} $ grows. While a larger$ N_{\mathrm{freq}} $ enhances accuracy, it also exponentially escalates computational costs. This inherent trade-off underscores the need to optimize$ a $ and$ N_{\mathrm{freq}} $ to balance accuracy and efficiency in kernel reconstruction.In practice, we first constrain
$ N_{\mathrm{freq}} $ to a computationally tractable range. A systematic grid search is then performed over$ a $ and$ N_{\mathrm{freq}} $ , with each configuration evaluated based on its capacity to capture nonlocal structural features. The effectiveness of these parameters is determined by integrating the descriptor into DFAs and quantifying improvements in predictive accuracy. -
The ML correction to the original DFA is formulated as follows:
Here,
$ E_{\mathrm{XC}}^{\mathrm{DFA}} $ and$ E_{\mathrm{XC}}^{\mathrm{ML-DFA}} $ denote the XC energies corresponding to the original and the ML-corrected DFAs, respectively. The term$ \Delta \epsilon_{\mathrm{XC}}^{\mathrm{ML}}({\bf{r}}) $ signifies the correction to the XC energy density, which is determined by the mapping$ \{\rho, s, r_s, \zeta, \tau, \cdots \} \mapsto \Delta \epsilon_{\mathrm{XC}}^{\mathrm{ML}}({\bf{r}}) $ , where$s = \dfrac{|\nabla\rho|}{2(3\pi^2)^{1/3}\rho^{4/3}}$ represents the reduced density gradient,$r_s = (4\pi/3)^{-1/3}\rho^{-1/3}$ gives the Wigner-Seitz radius,$ \zeta = \dfrac{\rho_{\uparrow}-\rho_{\downarrow}}{\rho_{\uparrow}+\rho_{\downarrow}} $ denotes the relative spin polarization, and$ \tau = \dfrac{|\nabla\rho|^2}{8\rho} $ defines the kinetic energy density [73, 74].While local and semilocal density descriptors are widely used, they remain fundamentally limited in capturing XC interactions with high accuracy. To integrate nonlocal density descriptors like
$ {\cal{R}}( {\bf{r}}) $ into ML correction, we propose a dual-network approach formulated as$ \Delta \epsilon_{\mathrm{XC}}^{\mathrm{ML}}( {\bf{r}}) = \Delta \epsilon_{\mathrm{XC}}^{\mathrm{NN1}}( {\bf{r}})+\Delta \epsilon_{\mathrm{XC}}^{\mathrm{NN2}}( {\bf{r}}) $ , whereHere,
$ \mathrm{NN1} $ and$ \mathrm{NN2} $ denote two neural networks (NNs): NN1 encodes a semilocal mapping from electron density to XC energy density, whereas NN2 introduces a nonlocal correction via the descriptor$ {\cal{R}}( {\bf{r}}) $ .The dual-network framework is designed to mitigate the computational cost associated with evaluating
$ {\cal{R}}( {\bf{r}}) $ during training, particularly for large$ N_{\rm freq} $ . Moreover, by confining the inclusion of the nonlocal density descriptor$ {\cal{R}}( {\bf{r}}) $ exclusively to NN2, we isolate its contribution to the performance of the ML-corrected DFA, enabling systematic evaluation distinct from the impact of semilocal descriptors. Both NN1 and NN2 adopt a fully connected NN architecture with three hidden layers, as illustrated in FIG. 3. Starting from the original B3LYP functional, NN1 provides a self-consistent-field (SCF) correction, while NN2 further refines the XC energy through a post-SCF nonlocal correction.The ML correction to the XC potential is evaluated via
where
$ {\cal{F}}_{\mathrm{XC}}^{\mathrm{ML}}({\bf{r}}) \equiv \rho( {\bf{r}})\Delta \epsilon_{\mathrm{XC}}^{\mathrm{ML}}({\bf{r}}) $ . -
To mitigate error cancellation between different chemical species, we train our NN models using total energies of a number of species for both the training and validation sets [75]. The composition of these sets, chosen from G2/97 test set [76, 77], is detailed in Table I. The loss function is defined as:
where
$ N_{\rm{spec}} $ denotes the number of species in the dataset,$ E_i^{\mathrm{ML}} $ represents the total energy of the$ i $ -th species predicted by the ML model,$ E_i^{\mathrm{ref}} $ denotes the reference energy for the$ i $ -th species, and$ w_i $ corresponds to the weighting factor for the$ i $ -th species. The reference energies are calculated using explicitly correlated coupled-cluster theory CCSD(T)(F12), which incorporates iterative treatments of single, double, and perturbative triple excitations, employs a frozen-core approximation to reduce computational cost, and is supplemented with higher-order corrections for core/core-valence correlation effects and contributions from higher-excitation processes [78]. Weights are assigned to individual atoms based on their relative occurrence frequency in the dataset, whereas molecules are uniformly weighted as$ w_i = 1 $ .As illustrated in Table II, the whole testing set is comprised of three datasets: the total energy dataset; a conventional dataset consisting of 12 subsets of relative energies, commonly referred to as the TEST12 dataset [66]; and some non-covalent interaction (NCI) related subsets from the GMTKN55 database [79]. The training set molecules are selected from the G2/97 dataset and are consequently included in specific subsets of the TEST12 database, such as G2-AE, G2-IP, and G2-EA [80, 81]. However, these molecules occur infrequently in other TEST12 subsets and are completely absent from the NCI-related subsets within the GMTKN55 database. While there is a partial overlap between the training set and certain portions of the testing data, this limited overlap is not expected to substantially compromise the generalizability of the ML model.
To evaluate the overall performance of the ML-corrected functional on the TEST12 dataset, we employ the weighted mean absolute deviation (WTMAD-2) as defined in equation (2) of Ref.[79]:
where
$ i $ labels the subset,$ N_i $ represents the number of single-point energies in the$ i $ -th subset,$ |\overline{\Delta E}|_i $ denotes the subset-specific average absolute relative energy, and$ |\overline{\Delta E}| $ denotes the global average absolute relative energy across all TEST12 subsets. -
Gradient-based optimization (GO) is generally more efficient than non-gradient-based optimization (NGO). However, gradients of the loss function with respect to NN parameters are difficult to obtain because the iterative SCF calculations disrupt standard backpropagation. This prevents efficient training of the model with GO. Moreover, both GO and NGO approaches incur high computational costs due to the repeated SCF iterations. To address these limitations, we propose a post-SCF training approach that decouples gradient computation from SCF cycles, enabling efficient optimization without compromising accuracy.
While GO is prone to converging to local optima, NGO excels in global exploration of parameter space. To balance these trade-offs, we adopt a hybrid training strategy: NGO is first employed to identify a robust initial parameter set for NN1, followed by GO refinement. Consequently, as illustrated in FIG. 4, the training procedure proceeds in four steps: (1) NGO for NN1, (2) GO for NN1 (with parameters fixed), (3) NGO for NN2, (4) GO for NN2.
For NGO, we employ the simulated annealing (SA) algorithm [86, 87] from the sci-kit [88] library. For GO, we utilize PyTorch’s native resilient backpropagation (Rprop) [89, 90], which adapts step sizes based on local gradient behavior.
-
The NN1 model, which incorporates local and semilocal density descriptors, is first evaluated on the G2-TE and G2-AE datasets to assess its ability to improve total energy predictions. The testing is subsequently expanded to all subsets of the TEST12 dataset to verify that NN1 accurately captures thermochemical energy trends.
The NN2 model, which integrates the nonlocal density descriptor
$ {\cal{R}}( {\bf{r}}) $ , is validated on the same TEST12 subsets to confirm its accuracy in predicting conventional relative energy properties. Finally, NN2 is further tested on NCI-related subsets from the GMTKN55 dataset to evaluate its capacity for modeling long-range interactions and to benchmark the effectiveness of the nonlocal descriptor in capturing such effects. -
All density functional calculations are performed using the PySCF package [91–93] with the def2-tzvpd basis set [94, 95]. The NN models (NN1 and NN2) are implemented in PyTorch, featuring a five-layer architecture: an input layer, three hidden layers with bias terms, and an output layer without bias. Each hidden layer contains 30 neurons with sigmoid activation functions to introduce nonlinearity, and all input features undergo logarithmic preprocessing.
The SA algorithm is parameterized with an initial temperature
$ T_0 = 1 $ , a minimum temperature$T_{\mathrm{min}} = 1 \times 10^{-9}$ , and default values for cooling rate and iteration count. For GO algorithm, we use Rprop [89, 90], which dynamically adjusts learning rates during training. Initial learning rates are set to$1 \times 10^{-5}$ for hidden layers and$ 5 \times 10^{-6} $ for the output layer.For clarity, we define three ML-corrected B3LYP functionals that will be benchmarked in Sec. IV as follows: The first functional, ML-B3LYP-nonR, incorporates only NN1 and does not include the nonlocal density descriptor
$ {\cal{R}}( {\bf{r}}) $ . The second functional, ML-B3LYP-R-e, integrates both NN1 and NN2, where NN2 employs a computationally efficient kernel$ \tilde{f}( {\bf{r}};a = 6, N_{\mathrm{freq}} = 512) $ . The third functional, ML-B3LYP-R-a, combines NN1 and NN2 but utilizes a high-accuracy kernel$ \tilde{f}( {\bf{r}};a = 20,N_{\mathrm{freq}} = 27000) $ within NN2. -
FIG. 5(a) shows the training curves for ML-B3LYP-nonR. For a given parameter set for NN1, the training set losses calculated via SCF and post-SCF methods closely agree, thus validating the effectiveness of post-SCF training. The parallel decline of the training and validation curves further demonstrates the model’s robustness. Specifically, the initial training and validation losses (13.7 kcal/mol and 12.5 kcal/mol, respectively) decrease to 4.7 kcal/mol after training. The subsequent plateau in the training curve at a finite loss value indicates the inability of semilocal density descriptors to fully capture the XC functional.
To train NN2, we adjust the composition of the training and validation sets; see Table I. This adjustment preserves the independence of NN1 and NN2 through distinct training datasets, minimizing the overlap of learned features and enhancing predictive performance for both models. As depicted in FIG. 5(b), the training and validation curves of ML-B3LYP-R-a exhibit a strong alignment in both convergence trends and loss reduction rates. This underscores that incorporating the nonlocal density descriptor
$ {\cal{R}}( {\bf{r}}) $ is indeed useful in enhancing the predictive power of DFAs such as B3LYP. Subsequently, comprehensive benchmark tests are carried out on diverse chemical species and energy properties to further evaluate the generalizability of the ML-corrected B3LYP functionals with and without$ {\cal{R}}( {\bf{r}}) $ .FIG. 6(a) compares the performance of ML-B3LYP-nonR with that of the original B3LYP and other DFAs on the total energy datasets (G2-TE and TAE [76, 77]) and the TEST12 dataset. As expected, ML-B3LYP-nonR yields the lowest mean absolute errors (MAEs) for the total energy datasets, since the NN1 model which is designed to correct the B3LYP functional in ML-B3LYP-nonR, is trained entirely on absolute energies of chemical species; see Table I. When evaluated on the comprehensive TEST12 dataset, which includes diverse thermochemical and kinetic energies, ML-B3LYP-nonR demonstrates significantly improved accuracy over B3LYP, as evidenced by its substantially reduced WTMAD-2 value; see the inset of FIG. 6(a).
On the other hand, ML-B3LYP-nonR performs similarly to the ML-B3LYP functional (labeled REF in FIG. 6(a)) developed in Ref. [65], which was trained on both absolute and relative energies. Particularly, both the ML-B3LYP-nonR and REF functionals yield substantial MAEs for subsets such as ALK19, P6-AE, and ISO-C, which involve alkane chains or cage-like molecules and are heavily influenced by NCIs [83]. This parity arises because the ML-B3LYP-nonR (via its NN1 model) and REF functionals rely solely on semilocal density descriptors. Their similar WTMAD-2 values further highlight the inherent limitations of semilocal mappings in accurately representing the XC energy.
FIG. 6(b) compares the performance of ML-B3LYP-R-e and ML-B3LYP-R-a—both of which explicitly incorporates the nonlocal density descriptor
$ {\cal{R}}( {\bf{r}}) $ –—to B3LYP and ML-B3LYP-nonR, with the latter using only a semilocal correction. While ML-B3LYP-R-e and ML-B3LYP-R-a exhibit only marginal improvements over ML-B3LYP-nonR for subsets comprising small molecules, they show significantly enhanced accuracy for subsets consisting of large molecules, such as ALK19 and P6-AE. This indicates that the inclusion of$ {\cal{R}}( {\bf{r}}) $ is crucially important for quantitatively characterizing the XC energy in large molecular systems. Remarkably, the ML-B3LYP-R-a functional, which utilizes a narrow convolution kernel$ \tilde{f}( {\bf{r}}) $ with extended periodicity between images (see FIG. 1(b)), demonstrates substantially reduced MAEs for the ALK19, P6-AE, and ISO-C subsets. These results underscore the critical role of a nonlocal mapping between electron density and XC energy density in accurately describing NCIs.The limited molecular species diversity in the training set has constrained the performance of ML-B3LYP-nonR, ML-B3LYP-R-e, and ML-B3LYP-R-a, preventing them from reaching their full predictive potential. Incorporating larger molecules, such as those in the P6-AE and ISO-C datasets, into the training pool could enhance model accuracy for these systems. Expanding the absolute energy dataset is, therefore, a crucial step towards improving the generalizability and robustness of the ML models.
-
To further verify that the nonlocal density descriptors indeed enhance the prediction accuracy for large molecular species involving NCIs, we extend our benchmark testing to several NCI-related subsets from the GMTKN55 dataset. As shown in FIG. 7, while ML-B3LYP-nonR exhibits little improvement over the original B3LYP for these subsets, both ML-B3LYP-R-e and ML-B3LYP-R-a yield appreciable reductions in MAEs across the examined subsets. For instance, in the IDISP subset involving intramolecular dispersion interactions [79], the MAE progressively decreases across the B3LYP, ML-B3LYP-nonR, ML-B3LYP-R-e, and ML-B3LYP-R-a functionals. A similar trend is observed for other subsets depicted in FIG. 7. It is worth noting that the B3LYP-D approach, which incorporates an empirical dispersion correction, achieves even lower MAEs owing to its explicit treatment of long-range NCIs. These findings collectively indicate a strong correlation between the predictive power of DFAs and the extent and quality of the density descriptors used.
Subsets with inherently small errors, such as ACONF, naturally show minimal gains or even slight deterioration, as their reference values already closely approximate the true energies. Consequently, both ML-B3LYP-R-e and ML-B3LYP-R-a exhibit MAEs that exceed those of the original B3LYP functional for these subsets. This is likely due to insufficient training data (e.g., the training set consists of only 25 total energies), which limits the generalizability of the ML correction. These results thus emphasize the need for expanding training sets or refining data selection strategies to improve prediction accuracy.
Finally, we examine the computational complexity of the ML-corrected B3LYP functionals relative to the original B3LYP. As shown in FIG. 8, both ML-B3LYP-R-e and ML-B3LYP-R-a require significantly longer computational times for small molecules, primarily attributed to the additional computational overhead of evaluating the nonlocal density descriptor
$ {\cal{R}}( {\bf{r}}) $ . However, as the system size increases, the relative computational time required for processing$ {\cal{R}}( {\bf{r}}) $ and the NN2 model decreases substantially, thus rendering the approach potentially practical for large chemical systems. -
In this study, we design a nonlocal density descriptor
$ {\cal{R}}( {\bf{r}}) $ and propose an efficient algorithm for its evaluation based on SFT. The computational complexity for evaluating$ {\cal{R}}( {\bf{r}}) $ scales as$ {\cal{O}}(N_{\mathrm{freq}}N_{\mathrm{grid}}) $ . While this SFT-based algorithm is computationally more efficient than the spatial convolution approach used in Ref.[63], its implementation remains computational demand, thus posing a challenge for applications to large complex systems. The design of more efficient forms and algorithms for nonlocal density descriptors thus represents a critical direction for future research.By leveraging the nonlocal density descriptor
$ {\cal{R}}( {\bf{r}}) $ , we construct a dual-network model to correct the B3LYP functional. Benchmark tests demonstrate that the resulting ML-B3LYP-R-e and ML-B3LYP-R-a functionals exhibit systematically improved prediction accuracy across a wide range of thermochemical and kinetic energies, particularly in characterizing NCIs. While this work serves as a proof-of-principle study and thus the constructed ML-corrected functionals are not yet optimized for practical applications, the numerical results emphasize the crucial role of nonlocal descriptors in advancing DFAs. Specifically, they highlight the importance of extending beyond semilocal density-energy mappings to enhance both predictive accuracy and generalizability of DFAs.
Nonlocal Density Descriptor for Machine-Learning-Corrected Density Functional
- Received Date: 26/04/2025
- Available Online: 27/10/2026
-
Key words:
- Density functional theory /
- Exchange-correlation functional /
- Machine learning /
- Non-covalent interaction /
- Nonlocal density descriptor
Abstract: The integration of artificial intelligence with density functional theory offers novel opportunities to advance the accuracy and efficiency for practical applications. However, current machine learning models based on semilocal density descriptors still face limitations in their ability to represent the exchange−correlation functional. In this work, we propose a novel approach for evaluating a nonlocal density descriptor, based on which we introduce a dual-network model for correcting the B3LYP functional. Benchmark tests demonstrate that the resulting ML-corrected B3LYP functionals exhibit improved predictive accuracy across a wide range of thermochemical and kinetic energies, particularly in characterizing non-covalent interactions. This work thus emphasizes the importance of extending beyond semilocal density-energy mappings to enhance both predictive power and generalizability of density functional approximations.
首页
登录
注册


DownLoad: