Learning to SHINE: Semiempirical Hamiltonians Informed by Machine-Learned Neighborhood Environments for Excited States

J. Diego Castro-Miyashiro, Lavanya Sankaranarayanan, Archit Gupta, Ismael A. Elayan, J. Terence BlaskovitsarXiv 2026

TL;DR

Designing next-generation OLEDs, solar cells, and chiral optical materials requires knowing how molecules interact with light—yet fast quantum approximations lack accuracy, and standard machine learning struggles to generalize to brand-new molecular backbones. Enter SHINE, a hybrid framework that uses neural networks to dynamically tune the physics parameters inside a classic quantum chemistry equation based on each atom’s local 3D neighborhood. By adjusting the underlying Hamiltonian rather than just guessing the final answer, SHINE accurately predicts excited-state energies and light-absorption properties across completely unseen molecular families.

What Problem Does This Paper Address?

When a conjugated organic molecule absorbs light, its fate—whether it glows, transfers energy, or converts spins (crucial for OLED efficiency and solar singlet fission)—depends on its lowest singlet ($S_1$) and triplet ($T_1$) excited states, as well as its electric ($\boldsymbol{\mu}$) and magnetic ($\mathbf{m}$) transition dipole moments.

Computing these properties accurately from scratch is expensive, while fast "semiempirical" quantum models like the Pariser–Parr–Pople (PPP) Hamiltonian rely on rigid, pre-assigned parameters for each atom type. In fixed PPP, two carbon atoms get the exact same baseline parameters even if they sit next to wildly different chemical substituents. Meanwhile, pure machine learning or $\Delta$-learning approaches (which just tack an ML correction onto a final predicted number) often fail to generalize to unseen molecular scaffolds or don't update the underlying electronic wavefunctions—meaning you can't consistently extract multiple coupled optical and spin properties from a single physical state.

Methods

Instead of bypassing physics, SHINE-PPP (Semiempirical Hamiltonians Informed by Machine-Learned Neighborhood Environments) embeds machine learning inside a differentiable quantum chemistry pipeline:

Figure 1: Environmental features become a bounded Hamiltonian correction. The diagram follows one interacting pair along the ℓ= 1 branch. Stacked cards represent four indepen- dent projection heads, each combining 224 encoder channels into eight query and eight key channels per angular order. Query–key symmetric contractions compare the environments, while pair-axis probes relate them to the connecting direction. Across all the channels twelve environment-comparison scores, eight pair-axis probes, interatomic distance and the baseline interaction form the 22 inputs to the pair KAN. Its scalar output passes through the bounded map to update the Hamiltonian parameter. The resulting core and Coulomb matrices enter PPP-RHF and singlet/triplet PPP-CIS to calculate the supervised properties. Gradients through these calculations train the projections and readouts while MACE remains frozen. Site readouts use 25 inputs, including four additional scalar features describing the individ- ual environment and omitting the pair distance.
  • Frozen 3D Environment Sensing: It extracts rich geometric features of every atom's local neighborhood (within 5 Å) using a frozen, pre-trained equivariant message-passing model (MACE-OFF23). Crucially, this lets atoms outside the simplified $\pi$-electron space inform the physics inside it.
  • Invariant Descriptors & KAN Readouts: Using query–key inner products inspired by SE(3)-Transformers, directional features are converted into rotation-invariant descriptors. These feed into four lightweight Kolmogorov–Arnold Networks (KANs)—networks that learn 1D spline functions on edges rather than fixed weights—to adjust site energies, electron hopping, on-site repulsion, and intersite screening.
  • Bounded Physics & End-to-End Gradients: Corrections are smoothly capped via $\tanh$ functions (e.g., $\pm 100\%$ for interactions, $\pm 5\text{ eV}$ for site energies) to keep parameters physically sane. The updated Hamiltonian runs through standard Restricted Hartree–Fock (RHF) and Configuration Interaction Singles (CIS) solvers. Using implicit differentiation and perturbation theory, property errors backpropagate directly through the quantum solvers to train the KANs.

Datasets

The authors curate data from the FORMED database, which contains molecular geometries from the Cambridge Structural Database paired with Tamm–Dancoff time-dependent DFT ($\omega\text{B97X-D/6-31G(d)}$) reference calculations.

