Manuscript Offprint
arXiv:2609.01871Latent unified smooth Hamiltonians for excited state chemistry
Abstract
We describe a neural network architecture and training procedure designed to model electronic ground and excited states of arbitrary molecular systems. By indirectly learning a latent, implicit basis representation of the electronic-state Hamiltonian, the model offers a unified treatment of multiple electronic states, conical intersections, and non-adiabatic couplings. The formalism can be further extended to learn consistent latent representations of additional operators such as transition dipole moments, for example. To demonstrate the general capabilities of our architecture, we train and evaluate networks on two realistic photochemical systems, thymine and azobenzene. The resulting models accurately reproduce energies and oscillator strengths for the ground- and low-lying excited states relevant to the photochemistry of these systems. We highlight the performance of the trained networks by studying critical molecular geometries, including conical intersections and excited state minima. By construction, the proposed framework also recovers the emergence of Berry phase accumulation around conical intersections. By pairing key mathematical structure from quantum chemistry with the representation learning power of transformers, the presented architecture offers a qualitatively new path toward fast and accurate ground- and excited-state simulations.
Keywords: machine learning, excited states, photochemistry, neural network, quantum chemistry
Introduction
Photochemical processes are at the heart of fundamental biological phenomena such as vision and photosynthesis as well as sustainable energy solutions from artificial light harvesting to photocatalysts. Computational modeling can offer detailed atomistic insights for a better understanding of these processes, eventually enabling targeted optimization for technological and biological applications. The reliable in silico description of electronically excited states and photochemistry requires a highly sophisticated treatment of the electronic structure, often only provided by advanced ab initio methods such as second-order perturbation-corrected complete active space self-consistent field calculations. While providing the required level of accuracy, these methods come at dramatic computational costs, which considerably limits their application to realistic problems in excited state chemistry. The first reason for this is that photochemical processes are highly non-equilibrium, often requiring extensive dynamics simulations together with sufficient sampling of initial conditions. Second, excited state chemistry can be highly sensitive to the molecular environment. Evolution, for example, has employed this by mutating residues in proteins to tune photoactive sites from afar. As a result, the time and length scales involved in many biologically and technologically relevant photochemistry applications quickly become intractable for the available high-level quantum chemistry methods.
In the context of ground-state chemistry, the introduction of machine learning interatomic potentials (MLIPs) has transformed the field of molecular simulations in recent years. Promising nearly ab initio accuracy at orders-of-magnitude reduced computational cost, MLIPs are on the way to turning large-scale computational modeling of molecules and materials into routine tasks. As of now, this success has not broadly translated to excited state simulations. This is because — contrary to ground state potential energy surfaces — the excited energy landscape is a set of tightly coupled functions resolving multiple state energies at each molecular geometry. As a naive approach, one can build multi-state MLIPs that emit multiple scalar energies instead of just one. The fundamental downside of this approach is that adiabatic electronic eigenstates are non-smooth when intersecting, showing a conical character. To address smoothness requirements away from conical intersections, modern MLIPs, on the other hand, are deliberately designed to be smooth. As a result, a naive multi-state MLIP approach fails to accurately describe state intersections. Given the critical role of conical intersections in excited state chemistry, this leads to considerable limitations for current MLIPs in photochemistry simulations. Training an MLIP on surfaces it is fundamentally unable to reproduce inadvertently leads to problematic artifacts such as spurious avoided crossings or double-crossings of artificially smoothened cones where the “excited state” falls below the supposed ground state.
A promising alternative is to follow the formalisms in quantum chemistry, where the electronic energies are obtained as the eigenvalues of a Hamiltonian matrix parametrized by the nuclear coordinates, . In principle, the full N-dimensional system Hamiltonian includes an infinite number of states, making this representation impractical. However, the vast majority of photochemistry involves only a small number of low-lying electronic states. This motivates the use of a finite submatrix, with . In quantum chemistry, this m-state electronic Hamiltonian matrix is most commonly represented in its “adiabatic” (i.e., diagonal) form, but it can also be expressed in a “diabatic” form which minimizes the derivative coupling between state basis functions. In the context of machine learning, both representations have important limitations. Due to the non-Abelian Berry curvature of electronic energies, there exists no unique or global diabatic representation for polyatomic molecules. Preparation of smooth reference data across molecular configurations by combining locally-diabatic representations can be cumbersome and technically demanding, further complicated by the Berry phase when including conical intersections. Although learning an explicit diabatic form can be a viable option for the local description of electronic states in some cases, it quickly becomes impractical for more transferable models or when many different electronic states are involved. Adiabatic reference energies are ordered solutions to the electronic eigenvalue problem in a uniquely defined representation, which generalizes more easily across configuration space. However, the energetic ordering leads to derivative discontinuities in the target energies around conical intersections, which cannot be resolved by smooth neural network potentials. This issue has previously been approached by learning the geometry-dependent characteristic polynomial of a potential matrix and diagonalizing the corresponding companion matrix. Following a related route, the X-MACE model encodes adiabatic reference energies using a DeepSet embedding and trains an MLIP to predict the encoded permutationally-invariant representation. For inference, predicted DeepSet representations are again decoded into ordered energy labels by constructing and diagonalizing a Hermitian companion matrix. While representing a major step towards a neural network-based description of excited state manifolds, these approaches do not provide a unified description of energetics and other important properties such as transition dipole matrix elements and nonadiabatic couplings (NACs).
To address the remaining challenges, we propose the Latent Unified Smooth Hamiltonian (LUSH) approach. In contrast to previous efforts to produce adiabatic or diabatic representations of the electronic-state Hamiltonian, LUSH is a neural network aiming to learn a general (i.e., neither strictly diabatic nor adiabatic) latent Hamiltonian in an implicit basis representation. This avoids the aforementioned limitations of diabatization and allows us to smoothly interpolate the constructed operator across configuration space. Diagonalization of this Hamiltonian yields adiabatic energy levels including conical intersections. Furthermore, NACs are readily computed by taking its derivatives and employing the Hellman-Feynman relation. Finally, the adiabatic eigenvectors allow formulation of a unified framework to evaluate general electronic (transition) properties. Specifically, we can generate latent representations of operators beyond the Hamiltonian and rotate their implicit basis form into the adiabatic frame.
Network architecture
We begin with the network input, recalling the aim of generating a set of fixed-size operator representations, , one of which must be the Hamiltonian matrix, , which is diagonalized to obtain adiabatic energies. Molecules of arbitrary size are first featurized as a graph, with node features derived from one-hot atom types and edge features derived from radial basis function embeddings of interatomic distances. An SE(3)-invariant message passing neural network adapted from Ref. embeds atom-local geometric information into per-atom features, each of dimension . Critically, we now require an operation which converts this arbitrary-size array into a fixed-size array of tokens ( -dimensional feature vectors) while maintaining a rich description of the molecular geometry. To do this, we use a cross attention update with a set of trainable model latent vectors. This projects the entire set of nodes into a length- array of vectors , which we denote as the single-state representation. After creation, is readily refined using a standard self attention stack to yield and conclude the geometry encoding step (Figure 1A).

