physics.chem-phOct 27, 2026

Where the Error Lives: Spectral Representations of Learned Kohn-Sham Hamiltonians

Authors: Fang Sun, Hekai Cheng, Ruoyan Li, Yuanzhou Chen, Wei Wang, Jason Cong, Yizhou Sun

Organizations: Computer Science Department, University of California, Los Angeles

Abstract

Kohn-Sham density functional theory (DFT) is the standard method for computing the electronic structure of molecules and materials, but its self-consistent-field (SCF) iterations make it expensive for large systems and high-throughput screening. Machine-learned Hamiltonian models offer a shortcut: an equivariant network predicts the Kohn-Sham Hamiltonian matrix in one forward pass, and diagonalizing the prediction yields orbital energies, the HOMO-LUMO gap, molecular orbitals and the electron density. These models are trained to match the reference matrix entry by entry, yet a small entry-wise error does not guarantee accurate eigenvalues or eigenvectors. Two physics-informed alternatives go partway: a recently proposed wavefunction-alignment loss adds a spectral penalty without diagonalizing the prediction, and matching the electron density of the diagonalized prediction supervises it directly. Neither is complete: by representing the prediction error in the eigenbasis of the reference Hamiltonian, we show that each sees only part of the error, and that shifting the predicted orbital energies leaves the electron density exactly unchanged. The same analysis identifies a complete training signal: the cumulative local density of states (cumulative LDOS), the number of electrons at each point in space with energy below a given threshold. The cumulative LDOS is a single physical observable that contains the electron density as a special case, responds to every component of the error, determines the Hamiltonian uniquely, and yields gradients that do not vanish for large orbitalenergy errors. Fine-tuning three Hamiltonian networks on QH9 in this way, which we call FermiScope, reduces the HOMO-LUMO gap error without increasing the element-wise error. The gains carry over to out-of-distribution and molecular-dynamics splits, where the wavefunction-alignment loss helps less.

Figures & tables

Appendix figures & tables23 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Learning the Kohn-Sham map with neural operators for quasi-linear scaling density functional theory

    Aug 24, 2026Danish Khan, Maurice D. Hanisch, Nikolai Argatoff +3Density Functional TheoryComputational Quantum Chemistry

  2. A Fixed-Point Neural Operator for Size- and Functional-Transferable Hamiltonian Prediction

    Jun 12, 2026Yunhong Lou, Xihang Yue, Xinran Wei +2Quantum ChemistryMolecular Property Prediction

  3. MALOQ: Massively Accelerated Learning of Operators for Quantum Transport

    Jun 27, 2026Manasa Kaniselvan, Alexander Maeder, Denghui Lu +2Quantum ChemistryHigh-Performance Computing