Work

Bridging the Training--Application Gap in Kohn--Sham Hamiltonian Learning through Dual-Space Supervision

Year: 2026
Type: preprint
Abstract: Predicting the Kohn--Sham Hamiltonian in density functional theory (DFT) via machine learning offers a promising pathway toward efficient electronic structure modeling. Existing models are typically trained by directly minimizing element-wise Hamiltonian matrix errors, yet a significant training--application gap has been observed between Hamiltonian-space loss and errors in derived electronic properties, limiting their utility in practical applications. Noting that these properties are functions on the state space obtained by solving the Hamiltonian eigenvalue problem, this gap can be traced to a misalignment of the error metrics on the Hamiltonian space and its induced state space. The operator-to-state mapping is highly anisotropic, such that Hamiltonian errors of comparable numerical magnitude can induce markedly different downstream property errors. Motivated by the Hamiltonian--state variational duality rooted in Lieb's convex formulation of DFT, we introduce Dual-Space Loss (DSLoss) to bridge this training--application gap. By leveraging error metrics in both spaces, DSLoss allows Hamiltonian optimization to account for errors in both the predicted operator and its induced state. Across molecular benchmarks, DSLoss consistently improves a broad range of derived properties over conventional element-wise supervision. On the challenging $\nabla^2$DFT benchmark, electron density and total energy errors are reduced by factors of 40 and 500, respectively, relative to the strongest competing method. The resulting model also extrapolates robustly to molecules containing up to twice as many heavy atoms as those encountered during training, achieving more than an order-of-magnitude lower errors for multiple properties and substantially outperforming direct density prediction models and end-to-end property predictors. Moreover, the model enables stable molecular dynamics simulations with accurate energetics, forces, and vibrational dynamics. These results show that DSLoss addresses an unrecognized bottleneck limiting operator-prediction models across diverse downstream tasks, thereby advancing scalable and reliable electronic structure modeling.
Language: English
Open Access status: green
OpenAlex ID: W7214329918
Cites: 2
Cited by:
Related to: 10