Figure 1: Overview of the LUSH architecture (A) Arbitrary molecules first undergo a geometry encoding step, where a message passing neural network (MPNN) encodes atom-local geometric information into node features on a graph (blue “nodes”). A cross attention update with trainable model latents (purple) maps the variable-length (n) set of node features into a fixed-length (m) array of tokens called the initial “single-state” representation (S, yellow). S is then refined through a series of self attention updates yielding the refined single-state representation, . (B) An initial state-pair representation Z of the single-state tokens is constructed through a “pair lift” on , in which all are combined in a pairwise representation. A series of pairwise attention updates then refines Z to obtain . (C) Parallel network heads map to a set of latent operator representations O, one of which is H, the latent Hamiltonian. H is diagonalized to yield electronic state energies and a set of state-associated eigenvectors . All other latent operators are rotated into the eigenbasis to yield final (adiabatic) operator representations.
From the refined single-state representation, we aim to build a representation that can ultimately be consumed by simple, parallel network heads to produce the latent operator representations. In contrast to predicting individual scalars and arranging them into a matrix, LUSH aims to explicitly encode the matrix structure of operator representations in its architecture. To achieve this, we first “pair-lift” into an intermediate representation, through the following operations
(Hadamard product)
("Hadamard sum")
(1)
Subsequently, is projected into an initial state-pair representation, , by a single-layer perceptron followed by a resnet block. The elements of a meaningful representation of naturally show complex interdependencies because they correspond to a common basis of a single operator and due to the additional structure imposed by the underlying many-body electronic-structure problem. To reflect these interdependencies in LUSH, we next incorporate global communication among all . By working with a state-pair matrix/tensor representation rather than an array of individual scalars, this is accounted for more directly. All-to-all coupling can be achieved with a number of available image or pairwise attention architectures. We select the Pairformer update from AlphaFold3, since its explicit inclusion of interactions among three vectors should facilitate the required global communication (for further details on the LUSH Pairformer, see Methods). After refinement, the resulting contains the final state-pair representation (Figure 1B).
Electronic (transition) properties from unified operator representations
Figure 1C displays the scheme for operator generation from the refined pair representation. In parallel, a set of operator heads (multilayer perceptrons or resnets) each map to latent matrix/tensor representations of the respective operator, . Among these is the Hamiltonian , which is symmetrized and diagonalized to produce state energy predictions and a corresponding set of eigenvectors , representing adiabatic pseudo-wavefunctions. To ensure stability through differentiation of eigenvalue problems with degenerate eigenstates, diagonalization is performed using a custom PyTorch implementation as presented in Refs. and . By rotating all other operator matrices/tensors from their initial representation into this adiabatic basis, a representation of every operator in a consistent implicit basis is favored in the loss landscape.
It is worth examining the interpretation of the operator representations before and after their transformation into the adiabatic basis . A matrix representation of an operator is simply a recording of how acts on a chosen set of (basis) vectors. Specifically, given a set of basis states , the matrix element . The initial operator representations generated from thereby correspond to a general, implicit electronic-state basis. Diagonalization of the respective Hamiltonian, , then produces the adiabatic basis. In order to obtain a unique representation of electronic (transition) properties, we rotate the initial general operator representations into the adiabatic frame of the latent Hamiltonian. We denote these transformed operator representations as . With this, the diagonal elements correspond to the expectation value of an operator on a particular adiabatic electronic state . The off-diagonal elements refer to “transition” properties between states and . As an example, in the current work we produce transition dipole moment tensors with representing state-resolved molecular dipole moments on the diagonal and transition dipole moments between states on the off-diagonal.
The procedure of generating electronic state and transition properties by first producing latent operators in an implicit basis representation and subsequently rotating them into the adiabatic frame has three important implications for network training and the calculation of key excited state properties. First, diagonalizing H relieves the network of the task of learning to produce the required derivative discontinuities at conical intersections. The network instead learns smooth elements in the general electronic-state basis. Second, the eigenvalues and -vectors and derived from H enable the direct calculation of NAC vectors between states. This formulation is known to be exact when the space spanned by the chosen electronic states is geometry independent (and to be very accurate when the geometry dependence is weak). Directly calculating NACs in strict agreement with the eigenvalue problem of a symmetric, parametric matrix (the general electronic-state Hamiltonian, ) has the additional benefit of correctly reproducing the topographic features of the NAC vectors. This naturally encodes branching planes, the plane spanned by the gradient of the state energy gap and the derivative coupling, in which the energy degeneracy between states is lifted. In addition, LUSH is by definition guaranteed to correctly have the conical intersection as a singularity in the NAC line field (NAC vectors form a vortex-like field around the intersection, as discussed for Figure 2 below). From a mathematical perspective, this topographical feature is characteristic for the eigenvalue problem of symmetric matrices with parametric dependence and is therefore by no means guaranteed when instead predicting NACs via a separate network head as in previous architectures. From a quantum mechanical perspective, the vortex-like line field is responsible for the accumulation of the Berry/geometric phase when circling a conical intersection. Finally, inclusion of additional latent operators and their explicit rotation into the adiabatic frame should improve refinement of Z by imposing a constraint toward a unified implicit basis for all operators. Thus, while still offering the scaling and representation learning advantages of transformer-based neural networks, the LUSH architecture inherently encodes crucial fundamental features of electronic state energies, their intersections, and coupling.
Training procedure and loss definition
To train the network, we can begin with a dataset where each data point contains the network inputs X and target values Y. In the current work the inputs X are the atomic numbers Z and cartesian coordinates R of nuclei in a molecular system. Additional inputs such as charge or spin multiplicity are readily added if desired but not used here as all studied systems are neutral, closed-shell species. The targets Y are electronic (transition) properties, or quantities derived from them, which we would like the network to predict given the input X.
Care must be taken to only select properties Y, or apply loss functions to them, that are invariant to the phase of the eigenvectors. In the present study there are three targets: the ab initio electronic state energies relative to the sum of ground state energies of the isolated atoms, , the excitation energies computed from the predicted state energies, and oscillator strengths calculated from the transition dipole, , and , between states i and j. Given an input, LUSH generates predictions for the three targets on which we can apply a loss to train the model. In the current study, we use the following loss function:
where is a mean squared error (MSE) calculation applied to the energies , is a smooth-L1 (i.e., a scaled Huber ) loss applied to absolute errors in excitation energies , and is a smooth-L1 applied to absolute errors in predicted oscillator strengths . Note that because and contain quantities derived from the state energy predictions , gradients from all three loss terms supervise the predicted .
An important limitation of the m-dimensional Hamiltonian submatrix arises at intersections at the boundary of its spectrum. At an intersection, the matrix representing the lowest m eigenstates of the full Hamiltonian becomes fundamentally non-smooth and, in fact, discontinuous. In the spectral picture, the lower-lying states remain smoothly interpolatable, but the eigenvalue has a derivative discontinuity and the corresponding eigenvector is discontinuous. Because all states are coupled through the eigendecomposition, naively training a LUSH model on all m states can lead to contamination of all obtained states in regions near intersections. In order to isolate the error in the problematic highest state(s), we introduce an adaptive loss function with state weighting similar to approaches for diabatic interpolation or complete active space self-consistent field simulations. During training, the loss contribution of a given state, i, is weighted based on the ground truth state energy, , according to
smoothly switching from one to zero as the state energy comes within of the highest considered state ( ). For the present work, we chose eV. Properties characterizing transitions between states and receive a weight of . In this setup the state is unsupervised, essentially providing a pure buffer dimension for the smooth interpolation of the remaining spectrum. Furthermore, the model is allowed to make mistakes in the state whenever near an intersection. The lowest states, finally, are fully accounted for. This allows us to isolate the error arising from the fundamental limitation of the truncated Hamiltonian matrix to the state. Importantly, the state is also correctly described away from the intersection, which allows the model to faithfully reproduce the lowest-energy states including its intersections (as long as they are sufficiently far from the intersection seam). So, for every LUSH model, we choose a state-weighted loss and treat (at least) the two highest-lying eigenstates as buffer states. For simplicity, the above discussion is limited to two-state degeneracies, although one can extend this to encompass multistate intersections also. To further safeguard against such degeneracies at the spectrum boundary or intersections near degeneracies, one can increase the number of buffer states.
Results
In the following, we highlight the capabilities of the LUSH architecture by studying its performance on ground-state energetics across the QM9 dataset and testing its ability to reproduce excited state landscapes for select molecules. Specifically, we showcase the description of conical intersections and NACs between the first and second excited singlet state of thymine and explore the excited state manifold of azobenzene including scans of critical degrees of freedom, ground- and excited-state minima, and minimum energy conical intersections (MECIs).
Chemical accuracy for ground state energetics
As a first test of our architecture and training scheme, we evaluated its ability to learn ground state energies on the well-studied benchmark dataset QM9, which contains density functional theory (DFT) calculations at the B3LYP/6-31G(2df,p) level of theory for 134,000 different small organic molecules. Figure S1 displays the results of training a 5.95 million parameter LUSH network on the QM9 total potential energy prediction task. For the published validation set of 100 randomly sampled molecules, the model approaches chemical accuracy ( 1 kcal/mol) in about 48 hours on a single NVIDIA Tesla V100 (32GB) GPU. For this experiment, we set the number of model latents (controlling the maximum number of eigenvalues emitted) to m = 8, and take the lowest eigenvalue as the predicted total energy while the remaining eigenvalues are unused and unsupervised. Note that because QM9 is a ground-state DFT dataset, the excited state loss function components and are not used in this experiment.
Recovering conical intersections and NAC fields
We next investigated whether LUSH can capture key electronic structure features that govern photochemical dynamics, including excitation energies, oscillator strengths, conical intersections and NACs. We selected thymine as a representative system for testing this because recent experimental and theoretical studies have found that, following photoexcitation (into the bright state), it undergoes rapid radiationless relaxation to through a conical intersection. Thymine therefore provides a realistic setting in which the behavior of LUSH near geometries with strong NAC and electronic state degeneracy can be examined. Thymine is one of the nine photoactive species present in the recently published QeMFi dataset, which contains linear response time-dependent density functional theory (TDDFT) calculations with a variety of basis sets on Wigner-sampled geometries of organic molecules in gas phase. We trained a 7.01 million parameter LUSH network on the 135,000 TDDFT-CAM-B3LYP /def2-TZVP results in QeMFi (15,000 per molecule). As shown in Figure S2, training converged rapidly toward models with low validation errors for total energies, excitation energies, and oscillator strengths across all nine QeMFi species.
A
Thymine CI search