Filtering for closed-shell, conjugated molecules with bright, well-resolved transitions yields two evaluation cohorts:

  1. Broad population (17,961 molecules): All eligible molecules regardless of orbital character.
  2. Favorable population (4,608 molecules): The top 15% of molecules ranked by $S_1$ local-$\pi$ character ($\ge 89.3\%$), matching the physical assumptions of the $\pi$-only PPP model.

To strictly test out-of-distribution transfer, molecules are split into train, validation, and test sets by Bemis–Murcko scaffolds, ensuring test molecules have ring-and-linker backbones completely excluded from training.

Key Insights and Ideas

  • Supervising one property doesn't guarantee free lunches elsewhere: Because all observables share one Hamiltonian, training a "specialist" model solely on $S_1$ energy naturally improves $T_1$ energy—but degrades magnetic dipole accuracy. Conversely, supervising optical dipoles alone ruins excitation energies.
  • Singlet accuracy can hide catastrophic triplet failures: An "optical-only" joint model predicts $S_1$ energies well, but in the broad population its $T_1$ error balloons to $1.823\text{ eV}$ (worse than baseline PPP's $0.812\text{ eV}$) and yields 291 unphysical nonpositive triplet energies. Explicitly supervising the singlet–triplet gap ($\Delta E_{\text{ST}}$) eliminates all unphysical triplets and drops $T_1$ error to $0.130\text{ eV}$.
  • The model learns genuine local chemistry, not just global shifts: Analyzing the learned parameters reveals that SHINE applies mostly a molecule-wide boost to C–C electron hopping ($+11.57\%$ median shift), whereas carbon on-site repulsion and intersite Coulomb interactions vary dramatically within the same molecule depending on nearby non-$\pi$ substituents.

Key Results

On held-out test scaffolds, SHINE-PPP substantially outperforms fixed PPP across both cohorts:

  • Single-Target Specialists (Favorable Set): Mean Absolute Error (MAE) drops from $0.336$ to $0.060\text{ eV}$ for $\Delta E(S_1)$, and from $0.702$ to $0.041\text{ eV}$ for $\Delta E(T_1)$ (over a $17\times$ error reduction). Electric and magnetic dipole magnitude errors fall to $0.256\text{ }e\,a_0$ and $0.224\text{ }\mu_{\text{B}}$, with improved vector direction alignment.
  • Joint Optical–Spin Model: Using a single unified Hamiltonian per molecule in the favorable set, SHINE reaches MAEs of $0.127\text{ eV}$ ($S_1$), $0.118\text{ eV}$ ($T_1$), and $0.105\text{ eV}$ ($\Delta E_{\text{ST}}$), alongside $0.270\text{ }e\,a_0$ ($\|\boldsymbol{\mu}\|$) and $0.231\text{ }\mu_{\text{B}}$ ($\|\mathbf{m}\|$).
  • Chiroptical Limits: While individual dipole magnitudes improve, absorption dissymmetry ($\log_{10}|g_{\text{abs}}|$) remains tough—improving modestly in the broad set ($0.820 \to 0.773\text{ dex}$) and slightly worsening in the favorable set ($0.677 \to 0.684\text{ dex}$), as tiny angular errors between nearly perpendicular $\boldsymbol{\mu}$ and $\mathbf{m}$ vectors cause large relative swings.

Limitations and Future Work

SHINE-PPP is ultimately bounded by the physics of its host model: a $\pi$-electron-only basis and single-excitation (CIS) solver. It cannot directly represent non-$\pi$ valence excitations ($n \to \pi^*$) or states governed by double excitations (such as polyene dark states or inverted singlet–triplet gaps). Furthermore, it was benchmarked against TDA-DFT on bright transitions rather than experimental spectra or dark states. Future work aims to couple SHINE to richer all-valence semiempirical Hamiltonians (like INDO/S or tight-binding methods like TD-DFTB) and correlated wavefunctions beyond CIS.

Summary updated

BibTeX
@misc{castromiyashiro2026learning,
  author = {J. Diego Castro-Miyashiro and Lavanya Sankaranarayanan and Archit Gupta and Ismael A. Elayan and J. Terence Blaskovits},
  title = {{Learning to SHINE: Semiempirical Hamiltonians Informed by Machine-Learned Neighborhood Environments for Excited States}},
  year = {2026},
  eprint = {2611.38322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38322},
}
Figure