B Conical intersection
C
NAC field
Figure 2: Thymine conical intersections with LUSH (A) Convergence of conical intersection (CI) search between on the LUSH surfaces while also tracking the ab initio gap at various points during the optimization. (B) LUSH energy surfaces around the identified CI in the branching plane as defined by the two-dimensional space in which the energy degeneracy is lifted. (C) Quiver plot of the projection of nonadiabatic coupling vectors ( ) onto the branching plane around the CI. For clarity, projections are rescaled by the power of their norm.
We first evaluate the model resulting from this training session at critical thymine geometries obtained at the TDDFT level. Starting from the MECI geometry obtained with equation-of-motion coupled cluster with singles and doubles, we minimized thymine on the TDDFT surface using the TeraChem electronic structure program. We then took the geometries along this optimization path and predicted their energies and oscillator strengths with the trained network. Figure S3 compares the network predictions with the ab initio values across these held-out geometries and confirms a close agreement for excitation energies and oscillator strengths. Notable is the ability of the network to precisely track the and states through their avoided crossing, as indicated by a flipping of the and oscillator strengths matching TDDFT.
Encouraged by these results, we then searched for thymine conical intersections directly on the network's learned surfaces. To do so, we relied on PyTorch's automatic differentiation framework to obtain the gradient of the state gap and perform a simple Adam optimization to reach the intersection seam. Figure 2 displays the results of performing an CI search on thymine with the LUSH surfaces. Although the QeMFi dataset contains no CIs (Figure S4), LUSH does find a thymine geometry with predicted zero gap (Figure 2A). Moreover, this geometry is also near the ab initio intersection seam, with a TDDFT gap of eV – less than half of the smallest gap observed in QeMFi. We can examine the CI structure by computing the vectors and at the point of degeneracy. The consistent treatment of state energies and NACs in LUSH guarantees that and define the only two nuclear degrees of freedom which lift the degeneracy around a two-state conical intersection. Plotting the and energy surfaces in the plane spanned by and (the branching plane), Figure 2B confirms the conical shape of the LUSH intersection.
Beyond geometrically correct conical intersections, accurate photochemical simulations also rely on the consistent computation of the NAC vectors. A fundamental result of the LUSH architecture is that, like an ab initio intersection, are guaranteed to be singular at degeneracies. By design, LUSH also produces the characteristic vortex structure of the NAC field around conical intersections responsible for the emergence of the Berry/geometric phase when the nuclei trace a path encircling the intersection. Figure 2C demonstrates this effect in LUSH by plotting the projections of onto the branching plane at various locations around the intersection. The NAC projections reflect the topology of the cone near the intersection, with small components in corresponding to slow variation of the energy gap along this coordinate. Along the energy gap varies more rapidly (Figure 2B) and correspondingly the projections have larger components in the direction, particularly around .
Excited state landscape of azobenzene
As our second test case, we study azobenzene. Despite being one of the most intensely studied photoswitches, azobenzene has been the subject of controversy in the literature. The disputes over azobenzene photochemistry generally arise from the wavelength dependence, since excitation of trans-azobenzene to the ( character) and ( character) states, respectively, does not lead to the same quantum yield of cis-azobenzene. To properly model this behavior from first principles, it is necessary to accurately capture the potential energy landscapes across at least the , , and surfaces as well as crossings between them. Here, we aim to assess the ability of the LUSH approach to model the ground- and excited state potential energy surfaces of azobenzene by training it on a set of samples obtained with hole-hole Tamm-Dancoff approximated BHLYP-TDDFT with fractional-occupation molecular orbitals (FOMO-hh-TDA) /def2-SVP . This level of theory was previously used to model the photochemistry of azobenzene in excellent agreement with experiments. The full data set generated here contains 780745 single point electronic structure calculations on azobenzene. The dataset is split into training and validation sets by randomly selecting 1% of the data points as the validation set yielding a train:validation split of 99:1.
In Ref. , it was found that the excited state decay pathways of azobenzene involve either torsion around the central double bond leading to cis-azobenzene or stretching/compression of it in an unreactive planar geometry. Figure 3 therefore displays absorption spectra as well as potential energy surfaces at fixed values of the dihedral or at fixed values of the symmetric angle comparing LUSH to the FOMO-hh-TDA results from Ref. . Here, it should be emphasized that the geometries in the scans are relaxed according to FOMO-hh-TDA. As seen in Figure 3A, the trained LUSH model clearly reproduces the reference FOMO-hh-TDA absorption spectra for both trans- and cis-azobenzene both in terms of relative peak positions and relative intensity. A subtle detail is that LUSH swaps the almost degenerate and states for trans-azobenzene (see Table S1). Since is dark and is bright, we include an additional state in the FOMO-hh-TDA spectrum for a more fair comparison of the matching states. Besides that, our trained model provides nearly identical potential energy surfaces along the across all three states when it is relaxed according to the state as evidenced by Figure 3B. As the geometries are relaxed according to the state in Figure 3C and D, the resemblance between the LUSH and FOMO-hh-TDA results is equally good.
If the scans are relaxed according to the LUSH model, the agreement with the reference data improves for the planar angle scan (see Fig. S5). However, for the dihedral scans, the description of twisted geometries is poor. This can be rationalized by the present unbalanced training set, featuring few cis-like geometries (Fig. S6). The reason for this is that most of the data are generated from nonadiabatic dynamics trajectories starting from trans-azobenzene Wigner samples. It is consequently unsurprising that twisted geometries, including the cis-azobenzene minimum, are not described with the same accuracy by the model. We expect this will be significantly improved in future work through better sampling of twisted geometries and inclusion of gradient information in the training data. Nevertheless, the trained model clearly captures the same qualitative features even though it is not trained on gradients and it therefore only obtains the local curvature of the potential energy surfaces through interpolation.
A

B
C
D
Figure 3: Comparison of LUSH and FOMO-hh-TDA-BHLYP/def2-SVP for azobenzene (A) Predicted absorption spectra of trans- and cis-azobenzene (tAB and cAB, respectively) generated from convolved vertical excitation energies and oscillator strengths. (B)-(C) , , and potential energy surfaces at fixed values of relaxed according to and , respectively. (D) , , and potential energy surfaces at fixed values of the symmetric angle relaxed according to .
An important detail in the FOMO-hh-TDA potential energy surfaces in Figure 3C and D is that they contain the reactive and unreactive conical intersections, respectively. Meanwhile, the LUSH data has gaps at these two geometries. To assert that the trained model actually reproduces the relevant conical intersection as well as other important geometries on the , , and potential energy surfaces, we optimized all the critical point geometries given in the SI of Ref. with LUSH. Figure 4 shows an overlay of the reference and LUSH geometries, the root mean square deviation (RMSD) between corresponding atoms in cartesian space after alignment, and the error in the relative energy compared to trans-azobenzene on the state ( ).
trans-azobenzene
minimum

RMSD = 0.041 Å
minimum

RMSD = 0.039 Å
minimum

RMSD = 0.217 Å
cis-azobenzene

RMSD = 0.076 Å
planar Cl
unreactive Cl
reactive Cl
twisted Cl

RMSD = 0.259 Å

RMSD = 0.365 Å

RMSD = 0.276 Å

RMSD = 0.473 Å
Figure 4: Performance of LUSH model for critical geometries in excited state manifold of azobenzene. Superimposed critical geometries as predicted by FOMO-hh-TDA-BHLYP/def2-SVP (grey/blue) and LUSH (red), respectively, along with the root mean square deviation (RMSD) between corresponding atoms and the error in the relative energy compared to trans-azobenzene on the state ( ).
As seen from Figure 4, the LUSH optimized geometries are very similar to the reference FOMO-hh-TDA geometries. For the minima, the RMSD values are small and so are the relative energy errors. It is consequently evident that LUSH accurately reproduces the different mimima across the , , and states. Meanwhile, the LUSH MECIs deviate slightly more from the reference geometries with RMSD values up to 0.473 Å. While the energetics for the planar CIs are in excellent agreement with the reference, can reach values of -1.8 eV for twisted geometries. This discrepancy is not surprising considering that MECI search is a much harder optimization problem and even small differences in the potential energy surfaces may lead to large changes in the CI seam space. Even among different flavors of TDDFT, differences of up to 0.3 eV are expected. Even more importantly, the training data included a limited amount of low-energy cis-like configurations (Fig S6A). As a result, LUSH understabilizes twisted geometries (cf. Figure 3 above), including the MECIs. With this in mind, the MECI structures and energetics predicted by LUSH are in overall good agreement with FOMO-hh-TDA, indicating it is able to correctly capture the relevant CIs.
Conclusion and Outlook
The present work introduces the Latent Unified Smooth Hamiltonian (LUSH) neural network framework for the prediction of electronic ground and excited states of molecular systems by constructing a latent electronic-state Hamiltonian. Diagonalization of the predicted
Hamiltonian matrix yields adiabatic electronic structure properties including state energies and their intersections. Beyond energetics and derivative properties such as atomic forces and NACs, LUSH provides a unified framework for the prediction of general latent operators such as (transition) dipoles and their evaluation in the adiabatic frame (see Figure 1). The presented methodology thus expands upon the philosophy of physically interpretable latent variables such as latent effective charges for explicit long-range (electrostatic) interactions introduced in previous works.
The LUSH methodology rests on four key components. First, we employ a cross-attention mechanism with a fixed number of trainable latents, which allows us to encode arbitrary-size molecules into a fixed-size set of tokens (feature vectors). These tokens can be viewed as raw features associated with the individual electronic states, further refined through self attention. Second, the resulting single-state representation is transformed into an explicit pairwise representation, which is subsequently refined by the Pairformer block efficiently incorporating global communication before Hamiltonian generation and diagonalization. Third, a differentiable eigensolver applicable to systems with degenerate states assures stable and finite gradients near conical intersections. Lastly, the weighted inclusion of state and transition properties based on their energy gap to the spectrum boundary allows us to limit the approach to a fixed-size low-dimensional Hamiltonian submatrix without contaminating low-lying states when encountering state degeneracies at the spectrum boundary.
Using LUSH, we trained a series of models that confirm its applicability to accurately predict both ground and excited electronic states as well as the conical intersections between them. For the QM9 data set, LUSH provides a model that readily achieves chemical accuracy for ground states. In addition to that, we used the LUSH architecture to train models that reproduce the excited state energy landscapes of thymine and azobenzene, both of which are prototype systems in photochemistry. For these systems, our results demonstrate that LUSH provides a uniform description of ground and excited electronic states and transitions between them. The models reproduce the important features of the potential energy surfaces involved in their photochemistry as well as their absorption spectra. Importantly, the LUSH models include a correct description of conical intersections between the electronic states including the topography of NACs. Altogether, our test cases show that LUSH can provide accuracy on par with quantum chemical reference data, but at a fraction of the computational cost.
Leveraging LUSH as an efficient tool for excited state calculations including NACs, future work will explore its capability to push the boundary of nonadiabatic dynamics simulations to extended time and length scales. In this vein, we will expand training to include energy gradients and (phaseless) NACs. Based on the already very good description of critical geometries by the current models using a gradient-free loss, we expect this extended loss definition to further boost the performance. Future work will also explore possible ML/MM setups, coupling LUSH to an even more efficient molecular mechanics description of the environment to further extend tractable system sizes towards biomolecular complexes. Another interesting question is in how far the imposed mathematical structure in LUSH can “correct” spurious reference data. For example, whether sufficient information on the electronic state characters enables LUSH to reproduce conical intersections that are absent in the reference data (e.g., intersections missed by TDDFT ). Encoding the general mathematical structure of the multi-state electronic structure problem rather than imposing restrictive constraints, we believe LUSH offers a good balance between inductive bias from quantum chemistry and the representation learning power of deep networks.
Methods and Computational Details
Additional details on LUSH Pairformer
To construct the initial pair representation, , we first perform the “pair lift” operation on defined in Equation (1). This produces . We then use a single layer perceptron to project the hidden dimension of (3d) back down to , followed by application of a single resnet to yield the initial state-pair representation . is then passed into an in-house implementation of the pairformer block introduced in AlphaFold3 (AF3). Briefly, the AF3 pairformer performs axial (row-wise and column-wise) triangle multiplication and attention updates on to yield , with overall computational scaling . A detailed description of the AF3 pairformer block goes beyond scope of this publication, and the interested reader is referred to the Supporting Information of Ref. . For most photochemistry applications (such as the ones examined in this study) the number of treated electronic states can remain , and thus the cost of triangle attention in LUSH remains very modest.
Once refined by the pair attention stack, parallel heads project the state-pair representation down to the latent operator representations , where is the dimensionality of each specific operator . In our study we have two operator representations: the Hamiltonian matrix with , and the transition dipole tensor with , representing the and directions. Thus, to produce we use a linear layer (no activation) with output dimension one to project , and we use a resnet followed by a linear layer (no activation) with output dimension three to transform .
To remove the requirement for the pair attention stack to perform the absolute scaling of the state energies, we subtract the trace of from its diagonal entries immediately after generating it. Then, we project the refined single-state representation to a vector using an “offset head” (resnet followed by a linear projection with output dimension of one). Finally, we add the mean value of to the diagonal elements of the now traceless . This reintroduces a learned geometry-dependent absolute shift to the spectrum of the Hamiltonian, improving the description of intra-state relative energies and allowing the pairformer to focus on the excitation energies.
Details of loss definition
The first contribution to the loss function given in Eq. (2) denotes the mean-square error in atomization energies across all states and all training samples,
(4) with denoting the corresponding ab initio reference energy and being the state weight according to Eq. (3). State-resolved reference energies are thereby calculated as , where is the total electronic energy of state as predicted by the reference method. For the QM9 database, we use isolated-atom energies, , from Hartree-Fock. For the QeMFi dataset, we obtain effective single-atom energies by fitting the sum of fixed atom energies to best reproduce the ground-state reference energy across the whole training set. For azobenzene, we calculate for the corresponding atom in vacuo using BHLYP/def2-SVP. For further details on generation of atomic reference energies, see supporting information. The excitation energy contribution, , and the oscillator strength loss, , are calculated as the mean smooth-L1 (scaled Huber) loss,
where represents either for excitation energies or for the oscillator strength loss. We use eV and a.u. for the excitation energy and oscillator strength losses, respectively.
Geometry optimization and conical intersection search
All azobenzene geometry optimizations in this work were performed using a Levenberg-Marquardt-type quasi-Newton scheme with delocalized internal coordinates as implemented in the geomeTRIC software package. The default convergence criteria are used for geometry optimizations, however, for MECI searches and relaxed surface scans the gradient tolerance was loosened to 1.7e-3 for the root mean square of the gradient and 1.0e-3 for the maximum gradient component. The search for azobenzene MECI structures followed a penalty function-based approach. MECIs are thereby identified by a vanishing energy gap and simultaneously minimal average state energy . As detailed in Ref. , for a two-state intersection this can be phrased as the minimization of the objective/cost function,
where determines the weight of the gap penalty and represents a regularization parameter. For the present work, we chose and , which provided a good balance of regularization and gap closure. The MECI search was deemed converged according to the above outlined criteria.
Azobenzene reference calculations
The training geometries for azobenzene are sampled from 423 K harmonic Wigner distributions around the cis- and trans-azobenzene minima as well as non-adiabatic molecular dynamics of azobenzene including the , , and states following excitation of trans-azobenzene to either the state or the state. Dynamics simulations starting from elevated-temperature initial conditions thereby sample a broad range of the excited state landscape. The electronic structure was modeled using FOMO-hh-TDA-BHLYP /def2-SVP , which was previously demonstrated to achieve excellent accuracy for the UV absorption and emission spectra of azobenzene. The ab initio multiple spawning method was used to simulate the nonadiabatic dynamics. All electronic structure calculations for azobenzene were performed with the TeraChem software package. Based on the hh-TDA reference data for states through , we constructed a five-state LUSH model with and as buffer states, assuring a framework able to correctly reproduce the states , , and studied in this work.
Supplementary information
Additional details and analysis on QeMFi and azobenzene databases, calculation of atomic reference energies, and secondary results including Figs. S1 to S6 and Tab. S1.
Acknowledgments
This work was supported by the AMOS program of the U. S. Department of Energy, Office of Science, Basic Energy Sciences, Chemical Sciences and Biosciences Division. DJ acknowledges financial and professional support from the Stanford Energy Postdoctoral Fellowship and the Stanford Precourt Institute for Energy. MS acknowledges financial support from the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) --534068594. AEHB acknowledges financial support from the Novo Nordisk Foundation under grant reference number NNF24OC0089345. OJF is a Department of Energy Computational Science Graduate Fellow (Award Number DE-SC0023112), supported by the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research.
Competing interests
The authors declare the following competing financial interest(s): TJM is a cofounder of PetaChem, LLC.
Data and code availability
The source code for training and inference with LUSH will be made publicly available upon acceptance of this work in a peer-reviewed journal.
Author contributions
DJ: Development of original idea; design of network architecture (primary); implementation (primary); data acquisition; analysis; writing (initial draft and editing).
MS: Development of original idea; design of network architecture (support); implementation (support); generation of reference data (support); analysis; writing (initial draft and editing).
AEHB: Data acquisition; conception of test cases; analysis; writing (initial draft and editing).
OJF: Generation of reference data (primary); conception of test cases; writing (editing).
TJM: Acquisition of funding; writing (editing); supervision.
References
1 Cerullo, G., Polli, D., Lanzani, G., De Silvestri, S., Hashimoto, H. & Cogdell, R. J. Photosynthetic light harvesting by carotenoids: detection of an intermediate excited state. Science 298, 2395-2398 (2002). https://dx.doi.org/10.1126/science.1074685
2 Herbst, J., Heyne, K. & Diller, R. Femtosecond infrared spectroscopy of bacteriorhodopsin chromophore isomerization. Science 297, 822-825 (2002). https://dx.doi.org/10.1126/science.1072144
3 Barbatti, M., Borin, A. C. & Ullrich, S. in Photoinduced Phenomena in Nucleic Acids I Vol. 355 (eds M. Barbatti, A. C. Borin, & S. Ullrich) 1-32 (Springer, 2014).
4 Gozem, S., Luk, H. L., Schapiro, I. & Olivucci, M. Theory and Simulation of the Ultrafast Double-Bond Isomerization of Biological Chromophores. Chem. Rev. 117, 13502-13565 (2017). https://dx.doi.org/10.1021/acs.chemrev.7b00177
5 Romero, N. A. & Nicewicz, D. A. Organic Photoredox Catalysis. Chem. Rev. 116, 10075-10166 (2016). https://dx.doi.org/10.1021/acs.chemrev.6b00057
6 McCusker, J. K. Electronic structure in the transition metal block and its implications for light harvesting. Science 363, 484-488 (2019). https://dx.doi.org/10.1126/science.aav9104
7 Mathew, S., Yella, A., Gao, P., Humphry-Baker, R., Curchod, B. F., Ashari-Astani, N., Tavernelli, I., Rothlisberger, U., Nazeeruddin, M. K. & Gratzel, M. Dye-sensitized solar cells with 13% efficiency achieved through the molecular engineering of porphyrin sensitizers. Nature Chem. 6, 242-247 (2014). https://dx.doi.org/10.1038/nchem.1861
8 Ahmad, I., Ahmed, S., Anwar, Z., Sheraz, M. A. & Sikorski, M. Photostability and Photostabilization of Drugs and Drug Products. International Journal of Photoenergy 2016, 1-19 (2016). https://dx.doi.org/10.1155/2016/8135608
9 Westermayr, J., Gilkes, J., Barrett, R. & Maurer, R. J. High-throughput property-driven generative design of functional organic molecules. Nature Comput. Sci. 3, 139-148 (2023). https://dx.doi.org/10.1038/s43588-022-00391-1
10 Janoš, J. & Slaviček, P. What Controls the Quality of Photodynamical Simulations? Electronic Structure Versus Nonadiabatic Algorithm. J. Chem. Theory Comput. 19, 8273-8284 (2023). https://dx.doi.org/10.1021/acs.jctc.3c00908
11 Papineau, T. V., Jacquemin, D. & Vacher, M. Which Electronic Structure Method to Choose in Trajectory Surface Hopping Dynamics Simulations? Azomethane as a Case Study. J. Phys. Chem. Lett. 15, 636-643 (2024). https://dx.doi.org/10.1021/acs.jpclett.3c03014
12 Müller, C., Srsen, S., Bachmair, B., Crespo-Otero, R., Li, J., Mausenberger, S., Pinheiro, M., Jr., Worth, G., Lopez, S. A. & Westermayr, J. Machine learning for nonadiabatic molecular dynamics: best practices and recent progress. Chem. Sci. 16, 17542-17567 (2025). https://dx.doi.org/10.1039/d5sc05579b
13 Janoš, J., List, N. H., Orr-Ewing, A. J., Suchan, J., Barbatti, M., Bennett, O., Brady, M., Carmona-Garcia, J., Crespo-Otero, R., Eng, J., Fajen, O. J., Garavelli, M., Gomez, S., Green, A. E., Hernandez, F. J., Hollas, D., Hutton, L., Ibele, L. M., Kirrander, A., Lan, Z., Lassmann, Y., Lawrence, J. E., Levine, B. G., Makhov, D. V., Mannouch, J. R., Miao, X., Mitric, R., Parker, S. M., Penfold, T. J., Peng, J., Richardson, J. O., Shalashilin, D., Slaviček, P., Spinlove, K. E., Vindel-Zandbergen, P., Agostini, F., Bonella, S., Martínez, T. J., Worth, G. A. & Curchod, B. F. E. Perspective on a challenge: Predicting the photochemistry of cyclobutanone. J. Chem. Phys. 165, 020902 (2026). https://dx.doi.org/10.1063/5.0338792
14 15 16 17 18 19 20 21 22 23 24 25 26 27
Burghardt, I., Cederbaum, L. S. & Hynes, J. T. Environmental effects on a conical intersection: a model study. Faraday Disc. 127, 395-411 (2004). https://dx.doi.org/10.1039/b315071b
Levine, B. G. & Martínez, T. J. Isomerization through conical intersections. Annu. Rev. Phys. Chem. 58, 613-634 (2007). https://dx.doi.org/10.1146/annurev.physchem.57.032905.104612
Virshup, A. M., Punwong, C., Pogorelov, T. V., Lindquist, B. A., Ko, C. & Martínez, T. J. Photodynamics in complex environments: ab initio multiple spawning quantum mechanical/molecular mechanical dynamics. J. Phys. Chem. B 113, 3280-3291 (2009). https://dx.doi.org/10.1021/jp8073464
Liang, R., Yu, J. K., Meisner, J., Liu, F. & Martínez, T. J. Electrostatic Control of Photoisomerization in Channelrhodopsin 2. J. Amer. Chem. Soc. 143, 5425-5437 (2021). https://dx.doi.org/10.1021/jacs.1c00058
Toldo, J. M., do Casal, M. T., Ventura, E., do Monte, S. A. & Barbatti, M. Surface hopping modeling of charge and energy transfer in active environments. Phys. Chem. Chem. Phys. 25, 8293-8316 (2023). https://dx.doi.org/10.1039/d3cp00247k
Levine, B. G., Coe, J. D. & Martínez, T. J. Optimizing conical intersections without derivative coupling vectors: application to multistate multireference second-order perturbation theory (MS-CASPT2). J. Phys. Chem. B 112, 405-413 (2008). https://dx.doi.org/10.1021/jp0761618
Song, S. H., Freddolino, P. L., Nash, A. I., Carroll, E. C., Schulten, K., Gardner, K. H. & Larsen, D. S. Modulating LOV domain photodynamics with a residue alteration outside the chromophore binding site. Biochemistry 50, 2411-2423 (2011). https://dx.doi.org/10.1021/bi200198x
Unke, O. T., Chmiela, S., Sauceda, H. E., Gastegger, M., Poltavsky, I., Schutt, K. T., Tkatchenko, A. & Müller, K.-R. Machine Learning Force Fields. Chem. Rev. 121, 10142-10186 (2021). https://dx.doi.org/10.1021/acs.chemrev.0c01111
Batzner, S., Musaelian, A., Sun, L., Geiger, M., Mailoa, J. P., Kornbluth, M., Molinari, N., Smidt, T. E. & Kozinsky, B. E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials. Nature Comm. 13, 2453 (2022). https://dx.doi.org/10.1038/s41467-022-29939-5
Batatia, I., Kovács, D. P., Simm, G., Ortner, C. & Csányi, G. MACE: Higher Order Equivariant Message Passing Neural Networks for Fast and Accurate Force Fields. Adv. Neur. Inf. Proc. Sys. 35, 11423--11436 (2022). https://dx.doi.org/10.52202/068431-0830
Kaser, S. & Meuwly, M. Transfer-learned potential energy surfaces: Toward microsecond-scale molecular dynamics simulations in the gas phase at CCSD(T) quality. J. Chem. Phys. 158, 214301 (2023). https://dx.doi.org/10.1063/5.0151266
Kabylda, A., Frank, J. T., Suarez-Dou, S., Khabibrakhmanov, A., Medrano Sandonas, L., Unke, O. T., Chmiela, S., Müller, K.-R. & Tkatchenko, A. Molecular Simulations with a Pretrained Neural Network and Universal Pairwise Force Fields. J. Amer. Chem. Soc. 147, 33723-33734 (2025). https://dx.doi.org/10.1021/jacs.5c09558
Novelli, P., Meanti, G., Buigues, P. J., Rosasco, L., Parrinello, M., Pontil, M. & Bonati, L. Fast and Fourier features for transfer learning of interatomic potentials. npj Comput. Mat. 11, 293 (2025). https://dx.doi.org/10.1038/s41524-025-01779-z
Wood, B., Dzamba, M., Fu, X., Gao, M., Shuaibi, M., Barroso-Luque, L., Abdelmaqsoud, K., Gharakhanyan, V., Kitchin, J. & Levine, D. UMA: A family of universal models for atoms. Adv. Neur. Inf. Proc. Sys. 38, 129391-129427 (2026). https://dx.doi.org/10.48550/arXiv.2506.23971
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
Lysogorskiy, Y., Bochkarev, A. & Drautz, R. Graph atomic cluster expansion for foundational machine learning interatomic potentials. npj Comput. Mat. 12, 114 (2026). https://dx.doi.org/10.1038/s41524-026-01979-1
Chen, W. K., Liu, X. Y., Fang, W. H., Dral, P. O. & Cui, G. Deep Learning for Nonadiabatic Excited-State Dynamics. J. Phys. Chem. Lett. 9, 6702-6708 (2018). https://dx.doi.org/10.1021/acs.jpclett.8b03026
Hu, D., Xie, Y., Li, X., Li, L. & Lan, Z. Inclusion of Machine Learning Kernel Ridge Regression Potential Energy Surfaces in On-the-Fly Nonadiabatic Molecular Dynamics Simulation. J. Phys. Chem. Lett. 9, 2725-2732 (2018). https://dx.doi.org/10.1021/acs.jpclett.8b00684
Dral, P. O., Barbatti, M. & Thiel, W. Nonadiabatic Excited-State Dynamics with Machine Learning. J. Phys. Chem. Lett. 9, 5660-5663 (2018). https://dx.doi.org/10.1021/acs.jpclett.8b02469
Westermayr, J., Faber, F. A., Christensen, A. S., von Lilienfeld, O. A. & Marquetand, P. Neural networks and kernel ridge regression for excited states dynamics of CH2NH 2+ : From single-state to multi-state representations and multi-property machine learning models. Mach. Learn. Sci. Tech. 1, 025009 (2020). https://dx.doi.org/10.1088/2632-2153/ab88d0
Mausenberger, S., Müller, C., Tkatchenko, A., Marquetand, P., Gonzalez, L. & Westermayr, J. SpaiNN: equivariant message passing for excited-state nonadiabatic molecular dynamics. Chem. Sci. 15, 15880-15890 (2024). https://dx.doi.org/10.1039/d4sc04164j
Michl, J. Physical basis of qualitative MO arguments in organic photochemistry. Topics Curr. Chem., 1-59 (1974). https://dx.doi.org/10.1007/BFb0009221
Yarkony, D. R. Diabolical conical intersections. Rev. Mod. Phys. 68, 985-1013 (1996). https://dx.doi.org/10.1103/RevModPhys.68.985
Bernardi, F., Olivucci, M. & Robb, M. A. The role of conical intersections and excited state reaction paths in photochemical pericyclic reactions. J. Photochem. Photobio. A 105, 365-371 (1997). https://dx.doi.org/10.1016/s1010-6030(96)04573-x
Domcke, W. & Yarkony, D. R. Role of conical intersections in molecular spectroscopy and photoinduced chemical dynamics. Annu. Rev. Phys. Chem. 63, 325-352 (2012). https://dx.doi.org/10.1146/annurev-physchem-032210-103522
Teller, E. The Crossing of Potential Surfaces. J. Phys. Chem. 41, 109-116 (1937). https://dx.doi.org/10.1021/j150379a010
Köppel, H., Domcke, W. & Cederbaum, L. S. Multimode Molecular Dynamics Beyond the Born-Oppenheimer Approximation. Adv. Chem. Phys. 57, 59-246 (1984). https://dx.doi.org/10.1002/9780470142813.ch2
van der Oord, C., Dusson, G., Csányi, G. & Ortner, C. Regularised atomic body-ordered permutation-invariant polynomials for the construction of interatomic potentials. Mach. Learn. Sci. Tech. 1, 015004 (2020). https://dx.doi.org/10.1088/2632-2153/ab527c
DeVore, R., Hanin, B. & Petrova, G. Neural network approximation. Acta Numerica 30, 327-444 (2021). https://dx.doi.org/10.1017/s0962492921000052
Bigi, F., Huguenin-Dumittan, K. K., Ceriotti, M. & Manolopoulos, D. E. A smooth basis for atomistic machine learning. J. Chem. Phys. 157, 234101 (2022). https://dx.doi.org/10.1063/5.0124363
Fu, X., Wood, B. M., Barroso-Luque, L., Levine, D. S., Gao, M., Dzamba, M. & Zitnick, C. L. Learning Smooth and Expressive Interatomic Potentials for Physical Property Prediction. Intl. Conf. Mach. Learn. 267, 17875-17893 (2025). https://dx.doi.org/10.48550/arXiv.2502.12147
44 45 46 47 48 49 50 51 52 53 54 55 56 57
Unzueta, P. A., Wang, Y. & Martínez, T. J. Neural Networks Accelerate Ab Initio Multiple Spawning Simulations: A Case Study of Using Machine Learning Potentials for Excited State Dynamics. ChemRxiv, 15007443 (2026). https://dx.doi.org/10.26434/chemrxiv.15007443/v1
Barrett, R., Ortner, C. & Westermayr, J. Transferable Machine Learning Potential X-MACE for Excited States using Integrated DeepSets. arXiv, arXiv:2502.12870v12871 (2025). https://dx.doi.org/10.48550/arXiv.2502.12870
Zimmerman, H. E. Molecular Orbital Correlation Diagrams, Mobius Systems, and Factors Controlling Ground- and Excited-State Reactions. II. J. Amer. Chem. Soc. 88, 1566-1567 (1966). https://dx.doi.org/10.1021/ja00959a053
Wang, T. Y., Neville, S. P. & Schuurman, M. S. Machine Learning Seams of Conical Intersection: A Characteristic Polynomial Approach. J. Phys. Chem. Lett. 14, 7780-7786 (2023). https://dx.doi.org/10.1021/acs.jpclett.3c01649
Lenzen, T. & Manthe, U. Neural network based coupled diabatic potential energy surfaces for reactive scattering. J. Chem. Phys. 147, 084105 (2017). https://dx.doi.org/10.1063/1.4997995
Guan, Y., Fu, B. & Zhang, D. H. Construction of diabatic energy surfaces for LiFH with artificial neural networks. J. Chem. Phys. 147, 224307 (2017). https://dx.doi.org/10.1063/1.5007031
Shen, Y. & Yarkony, D. R. Construction of Quasi-diabatic Hamiltonians That Accurately Represent ab Initio Determined Adiabatic Electronic States Coupled by Conical Intersections for Systems on the Order of 15 Atoms. Application to Cyclopentoxide Photoelectron Detachment in the Full 39 Degrees of Freedom. J. Phys. Chem. A 124, 4539-4548 (2020). https://dx.doi.org/10.1021/acs.jpca.0c02763
Axelrod, S., Shakhnovich, E. & Gomez-Bombarelli, R. Excited state non-adiabatic dynamics of large photoswitchable molecules using a chemically transferable machine learning potential. Nature Comm. 13, 3440 (2022). https://dx.doi.org/10.1038/s41467-022-30999-w
Wu, Y., Wang, B., Chaudhary, M., Casanova, D. & Prezhdo, O. V. Efficient Nonadiabatic Molecular Dynamics with Machine Learning Hamiltonian Interpolation. J. Phys. Chem. Lett. 17, 7328-7335 (2026). https://dx.doi.org/10.1021/acs.jpclett.6c01666
Mead, C. A. & Truhlar, D. G. Conditions for the Definition of a Strictly Diabatic Electronic Basis for Molecular-Systems. J. Chem. Phys. 77, 6090-6098 (1982). https://dx.doi.org/10.1063/1.443853
Opalka, D. & Domcke, W. Interpolation of multi-sheeted multi-dimensional potential-energy surfaces via a linear optimization procedure. J. Chem. Phys. 138, 224103 (2013). https://dx.doi.org/10.1063/1.4808358
Shu, Y., Varga, Z., Parameswaran, A. M. & Truhlar, D. G. Fitting of Coupled Potential Energy Surfaces via Discovery of Companion Matrices by Machine Intelligence. J. Chem. Theory Comput. 20, 7042-7051 (2024). https://dx.doi.org/10.1021/acs.jctc.4c00716
Dauparas, J., Anishchenko, I., Bennett, N., Bai, H., Ragotte, R. J., Milles, L. F., Wicky, B. I. M., Courbet, A., de Haas, R. J., Bethel, N., Leung, P. J. Y., Huddy, T. F., Pellock, S., Tischer, D., Chan, F., Koepnick, B., Nguyen, H., Kang, A., Sankaran, B., Bera, A. K., King, N. P. & Baker, D. Robust deep learning-based protein sequence design using ProteinMPNN. Science 378, 49-56 (2022). https://dx.doi.org/10.1126/science.add2187
Jaegle, A., Gimeno, F., Brock, A., Vinyals, O., Zisserman, A. & Carreira, J. Perceiver: General perception with iterative attention. Intl. Conf. Mach. Learn., 4651-4664 (2021). https://dx.doi.org/10.48550/arXiv.2103.03206
Jaegle, A., Borgeaud, S., Alayrac, J.-B., Doersch, C., Ionescu, C., Ding, D., Koppula, S., Zoran, D., Brock, A., Shelhamer, E., Hénaff, O., Botvinick, M. M., Zisserman, A., Vinyals, O. & Carreira, J. Perceiver io: A general architecture for structured inputs & outputs. International Conference on Learning Representations (2022). https://dx.doi.org/10.48550/arXiv.2107.14795
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L. & Polosukhin, I. Attention Is All You Need. Adv. Neur. Inf. Proc. Sys. 30 (2017). https://dx.doi.org/10.48550/arXiv.1706.03762
Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G. & Gelly, S. An image is worth words: Transformers for image recognition at scale. International Conference on Learning Representations (2021). https://dx.doi.org/10.48550/arXiv.2010.11929
Ho, J., Kalchbrenner, N., Weissenborn, D. & Salimans, T. Axial attention in multidimensional transformers. arXiv, arXiv:1912.12180v12181 (2019). https://dx.doi.org/10.48550/arXiv.1912.12180
Parmar, N., Vaswani, A., Uszkoreit, J., Kaiser, L., Shazeer, N., Ku, A. & Tran, D. Image transformer. Intl. Conf. Mach. Learn., 4055-4064 (2018). https://dx.doi.org/10.48550/arXiv.1802.05751
Abramson, J., Adler, J., Dunger, J., Evans, R., Green, T., Pritzel, A., Ronneberger, O., Willmore, L., Ballard, A. J., Bambrick, J., Bodenstein, S. W., Evans, D. A., Hung, C. C., O'Neill, M., Reiman, D., Tunyasuvunakool, K., Wu, Z., Zemgulyte, A., Arvaniti, E., Beattie, C., Bertolli, O., Bridgland, A., Cherepanov, A., Congreve, M., Cowen-Rivers, A. I., Cowie, A., Figurnov, M., Fuchs, F. B., Gladman, H., Jain, R., Khan, Y. A., Low, C. M. R., Perlin, K., Potapenko, A., Savy, P., Singh, S., Stecula, A., Thillaisundaram, A., Tong, C., Yakneen, S., Zhong, E. D., Zielinski, M., Zidek, A., Bapst, V., Kohli, P., Jaderberg, M., Hassabis, D. & Jumper, J. M. Accurate structure prediction of biomolecular interactions with AlphaFold 3. Nature 630, 493-500 (2024). https://dx.doi.org/10.1038/s41586-024-07487-w
Kasim, M. F. Derivatives of partial eigendecomposition of a real symmetric matrix for degenerate cases. arXiv, arXiv:2011.04366v04361 (2020). https://dx.doi.org/10.48550/arXiv.2011.04366
Stöhr, M. & Martínez, T. J. Semiempirical Quantum Chemistry in the Age of ab initio Data and Differentiable Programming: I. Differentiable Molecular Orbital Theory. J. Chem. Theory Comput. 22, 869-880 (2026). https://dx.doi.org/10.1021/acs.jctc.5c01482
Herzberg, G. & Longuet-Higgins, H. C. Intersection of Potential Energy Surfaces in Polyatomic Molecules. Disc. Faraday Soc., 77-82 (1963). https://dx.doi.org/10.1039/df9633500077
Berry, M. V. Quantal phase factors accompanying adiabatic changes. Proc. Roy. Soc. London A 392, 45-57 (1984). https://dx.doi.org/10.1098/rspa.1984.0023
Zwanziger, J. W., Koenig, M. & Pines, A. Berry's Phase. Annu. Rev. Phys. Chem. 41, 601-646 (1990). https://dx.doi.org/10.1146/annurev.pc.41.100190.003125
Westermayr, J., Gastegger, M. & Marquetand, P. Combining SchNet and SHARC: The SchNarc Machine Learning Approach for Excited-State Dynamics. J. Phys. Chem. Lett. 11, 3828-3834 (2020). https://dx.doi.org/10.1021/acs.jpclett.0c00527
Richardson, J. O. Machine learning of double-valued nonadiabatic coupling vectors around conical intersections. J. Chem. Phys. 158, 011102 (2023). https://dx.doi.org/10.1063/5.0133191
Huber, P. J. Robust Estimation of a Location Parameter. Ann. Math. Stat. 35, 73-101 (1964). https://dx.doi.org/10.1214/aoms/1177703732
72 73 74 75 76 77 78 79 80 81 82 83 84 85
Evenhuis, C. & Martínez, T. J. A scheme to interpolate potential energy surfaces and derivative coupling vectors without performing a global diabatization. J. Chem. Phys. 135, 224110 (2011). https://dx.doi.org/10.1063/1.3660686
Deskevich, M. P., Nesbitt, D. J. & Werner, H. J. Dynamically weighted multiconfiguration self-consistent field: multistate calculations for F+H2O→HF+OH reaction paths. J. Chem. Phys. 120, 7281-7289 (2004). https://dx.doi.org/10.1063/1.1667468
Glover, W. J. Communication: Smoothing out excited-state dynamics: analytical gradients for dynamically weighted complete active space self-consistent field. J. Chem. Phys. 141, 171102 (2014). https://dx.doi.org/10.1063/1.4901328
Matsika, S. & Yarkony, D. R. Conical intersections of three electronic states affect the ground state of radical species with little or no symmetry: Pyrazolyl. J. Amer. Chem. Soc. 125, 12428-12429 (2003). https://dx.doi.org/10.1021/ja037925+
Matsika, S. Three-state conical intersections in nucleic acid bases. J. Phys. Chem. A 109, 7538-7545 (2005). https://dx.doi.org/10.1021/jp0513622
Coe, J. D. & Martínez, T. J. Competitive decay at two- and three-state conical intersections in excited-state intramolecular proton transfer. J. Amer. Chem. Soc. 127, 4560-4561 (2005). https://dx.doi.org/10.1021/ja043093j
Ramakrishnan, R., Dral, P. O., Rupp, M. & von Lilienfeld, O. A. Quantum chemistry structures and properties of 134 kilo molecules. Sci. Data 1, 140022 (2014). https://dx.doi.org/10.1038/sdata.2014.22
Stojanovic, L., Bai, S., Nagesh, J., Izmaylov, A. F., Crespo-Otero, R., Lischka, H. & Barbatti, M. New Insights into the State Trapping of UV-Excited Thymine. Molecules 21, 1603 (2016). https://dx.doi.org/10.3390/molecules21111603
Wolf, T. J. A., Myhre, R. H., Cryan, J. P., Coriani, S., Squibb, R. J., Battistoni, A., Berrah, N., Bostedt, C., Bucksbaum, P., Coslovich, G., Feifel, R., Gaffney, K. J., Grilj, J., Martínez, T. J., Miyabe, S., Moeller, S. P., Mucke, M., Natan, A., Obaid, R., Osipov, T., Plekan, O., Wang, S., Koch, H. & Guhr, M. Probing ultrafast internal conversion in organic chromophores via K-edge resonant absorption. Nature Comm. 8, 29 (2017). https://dx.doi.org/10.1038/s41467-017-00069-7
Park, W., Lee, S., Huix-Rotllant, M., Filatov, M. & Choi, C. H. Impact of the Dynamic Electron Correlation on the Unusually Long Excited-State Lifetime of Thymine. J. Phys. Chem. Lett. 12, 4339-4346 (2021). https://dx.doi.org/10.1021/acs.jpclett.1c00712
Miura, Y., Yamamoto, Y. I., Karashima, S., Orimo, N., Hara, A., Fukuoka, K., Ishiyama, T. & Suzuki, T. Formation of Long-Lived Dark States during Electronic Relaxation of Pyrimidine Nucleobases Studied Using Extreme Ultraviolet Time-Resolved Photoelectron Spectroscopy. J. Amer. Chem. Soc. 145, 3369-3381 (2023). https://dx.doi.org/10.1021/jacs.2c09803
Kjønstad, E. F., Fajen, O. J., Paul, A. C., Angelico, S., Mayer, D., Guhr, M., Wolf, T. J. A., Martínez, T. J. & Koch, H. Photoinduced hydrogen dissociation in thymine predicted by coupled cluster theory. Nature Comm. 15, 10128 (2024). https://dx.doi.org/10.1038/s41467-024-54436-2
Vinod, V. & Zaspel, P. QeMFi: A Multifidelity Dataset of Quantum Chemical Properties of Diverse Molecules. Sci. Data 12, 202 (2025). https://dx.doi.org/10.1038/s41597-024-04247-3
Pinheiro, M., Jr., Zhang, S., Dral, P. O. & Barbatti, M. WS22 database, Wigner Sampling and geometry interpolation for configurationally diverse molecular datasets. Sci. Data 10, 95 (2023). https://dx.doi.org/10.1038/s41597-023-01998-3
86 87 88 89 90 91 92 93 94 95 96 97 98
Yanai, T., Tew, D. P. & Handy, N. C. A new hybrid exchange-correlation functional using the Coulomb-attenuating method (CAM-B3LYP). Chem. Phys. Lett. 393, 51-57 (2004). https://dx.doi.org/10.1016/j.cplett.2004.06.011
Weigend, F. & Ahlrichs, R. Balanced basis sets of split valence, triple zeta valence and quadruple zeta valence quality for H to Rn: Design and assessment of accuracy. Phys. Chem. Chem. Phys. 7, 3297-3305 (2005). https://dx.doi.org/10.1039/b508541a
Seritan, S., Bannwarth, C., Fales, B. S., Hohenstein, E. G., Kokkila-Schumacher, S. I. L., Luehr, N., Snyder, J. W., Jr., Song, C., Titov, A. V., Ufimtsev, I. S. & Martínez, T. J. TeraChem: Accelerating electronic structure and ab initio molecular dynamics with graphical processing units. J. Chem. Phys. 152, 224110 (2020). https://dx.doi.org/10.1063/5.0007615
Seritan, S., Bannwarth, C., Fales, B. S., Hohenstein, E. G., Isborn, C. M., Kokkila-Schumacher, S. I. L., Li, X., Liu, F., Luehr, N., Snyder, J. W., Song, C., Titov, A. V., Ufimtsev, I. S., Wang, L. P. & Martínez, T. J. TeraChem: A graphical processing unit-accelerated electronic structure package for large-scale ab initio molecular dynamics. WIRES: Comput. Mol. Sci. 11, e1494 (2020). https://dx.doi.org/10.1002/wcms.1494
Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z. M., Gimelshein, N., Antiga, L., Desmaison, A., Köpf, A., Yang, E., DeVito, Z., Raison, M., Tejani, A., Chilamkurthy, S., Steiner, B., Fang, L., Bai, J. J. & Chintala, S. PyTorch: An Imperative Style, High-Performance Deep Learning Library. Adv. Neur. Inf. Proc. Sys. 32 (2019). https://dx.doi.org/10.48550/arXiv.1912.01703
Diederik, P. K. & Jimmy, B. Adam: A Method for Stochastic Optimization. International Conference on Learning Representations (2015). https://dx.doi.org/10.48550/arXiv.1412.6980
Conti, I., Garavelli, M. & Orlandi, G. The different photoisomerization efficiency of azobenzene in the lowest nπ* and ππ* singlets: the role of a phantom state. J. Amer. Chem. Soc. 130, 5216-5230 (2008). https://dx.doi.org/10.1021/ja710275e
Nenov, A., Borrego-Varillas, R., Oriana, A., Ganzer, L., Segatta, F., Conti, I., Segarra-Marti, J., Omachi, J., Dapor, M., Taioli, S., Manzoni, C., Mukamel, S., Cerullo, G. & Garavelli, M. UV-Light-Induced Vibrational Coherences: The Key to Understand Kasha Rule Violation in trans-Azobenzene. J. Phys. Chem. Lett. 9, 1534-1541 (2018). https://dx.doi.org/10.1021/acs.jpclett.8b00152
Yu, J. K., Bannwarth, C., Liang, R., Hohenstein, E. G. & Martínez, T. J. Nonadiabatic Dynamics Simulation of the Wavelength-Dependent Photochemistry of Azobenzene Excited to the nπ* and ππ* Excited States. J. Amer. Chem. Soc. 142, 20680-20690 (2020). https://dx.doi.org/10.1021/jacs.0c09056
Bannwarth, C., Yu, J. K., Hohenstein, E. G. & Martínez, T. J. Hole-hole Tamm-Dancoff-approximated density functional theory: A highly efficient electronic structure method incorporating dynamic and static correlation. J. Chem. Phys. 153, 024110 (2020). https://dx.doi.org/10.1063/5.0003985
Grisafi, A. & Ceriotti, M. Incorporating long-range physics in atomic-scale machine learning. J. Chem. Phys. 151, 204105 (2019). https://dx.doi.org/10.1063/1.5128375
Cheng, B. Latent Ewald summation for machine learning of long-range interactions. npj Comput. Mat. 11, 80 (2025). https://dx.doi.org/10.1038/s41524-025-01577-7
Loche, P., Huguenin-Dumittan, K. K., Honarmand, M., Xu, Q., Rumiantsev, E., How, W. B., Langer, M. F. & Ceriotti, M. Fast and flexible long-range models for atomistic machine learning. J. Chem. Phys. 162, 142501 (2025). https://dx.doi.org/10.1063/5.0251713
Monacelli, L. & Marzari, N. Electrostatic interactions in atomistic and machine-learned potentials for polar materials. Phys. Rev. B 113, 094101 (2026). https://dx.doi.org/10.1103/7ygl-8db2
Guo, R., Yu, H., Hong, L., Chen, S., Gong, X. & Xiang, H. Capturing long-range interactions with a reciprocal-space neural network. Phys. Rev. B 113, 174101 (2026). https://dx.doi.org/10.1103/7yn2-22h6
Levine, B. G., Ko, C., Quenneville, J. & Martínez, T. J. Conical intersections and double excitations in time-dependent density functional theory. Mol. Phys. 104, 1039-1051 (2007). https://dx.doi.org/10.1080/00268970500417762
Baker, J., Kessi, A. & Delley, B. The generation and use of delocalized internal coordinates in geometry optimization. J. Chem. Phys. 105, 192-212 (1996). https://dx.doi.org/10.1063/1.471864
Wang, L. P. & Song, C. C. Geometry optimization made simple with translation and rotation coordinates. J. Chem. Phys. 144 (2016). https://dx.doi.org/10.1063/1.4952956
Ben-Nun, M. & Martínez, T. J. Nonadiabatic molecular dynamics: Validation of the multiple spawning method for a multidimensional problem. J. Chem. Phys. 108, 7244-7257 (1998). https://dx.doi.org/10.1063/1.476142
Ben-Nun, M., Quenneville, J. & Martínez, T. J. Ab initio multiple spawning: Photochemistry from first principles quantum molecular dynamics. J. Phys. Chem. A 104, 5161-5175 (2000). https://dx.doi.org/10.1021/jp994174i
Supplementary Materials for Latent unified smooth Hamiltonians for excited state chemistry
David Juergens, Martin Stöhr, Andreas E. Hillers-Bendtsen,
O. Jonathan Fajen, Todd J. Martínez*
*Corresponding author. Email: todd.martinez@stanford.edu
Supplementary Figures
QM9 Training:

Fig. S1: Training LUSH on the QM9 ground state DFT dataset. We trained two LUSH models on the QM9 total potential energy (“U”) prediction task. To normalize the total energies in the dataset, we trained on the quantity , where is the sum of the isolated atomic energies in the molecule (a constant per molecular formula). The models were of identical hyperparameters aside from their hidden dimensions (256, and 128). As seen by the final validation error observed, the ~7.05 million parameter (d=256) model approaches 0.059 eV (~1.36 kcal/mol) in validation set mean absolute error.
S1

Fig. S2: Training LUSH on the QeMFi dataset. Performance on total loss, state energies, state energy gaps, and oscillator strengths while training LUSH on the QeMFi def2-TZVP dataset (135,000 samples from all nine molecules). Train and test datasets were constructed through a 90/10 random split of the full set.
Table S1: Vertical excitation energies (E, in eV) and oscillator strengths (f) for trans- and cis-azobenzene.
| LUSH | FOMO-hh-TDA-BHLYP/def2-SVP | ||||
|---|---|---|---|---|---|
| Isomer | State | E (eV) | f | E (eV) | f |
| trans-Azobenzene | 2.95 | 0.002 | 2.95 | 0.000 | |
| 4.19 | 1.422 | 4.18 | 1.451 | ||
| 5.22 | 0.168 | 5.24 | |||
| - | - | 5.26 | 0.372 | ||
| cis-Azobenzene | 3.11 | 0.162 | 3.19 | 0.175 | |
| 4.77 | 0.247 | 4.88 | 0.270 | ||
| 5.00 | 0.289 | 5.28 | 0.224 | ||
| - | - | 5.53 | 0.422 | ||
S2

Fig. S3: Tracking electronic state crossings with LUSH. Staring from a higher-level reference thymine MECI geometry, optimization on the TDDFT surface was performed. Predictions of excitation energies (left) and oscillator strengths (right) for all geometries from this trajectory were then made with a LUSH model pretrained on the QeMFi def2-TZVP set. Although the geometries from the optimization trajectory were not in the training set, the values predicted by LUSH track closely to TDDFT. Furthermore, LUSH correctly tracks an crossing is observed from frame index 1 to 2, as indicated by the switching of predicted oscillator strengths to match the reference. Note that plots for were omitted for clarity because the oscillator strengths obscure viewing of the oscillator strengths, the plots were omitted because it corresponds to the second to last state produced by the model which has low weight in the loss function in regions of small m to energy gap, and the plots were omitted because it corresponds to the untrained buffer state .
Thymine gaps in QeMFi dataset

Fig. S4: QeMFi Thymine def2/TZVP dataset. A histogram of energy gaps for all 15,000 def2-TZP calculations on thymine in the QeMFi dataset. The smallest energy gap observed in the entire set is 6.53e-03 eV.
S3

Fig. S5: Comparison of LUSH and FOMO-hh-TDA-BHLYP/def2-SVP for azobenzene with reoptimized LUSH scans. (Top and Middle) , , and potential energy surfaces at fixed values of the relaxed according to and , respectively. (Bottom) , , and potential energy surfaces at fixed values of the symmetric angle relaxed according to .
S4
A Twisted geom. energies

B Dihedral angle distribution

C
Proximity to critical geometries

Fig. S6: Proximity of ~781k azobenzene training samples to critical geometries. The training data used to train LUSH on azobenzene is derived from ab initio multiple spawning molecular dynamics (MD) trajectories from randomly sampled initial conditions (ICs). (A) Distribution of sample energies relative to cis-azobenzene (cAB) for all geometries containing CNNC dihedral angle <45°. The vast majority of these samples lie very high in energy above cAB, with the closest sample at 2.7 eV above cAB. (B) Distribution of CNNC dihedral angle within the training set, with the dihedral angles of critical azobenzene geometries labeled. (C) Distribution of the closest (minimum cartesian coordinate RMSD after a symmetry-aware Kabsch alignment) geometry observed across the unique MD trajectories (“per IC”) to each of the critical azobenzene geometries, colored by the electronic state the IC began on. Note that zero geometries within 0.2Å are observed across all data for the cAB, S₁/S₀ reactive conical intersection (CI), and S₂/S₁ twisted CI.
S5
Computation of atomic reference energies
In the current work, there is a unique set of atomic reference energies used for each of the three datasets discussed in the paper (QM9, QeMFi, Azobenzene) as listed in Tab S2. For the QM9 dataset, reference energies for isolated atoms were computed at the Hartree-Fock/cc-pv5z level of theory. For the QeMFi dataset, reference energies are computed by fitting a linear model to map the chemical formula of a molecule to its total potential energy. Specifically, we solve the least squares minimization problem
where is the number of unique atom types being fit, is the number of training geometries, and is the list of target ground state energies for each geometry such that the 'th element of is the energy of the 'th molecule in the dataset, and the composition matrix is
where is the set of atoms in the molecule associated with geometry , is the indicator function, is the atomic number of atom , and is the atomic number corresponding to the element column . Thus, is simply the number of times at atom with atomic number occurs in sample . The minimizer is the final set of reference atomic energies. For the azobenzene dataset, atomic reference energies were computed on single atoms at the ROKS BHLYP/def2-SVP level of theory.
S6
Table S2: Atomic reference energies used for different datasets. QM9: Single atom ground state energies () computed at the Hartree-Fock/cc-pv5z level of theory. QeMFi: from linear fit. azobenzene: from BHLYP/def2-SVP calculations.
| [Hartree] | |||
|---|---|---|---|
| element | QM9 | QeMFi | azobenzene |
| -0.499278403420 | -0.598 | 0.4978398270 | |
| -2.855160477243 | — | — | |
| -7.432420527596 | — | — | |
| 14.572337630953 | — | — | |
| 24.529961624371 | — | — | |
| C | 37.686544437314 | -38.044 | 37.7326788080 |
| N | 54.391114562200 | -54.695 | 54.4145730772 |
| O | 74.792166058284 | -75.129 | 74.8764634879 |
| 99.375240303129 | — | — | |
| 128.488775551741 | — | — | |
| 161.853056693518 | — | — | |
| 199.608297028624 | — | — | |
| 241.873509588698 | — | — | |
| 288.850076566695 | — | — | |
| P | 340.709048059139 | — | — |
| S | 397.496801538240 | — | — |
| 459.471143486021 | — | — | |
| 526.799865309746 | — | — | |
S7