Introduction
Many computational chemistry applications aim to accurately approximate the electronic ground state of molecules and materials. The rapid developments in this field are driven by the abundance of applications enabling the in silico prescreening of potential materials and drugs before moving into resource- and time-intensive laboratory experiments or clinical trials. Since the exact computation of the ground state is intractable for almost all systems of interest, the art of computational chemistry is to find the correct trade-off between accuracy and computational cost for a given application (Szabo & Ostlund, 1996). Contemporary method development pushes this Pareto frontier as far as possible. For many applications, KS-DFT [36 ] is the method of choice [3 , 27 ] . At a high level, its computational efficiency can be attributed to its lower-dimensional representation of the ground state based on the electron density ρ : R 3 → [ 0 , ∞ ) \rho: \mathbb{R}^{3} \to[0, \infty) ρ : R 3 → [ 0 , ∞ ) , compared to wavefunction methods ψ : R N e l e c × 3 → C \psi: \mathbb{R}^{N_{\mathrm{elec}}\times3} \to\mathbb{C} ψ : R N elec × 3 → C [14 ] .
Ground-state descriptor models (GSMs) predicting the Hamiltonian or density matrix have been investigated as a means to accelerate [16 ] (Liu et al. 2026) or completely circumvent (Schütt et al., 2019) the computationally demanding iterative solvers which drive KS-DFT calculations (Lehtola et al., 2020a). These solvers use finite basis sets to discretize the governing equations of KS-DFT, which yields a generalized eigenvalue problem (gEVP) (Roothaan, 1951). Present state-of-the-art GSMs are not well-aligned with the goal of learning physical ground states , motivating the following contributions:
Current literature has converged on supervising GSMs on the matrix representations of the gEVP (§ 3 ) measuring matrix errors in a non-orthonormal (NON) basis, whose spectral weighting is ill-aligned with physical observables. We show mathematically and empirically how OrthoNormal-Loss (ON-Loss) cures this by measuring errors in an orthonormal (ON) basis.
On the problem side of the gEVP, entire families of Hamiltonian matrices yield the same ground state. The established loss formulation views these physically equivalent Hamiltonians as different targets. We systematically treat this invariance w.r.t. changes in the Hamiltonian by introducing Residual Optimal-gauge Conditioning-aware KS-Eq. Training (ROCKET) .
On the solution side, physically valid density matrices are constrained to a manifold (the Grassmannian ), but existing readout heads predict in the entire ambient space of matrices. We introduce Grassmann Restricted Occupied-Orbital Training (GROOT) , a matrix readout for S O ( 3 ) SO(3) S O ( 3 ) -equivariant graph neural networks (GNNs) that restricts predictions to valid densities, removing the leading order energy error term compared to unconstrained baselines.
We develop a practical framework under a strict budget of one Fock build , the cost-dominant operation of KS-DFT. For this, we adopt a computationally cheap first-order energy correction , identify a GSM-native uncertainty measure for rejecting unreliable predictions, and generalize self-consistency training (Zhang et al., 2024) for label-free fine-tuning of foundational GSMs to new chemical domains such as transition states. These constitute key advantages of GSMs over MLIPs that might justify their increased evaluation costs for some applications.
At this single Fock-build budget, the evaluation costs of GSMs are in between MLIPs and machine-learned (ML) approaches that require multiple Fock builds [15 , 23 , 17 , 33 , 34 ] (Luise et al. 2026). In our size extrapolation experiments on QMugs, we train on molecules with at most 150 electrons and evaluate up to 660 electrons (Figure 3 ). Here, ON-Loss alone reduces energy, force, dipole and density errors by 87–99% for density GSMs and by 93–99.5% for Hamiltonian GSMs. GROOTp r o j _{\mathrm{proj}} proj and ROCKET compound on top of that, reaching 99.6% and 99.9% lower energy errors than the NON baselines. At 0.21 and 0.56 mHa (without rejections), their mean energy errors lie below chemical accuracy and are 14 and 5 times lower than the best energy-trained MLIP, while they reject fewer than 0.4% of predictions. Using the predicted ground states as self-consistent field (SCF) initial guesses reduces the number of solver iterations needed to converge. For the QM9-trained models evaluated on OM40, ON-Loss lowers the density GSM’s Effective Relative Iteration Count (ERIC) [16 ] from 0.82 to 0.70, and GROOT lowers it further to 0.67, a third fewer iterations than the traditional MINAO initial guess. After label-free self-consistency fine-tuning on Transition1x (Schreiner et al., 2022), the QMugs-trained GROOTp r o j _{\mathrm{proj}} proj and ROCKET reach energy errors of 0.66 and 0.74 mHa, below chemical accuracy, while rejecting fewer than 1% of predictions.
Figure 3. GROOT and ROCKET show robust extrapolation, and can be equipped with GSMs-specific error indicators (Table 28 ). GSMs and MLIPs trained on QMugs molecules with at most 150 electrons and evaluated on systems with up to 660 electrons. The table shows the fraction of molecules rejected by the self-consistency criterion and the observable errors of the remaining molecules, with the MAE including the rejected predictions in brackets below. Compared to linear scaling MLIPs like PaiNN (Schütt et al., 2021), NequIP (Batzner et al., [6 ] ), and MACE (Batatia et al., [5 ] ) trained on energies only (meaning at equal reference compute budget), GROOTp r o j _{\mathrm{proj}} proj achieves an order of magnitude better energies, rejecting less than 1% of its own predictions, characterizing the achievable cost-accuracy trade-off of GSMs compared to MLIPs. The ERIC (Eberhard et al., [16 ] ) relative to MINAO shows that our density models yield additional SCF acceleration over the baselines. Observable MAEs vs. electron count. GROOT and ROCKET stay orders of magnitude below the L N O N \mathcal{L}_{\mathrm{NON}} L NON baselines with the margin widening as the system size increases.
Background
The governing equation of KS-DFT in finite basis sets { χ μ ( r ) } μ = 1 B \{\chi_\mu(\mathbf{r})\}_{\mu=1}^{B} { χ μ ( r ) } μ = 1 B is a gEVP of the Hamiltonian H ∈ R B × B \mathbf{H} \in\mathbb{R}^{B \times B} H ∈ R B × B and overlap matrix S μ ν = ∫ R 3 χ μ ( r ) χ ν ( r ) d r S_{\mu\nu} = \int_{\mathbb{R}^{3}} \chi_\mu(\mathbf{r})\chi_\nu(\mathbf{r})\,\mathrm{d}\mathbf{r} S μν = ∫ R 3 χ μ ( r ) χ ν ( r ) d r , with solutions (eigenvectors) C ∈ R B × B \mathbf{C} \in\mathbb{R}^{B \times B} C ∈ R B × B
H C = S C diag ( ϵ i ) . (1) \mathbf{H}\mathbf{C} = \mathbf{S}\mathbf{C}\operatorname{diag}(\epsilon_i). \tag*{(1)} HC = SC diag ( ϵ i ) . (1)
In this context, the solutions are also known as molecular orbitals C \mathbf{C} C . For further details and the connection of Eq. (1) to the underlying continuous theory, we refer to App. A and Lehtola et al. (2020a). By convention, the eigenvalues ϵ i \epsilon_i ϵ i (orbital energies ) are enumerated ascendingly. The O = N e l e c / 2 O = N_{\mathrm{elec}}/2 O = N elec /2 lowest eigenvectors (columns of C \mathbf{C} C ) form the occupied block C O ∈ R B × O \mathbf{C}_{O} \in\mathbb{R}^{B \times O} C O ∈ R B × O , while the remaining V = B − O V = B - O V = B − O are virtual . The density matrix
P μ ν = ( C O C O T ) μ ν = ∑ i = 1 O C μ i C ν i (2) P_{\mu\nu} = (\mathbf{C}_{O}\mathbf{C}_{O}^{\mathsf{T}})_{\mu\nu} = \sum_{i=1}^{O} C_{\mu i}C_{\nu i} \tag*{(2)} P μν = ( C O C O T ) μν = i = 1 ∑ O C μ i C ν i (2)
encodes the electron density in the finite basis. The Hamiltonian H \mathbf{H} H depends on the density matrix P \mathbf{P} P , which in turn depends on the coefficients C \mathbf{C} C , so Eq. (1) is non-linear. It can be linearized by iteratively solving for C t \mathbf{C}_{t} C t given H t − 1 : = H ( P ( C t − 1 ) ) \mathbf{H}_{t-1} := \mathbf{H}(\mathbf{P}(\mathbf{C}_{t-1})) H t − 1 := H ( P ( C t − 1 )) , which reduces the original problem to the iterative solution of the gEVP (Eq. (1) ) Roothaan, 1951. This approach requires an initial guess P ( 0 ) \mathbf{P}^{(0)} P ( 0 ) to start the iteration. The Superposition of Atomic Densities (SAD) method and its minimal-basis variant MINAO construct such a guess in density space by combining spherically averaged atomic density matrices [2 ] (Van Lenthe et al. 2006). The ground state C ∗ \mathbf{C}^{*} C ∗ is a fixed point of the iterative solver, and all three matrices C ∗ \mathbf{C}^{*} C ∗ , P ∗ \mathbf{P}^{*} P ∗ , and H ∗ \mathbf{H}^{*} H ∗ are complete descriptors allowing access to all observables of the ground state. These matrices are commonly represented in atom-centered basis sets, which are non-orthonormal (NON) S ≠ I \mathbf{S} \ne\mathbf{I} S = I . We can perform a change of basis χ ~ μ ( r ) = ∑ ν = 1 B χ ν ( r ) ( S − 1 / 2 ) ν μ \widetilde{\chi}_{\mu}(\mathbf{r}) = \sum_{\nu=1}^{B} \chi_{\nu}(\mathbf{r})(\mathbf{S}^{-1/2})_{\nu\mu} χ μ ( r ) = ∑ ν = 1 B χ ν ( r ) ( S − 1/2 ) ν μ , to obtain orthonormal (ON) basis representations
C ~ = S 1 / 2 C , P ~ = S 1 / 2 P S 1 / 2 , H ~ = S − 1 / 2 H S − 1 / 2 , S ~ = I , (3) \widetilde{\mathbf{C}} = \mathbf{S}^{1/2}\mathbf{C}, \qquad\widetilde{\mathbf{P}} = \mathbf{S}^{1/2}\mathbf{P}\mathbf{S}^{1/2}, \qquad\widetilde{\mathbf{H}} = \mathbf{S}^{-1/2}\mathbf{H}\mathbf{S}^{-1/2}, \qquad\widetilde{\mathbf{S}} = \mathbf{I}, \tag*{(3)} C = S 1/2 C , P = S 1/2 P S 1/2 , H = S − 1/2 H S − 1/2 , S = I , (3)
which reduce the gEVP to the regular eigenvalue problem H ~ C ~ = C ~ diag ( ϵ i ) \widetilde{\mathbf{H}}\widetilde{\mathbf{C}} = \widetilde{\mathbf{C}}\operatorname{diag}(\epsilon_i) H C = C diag ( ϵ i ) Löwdin, 1950.
Infinitely many representations ( H , C ) (\mathbf{H}, \mathbf{C}) ( H , C ) encode the same physical ground state. Only the density matrix P \mathbf{P} P is in one-to-one correspondence with this state. On the problem side of Eq. (1) , for Hamiltonians H \mathbf{H} H , one can identify constant shifts
H ~ ↦ H ~ + c I , c ∈ R (4) \widetilde{\mathbf{H}} \mapsto\widetilde{\mathbf{H}} + c\mathbf{I}, \qquad c \in\mathbb{R} \tag*{(4)} H ↦ H + c I , c ∈ R (4)
as a degree of freedom, leaving the eigenvectors C \mathbf{C} C invariant. Similarly, so-called virtual level shifts H ~ ξ : = H ~ ∗ + ξ ( I − P ~ ∗ ) \widetilde{\mathbf{H}}_{\xi} := \widetilde{\mathbf{H}}^{*} + \xi(\mathbf{I} - \widetilde{\mathbf{P}}^{*}) H ξ := H ∗ + ξ ( I − P ∗ ) , for an arbitrary ξ ≥ 0 \xi\ge0 ξ ≥ 0 only increase the eigenvalues of the virtual block C ~ V \widetilde{\mathbf{C}}_{V} C V by ξ \xi ξ . Both of these operations leave C \mathbf{C} C and hence P \mathbf{P} P unchanged. On the solution side of Eq. (1) , we note that the solution space C \mathbf{C} C carries considerably more degrees of freedom than the density matrix P \mathbf{P} P it yields. In the mapping C ↦ P \mathbf{C} \mapsto\mathbf{P} C ↦ P in Eq. (2) , the virtual block C V \mathbf{C}_{V} C V never enters and is discarded right away. Additionally, the occupied columns C O \mathbf{C}_{O} C O themselves are not unique and can be multiplied with an arbitrary orthogonal matrix U O O ∈ O ( O ) \mathbf{U}_{OO} \in O(O) U O O ∈ O ( O ) without changing the density
P ~ ′ = C ~ O ′ ( C ~ O ′ ) T = ( C ~ O U O O ) ( C ~ O U O O ) T = C ~ O U O O U O O T C ~ O T = P ~ , (5) \widetilde{\mathbf{P}}' = \widetilde{\mathbf{C}}'_{O}(\widetilde{\mathbf{C}}'_{O})^{\mathsf{T}} = (\widetilde{\mathbf{C}}_{O}\mathbf{U}_{OO})(\widetilde{\mathbf{C}}_{O}\mathbf{U}_{OO})^{\mathsf{T}} = \widetilde{\mathbf{C}}_{O}\mathbf{U}_{OO}\mathbf{U}_{OO}^{\mathsf{T}}\widetilde{\mathbf{C}}_{O}^{\mathsf{T}} = \widetilde{\mathbf{P}}, \tag*{(5)} P ′ = C O ′ ( C O ′ ) T = ( C O U O O ) ( C O U O O ) T = C O U O O U O O T C O T = P , (5)
and the same holds for the virtual slice C ~ V \widetilde{\mathbf{C}}_{V} C V . Whole families of Hamiltonian H \mathbf{H} H and coefficient matrices C \mathbf{C} C collapse onto the same physical density P \mathbf{P} P . What distinguishes one ground state from another is the O O O -dimensional subspace spanned by their occupied columns span { c i ∣ i = 1 , 2 , … , N e l e c / 2 } \operatorname{span}\{c_i \mid i = 1, 2, \ldots, N_{\mathrm{elec}}/2\} span { c i ∣ i = 1 , 2 , … , N elec /2 } . The smallest problem instance B = 3 B = 3 B = 3 and O = 2 O = 2 O = 2 is intuitively clear. In this case, the density is a plane through the origin of R 3 \mathbb{R}^{3} R 3 . Any two eigenvectors c 1 , c 2 c_1, c_2 c 1 , c 2 lying in that plane span it equally well. Predicting a density means predicting this subspace.
To constrain a model, we need to transfer this subspace criterion to the space of density matrices P \mathbf{P} P . The orthonormality of the occupied orbitals, C ~ O T C ~ O = I O \widetilde{\mathbf{C}}_{O}^{\mathsf{T}}\widetilde{\mathbf{C}}_{O} = \mathbf{I}_{O} C O T C O = I O , inserted into Eq. (2) , gives P ~ 2 = C ~ O ( C ~ O T C ~ O ) C ~ O T = P ~ \widetilde{\mathbf{P}}^{2} = \widetilde{\mathbf{C}}_{O}(\widetilde{\mathbf{C}}_{O}^{\mathsf{T}}\widetilde{\mathbf{C}}_{O})\widetilde{\mathbf{C}}_{O}^{\mathsf{T}} = \widetilde{\mathbf{P}} P 2 = C O ( C O T C O ) C O T = P , so P ~ \widetilde{\mathbf{P}} P is idempotent with its eigenvalues either 0 or 1. The trace condition Tr ( P ~ ) = O \operatorname{Tr}(\widetilde{\mathbf{P}}) = O Tr ( P ) = O fixes their multiplicities to O O O ones and V V V zeros. Idempotency is not only a consequence of the construction but a complete test of it, because any symmetric idempotent matrix of the right trace factorizes back into an orthonormal occupied block McWeeny, 1960. Thus, the set of valid density matrices is exactly
M ( N e l e c , B ) ≡ { P ~ ∈ R B × B | P ~ T = P ~ , P ~ 2 = P ~ , Tr ( P ~ ) = N e l e c / 2 } , (6) \mathcal{M}_{(N_{\mathrm{elec}},B)} \equiv\left\{ \widetilde{\mathbf{P}} \in\mathbb{R}^{B \times B} \,\middle|\, \widetilde{\mathbf{P}}^{\mathsf{T}} = \widetilde{\mathbf{P}},\ \widetilde{\mathbf{P}}^{2} = \widetilde{\mathbf{P}},\ \operatorname{Tr}(\widetilde{\mathbf{P}}) = N_{\mathrm{elec}}/2 \right\}, \tag*{(6)} M ( N elec , B ) ≡ { P ∈ R B × B P T = P , P 2 = P , Tr ( P ) = N elec /2 } , (6)
This set is the Grassmann manifold . Its dimension is the B O BO B O entries of C ~ O \widetilde{\mathbf{C}}_{O} C O , minus O ( O + 1 ) / 2 O(O+1)/2 O ( O + 1 ) /2 orthonormality conditions, minus O ( O − 1 ) / 2 O(O-1)/2 O ( O − 1 ) /2 mixing directions [19 , 1 ] . Hence, learning valid density matrices P ∈ R B × B \mathbf{P} \in\mathbb{R}^{B \times B} P ∈ R B × B is an O V OV O V -dimensional prediction task.
Related Work
ML-surrogates for ground-state observables prediction based on equivariant GNNs have been a key ingredient for recent advances in computational chemistry (Kulichenko et al., 2024; Wood et al., 2025). MLIPs are the most widely adopted of these surrogates. They predict the energy as a function of the molecular geometry G = { ( Z a , r a ) } a = 1 N a t o m s G = \{(Z_a, r_a)\}_{a=1}^{N_{\mathrm{atoms}}} G = {( Z a , r a ) } a = 1 N atoms , G ↦ E ( G ) ∈ R G \mapsto E(G) \in\mathbb{R} G ↦ E ( G ) ∈ R in linear time with respect to system size (Schütt et al., 2018). These methods have demonstrated high accuracy and generalizability for a wide range of molecular systems (Kovács et al., 2023; Jacobs et al., 2025; Burger et al., 2025a;b; Koker et al., 2025) and are typically trained on KS-DFT reference data (Kulichenko et al., 2024). Another modeling ansatz focuses on predicting the fundamental descriptors of KS-DFT , aiming either at the Hamiltonian H ∈ R B × B H \in\mathbb{R}^{B \times B} H ∈ R B × B or the density matrix P ∈ R B × B P \in\mathbb{R}^{B \times B} P ∈ R B × B , i.e., G ↦ H ( G ) , P ( G ) G \mapsto H(G), P(G) G ↦ H ( G ) , P ( G ) (Schütt et al., 2019; Yu et al., 2023b). From these descriptors, the computation of almost all observables, such as energy, forces, and dipole moments, requires at most one Fock build. In particular, these models can be used to accelerate SCF calculations used to solve Eq. (1) [16 ] (Liu et al. 2026). A substantial body of work has built on QH9 (Yu et al., 2023a), a QM9-based (Ramakrishnan et al., 2014) benchmark for molecular Hamiltonian prediction. However, with recent models reporting energy errors more than two orders of magnitude below chemical accuracy [34 ] the benchmark has reached saturation. QH9’s restriction to very small molecules limits its ability to assess size extrapolation to larger molecules, a shortcoming highlighted by recent studies [16 ] (Li et al. 2025b). Kaniselvan et al. [32 ] have connected GSMs to MLIPs, using Hamiltonians for pretraining, and finetuning with an energy readout head. Zhang et al. (2026) propose to evaluate observables directly from the predicted density. Kim et al. [34 ] do the same for the Hamiltonian, matching the force accuracy of MLIPs on in-distribution MD-trajectories albeit at higher computational cost, requiring two Fock builds, one for H ( P M I N A O ) H(P_{\mathrm{MINAO}}) H ( P MINAO ) Δ \Delta Δ -learning [16 ] and a second for the observable evaluation. We compare the observables of all GSMs at a one Fock-build budget starting from the molecular geometry.
Predicting and supervising the electronic ground state in the NON basis representation is the de-facto standard approach of the field (Schütt et al., 2019; Unke et al., 2021; Li et al., 2022; 2025b; Shmilovich et al., 2022; Gong et al., 2023; Yu et al., 2023a;b; Zhong et al., 2023; Hazra et al., 2024; Wang et al., 2024; Zhang et al., 2024; Febrer et al., 2025; Kim et al., 2025; 2026; Liao et al., 2025; Zhou et al., 2025; Eberhard et al., 2026a; Kaniselvan et al., 2026; Liu et al., 2026; Qian et al., 2026). Predicting in the NON basis is well-motivated by its spatial localization relative to the ON alternative in Eq. (3) [32 ] (Li et al. 2022), although this argument is mainly valid for absolute Hamiltonian predictions, less so for Δ \Delta Δ -learning, and not at all for densities (See App. G). Supervising model outputs in the NON basis lacks a similar justification, and Kaniselvan et al. [32 ] report that matrix-element errors correlate only weakly with resulting eigenvalue errors in the NON basis, and we observe the same for downstream observables (App. N.1). In the few works that do supervise in the ON basis [13 ] (Nigam et al. 2022; Zhang et al. 2026), the implications of ON supervision for physical observables remain poorly understood (Nigam et al., 2022), which might explain the lack of adoption. More recently, Li et al. (2025b) introduce an ON Hamiltonian loss-term, but perturb it (App. F), and combine it with conventional NON-supervision. We aim to close this gap by directly comparing ON-Loss and the NON-baseline analytically via worst-case observable error bounds (Sec. 4) and empirically via correlations between loss residuals and observable errors (Sec. 5), providing conclusive evidence in favor of ON-basis supervision.
Unrestricted density prediction in the space of symmetric matrices provides no guarantee for the physicality of P ^ ∉ M ( N e l e c , B ) \hat{P} \notin\mathcal{M}_{(N_{\mathrm{elec}},B)} P ^ ∈ / M ( N elec , B ) . One way to restore the validity is to purify P ^ \hat{P} P ^ post-hoc (Lehtola, 2019), either by projecting onto $\mathcal{M}_{(N_{\mathrm{elec}},B)} {citep}(Zhang et al., 2026) or by charge rescaling (charge conservation) and McWeeny purification {citep}(Yescas-Ramos et al., 2026), which only works within a basin of attraction {citep}(McWeeny, 1960). **Neither incorporates the constraint into the model**, correcting only at evaluation time {citep}(Zhang et al., 2026) or adding trace and idempotency loss terms {citep}(Yescas-Ramos et al., 2026). In contrast, **GROOT$_{\mathrm{rot}}$ learns to transport an initial guess to the ground state $P^* \in \mathcal{M}_{(N_{\mathrm{elec}},B)}$ end-to-end** (Sec. 4), while **GROOT$_{\mathrm{proj}}$ includes the manifold projection in its parameter gradient computations.** The Hamiltonian-side degree of freedom of the gEVP {xref}(1) has been addressed for periodic structures {citep}(Wang et al., 2024; Yin et al., 2025)`. The molecular Hamiltonian losses in previous work leave this degree of freedom untreated, such that the model allocates expressivity to fit a component that no derived observable constrains. ROCKET combines Δ \Delta Δ -learning with a per-sample shift-invariant loss for molecular Hamiltonians (Sec. 4).
Methods
ON-Loss. When learning ground-state descriptors X ∈ { H , P } X \in\{\mathbf{H},\mathbf{P}\} X ∈ { H , P } , we aim to train on a loss that closely tracks the observable errors in the vicinity of the ground state. The tightest target-specific supervision is achieved by directly training on the observables. Although suitable for task-specific readouts used in MLIPs (§ 3 ), this ansatz deviates from the goal of learning general descriptors that support observables that are unspecified at training time. Instead, we propose to minimize the Frobenius norm of matrix errors Δ X = X ^ − X ∗ \Delta X = \hat{X} - X^{*} Δ X = X ^ − X ∗ in their ON-basis representation (Eq. (3) )
L O N ( Δ X , S ) ≡ L O N ( Δ X ~ ) : = ∥ Δ X ~ ∥ F B . (7) \mathcal{L}_{\mathrm{ON}}(\Delta X,S) \equiv\mathcal{L}_{\mathrm{ON}}(\widetilde{\Delta X}) := \frac{\lVert\widetilde{\Delta X}\rVert_{F}}{B}. \tag*{(7)} L ON ( Δ X , S ) ≡ L ON ( Δ X ) := B ∥ Δ X ∥ F . (7)
This contrasts the standard approach of prior work, which directly supervises Δ X \Delta X Δ X in the non-orthonormal NON-basis (§ 3 ). The overlap matrix S \mathbf{S} S mediates between matrix-errors Δ X \Delta X Δ X and observable-errors (Table 1 ). Its eigenvalues satisfy 0 < λ min ≤ 1 ≤ λ max 0 < \lambda_{\min} \le1 \le\lambda_{\max} 0 < λ m i n ≤ 1 ≤ λ m a x (Eq. (19) ) and act as a proxy for the relative importance of each direction w.r.t. physical observables, such that the spectrum λ ( S ) \lambda(\mathbf{S}) λ ( S ) emphasizes some matrix-error directions more than others. These spectral factors only vanish in ON-bases S = I \mathbf{S} = \mathbf{I} S = I where the loss→ \to → observable error-propagation becomes approximately isotropic, which we also confirm empirically in § 5 .
Table 1. Worst-case leading-order observable errors in terms of matrix errors. λ min \lambda_{\min} λ m i n and λ max \lambda_{\max} λ m a x are the extreme eigenvalues of the overlap matrix S \mathbf{S} S for a given molecule, and Δ ϵ H L \Delta\epsilon_{\mathrm{HL}} Δ ϵ HL its HOMO-LUMO gap. The overlap factors are the worst-case conversion factors from non-orthonormal to orthonormal matrix errors, attained along the extreme overlap eigenvectors. Derivations are in App. § 11 .
Constraining density GSMs to the manifold M ( N e l e c , B ) \mathcal{M}_{(N_{\mathrm{elec}},B)} M ( N elec , B ) guarantees the physical validity of their predictions P ^ \hat{\mathbf{P}} P ^ and further tightens the observable error bounds. While the dipole, L 1 L_{1} L 1 and L 2 L_{2} L 2 real-space density errors remain linear, the total-energy error becomes quadratic in ∥ Δ P ~ ∥ F 2 \lVert\Delta\widetilde{\mathbf{P}}\rVert_{F}^{2} ∥ Δ P ∥ F 2 (Table 1 ). A priori, neither the initial guess nor the learned predictions are restricted to the Grassmannian. We therefore introduce Grassmann Restricted Occupied-Orbital Training (GROOT) to predict densities that lie on the Grassmannian manifold by construction. Following Lehtola (2019), we define an idempotent projection map R : P ↦ C O ( P ) C O ( P ) T ∈ M ( N e l e c , B ) \mathcal{R}:\mathbf{P}\mapsto\mathbf{C}_{O}^{(\mathbf{P})}\mathbf{C}_{O}^{(\mathbf{P})\mathsf{T}}\in\mathcal{M}_{(N_{\mathrm{elec}},B)} R : P ↦ C O ( P ) C O ( P ) T ∈ M ( N elec , B ) that purifies any candidate density matrix. Given an arbitrary trial density P \mathbf{P} P , we diagonalize it in the orthonormal basis to extract its eigenvectors C ( P ) \mathbf{C}^{(\mathbf{P})} C ( P ) , retaining the O O O eigenvectors C O ( P ) \mathbf{C}_{O}^{(\mathbf{P})} C O ( P ) corresponding to the largest eigenvalues. This yields the valid density matrix closest to P \mathbf{P} P in the Frobenius norm (Eckart & Young [18 ] ). We evaluate the two approaches for predicting valid density matrices (GROOTr o t _{\mathrm{rot}} rot , GROOTp r o j _{\mathrm{proj}} proj ), using R \mathcal{R} R either as a pre- or postprocessing step. GROOTr o t _{\mathrm{rot}} rot is a one-step flow map (Boffi et al., [9 ] ) that first projects the initial guess P 0 = R ( P M I N A O ) \mathbf{P}_{0}=\mathcal{R}(\mathbf{P}_{\mathrm{MINAO}}) P 0 = R ( P MINAO ) and then learns the constant velocity X ^ \hat{\mathbf{X}} X ^ , Eq. (34) , of the flow
d d t P ( t ) = [ X ^ , P ( t ) ] = X ^ P ( t ) − P ( t ) X ^ , P ( 0 ) = P 0 . (8) \frac{\mathrm{d}}{\mathrm{d}t}\mathbf{P}(t)=\left[\hat{\mathbf{X}},\mathbf{P}(t)\right]=\hat{\mathbf{X}}\mathbf{P}(t)-\mathbf{P}(t)\hat{\mathbf{X}},\quad\mathbf{P}(0)=\mathbf{P}_{0}. \tag*{(8)} d t d P ( t ) = [ X ^ , P ( t ) ] = X ^ P ( t ) − P ( t ) X ^ , P ( 0 ) = P 0 . (8)
This flow equation has a closed-form solution P ( t ) = exp ( t X ^ ) P 0 exp ( − t X ^ ) \mathbf{P}(t)=\exp(t\hat{\mathbf{X}})\mathbf{P}_{0}\exp(-t\hat{\mathbf{X}}) P ( t ) = exp ( t X ^ ) P 0 exp ( − t X ^ ) that transports the initial projection P 0 \mathbf{P}_{0} P 0 to the predicted density P ( 1 ) = P ^ \mathbf{P}(1)=\hat{\mathbf{P}} P ( 1 ) = P ^ (Sakurai & Napolitano, 2020). The underlying transformation of the initial guess corresponds to a rotation U ^ ( t ) = exp ( t X ^ ) ∈ S O ( B ) \hat{\mathbf{U}}(t)=\exp(t\hat{\mathbf{X}})\in SO(B) U ^ ( t ) = exp ( t X ^ ) ∈ S O ( B ) and preserves the Grassmannian constraints of Eq. (6) . These transformations U \mathbf{U} U are also referred to as orbital rotations in this context. Wong (1967) showed that any two densities on M ( N e l e c , B ) \mathcal{M}_{(N_{\mathrm{elec}},B)} M ( N elec , B ) are connected by pure mixing rotations. At the initial guess P 0 \mathbf{P}_{0} P 0 these are generated by skew-symmetric matrices X ^ T = − X ^ \hat{\mathbf{X}}^{\mathsf{T}}=-\hat{\mathbf{X}} X ^ T = − X ^ that anticommute with the reflection R 0 = 2 P 0 − I \mathbf{R}_{0}=2\mathbf{P}_{0}-\mathbf{I} R 0 = 2 P 0 − I , i.e. X ^ R 0 = − R 0 X ^ \hat{\mathbf{X}}\mathbf{R}_{0}=-\mathbf{R}_{0}\hat{\mathbf{X}} X ^ R 0 = − R 0 X ^ . We map any equivariant readout-head output M ^ \hat{\mathbf{M}} M ^ to satisfy these conditions by applying X ^ ( M ^ ) = P 0 M ^ Π 0 − Π 0 M ^ T P 0 \hat{\mathbf{X}}(\hat{\mathbf{M}})=\mathbf{P}_{0}\hat{\mathbf{M}}\mathbf{\Pi}_{0}-\mathbf{\Pi}_{0}\hat{\mathbf{M}}^{\mathsf{T}}\mathbf{P}_{0} X ^ ( M ^ ) = P 0 M ^ Π 0 − Π 0 M ^ T P 0 , where Π 0 ≡ I − P 0 \mathbf{\Pi}_{0}\equiv\mathbf{I}-\mathbf{P}_{0} Π 0 ≡ I − P 0 is the projector onto the virtual orbitals. Since the unit-time map P ( 1 ) \mathbf{P}(1) P ( 1 ) is available in closed form, we can bypass numerical ODE integration by directly supervising the prediction P ^ \hat{\mathbf{P}} P ^ against the target density. (For details, see App. B.) GROOTp r o j _{\mathrm{proj}} proj enforces validity by projecting the symmetrized matrix readout M ^ \hat{\mathbf{M}} M ^ to the Grassmannian manifold P ^ = R ( P M I N A O + 1 2 ( M ^ + M ^ T ) ) \hat{\mathbf{P}}=\mathcal{R}(\mathbf{P}_{\mathrm{MINAO}}+\frac{1}{2}(\hat{\mathbf{M}}+\hat{\mathbf{M}}^{\mathsf{T}})) P ^ = R ( P MINAO + 2 1 ( M ^ + M ^ T )) with the parameter gradients flowing through R \mathcal{R} R .
ROCKET is a loss function for Hamiltonian learning. Unlike GROOT which enforces additional physical constraints, ROCKET lifts optimization pressure from unphysical or irrelevant degrees of freedom. **ROCKET systematically treats gauge freedoms of H ^ \hat{\mathbf{H}} H ^ , meaning transformations of H ^ \hat{\mathbf{H}} H ^ which leave the coefficients C ^ : = C ( H ^ ) \hat{\mathbf{C}} := \mathbf{C}(\hat{\mathbf{H}}) C ^ := C ( H ^ ) unchanged. In the ON-basis, one such transformation is H ~ ↦ H ~ + c I \tilde{\mathbf{H}} \mapsto\tilde{\mathbf{H}} + c\mathbf{I} H ~ ↦ H ~ + c I which only shifts the eigenvalues ϵ i \epsilon_i ϵ i but does not affect the eigenvectors C ~ \tilde{\mathbf{C}} C ~ . We transfer this invariance to ON-Loss (Eq. (7) ) using a closed-form minimizer c ∗ = ∑ μ Δ H ~ μ μ / B c^* = \sum_\mu\Delta\tilde{H}_{\mu\mu}/B c ∗ = ∑ μ Δ H ~ μμ / B and obtain
L R O C K E T (1st stage) ( Δ H ~ ) : = min c L O N ( Δ H ~ − c I ) . (9) \mathcal{L}_{\mathrm{ROCKET}}^{\text{(1st stage)}}(\Delta\tilde{\mathbf{H}}) := \min_c \mathcal{L}_{\mathrm{ON}}(\Delta\tilde{\mathbf{H}} - c\mathbf{I}) . \tag*{(9)} L ROCKET (1st stage) ( Δ H ~ ) := c min L ON ( Δ H ~ − c I ) . (9)
This leaves a flat c S c\mathbf{S} c S loss-direction for every molecule. A pure data-normalization ansatz with a training-set-optimal gauge c t c_t c t and a standard matrix loss would strictly penalize gauge variation between molecules, while Eq. (9) permits arbitrary gauge variation. In between these extremes
L R O C K E T (2nd stage) ( Δ H ~ ) : = L R O C K E T (1st stage) ( Δ H ~ ) + α R O C K E T ( c ∗ − c ˉ ) 2 (10) \mathcal{L}_{\mathrm{ROCKET}}^{\text{(2nd stage)}}(\Delta\tilde{\mathbf{H}}) := \mathcal{L}_{\mathrm{ROCKET}}^{\text{(1st stage)}}(\Delta\tilde{\mathbf{H}}) + \alpha_{\mathrm{ROCKET}}(c^*-\bar{c})^2 \tag*{(10)} L ROCKET (2nd stage) ( Δ H ~ ) := L ROCKET (1st stage) ( Δ H ~ ) + α ROCKET ( c ∗ − c ˉ ) 2 (10)
softly restrains cross-molecule variation along the gauge direction, which performs best on our validation ablation (App. L.§ 3 ). The reference gauge c ˉ \bar{c} c ˉ in Eq. (10) is an exponential moving average (EMA) of the per-molecule optimal shifts c ∗ c^* c ∗ . Additionally, we remove supervision from Hamiltonian directions that do not affect the lowest O + k O+k O + k eigenvectors C O + k ( H ^ ) \mathbf{C}_{O+k}(\hat{\mathbf{H}}) C O + k ( H ^ ) , leaving P ( C ( H ^ ) ) \mathbf{P}(\mathbf{C}(\hat{\mathbf{H}})) P ( C ( H ^ )) unchanged. We define the matrix Q ~ O + k \tilde{\mathbf{Q}}_{O+k} Q ~ O + k that projects onto the lowest O + k O+k O + k reference eigenvectors as Q ~ O + k : = C ~ O + k ∗ C ~ O + k ∗ ⊤ \tilde{\mathbf{Q}}_{O+k} := \tilde{\mathbf{C}}^*_{O+k}\tilde{\mathbf{C}}^{*\top}_{O+k} Q ~ O + k := C ~ O + k ∗ C ~ O + k ∗ ⊤ , and mask out errors entirely within its orthogonal complement
Δ H ~ O + k : = Δ H ~ − ( I − Q ~ O + k ) Δ H ~ ( I − Q ~ O + k ) . (11) \Delta\tilde{\mathbf{H}}_{O+k} := \Delta\tilde{\mathbf{H}} - (\mathbf{I} - \tilde{\mathbf{Q}}_{O+k})\Delta\tilde{\mathbf{H}}(\mathbf{I} - \tilde{\mathbf{Q}}_{O+k}). \tag*{(11)} Δ H ~ O + k := Δ H ~ − ( I − Q ~ O + k ) Δ H ~ ( I − Q ~ O + k ) . (11)
Plugging this into Eq. (10) yields the 3rd and final stage of ROCKET
L R O C K E T (3rd stage) ( Δ H ~ ) : = L R O C K E T (2nd stage) ( Δ H ~ O + k ) . (12) \mathcal{L}_{\mathrm{ROCKET}}^{\text{(3rd stage)}}(\Delta\tilde{\mathbf{H}}) := \mathcal{L}_{\mathrm{ROCKET}}^{\text{(2nd stage)}}(\Delta\tilde{\mathbf{H}}_{O+k}) . \tag*{(12)} L ROCKET (3rd stage) ( Δ H ~ ) := L ROCKET (2nd stage) ( Δ H ~ O + k ) . (12)
The lowest O O O eigenvectors determine the density matrix, while retaining an additional k k k eigenvectors increases the robustness to prediction errors by separating the occupied states from the first unsupervised eigenstate. This allows for a controlled tradeoff between learning a smooth but higher-dimensional Hamiltonian target vs learning a discontinuous but lower-dimensional density target. We use k = 1 k = 1 k = 1 by default and ablate larger k k k in App. L.§ 3 .
Experiments
We assess all models on the same equivariant GNN backbone (App. J), varying only the matrix readout. For the Hamiltonian ansatz, we obtain the density by solving the gEVP (Eq. (1) ), which is computationally cheap compared to the Fock-build (Eberhard et al., [16 ] ). To evaluate size extrapolation, we benchmark our models across two complementary dataset regimes. In the first regime, we train on equilibrium geometries from QM9 (Ramakrishnan et al., 2014), restricted to molecules with at most 20 atoms and elements H, C, N, O, and F (Table 4 ). We then evaluate these models on the CHNOF subset of QM40 (Madushanka et al., 2024) with up to 37 heavy atoms (Table 5 ), with molecules up to four times larger than those of the training distribution. In the second regime, we train on QMugs (Isert et al., [29 ] ), testing extrapolation on conformer diversity searched at 300 K across a wider chemical space (Table 6 ). Here, we train on all QMugs molecules with up to 150 electrons and evaluate on systems with up to 660 electrons (Table 6 ). Across all datasets, we generate reference density and Hamiltonian matrices with restricted KS-DFT at the B3LYP/def2-SVP level of theory (Stephens et al., 1994; Weigend & Ahlrichs, 2005) using GPU-accelerated GPU4PySCF (Li et al., 2025a; Sun et al., 2020) (App. H). To obtain the strongest possible baselines and accurately characterize relative performances, we perform extensive ablations of both absolute and Δ \Delta Δ -learning approaches (App. § 22 ) in our initial training on QM9, and select learning rates and weight decay for each method separately based on a 75-molecule QM40 validation set (App. L). All other hyperparameters are kept constant, and we observe no difference in training cost across all ablated ground-state predictors and loss combinations. We avoid the hidden Fock-build H ( P M I N A O ) \mathbf{H}(\mathbf{P}_{\mathrm{MINAO}}) H ( P MINAO ) for Hamiltonian Δ \Delta Δ -learning (Eberhard et al., [16 ] ) by using the superposition of atomic potentials (SAP) ansatz H S A P \mathbf{H}_{\mathrm{SAP}} H SAP (Lehtola, 2019), and additionally ablate training-set-optimal gauge shifts (c t S c_t\mathbf{S} c t S ) for the Hamiltonian baseline. For Δ \Delta Δ -learning in density space, we use P M I N A O \mathbf{P}_{\mathrm{MINAO}} P MINAO (Lehtola, 2019). When evaluating the energies from the predicted P \mathbf{P} P or P ( H ^ ) \mathbf{P}(\hat{\mathbf{H}}) P ( H ^ ) density matrix, we get the first order energy correction in the self-consistency error Δ S C P : = P ( H ( P ^ ) ) − P ^ \Delta^{\mathrm{SC}}\mathbf{P} := \mathbf{P}(\mathbf{H}(\hat{\mathbf{P}})) - \hat{\mathbf{P}} Δ SC P := P ( H ( P ^ )) − P ^ to the ground-state energy expression of KS-DFT E K S E_{\mathrm{KS}} E KS essentially for free, such that our predictions are given by
Table 4. QM9 training splits and evaluation sample counts ((Ramakrishnan et al., 2014)). The split is a deterministic size cut on the total atom count including hydrogens and involves no random draw. Compute stages are defined in Table 3 . The electron-count distribution is shown in Figure 7 .
Figure 7. Electron-count histogram of QM9. The vertical axis is the molecule count on a logarithmic scale. QM9 contains only H, C, N, O, and F.
Table 5. QM40 size-extrapolation dataset splits and evaluation sample counts (Madushanka et al., 2024). These checkpoints never see QM40 during training. To match their element vocabulary, we remove every molecule containing S or Cl. Compute stages are defined in Table 3 . The electron-count distribution is shown in Figure 8 .
Figure 8. Electron-count histogram of QM40. The vertical axis is the molecule count on a logarithmic scale. The two series are the full dataset and its H, C, N, O, F subset.
Table 6. QMugs dataset splits and evaluation sample counts for pre-training and size extrapolation ([29 ] ). Every sample is a single conformer, and every split is disjoint by molecule. Sets with one conformer per molecule fix that choice in a single draw (seed 0). Compute stages are defined in Table 3 . The electron-count distribution is shown in Figure 9 .
Figure 9. Electron-count histogram of QMugs. The vertical axis is the molecule count on a logarithmic scale. The two series are the full set and the H, C, N, O, F subset ([29 ] ).
E ^ = E K S ( P ^ ) + ∑ μ ν H μ ν ( P ^ ) Δ P μ ν S C \hat{E} = E_{\mathrm{KS}}(\hat{\mathbf{P}}) + \sum_{\mu\nu} H_{\mu\nu}(\hat{\mathbf{P}})\Delta P^{\mathrm{SC}}_{\mu\nu} E ^ = E KS ( P ^ ) + μν ∑ H μν ( P ^ ) Δ P μν SC
(Harris, [26 ] ; Foulkes & Haydock, [21 ] ).
Loss Observable Alignment. We compare the alignment of L O N \mathcal{L}_{\mathrm{ON}} L ON and L N O N \mathcal{L}_{\mathrm{NON}} L NON by investigating their agreement with key observables in the vicinity of the target density P ∗ P^* P ∗ . To that end, we define the sensitivity S Π ( O ) ∈ R S_{\Pi}(\mathcal{O}) \in\mathbb{R} S Π ( O ) ∈ R of an observable O \mathcal{O} O (or Loss L \mathcal{L} L ) w.r.t. a perturbation direction Π ∈ R B × B \Pi\in\mathbb{R}^{B \times B} Π ∈ R B × B as the absolute directional derivative (App. D.§ 1 ). The relative directional sensitivity (App. D) S r e l , Π ( L , O ) : = S Π ( L ) / S Π ( O ) S_{\mathrm{rel},\Pi}(\mathcal{L},\mathcal{O}) := S_{\Pi}(\mathcal{L}) / S_{\Pi}(\mathcal{O}) S rel , Π ( L , O ) := S Π ( L ) / S Π ( O ) captures if the loss changes more (or less) rapidly than the actual observable along a given direction. We analyze the sensitivities in a basis of symmetric matrices built from the eigenvectors u k u_k u k of the overlap S = ∑ k u k u k T λ k S = \sum_k u_k u_k^{\mathsf{T}}\lambda_k S = ∑ k u k u k T λ k , with normalized elements Π i j ∝ u i u j T + u j u i T \Pi_{ij} \propto u_i u_j^{\mathsf{T}} + u_j u_i^{\mathsf{T}} Π ij ∝ u i u j T + u j u i T . Our experiments show that the optimization process prioritizes directions according to their loss sensitivity S Π ( L N O N ) = 1 / B S_{\Pi}(\mathcal{L}_{\mathrm{NON}}) = 1/B S Π ( L NON ) = 1/ B and S Π ( L O N ) = λ i λ j / B S_{\Pi}(\mathcal{L}_{\mathrm{ON}}) = \sqrt{\lambda_i\lambda_j}/B S Π ( L ON ) = λ i λ j / B for density matrices. We demonstrate this by comparing the matrix error components in the overlap basis, Δ x ˉ b : = ⟨ tr ( Π i j Δ X ) 2 ⟩ b \Delta\bar{x}_b := \sqrt{\langle\operatorname{tr}(\Pi_{ij}\Delta X)^2\rangle_b} Δ x ˉ b := ⟨ tr ( Π ij Δ X ) 2 ⟩ b , binned by λ i λ j \sqrt{\lambda_i\lambda_j} λ i λ j (Figure 2 (c,d), and App. D). An ideal loss function should have direction-independent (isotropic) relative sensitivities S r e l , Π ( L , O ) ≈ c ( O ) ∇ Π ∇ O S_{\mathrm{rel},\Pi}(\mathcal{L},\mathcal{O}) \approx c^{(\mathcal{O})}\nabla\Pi\nabla\mathcal{O} S rel , Π ( L , O ) ≈ c ( O ) ∇Π∇ O across a diverse set of observables. Figure 2 (a,b) shows that this is approximately achieved by ON-Loss and violated by the NON baseline. Training on ON-Loss strictly outperforms this baseline on QM40 across model configurations on all tested observables (see Figure 1 and Figure 2 (e-h)). Across all evaluated models, we observe higher mutual information between the ON-Loss residual and downstream observable errors (Table 24 ), independent of the training loss that produced the model weights.
Figure 1. GSM size extrapolation from QM9 to molecules up to 4 × 4 \times 4 × larger QM40 molecules. The GROOT models generalize robustly, reaching errors below half chemical accuracy (∼ 0.8 \sim0.8 ∼ 0.8 mHa) on 98% of the tested molecules. All observables are computed at a budget of exactly one Fock build averaged over 3 training seeds each. The GROOT variants are the best performing models for almost all observables except for the Kohn–Sham (self-consistency) energy where ROCKET is best. NequIP and MACE trained on forces still outperform even the best GSMs on forces, but physically aligned GSMs achieve an order of magnitude better energies compared to all trained MLIPs.
Figure 2. ON-Loss is "observable-isotropic" and improves size extrapolation. (a,b,c,d) Values log-binned by λ i λ j \sqrt{\lambda_i\lambda_j} λ i λ j , matching the directions Π i j \Pi_{ij} Π ij of QM40 molecules (Table 5 ); shading indicates the standard deviation, histograms show the direction-density ϱ \varrho ϱ . (a,b) Mean-normalized relative sensitivity for the L 1 L^1 L 1 density, dipole μ \mu μ , and energy E E E errors (line styles): (a) L N O N \mathcal{L}_{\mathrm{NON}} L NON falls as 1 / λ i λ j 1/\sqrt{\lambda_i\lambda_j} 1/ λ i λ j , whereas (b) L O N \mathcal{L}_{\mathrm{ON}} L ON stays approximately constant for all three observables. (c,d) Matrix error Δ x ˉ b ≡ ⟨ tr ( Π i j Δ X ) 2 ⟩ b \Delta\bar{x}_b \equiv\sqrt{\langle\operatorname{tr}(\Pi_{ij}\Delta X)^2\rangle_b} Δ x ˉ b ≡ ⟨ tr ( Π ij Δ X ) 2 ⟩ b of the trained network, with P M I N A O P_{\mathrm{MINAO}} P MINAO for reference: (c) L N O N \mathcal{L}_{\mathrm{NON}} L NON leaves error that follows ϱ \varrho ϱ rather than observable impact, while (d) L O N \mathcal{L}_{\mathrm{ON}} L ON concentrates it in the high-impact directions. (e–h) Size extrapolation experiments from QM9 to QM40, featuring the same observables MAEs plus the force F F F acting on the atoms plotted against the electron count N e l e c N_{\mathrm{elec}} N elec . We compare GSMs under both L N O N \mathcal{L}_{\mathrm{NON}} L NON and L O N \mathcal{L}_{\mathrm{ON}} L ON loss functions, as well as Hamiltonian variants with a training-set-optimal constant gauge shift c t c_t c t . Markers are means and bands the minimum and maximum across identical runs; every L O N \mathcal{L}_{\mathrm{ON}} L ON model beats its L N O N \mathcal{L}_{\mathrm{NON}} L NON counterpart.
Table 24. Correlation and mutual information between Frobenius loss and observable errors across QM40 plate panels. We report the Pearson correlation r r r between log 10 \log_{10} log 10 Frobenius loss and log 10 \log_{10} log 10 observable error, alongside mutual information I I I in bits estimated with k k k -nearest neighbors (k = 5 k = 5 k = 5 ). Statistics are evaluated for each model pooled across seeds, corresponding to the scatter points in each plate panel. NON denotes the raw congruence ∥ Δ X ∥ F \lVert\Delta X\rVert_F ∥ Δ X ∥ F , and ON denotes the Löwdin congruence ∥ S + 1 / 2 Δ X S + 1 / 2 ∥ F \lVert S^{+1/2}\Delta X S^{+1/2}\rVert_F ∥ S + 1/2 Δ X S + 1/2 ∥ F for densities or ∥ S − 1 / 2 Δ X S − 1 / 2 ∥ F \lVert S^{-1/2}\Delta X S^{-1/2}\rVert_F ∥ S − 1/2 Δ X S − 1/2 ∥ F for Hamiltonians. Bold text marks the superior value in each pair, where larger values indicate stronger predictive alignment. The evaluation uses 1000 QM40 molecules per seed without exclusions, with force rows restricted to the 200 molecules per seed that possess reference forces.
Size-Extrapolation. Reference calculations for KS-DFT ground states scale with the 3rd or 4th power with system size, depending on the level of theory. This restricts training data for ML surrogates to small to mid-sized molecules. Their practical utility, therefore, depends in part on their ability to accurately extrapolate to larger systems. In our extrapolation experiments on equilibrium structures from QM9 and QM40 (Figure 1 , Figure 2 (e-h), App. O.§ 1 ), the L N O N \mathcal{L}_{\mathrm{NON}} L NON baselines generalize poorly to larger molecules, whereas ON-Loss consistently reduces prediction errors across both density and Hamiltonian representations (Table 26 ). ROCKET and GROOT compound on top of these improvements: Although ROCKET already outperforms all tested Hamiltonian GSMs including the new ON-Loss on all tested observables, it is improved upon by GROOTr o t _{\mathrm{rot}} rot on all observables except the Kohn–Sham energy, while GROOTp r o j _{\mathrm{proj}} proj performs worse than ROCKET on both energies but surpasses it on the remaining observables (see Figure 1 ). Excluding the manifold projection from the training gradients and applying it only post hoc to the ON-Loss baseline rejects 66% of the molecules as unreliable, compared to 0.6% for GROOTp r o j _{\mathrm{proj}} proj (Table 26 ).
Table 26. Observable errors under size extrapolation to QM40 for QM9-trained models (Tab. 5). Each cell reports the mean over seeds of the per-molecule mean absolute error, with the seed range in square brackets. Values in round brackets average all molecules of the lane before outlier exclusion, identical across models. Per column, the best bracketed mean and the best single seed are underlined. Predictions with DIIS residual r D I I S / N e l e c > 30 r_{\mathrm{DIIS}}/\sqrt{N_{\mathrm{elec}}} > 30 r DIIS / N elec > 30 mHa are excluded as outliers, where r D I I S = 8 ∥ S − 1 / 2 ( F P S − S P F ) S − 1 / 2 ∥ F r_{\mathrm{DIIS}} = \sqrt{8}\left\|S^{-1/2}(F_{\mathrm{PS}}-S_{\mathrm{PF}})S^{-1/2}\right\|_{\mathrm{F}} r DIIS = 8 S − 1/2 ( F PS − S PF ) S − 1/2 F for scored density P P P and Fock matrix F = F [ P ] F = F[P] F = F [ P ] . Unbracketed values average kept molecules only, and Excluded reports the lost molecule percentage. Models losing all molecules display a dash before each bracketed value. E ^ K S \hat{E}_{\mathrm{KS}} E ^ KS is the KS-DFT energy evaluated at the predicted density, E ^ \hat{E} E ^ adds the first-order self-consistency correction (§ 5 ), and E ∗ E^* E ∗ is the converged reference energy. Before outlier exclusion, 1000 molecules enter Excluded, E ^ K S \hat{E}_{\mathrm{KS}} E ^ KS , E ^ \hat{E} E ^ , Dipole, L 1 L_1 L 1 , and HOMO–LUMO, while 200 molecules enter Forces and ERIC. ERIC reports SCF iterations relative to the MINAO guess, averaged over the full lane with unconverged runs capped at 2. LR and WD denote peak learning rate and weight decay from the training configuration. †Single seed without range.
Both versions of GROOT achieve energy errors of less than half chemical accuracy (1 kcal/mol) for 98% of the QM40 molecules in the test set with the vast majority of errors passing the even stricter threshold of 1/16 kcal/mol. This motivates the search for an uncertainty measure that quantifies prediction confidence . We identify the residual term r = 8 ∥ H ~ P ~ − P ~ H ~ ∥ F r = \sqrt{8}\left\lVert\widetilde{H}\widetilde{P}-\widetilde{P}\widetilde{H}\right\rVert_F r = 8 H P − P H F , commonly used in convergence acceleration methods for KS-DFT calculations (Pulay, 1980; 1982), as a suitable measure to equip GSMs with the approximately size-intensive rejection criterion ∥ r ∥ F / N e l e c > ε S C \lVert r\rVert_F/\sqrt{N_{\mathrm{elec}}} > \varepsilon_{\mathrm{SC}} ∥ r ∥ F / N elec > ε SC . Ideally, the self-consistency error ε S C \varepsilon_{\mathrm{SC}} ε SC could be calibrated on a large validation set per model. For our experiments, we settled on uniform thresholds for all models, which we estimated based on the error distribution of a small large-molecule validation set to ε S C = 30 \varepsilon_{\mathrm{SC}} = 30 ε SC = 30 mEh _{\mathrm{h}} h . Besides size extrapolation we also isolated the conformational generalization capabilities of GSMs by training on QMugs and evaluating on the 3BPA (Kovács et al., [38 ] ) torsional surface (Figure 4 , Table 29 ). We observe excellent performance for all our GSMs: compared to PaiNN, NequIP, and MACE, ROCKET reduces energy errors by roughly an order of magnitude (8–12×) and force errors by 5–7×, while the ON-Loss-trained density GSM P b a s e P_{\mathrm{base}} P base (ON) reduces them by 148–234× and 20–29×, respectively.
Figure 4. Beyond size extrapolation: generalization across conformations and label-free adaptation to new chemistry. QMugs-trained models generalize to the β = 120 ∘ \beta= 120^\circ β = 12 0 ∘ cut of the 3BPA backbone-dihedral energy surface (left panel, Table 29 ): the ground truth (α \alpha α , γ \gamma γ ) energy-surface, and the energy deviations of GSMs, with median (MAE-optimal) constant offset removed per model. Label-free self-consistency training (SCT) on Transition1x. The upper-right panel shows the validation loss against the self-consistency residual over 0, 2, 4, and 6 epochs of cosine-annealed SCT, suggesting that shorter training budgets might be feasible. The observable MAEs are resolved along the reaction coordinate ξ \xi ξ , with the transition state at ξ = 0.5 \xi= 0.5 ξ = 0.5 . The energies of the finetuned GSMs consistently achieve chemical accuracy (solid red line) on the accepted predictions, with GROOTp r o j _{\mathrm{proj}} proj and ROCKET rejecting the fewest predictions (0.2%, Tab. 30).
Table 29. Observable errors under conformational transfer across three 3BPA fixed-dihedral scans for QMugs-trained models (Table 7 ). Because 3BPA samples a single molecule across a dense conformational grid rather than distinct chemical formulas, this test isolates conformational generalization from compositional variation. Each scan constitutes a distinct block of 2347 frames (β = 120 ∘ \beta=120^\circ β = 12 0 ∘ ) or 2350 frames (β = 150 ∘ \beta=150^\circ β = 15 0 ∘ , 180 ∘ 180^\circ 18 0 ∘ ), evaluated separately without pooling. Each cell reports the per-molecule mean absolute error of a single seed. Values in round brackets average all frames before outlier exclusion, identical across models. Per column and block, the best bracketed value is underlined. E ^ K S \hat{E}_{\mathrm{KS}} E ^ KS is the KS-DFT energy evaluated at the predicted density, E ^ \hat{E} E ^ adds the first-order self-consistency correction (§ 5 ), and E ∗ E^{*} E ∗ is the converged reference energy. Energy columns subtract the per-frame signed error median separately for each model and block. Predictions with DIIS residual r D I I S = 8 ∥ S − 1 / 2 ( F P S − S P F ) S − 1 / 2 ∥ F r_{\mathrm{DIIS}}=\sqrt{8}\left\lVert S^{-1/2}(\mathrm{FPS}-\mathrm{SPF})S^{-1/2}\right\rVert_{F} r DIIS = 8 S − 1/2 ( FPS − SPF ) S − 1/2 F exceeding 30 N e l e c 30\sqrt{N_{\mathrm{elec}}} 30 N elec mHa are excluded as outliers, judged per checkpoint and molecule. Unbracketed values average kept molecules only, and Excluded reports the lost molecule percentage. Models losing all molecules display a dash before each bracketed value. LR and WD denote peak learning rate and weight decay from the training configuration. Baseline potentials PaiNN, NequIP, and MACE train on QMugs energies alone and predict energy directly, with forces obtained by negative gradients.
Table 7. 3BPA conformational transfer dataset and scan sample counts ([38 ] ). These checkpoints never see 3BPA during training. We score each fixed-dihedral scan in full, without subsampling, because a subset of a potential-energy cut would be a different curve. Compute stages are defined in Table 3 .
Towards foundational GSMs. Our evaluations suggest that well-designed GSMs can achieve significantly improved energies compared to MLIPs, both trained on energies only and trained on energies and forces, while force-trained MLIPs still lead in force accuracy (Figure 1 , Figure 3 ). Despite their higher inference time costs compared to MLIPs, viewed from an equal reference compute perspective , GSMs offer an interesting trade-off well suited for foundational models. Not only do GSMs outperform energy-only trained MLIPs in terms of force accuracy by ∼ 30 − 50 \sim30-50 ∼ 30 − 50 , Figure 1 , but they also offer access to observables undefined at training time. Pretrained GSMs are conveniently adaptable to new chemistry by combining the idea of label-free Self-Consistency Training (SCT) introduced by Zhang et al. (2024) with the occupied–virtual (OV) gradient objective of Eberhard et al. [16 ] (App. M). Depending on the application the resulting amortization cost may be favorable for research applications with low total evaluation counts since it incurs a much lower up front fine-tuning cost. We finetune our QMugs-trained models on the Transition1x dataset (Schreiner et al., 2022), containing molecular geometries along reaction pathways. Models pretrained with the NON loss fail under the OV objective, where the Hamiltonian model diverges and P b a s e P_{\mathrm{base}} P base (NON) rejects all predictions. While stationarity keeps the first-order corrected energy error of P b a s e P_{\mathrm{base}} P base (ON) at 0.52 mHa, it rejects 25% of test frames and incurs a self-consistent KS energy error of 21.1 mHa on all frames because unconstrained densities leave the Grassmannian (Table 1 ), which GROOT avoids by construction. In contrast, GROOT and ROCKET adapt reliably and reach energy errors well below chemical accuracy on all accepted predictions (Figure 4 , Tab. 30).
Discussion
We have aligned GSMs with the governing equations of Kohn-Sham Density Functional Theory (KS-DFT) through ON-Loss, GROOT, and ROCKET. To this end, we performed a theoretical and empirical analysis of representational choices of P P P , H H H for GSM training and their effects on downstream observables, finding strong evidence in favor of orthonormal (ON) basis representations (ON-Loss). Unconstrained density readouts can leave the manifold of valid density matrices, which can violate charge conservation and lead to fractional occupations, a regime where KS-DFT is known to misbehave ((Perdew et al., 1982; Mori-Sánchez et al., 2008)). GROOT enforces these constraints by construction and thus predicts physical density matrices. The densities obtained from Hamiltonian GSMs are inherently physical, but current loss functions overconstrain them. ROCKET reduces this excess supervision. In our QM9 to QM40 size extrapolation experiments, these contributions compound relative to state-of-the-art GSMs (Figure 1 ). Alongside improvements across other observables, ON-Loss and GROOT reduce the energy error of the previous state-of-the-art density GSM by 79.1%, and ON-Loss and ROCKET reduce that of the strongest Hamiltonian baseline by 99.8%. Under GROOT, 98% of molecules achieve energy errors below 0.5 × 0.5\times 0.5 × chemical accuracy. On QMugs systems up to 660 electrons (Table 28 ), GROOTp r o j _{\mathrm{proj}} proj and ROCKET reduce energy errors by 99.6% and 99.9%, respectively, relative to the corresponding NON baselines. Evaluating GSMs on energy observables requires a Fock build incurring significantly higher inference cost than MLIPs, but it yields an inherent uncertainty measure through the self-consistency residual. This self-rejection can filter large extrapolation errors while maintaining high yield. Our GSM framework adopts a generalization of label-free fine-tuning via Self-Consistency Training (Zhang et al., 2024) to density GSMs. When transferring QMugs-pretrained models to the reactive chemistry of Transition1x (Schreiner et al., 2022), this reaches energy errors well below chemical accuracy on the accepted predictions across the entire reaction coordinate (Figure 4 , Tab. 30).
Table 28. Observable errors under size extrapolation to QMugs for QMugs-trained models (Tab. 6). Each cell reports the per-molecule mean absolute error of a single seed. Values in round brackets average all molecules of the lane before outlier exclusion, identical across models. Per column, the best bracketed value within each training group is underlined. Predictions with DIIS residual r D I I S = 8 ∥ S − 1 / 2 ( F P S − S P F ) S − 1 / 2 ∥ F r_{\mathrm{DIIS}} = \sqrt{8} \lVert S^{-1/2}(F_{\mathrm{PS}} - S_{\mathrm{PF}})S^{-1/2} \rVert_F r DIIS = 8 ∥ S − 1/2 ( F PS − S PF ) S − 1/2 ∥ F exceeding 30 N e l e c 30\sqrt{N_{\mathrm{elec}}} 30 N elec mHa are excluded as outliers, judged per checkpoint and molecule. Unbracketed values average kept molecules only, and Excluded reports the lost molecule percentage. E ^ K S \hat{E}_{\mathrm{KS}} E ^ KS is the KS-DFT energy evaluated at the predicted density, E ^ \hat{E} E ^ adds the first-order self-consistency correction (§ 5 ), and E ∗ E^* E ∗ is the converged reference energy. Before outlier exclusion, 2500 molecules enter Excluded, E ^ K S \hat{E}_{\mathrm{KS}} E ^ KS , E ^ \hat{E} E ^ , Dipole, L 1 L_1 L 1 , and HOMO–LUMO, while 500 molecules enter Forces and ERIC. ERIC reports SCF iterations relative to the MINAO guess, averaged over the full lane with unconverged runs capped at 2. LR and WD denote peak learning rate and weight decay from the training configuration.
Limitations & Future Work. Our evaluations are restricted to closed-shell Kohn-Sham. Although a generalization to unrestricted systems is straightforward, this has not been covered by our evaluations. All experiments have been performed at the B3LYP/def2-SVP level of theory. Transfer to other functionals and basis sets remains untested. The unique capabilities of GSMs could enable active-learning pipelines for MLIP reference data generation on large molecules (Kulichenko et al., 2024). For each molecule, GROOT can predict the ground state at the cost of a single Fock build. If the self-consistency residual falls below the rejection threshold, the pipeline accepts the one-iteration observables. When the residual exceeds the threshold, the calculation falls back to iterative SCF, where the prediction can serve as an initial guess that accelerates convergence. The resulting solutions can continually update the GSM. The combination of this ansatz with ML exchange-correlation functionals [23 , 17 ] (Luise et al. 2026) could provide exceptional cost-accuracy trade-offs.
Reproducibility Statement
We provide proofs for all theoretical claims in the appendix, including the reachability, geometric validity, and expressivity of GROOT on the Grassmann manifold (App. B) as well as the observable error bounds and quadratic energy scaling for valid density projectors (App. § 11 ). Across all benchmarks, we document dataset sources, reference calculation protocols, and evaluation splits in App. H, and specify model architectures and training hyperparameters in Apps. I and L.
The code will be released with the final publication at github.com/ESEberhard/ML4DFT .
Acknowledgments
We thank Luca A. Thiede for insightful discussions. We thank the Vector Institute as well as the Matter Lab (Alán Aspuru-Guzik’s group) for co-hosting Eike S. Eberhard during a research stay where part of this work was conducted.
Kohn–Sham Theory in a Finite Basis
We provide a brief overview of the mathematical fundamentals underlying KS-DFT, aimed at a broader audience at the intersection of quantum chemistry and machine learning. Hence, we refrain from any explicit references to electronic spin degrees of freedom. This spin-free treatment is sufficient for so-called closed-shell systems where ρ ( u p ) = ρ ( d o w n ) \rho^{(\mathrm{up})}=\rho^{(\mathrm{down})} ρ ( up ) = ρ ( down ) , requiring an even number of electrons. For further details and generalization to open-shell systems, we refer to Szabo & Ostlund (1996) and Lehtola et al. (2020a).
In their seminal work, Kohn & Sham [36 ] showed that the ground state electron density ρ ( r ) \rho(\mathbf{r}) ρ ( r ) can be constructed from eigenfunctions φ i ( r ) : R 3 → R \varphi_i(\mathbf{r}):\mathbb{R}^3\to\mathbb{R} φ i ( r ) : R 3 → R which are solutions of the Kohn–Sham equations
( − 1 2 ∇ 2 − ∑ A = 1 N n u c Z A ∣ r − R A ∣ + ∫ R 3 ρ ( r ′ ) ∣ r − r ′ ∣ d r ′ + v x c [ ρ ] ( r ) ) φ i ( r ) = ϵ i φ i ( r ) , (13) \left(-\frac{1}{2}\nabla^2-\sum_{A=1}^{N_{\mathrm{nuc}}}\frac{Z_A}{\lvert\mathbf{r}-\mathbf{R}_A\rvert}+\int_{\mathbb{R}^3}\frac{\rho(\mathbf{r}')}{\lvert\mathbf{r}-\mathbf{r}'\rvert}\,\mathrm{d}\mathbf{r}'+v_{\mathrm{xc}}[\rho](\mathbf{r})\right)\varphi_i(\mathbf{r})=\epsilon_i\varphi_i(\mathbf{r}), \tag*{(13)} ( − 2 1 ∇ 2 − A = 1 ∑ N nuc ∣ r − R A ∣ Z A + ∫ R 3 ∣ r − r ′ ∣ ρ ( r ′ ) d r ′ + v xc [ ρ ] ( r ) ) φ i ( r ) = ϵ i φ i ( r ) , (13)
which are the governing equations of KS-DFT. The first term is the kinetic energy operator, the second term the potential due to the atomic nuclei of the system, the third term the electron-electron potential, the fourth term the so-called exchange-correlation potential, and ϵ i \epsilon_i ϵ i is the eigenvalue of φ i ( r ) \varphi_i(\mathbf{r}) φ i ( r ) . The eigenfunctions φ i ( r ) \varphi_i(\mathbf{r}) φ i ( r ) are commonly referred to as molecular orbitals (MOs) and relate to the density via
ρ ( r ) = 2 ∑ i O ∣ φ i ( r ) ∣ 2 , (14) \rho(\mathbf{r})=2\sum_{i}^{O}\lvert\varphi_i(\mathbf{r})\rvert^2, \tag*{(14)} ρ ( r ) = 2 i ∑ O ∣ φ i ( r ) ∣ 2 , (14)
where O = N e l e c / 2 O=N_{\mathrm{elec}}/2 O = N elec /2 and V = B − O V=B-O V = B − O are the numbers of occupied and virtual orbitals, respectively, and the eigenfunctions are indexed lowest to highest with respect to their eigenvalues. By construction, the φ i ( r ) \varphi_i(\mathbf{r}) φ i ( r ) are orthonormal ∫ R 3 φ i ( r ) φ j ( r ) d r = δ i j \int_{\mathbb{R}^3}\varphi_i(\mathbf{r})\varphi_j(\mathbf{r})\,\mathrm{d}\mathbf{r}=\delta_{ij} ∫ R 3 φ i ( r ) φ j ( r ) d r = δ ij and hence ∫ R 3 ρ ( r ) d r = N e l e c \int_{\mathbb{R}^3}\rho(\mathbf{r})\,\mathrm{d}\mathbf{r}=N_{\mathrm{elec}} ∫ R 3 ρ ( r ) d r = N elec . Eq. (13) can be discretized by representing the φ i ( r ) \varphi_i(\mathbf{r}) φ i ( r ) in a finite basis
{ χ μ ( r ) | χ μ : R 3 → R and ∫ R 3 χ μ ( r ) 2 d r = 1 } μ = 1 B (15) \left\{\chi_\mu(\mathbf{r})\middle|\chi_\mu:\mathbb{R}^3\to\mathbb{R}\ \text{and}\ \int_{\mathbb{R}^3}\chi_\mu(\mathbf{r})^2\,\mathrm{d}\mathbf{r}=1\right\}_{\mu=1}^{B} \tag*{(15)} { χ μ ( r ) χ μ : R 3 → R and ∫ R 3 χ μ ( r ) 2 d r = 1 } μ = 1 B (15)
with coefficients C ∈ R B × B \mathbf{C}\in\mathbb{R}^{B\times B} C ∈ R B × B such that φ i ( r ) = ∑ μ = 1 B C μ i χ μ ( r ) \varphi_i(\mathbf{r})=\sum_{\mu=1}^{B}C_{\mu i}\chi_\mu(\mathbf{r}) φ i ( r ) = ∑ μ = 1 B C μ i χ μ ( r ) (Lehtola et al. (2020a)). Inserting this into Eq. (14) yields
ρ ( r ) = 2 ∑ i O ∑ μ ν B C μ i C ν i χ μ ( r ) χ ν ( r ) = 2 ∑ μ ν B ∑ i O C μ i C ν i χ μ ( r ) χ ν ( r ) = : 2 ∑ μ ν B P μ ν χ μ ( r ) χ ν ( r ) , (16) \rho(\mathbf{r})=2\sum_i^O\sum_{\mu\nu}^B C_{\mu i}C_{\nu i}\chi_\mu(\mathbf{r})\chi_\nu(\mathbf{r})=2\sum_{\mu\nu}^B\sum_i^O C_{\mu i}C_{\nu i}\chi_\mu(\mathbf{r})\chi_\nu(\mathbf{r})=:2\sum_{\mu\nu}^B P_{\mu\nu}\chi_\mu(\mathbf{r})\chi_\nu(\mathbf{r}), \tag*{(16)} ρ ( r ) = 2 i ∑ O μν ∑ B C μ i C ν i χ μ ( r ) χ ν ( r ) = 2 μν ∑ B i ∑ O C μ i C ν i χ μ ( r ) χ ν ( r ) =: 2 μν ∑ B P μν χ μ ( r ) χ ν ( r ) , (16)
which defines the density matrix P ∈ R B × B \mathbf{P}\in\mathbb{R}^{B\times B} P ∈ R B × B . For molecules, basis functions are commonly constructed from atom-centered Gaussians aligned with the Cartesian axes, whereas periodic chemistry codes often use plane waves. This allows for an efficient computation of many integrals involved in the computation, for example, the integral over the density in Eq. (14) becomes
N e l e c = ∫ R 3 ρ ( r ) d r = 2 ∑ μ ν B P μ ν ∫ R 3 χ μ ( r ) χ ν ( r ) d r = : 2 ∑ μ ν B P μ ν S μ ν (17) N_{\mathrm{elec}}=\int_{\mathbb{R}^3}\rho(\mathbf{r})\,\mathrm{d}\mathbf{r}=2\sum_{\mu\nu}^B P_{\mu\nu}\int_{\mathbb{R}^3}\chi_\mu(\mathbf{r})\chi_\nu(\mathbf{r})\,\mathrm{d}\mathbf{r}=:2\sum_{\mu\nu}^B P_{\mu\nu}S_{\mu\nu} \tag*{(17)} N elec = ∫ R 3 ρ ( r ) d r = 2 μν ∑ B P μν ∫ R 3 χ μ ( r ) χ ν ( r ) d r =: 2 μν ∑ B P μν S μν (17)
with the overlap matrix S ∈ R B × B \mathbf{S}\in\mathbb{R}^{B\times B} S ∈ R B × B . Notably, this integral tensor S μ ν S_{\mu\nu} S μν is a constant for a given basis set such that it only needs to be computed once per molecule. This is especially convenient since it can be shown that in finite basis sets Eq. (13) is equivalent to solving Eq. (1) . Notably, the overlap matrix S \mathbf{S} S is a positive-definite Gram matrix of the atomic orbital (AO) basis functions, defined as
S μ ν : = ∫ R 3 χ μ ( r ) χ ν ( r ) d r . (18) S_{\mu\nu}:=\int_{\mathbb{R}^3}\chi_\mu(\mathbf{r})\chi_\nu(\mathbf{r})\,\mathrm{d}\mathbf{r}. \tag*{(18)} S μν := ∫ R 3 χ μ ( r ) χ ν ( r ) d r . (18)
The inner product is symmetric, so S μ ν = S ν μ S_{\mu\nu}=S_{\nu\mu} S μν = S ν μ and S = S T \mathbf{S}=\mathbf{S}^{\mathsf{T}} S = S T . For any nonzero x ∈ R B \mathbf{x}\in\mathbb{R}^B x ∈ R B , x T S x = ∑ μ , ν x μ x ν S μ ν = ∥ ∑ μ x μ χ μ ∥ 2 \mathbf{x}^{\mathsf{T}}\mathbf{S}\mathbf{x}=\sum_{\mu,\nu}x_\mu x_\nu S_{\mu\nu}=\left\lVert\sum_\mu x_\mu\chi_\mu\right\rVert^2 x T Sx = ∑ μ , ν x μ x ν S μν = ∑ μ x μ χ μ 2 . Linear independence of the AO basis implies ∑ μ x μ χ μ ≠ 0 \sum_\mu x_\mu\chi_\mu\ne0 ∑ μ x μ χ μ = 0 for all x ≠ 0 \mathbf{x}\ne0 x = 0 , and therefore x T S x > 0 \mathbf{x}^{\mathsf{T}}\mathbf{S}\mathbf{x}>0 x T Sx > 0 . The overlap matrix is thus symmetric positive definite, S ≻ 0 \mathbf{S}\succ0 S ≻ 0 . Hence S \mathbf{S} S is invertible. Normalization of the individual AO basis functions implies S μ μ = 1 S_{\mu\mu}=1 S μμ = 1 , and therefore tr ( S ) = ∑ μ = 1 B S μ μ = B \operatorname{tr}(\mathbf{S})=\sum_{\mu=1}^{B}S_{\mu\mu}=B tr ( S ) = ∑ μ = 1 B S μμ = B . The B B B eigenvalues of S \mathbf{S} S are strictly positive and sum to B B B s.t.
0 < λ min ( S ) ≤ 1 ≤ λ max ( S ) ≤ B , (19) 0<\lambda_{\min}(\mathbf{S})\le1\le\lambda_{\max}(\mathbf{S})\le B, \tag*{(19)} 0 < λ m i n ( S ) ≤ 1 ≤ λ m a x ( S ) ≤ B , (19)
such that if any eigenvalue differs from 1, the remaining eigenvalues compensate with the opposite total deviation.
Rotational GROOT: Transport on the Grassmannian
This appendix gives the full construction of GROOTr o t _{\mathrm{rot}} rot : why an occupied–virtual rotation suffices to reach any target density, how the generators of such rotations are characterized, and how an unconstrained decoder output is mapped into them.
This section proves that GROOT can connect any two physical densities with the same number of occupied orbitals. The argument has two logically separate parts. First, we study the geometry: does there exist an occupied–virtual rotation that transports the initial density to the target, does its generator follow a Grassmann geodesic, and how does it relate to nonminimal rotations that produce the same density? Second, we study the readout: does every model output produce such a valid generator, and can the readout reach every generator required by the geometry?
We answer these questions in four propositions. The first two concern only rotations on the Grassmannian and are independent of the neural network. The third proves that the GROOT head is valid for every input matrix. The fourth proves surjectivity, which is the statement that the head itself introduces no expressivity bottleneck.
GROOTr o t _{\mathrm{rot}} rot is a one-step flow map (Boffi et al. [9 ] ), which transports a computationally cheap initial density P 0 ∈ M ( N e l e c , B ) P_0 \in\mathcal{M}_{(N_{\mathrm{elec}},B)} P 0 ∈ M ( N elec , B ) to a final density P ^ \widehat{P} P .
Rotating with an orthogonal matrix U ∈ S O ( B ) U \in SO(B) U ∈ S O ( B ) preserves these Grassmannian constraints and is therefore the transformation of choice
P ^ : = U P 0 U T , tr ( P ^ ) = tr ( P 0 U T U ) = tr ( P 0 ) , P ^ 2 = U P 0 2 U T = P ^ . (20) \widehat{P} := UP_0U^{\mathsf{T}}, \qquad\operatorname{tr}(\widehat{P}) = \operatorname{tr}(P_0U^{\mathsf{T}}U) = \operatorname{tr}(P_0), \qquad\widehat{P}^{2} = UP_0^{2}U^{\mathsf{T}} = \widehat{P}. \tag*{(20)} P := U P 0 U T , tr ( P ) = tr ( P 0 U T U ) = tr ( P 0 ) , P 2 = U P 0 2 U T = P . (20)
After dropping all orbital rotations that leave P P P unchanged, cf. Figure 5 and Eq. (5) , any two valid densities are connected by a matrix U ∈ S O ( B ) U \in SO(B) U ∈ S O ( B ) that mixes the occupied and virtual subspaces. We formalize this by defining the projector into the virtual subspace Π : = I − P \Pi:= I - P Π := I − P and the reflection matrix R : = P − Π R := P - \Pi R := P − Π . When evaluated at a specific density matrix, such as P 0 P_0 P 0 , we denote the corresponding operators with a subscript (Π 0 \Pi_0 Π 0 , R 0 R_0 R 0 ). The reflection R R R flips the virtual orbitals around the origin while not affecting the occupied orbitals, i.e. R C V = − C V RC_{\mathrm{V}} = -C_{\mathrm{V}} R C V = − C V , R C O = C O RC_{\mathrm{O}} = C_{\mathrm{O}} R C O = C O . Rotations that commute with the reflection, R U = U R RU = UR R U = U R , are those that are block-diagonal in the molecular orbitals, mixing occupied with occupied and virtual with virtual, and thus span the subspace of redundant orbital-rotation directions that leave P P P unchanged, as shown in Eq. (5) . Complementarily, there also exists a canonical purely mixing rotation between the occupied and the virtual orbitals U ≡ exp ( X ) ∈ S O ( B ) U \equiv\exp(X) \in SO(B) U ≡ exp ( X ) ∈ S O ( B ) generated by a skew-symmetric matrix X ∈ p X \in\mathfrak{p} X ∈ p that anticommutes with the reflection,
Figure 5. Many coefficient matrices, one density. (a) The smallest case, B = 3 B = 3 B = 3 and O = 2 O = 2 O = 2 : the occupied orbitals c 1 , c 2 c_1, c_2 c 1 , c 2 span a plane which determines the density. Rotating the arrows within the plane by U O O U_{OO} U O O changes the orbitals, but not the plane. (b) For arbitrary O , B ∈ N O, B \in\mathbb{N} O , B ∈ N with O < B O < B O < B . The coefficients C ∈ R B × B \mathbf{C} \in\mathbb{R}^{B \times B} C ∈ R B × B split into an occupied block C O ∈ R B × O \mathbf{C}_O \in\mathbb{R}^{B \times O} C O ∈ R B × O and a virtual block C V ∈ R B × V \mathbf{C}_V \in\mathbb{R}^{B \times V} C V ∈ R B × V . Only the occupied block determines the density matrix as seen in Eq. (2) . Multiplication from the right by a block-diagonal orthogonal matrix U U U does not change the density matrix, see Eq. (5) .
p ≡ { X ∈ R B × B ∣ X T = − X , X R = − R X } , with R = 2 P − I . (21) \mathfrak{p} \equiv\left\{X \in\mathbb{R}^{B \times B} \mid X^{\mathsf{T}} = -X,\; XR = -RX\right\}, \qquad\text{with}\quad R = 2P - I. \tag*{(21)} p ≡ { X ∈ R B × B ∣ X T = − X , X R = − R X } , with R = 2 P − I . (21)
Throughout this section all matrices are represented in the orthonormal basis (Eq. (3) ).1 Let P ~ 0 \widetilde{P}_0 P 0 and P ~ 1 \widetilde{P}_1 P 1 be physical densities with the same rank, and define
Π ~ a = I − P ~ a , R ~ a = P ~ a − Π ~ a , a ∈ { 0 , 1 } . (22) \widetilde{\Pi}_a = I - \widetilde{P}_a,\qquad\widetilde{R}_a = \widetilde{P}_a - \widetilde{\Pi}_a,\qquad a \in\{0,1\}. \tag*{(22)} Π a = I − P a , R a = P a − Π a , a ∈ { 0 , 1 } . (22)
Each reflection is symmetric and involutory,
( R ~ a ) T = R ~ a , ( R ~ a ) 2 = I , (23) \left(\widetilde{R}_a\right)^{\mathsf{T}} = \widetilde{R}_a,\qquad\left(\widetilde{R}_a\right)^2 = I, \tag*{(23)} ( R a ) T = R a , ( R a ) 2 = I , (23)
and acts as + 1 +1 + 1 on the occupied subspace and as − 1 -1 − 1 on the virtual subspace. Wong (1967) showed that these pure mixing rotations suffice to connect any two densities on M ( N e l e c , B ) \mathcal{M}_{(N_{\mathrm{elec}},B)} M ( N elec , B ) .
Proposition 1 (Reachability by an occupied–virtual rotation). Let P 0 P_0 P 0 and P 1 P_1 P 1 be physical densities with the same rank in the orthonormal basis, P 0 , P 1 ∈ M ( N e l e c , B ) P_0, P_1 \in\mathcal{M}_{(N_{\mathrm{elec}},B)} P 0 , P 1 ∈ M ( N elec , B ) . Then there exists a generator X ∈ p X \in\mathfrak{p} X ∈ p such that P 1 = exp ( X ) P 0 exp ( − X ) P_1 = \exp(X)P_0\exp(-X) P 1 = exp ( X ) P 0 exp ( − X ) . Consequently, U : = exp ( X ) ∈ S O ( B ) U := \exp(X) \in SO(B) U := exp ( X ) ∈ S O ( B ) , and U U U transports the occupied subspace of P 0 P_0 P 0 to that of P 1 P_1 P 1 .
Proof. If O > V O > V O > V , consider instead the complementary projectors Π ~ a = I − P ~ a \widetilde{\Pi}_a = I - \widetilde{P}_a Π a = I − P a , which have rank V V V and codimension O O O . Their reflections are − R ~ a -\widetilde{R}_a − R a , so they define the same anticommuting generator space P \mathcal{P} P . Moreover, a rotation transports Π ~ 0 \widetilde{\Pi}_0 Π 0 to Π ~ 1 \widetilde{\Pi}_1 Π 1 if and only if it transports P ~ 0 \widetilde{P}_0 P 0 to P ~ 1 \widetilde{P}_1 P 1 . It therefore suffices to prove the case O ≤ V O \le V O ≤ V .
Since the physical densities in the orthonormal basis are themselves orthogonal projectors, we can always find O ~ 0 , O ~ 1 ∈ O ( B ) \widetilde{O}_0, \widetilde{O}_1 \in O(B) O 0 , O 1 ∈ O ( B ) such that P ~ a = O ~ a P ~ r e f O ~ a T \widetilde{P}_a = \widetilde{O}_a\widetilde{P}_{\mathrm{ref}}\widetilde{O}_a^{\mathsf{T}} P a = O a P ref O a T , with a ∈ { 0 , 1 } a \in\{0,1\} a ∈ { 0 , 1 } and P ~ r e f = diag ( I O , 0 V ) \widetilde{P}_{\mathrm{ref}} = \operatorname{diag}(I_O,0_V) P ref = diag ( I O , 0 V ) . Express the second MO frame in the first through
Q ~ = O ~ 0 T O ~ 1 , O ~ 1 = O ~ 0 Q ~ . (24) \widetilde{Q} = \widetilde{O}_0^{\mathsf{T}}\widetilde{O}_1,\qquad\widetilde{O}_1 = \widetilde{O}_0\widetilde{Q}. \tag*{(24)} Q = O 0 T O 1 , O 1 = O 0 Q . (24)
Consequently, in the O ~ 0 \widetilde{O}_0 O 0 -MO basis,
O ~ 0 T P ~ 0 O ~ 0 = P ~ r e f , O ~ 0 T P ~ 1 O ~ 0 = Q ~ P ~ r e f Q ~ T . (25) \widetilde{O}_0^{\mathsf{T}}\widetilde{P}_0\widetilde{O}_0 = \widetilde{P}_{\mathrm{ref}},\qquad\widetilde{O}_0^{\mathsf{T}}\widetilde{P}_1\widetilde{O}_0 = \widetilde{Q}\widetilde{P}_{\mathrm{ref}}\widetilde{Q}^{\mathsf{T}}. \tag*{(25)} O 0 T P 0 O 0 = P ref , O 0 T P 1 O 0 = Q P ref Q T . (25)
The general cosine-sine (CS) decomposition states that for every orthogonal D ~ ∈ S O ( B ) \widetilde{D} \in SO(B) D ∈ S O ( B ) , there exist block-diagonal orthogonal matrices L ~ = diag ( L ~ O , L ~ V ) \widetilde{L} = \operatorname{diag}(\widetilde{L}_O,\widetilde{L}_V) L = diag ( L O , L V ) and S ~ = diag ( S ~ O , S ~ V ) \widetilde{S} = \operatorname{diag}(\widetilde{S}_O,\widetilde{S}_V) S = diag ( S O , S V ) , as well as principal angles 0 ≤ θ i ≤ π 2 0 \le\theta_i \le\frac{\pi}{2} 0 ≤ θ i ≤ 2 π , such that D ~ = L ~ G ~ S ~ T \widetilde{D} = \widetilde{L}\widetilde{G}\widetilde{S}^{\mathsf{T}} D = L G S T , where, in the O + O + ( V − O ) O + O + (V - O) O + O + ( V − O ) partition,
G ~ = ( cos Θ sin Θ 0 − sin Θ cos Θ 0 0 0 I V − O ) with Θ = diag ( θ 1 , … , θ O ) . (26) \widetilde{G} =
\begin{pmatrix}
\cos\Theta& \sin\Theta& 0\\
-\sin\Theta& \cos\Theta& 0\\
0 & 0 & I_{V-O}
\end{pmatrix}
\qquad\text{with}\qquad
\Theta= \operatorname{diag}(\theta_1,\ldots,\theta_O). \tag*{(26)} G = cos Θ − sin Θ 0 sin Θ cos Θ 0 0 0 I V − O with Θ = diag ( θ 1 , … , θ O ) . (26)
We proceed to apply the general CS decomposition to Q ~ \widetilde{Q} Q . Because L ~ \widetilde{L} L and S ~ \widetilde{S} S preserve the occupied–virtual splitting, they are block-diagonal orbital rotations that leave P ~ r e f \widetilde{P}_{\mathrm{ref}} P ref unchanged and can be freely exchanged for one another in
L ~ T P ~ r e f L ~ = P ~ r e f = S ~ T P ~ r e f S ~ . (27) \widetilde{L}^{\mathsf{T}}\widetilde{P}_{\mathrm{ref}}\widetilde{L} = \widetilde{P}_{\mathrm{ref}} = \widetilde{S}^{\mathsf{T}}\widetilde{P}_{\mathrm{ref}}\widetilde{S}. \tag*{(27)} L T P ref L = P ref = S T P ref S . (27)
Still working in the O ~ 0 \widetilde{O}_0 O 0 -MO basis, we obtain
O ~ 0 T P ~ 1 O ~ 0 = ( L ~ G ~ L ~ T ) P ~ r e f ( L ~ G ~ T L ~ T ) . (28) \widetilde{O}_0^{\mathsf{T}}\widetilde{P}_1\widetilde{O}_0 = (\widetilde{L}\widetilde{G}\widetilde{L}^{\mathsf{T}})\widetilde{P}_{\mathrm{ref}}(\widetilde{L}\widetilde{G}^{\mathsf{T}}\widetilde{L}^{\mathsf{T}}). \tag*{(28)} O 0 T P 1 O 0 = ( L G L T ) P ref ( L G T L T ) . (28)
Returning to the orthonormal basis, we absorb the block-diagonal factor into the MO frame by defining O ~ 0 ′ ≡ O ~ 0 L ~ \widetilde{O}'_0 \equiv\widetilde{O}_0\widetilde{L} O 0 ′ ≡ O 0 L . This gives
P ~ 0 = O ~ 0 ′ P ~ r e f ( O ~ 0 ′ ) T , P ~ 1 = ( O ~ 0 ′ G ~ ( O ~ 0 ′ ) T ) P ~ 0 ( O ~ 0 ′ G ~ T ( O ~ 0 ′ ) T ) . (29) \widetilde{P}_0 = \widetilde{O}'_0\widetilde{P}_{\mathrm{ref}}(\widetilde{O}'_0)^{\mathsf{T}},\qquad
\widetilde{P}_1 = (\widetilde{O}'_0\widetilde{G}(\widetilde{O}'_0)^{\mathsf{T}})\widetilde{P}_0(\widetilde{O}'_0\widetilde{G}^{\mathsf{T}}(\widetilde{O}'_0)^{\mathsf{T}}). \tag*{(29)} P 0 = O 0 ′ P ref ( O 0 ′ ) T , P 1 = ( O 0 ′ G ( O 0 ′ ) T ) P 0 ( O 0 ′ G T ( O 0 ′ ) T ) . (29)
As with 2D rotations, we express the rotation in the MO basis as the matrix exponential G ~ = exp ( K ~ ) \widetilde{G} = \exp(\widetilde{K}) G = exp ( K ) of the skew-symmetric matrix
K ~ = ( 0 Θ 0 − Θ 0 0 0 0 0 ) . (30) \widetilde{K} =
\begin{pmatrix}
0 & \Theta& 0\\
-\Theta& 0 & 0\\
0 & 0 & 0
\end{pmatrix}. \tag*{(30)} K = 0 − Θ 0 Θ 0 0 0 0 0 . (30)
which, in the orthonormal basis, yields the generator X = O ~ 0 K ~ ( O ~ 0 ) T \mathbf{X} = \widetilde{\mathbf{O}}_0\widetilde{\mathbf{K}}(\widetilde{\mathbf{O}}_0)^{\mathsf{T}} X = O 0 K ( O 0 ) T such that the principal rotation is
exp ( X ) P ~ 0 exp ( − X ) = P ~ 1 . (31) \exp(\mathbf{X})\widetilde{\mathbf{P}}_0\exp(-\mathbf{X}) = \widetilde{\mathbf{P}}_1. \tag*{(31)} exp ( X ) P 0 exp ( − X ) = P 1 . (31)
It remains to verify the second defining anticommutation condition of p \mathfrak{p} p . In the MO basis, the reflection operator similarly becomes diagonal and takes the form R ~ r e f = diag ( I O , − I O , − I V − O ) \widetilde{\mathbf{R}}_{\mathrm{ref}} = \operatorname{diag}(\mathbf{I}_O,-\mathbf{I}_O,-\mathbf{I}_{V-O}) R ref = diag ( I O , − I O , − I V − O ) . Hence, the block forms of K ~ \widetilde{\mathbf{K}} K and R ~ r e f \widetilde{\mathbf{R}}_{\mathrm{ref}} R ref imply K ~ R ~ r e f + R ~ r e f K ~ = 0 \widetilde{\mathbf{K}}\widetilde{\mathbf{R}}_{\mathrm{ref}}+\widetilde{\mathbf{R}}_{\mathrm{ref}}\widetilde{\mathbf{K}}=0 K R ref + R ref K = 0 . Since commutation relations are basis-independent, this statement carries over into the orthonormal basis such that
X R ~ 0 + R ~ 0 X = 0. (32) \mathbf{X}\widetilde{\mathbf{R}}_0+\widetilde{\mathbf{R}}_0\mathbf{X}=0. \tag*{(32)} X R 0 + R 0 X = 0. (32)
Finally, since X \mathbf{X} X is real and skew-symmetric, U = exp ( X ) ∈ S O ( B ) \mathbf{U}=\exp(\mathbf{X})\in\mathrm{SO}(B) U = exp ( X ) ∈ SO ( B ) , which proves the claim. □
For the same density pair, any other transporting rotation differs from a pure mixing rotation only by a block-diagonal orbital rotation that leaves the density unchanged [19 ] .
Proposition 2 (Decomposition of a general transporting rotation). Let W ∈ S O ( B ) \mathbf{W}\in\mathrm{SO}(B) W ∈ SO ( B ) satisfy P 1 = W P 0 W T \mathbf{P}_1=\mathbf{W}\mathbf{P}_0\mathbf{W}^{\mathsf{T}} P 1 = W P 0 W T . Then W = exp ( X ) V \mathbf{W}=\exp(\mathbf{X})\mathbf{V} W = exp ( X ) V with X ∈ p \mathbf{X}\in\mathfrak{p} X ∈ p and a block-diagonal orbital rotation V ∈ S O ( B ) \mathbf{V}\in\mathrm{SO}(B) V ∈ SO ( B ) that commutes with the reflection, V R 0 = R 0 V \mathbf{V}\mathbf{R}_0=\mathbf{R}_0\mathbf{V} V R 0 = R 0 V .
Proof. Define V = U T W ~ \mathbf{V}=\mathbf{U}^{\mathsf{T}}\widetilde{\mathbf{W}} V = U T W . It lies in S O ( B ) \mathrm{SO}(B) SO ( B ) and gives W ~ = U V \widetilde{\mathbf{W}}=\mathbf{U}\mathbf{V} W = UV . Both rotations transport the initial reflection to the target reflection, so
V R ~ 0 V T = U T R ~ 1 U = R ~ 0 . (33) \mathbf{V}\widetilde{\mathbf{R}}_0\mathbf{V}^{\mathsf{T}}=\mathbf{U}^{\mathsf{T}}\widetilde{\mathbf{R}}_1\mathbf{U}=\widetilde{\mathbf{R}}_0. \tag*{(33)} V R 0 V T = U T R 1 U = R 0 . (33) Since V \mathbf{V} V is orthogonal, this is equivalent to V R ~ 0 = R ~ 0 V \mathbf{V}\widetilde{\mathbf{R}}_0=\widetilde{\mathbf{R}}_0\mathbf{V} V R 0 = R 0 V . Thus V \mathbf{V} V is a block-diagonal orbital rotation that leaves the density unchanged.
Rather than direct density prediction, GROOTr o t _{\mathrm{rot}} rot builds on equivariant matrix decoders [20 ] (Yu et al. 2023b) to construct only an occupied-virtual rotation that moves a computationally cheap density toward the target density. For every decoder output M ^ ∈ R B × B \widehat{\mathbf{M}}\in\mathbb{R}^{B\times B} M ∈ R B × B , we construct
X ^ G R O O T ( M ^ ) = P 0 M ^ Π ~ 0 − Π ~ 0 M ^ T P 0 (34) \widehat{\mathbf{X}}_{\mathrm{GROOT}}\left(\widehat{\mathbf{M}}\right)=\mathbf{P}_0\widehat{\mathbf{M}}\widetilde{\boldsymbol{\Pi}}_0-\widetilde{\boldsymbol{\Pi}}_0\widehat{\mathbf{M}}^{\mathsf{T}}\mathbf{P}_0 \tag*{(34)} X GROOT ( M ) = P 0 M Π 0 − Π 0 M T P 0 (34)
which lies in p \mathfrak{p} p , as shown in App. B, Proposition 3. The GROOTr o t _{\mathrm{rot}} rot map M ^ ↦ X ^ G R O O T ( M ^ ) \widehat{\mathbf{M}}\mapsto\widehat{\mathbf{X}}_{\mathrm{GROOT}}(\widehat{\mathbf{M}}) M ↦ X GROOT ( M ) is surjective onto p \mathfrak{p} p because every valid X ∈ p \mathbf{X}\in\mathfrak{p} X ∈ p is a fixed point, i.e. choosing M ^ = X \widehat{\mathbf{M}}=\mathbf{X} M = X yields X ^ G R O O T ( M ^ ) = X \widehat{\mathbf{X}}_{\mathrm{GROOT}}(\widehat{\mathbf{M}})=\mathbf{X} X GROOT ( M ) = X , as shown in App. B, Proposition 4.
Proposition 3 (Validity of the GROOT map).
For an arbitrary matrix M ^ ∈ R B × B \widehat{\mathbf{M}}\in\mathbb{R}^{B\times B} M ∈ R B × B , the generator X ^ G R O O T ( M ^ ) \widehat{\mathbf{X}}_{\mathrm{GROOT}}(\widehat{\mathbf{M}}) X GROOT ( M ) of Eq. (34) lies in p \mathfrak{p} p for every input.
Proof. Let A ~ = P ~ 0 M ^ Π ~ 0 \widetilde{\mathbf{A}}=\widetilde{\mathbf{P}}_0\widehat{\mathbf{M}}\widetilde{\boldsymbol{\Pi}}_0 A = P 0 M Π 0 . Since the projectors are symmetric, X ^ G R O O T ( M ^ ) = A ~ − A ~ T \widehat{\mathbf{X}}_{\mathrm{GROOT}}(\widehat{\mathbf{M}})=\widetilde{\mathbf{A}}-\widetilde{\mathbf{A}}^{\mathsf{T}} X GROOT ( M ) = A − A T is skew-symmetric. Moreover, since R ~ 0 P ~ 0 = P ~ 0 \widetilde{\mathbf{R}}_0\widetilde{\mathbf{P}}_0=\widetilde{\mathbf{P}}_0 R 0 P 0 = P 0 and R ~ 0 Π ~ 0 = − Π ~ 0 \widetilde{\mathbf{R}}_0\widetilde{\boldsymbol{\Pi}}_0=-\widetilde{\boldsymbol{\Pi}}_0 R 0 Π 0 = − Π 0 , together with the corresponding right-multiplication identities, we have R ~ 0 A ~ R ~ 0 = − A ~ \widetilde{\mathbf{R}}_0\widetilde{\mathbf{A}}\widetilde{\mathbf{R}}_0=-\widetilde{\mathbf{A}} R 0 A R 0 = − A and R ~ 0 A ~ T R ~ 0 = − A ~ T \widetilde{\mathbf{R}}_0\widetilde{\mathbf{A}}^{\mathsf{T}}\widetilde{\mathbf{R}}_0=-\widetilde{\mathbf{A}}^{\mathsf{T}} R 0 A T R 0 = − A T . Therefore,
R ~ 0 X ^ G R O O T ( M ^ ) R ~ 0 = − X ^ G R O O T ( M ^ ) . (35) \widetilde{\mathbf{R}}_0\widehat{\mathbf{X}}_{\mathrm{GROOT}}(\widehat{\mathbf{M}})\widetilde{\mathbf{R}}_0=-\widehat{\mathbf{X}}_{\mathrm{GROOT}}(\widehat{\mathbf{M}}). \tag*{(35)} R 0 X GROOT ( M ) R 0 = − X GROOT ( M ) . (35) Since R ~ 0 2 = I \widetilde{\mathbf{R}}_0^2=\mathbf{I} R 0 2 = I , this is equivalent to the required anticommutation relation. Thus X ^ G R O O T ( M ^ ) \widehat{\mathbf{X}}_{\mathrm{GROOT}}(\widehat{\mathbf{M}}) X GROOT ( M ) lies in p \mathfrak{p} p . □
Proposition 4 (Surjectivity of the GROOT map).
Every generator X ∈ p \mathbf{X}\in\mathfrak{p} X ∈ p can be reached by the GROOT map, since X ^ G R O O T ( X ) = X \widehat{\mathbf{X}}_{\mathrm{GROOT}}(\mathbf{X})=\mathbf{X} X GROOT ( X ) = X .
Proof. Let X ∈ p \mathbf{X}\in\mathfrak{p} X ∈ p . Choose M ^ = X \widehat{\mathbf{M}}=\mathbf{X} M = X . Since X T = − X \mathbf{X}^{\mathsf{T}}=-\mathbf{X} X T = − X , the readout gives
X ^ G R O O T ( X ) = P ~ 0 X Π ~ 0 + Π ~ 0 X P ~ 0 = X . (36) \widehat{\mathbf{X}}_{\mathrm{GROOT}}(\mathbf{X})=\widetilde{\mathbf{P}}_0\mathbf{X}\widetilde{\boldsymbol{\Pi}}_0+\widetilde{\boldsymbol{\Pi}}_0\mathbf{X}\widetilde{\mathbf{P}}_0=\mathbf{X}. \tag*{(36)} X GROOT ( X ) = P 0 X Π 0 + Π 0 X P 0 = X . (36) Thus every valid generator has a preimage, and the map is surjective. □
The first two propositions show that any target occupied subspace is geometrically reachable and that non-minimal transporting rotations differ only by block-diagonal orbital rotations that leave the endpoint densities unchanged. Propositions 3 and 4 show that the GROOT map reaches the entire space of minimal geodesic generators while producing a valid generator for every possible neural-network output.
The GROOTr o t _{\mathrm{rot}} rot readout must also preserve the S O ( 3 ) SO(3) S O ( 3 ) -equivariance of the underlying matrix decoder. A spatial rotation induces a corresponding U ∈ S O ( B ) \mathbf{U} \in SO(B) U ∈ S O ( B ) in the orthonormal basis, transforming both P 0 \mathbf{P}_0 P 0 and M ^ \hat{\mathbf{M}} M ^ as Y → U Y U T \mathbf{Y} \to\mathbf{U}\mathbf{Y}\mathbf{U}^{\mathsf{T}} Y → UY U T , so Eq. (34) gives X ^ G R O O T → U X ^ G R O O T U T \hat{\mathbf{X}}_{\mathrm{GROOT}} \to\mathbf{U}\hat{\mathbf{X}}_{\mathrm{GROOT}}\mathbf{U}^{\mathsf{T}} X ^ GROOT → U X ^ GROOT U T . Hence, GROOTr o t _{\mathrm{rot}} rot ’s covariant generator can learn to produce a rotation to any valid target density P ^ ≈ P ∗ \hat{\mathbf{P}} \approx\mathbf{P}^{*} P ^ ≈ P ∗ from P 0 \mathbf{P}_0 P 0 (Proposition 1)
P ^ = exp ( X ^ G R O O T ( M ^ ) ) P 0 exp ( − X ^ G R O O T ( M ^ ) ) . (37) \hat{\mathbf{P}}=\exp\left(\hat{\mathbf{X}}_{\mathrm{GROOT}}(\hat{\mathbf{M}})\right)\mathbf{P}_0\exp\left(-\hat{\mathbf{X}}_{\mathrm{GROOT}}(\hat{\mathbf{M}})\right). \tag*{(37)} P ^ = exp ( X ^ GROOT ( M ^ ) ) P 0 exp ( − X ^ GROOT ( M ^ ) ) . (37)
Observable Bounds for the Orthonormal Loss
We derive the observable-error bounds summarized in Table 1 at a fixed molecular geometry. Density errors give linear bounds for one-body observables, including the dipole and real-space density. For valid density projectors, stationarity makes the energy error quadratic. Hamiltonian predictions inherit these bounds through their occupied eigenspaces, with an additional dependence on the HOMO–LUMO gap.
We use real matrices and the closed-shell, spin-free convention P e ∗ = C o ∗ C o ∗ T \mathbf{P}_{e}^{*}=\mathbf{C}_{o}^{*}\mathbf{C}_{o}^{*\mathsf{T}} P e ∗ = C o ∗ C o ∗ T , where tr ( P e ∗ ) = O \operatorname{tr}(\mathbf{P}_{e}^{*})=O tr ( P e ∗ ) = O and O O O is the number of occupied orbitals. The physical electron density includes an occupation factor of two. We write D = P ^ e − P e ∗ \mathbf{D}=\hat{\mathbf{P}}_{e}-\mathbf{P}_{e}^{*} D = P ^ e − P e ∗ for the density error and assume that the overlap matrix S \mathbf{S} S is positive definite. For the energy bounds, we assume that E m E_m E m is three times continuously differentiable near the reference, with locally bounded third derivative, and stationary there under rotations between occupied and virtual orbitals. All asymptotic statements concern small errors for a fixed sample m m m . The bounds use unnormalized Frobenius norms, so substitution of ∥ Δ X ~ e ∥ F = B L O N \lVert\Delta\tilde{\mathbf{X}}_{e}\rVert_F=B\mathcal{L}_{\mathrm{ON}} ∥ Δ X ~ e ∥ F = B L ON gives the corresponding bounds for the loss in Eq. (7) .
AO and Orthonormal Frobenius Errors
The overlap eigenvalues determine how the AO and orthonormal norms weight each error direction. Write
S = U diag ( λ 1 , … , λ B ) U T , 0 < λ min ≤ λ i ≤ λ max . (38) \mathbf{S}=\mathbf{U}\operatorname{diag}(\lambda_1,\ldots,\lambda_B)\mathbf{U}^{\mathsf{T}},\qquad0<\lambda_{\min}\leq\lambda_i\leq\lambda_{\max}. \tag*{(38)} S = U diag ( λ 1 , … , λ B ) U T , 0 < λ m i n ≤ λ i ≤ λ m a x . (38)
In this eigenbasis, let Δ X ˉ = U T Δ X U \Delta\bar{\mathbf{X}}=\mathbf{U}^{\mathsf{T}}\Delta\mathbf{X}\mathbf{U} Δ X ˉ = U T Δ XU . The density transformation in Eq. (3) gives ∥ Δ P ~ ∥ F 2 = ∑ i , j λ i λ j ∣ Δ P ˉ i j ∣ 2 \lVert\Delta\tilde{\mathbf{P}}\rVert_F^2=\sum_{i,j}\lambda_i\lambda_j\lvert\Delta\bar{P}_{ij}\rvert^2 ∥ Δ P ~ ∥ F 2 = ∑ i , j λ i λ j ∣ Δ P ˉ ij ∣ 2 , whereas the Hamiltonian transformation gives ∥ Δ H ~ ∥ F 2 = ∑ i , j ∣ Δ H ˉ i j ∣ 2 / ( λ i λ j ) \lVert\Delta\tilde{\mathbf{H}}\rVert_F^2=\sum_{i,j}\lvert\Delta\bar{H}_{ij}\rvert^2/(\lambda_i\lambda_j) ∥ Δ H ~ ∥ F 2 = ∑ i , j ∣ Δ H ˉ ij ∣ 2 / ( λ i λ j ) . Bounding each weight by its extreme values yields
λ min ∥ Δ P ∥ F ≤ ∥ Δ P ~ ∥ F ≤ λ max ∥ Δ P ∥ F . (39) \lambda_{\min}\lVert\Delta\mathbf{P}\rVert_F\leq\lVert\Delta\tilde{\mathbf{P}}\rVert_F\leq\lambda_{\max}\lVert\Delta\mathbf{P}\rVert_F. \tag*{(39)} λ m i n ∥ Δ P ∥ F ≤ ∥ Δ P ~ ∥ F ≤ λ m a x ∥ Δ P ∥ F . (39)
λ max − 1 ∥ Δ H ∥ F ≤ ∥ Δ H ~ ∥ F ≤ λ min − 1 ∥ Δ H ∥ F . (40) \lambda_{\max}^{-1}\lVert\Delta\mathbf{H}\rVert_F\leq\lVert\Delta\tilde{\mathbf{H}}\rVert_F\leq\lambda_{\min}^{-1}\lVert\Delta\mathbf{H}\rVert_F. \tag*{(40)} λ m a x − 1 ∥ Δ H ∥ F ≤ ∥ Δ H ~ ∥ F ≤ λ m i n − 1 ∥ Δ H ∥ F . (40)
Errors of the form u i u i T \mathbf{u}_i\mathbf{u}_i^{\mathsf{T}} u i u i T attain these endpoints when u i \mathbf{u}_i u i is an extreme overlap eigenvector. The constants are therefore sharp for unrestricted symmetric errors. Restrictions to projector tangent directions or occupied–virtual Hamiltonian blocks can lower the constants for a particular sample.
Relative to the orthonormal norm, the plain AO density norm gives more weight to directions with small overlap eigenvalues and less weight to directions with large eigenvalues. For Hamiltonian errors, the weighting reverses. Eqs. (39) and (40) supply the worst-case AO conversion factors in Table 1 . They do not establish that the orthonormal bound is tighter for every observable and error direction.
Choice of Orthonormal Basis
Every full-rank orthonormalization gives the same Frobenius loss. To see this, take any square matrix W \mathbf{W} W satisfying W T S W = I \mathbf{W}^{\mathsf{T}}\mathbf{S}\mathbf{W}=\mathbf{I} W T SW = I and set Q = S 1 / 2 W \mathbf{Q}=\mathbf{S}^{1/2}\mathbf{W} Q = S 1/2 W . Then Q T Q = I \mathbf{Q}^{\mathsf{T}}\mathbf{Q}=\mathbf{I} Q T Q = I and W = S − 1 / 2 Q \mathbf{W}=\mathbf{S}^{-1/2}\mathbf{Q} W = S − 1/2 Q . The resulting Hamiltonian and density representations are Q T H ~ Q \mathbf{Q}^{\mathsf{T}}\tilde{\mathbf{H}}\mathbf{Q} Q T H ~ Q and Q T P ~ Q \mathbf{Q}^{\mathsf{T}}\tilde{\mathbf{P}}\mathbf{Q} Q T P ~ Q , respectively. Orthogonal invariance gives ∥ Q T Δ X ~ Q ∥ F = ∥ Δ X ~ ∥ F \lVert Q^{\mathsf{T}}\widetilde{\Delta X}Q\rVert_F = \lVert\Delta\widetilde{X}\rVert_F ∥ Q T Δ X Q ∥ F = ∥ Δ X ∥ F for either matrix. The symmetric Löwdin choice additionally minimizes the sum of squared distances between the original basis functions and their orthonormal counterparts ([12 ] (Löwdin 1950)).
Observable-specific bounds also depend on the observable operator. For example, an AO one-body operator M = S 1 / 2 M ~ S 1 / 2 \mathbf{M} = \mathbf{S}^{1/2}\widetilde{\mathbf{M}}\mathbf{S}^{1/2} M = S 1/2 M S 1/2 satisfies ∣ tr ( M Δ P ) ∣ ≤ ∥ M ∥ F ∥ Δ P ∥ F \lvert\operatorname{tr}(\mathbf{M}\Delta\mathbf{P})\rvert\le\lVert\mathbf{M}\rVert_F\lVert\Delta\mathbf{P}\rVert_F ∣ tr ( M Δ P )∣ ≤ ∥ M ∥ F ∥ Δ P ∥ F , with
λ min ∥ M ~ ∥ F ≤ ∥ M ∥ F ≤ λ max ∥ M ~ ∥ F . \lambda_{\min}\lVert\widetilde{\mathbf{M}}\rVert_F \le\lVert\mathbf{M}\rVert_F \le\lambda_{\max}\lVert\widetilde{\mathbf{M}}\rVert_F. λ m i n ∥ M ∥ F ≤ ∥ M ∥ F ≤ λ m a x ∥ M ∥ F .
Thus, a direct AO bound can have a smaller or larger constant than its orthonormal counterpart.
General Density Errors
An unconstrained density prediction can incur a first-order energy error even at a stationary reference. Under our occupation convention, ∇ E m [ P ~ ∗ ] = 2 H ~ ∗ \nabla E_m[\widetilde{\mathbf{P}}^*] = 2\widetilde{\mathbf{H}}^* ∇ E m [ P ∗ ] = 2 H ∗ , so Taylor expansion gives
E m [ P ~ ∗ + D ] − E m [ P ~ ∗ ] = 2 ⟨ H ~ ∗ , D ⟩ F + O ( ∥ D ∥ F 2 ) . E_m[\widetilde{\mathbf{P}}^*+\mathbf{D}] - E_m[\widetilde{\mathbf{P}}^*] = 2\langle\widetilde{\mathbf{H}}^*,\mathbf{D}\rangle_F + O(\lVert\mathbf{D}\rVert_F^2). E m [ P ∗ + D ] − E m [ P ∗ ] = 2 ⟨ H ∗ , D ⟩ F + O (∥ D ∥ F 2 ) .
Cauchy–Schwarz bounds the magnitude of the linear term by 2 ∥ H ~ ∗ ∥ F ∥ D ∥ F 2\lVert\widetilde{\mathbf{H}}^*\rVert_F\lVert\mathbf{D}\rVert_F 2 ∥ H ∗ ∥ F ∥ D ∥ F . Stationarity makes H ~ ∗ \widetilde{\mathbf{H}}^* H ∗ block diagonal in the occupied–virtual basis, so only the occupied–occupied and virtual–virtual blocks of D \mathbf{D} D contribute to this term. An unconstrained predictor can change these blocks at first order through occupation or charge errors.
One-body observables depend linearly on the density matrix. For an observable with orthonormal-basis matrix M ~ \widetilde{\mathbf{M}} M , including its fixed charge and occupation factors, Cauchy–Schwarz gives
∣ Δ M ∣ = ∣ tr ( M ~ D ) ∣ ≤ ∥ M ~ ∥ F ∥ D ∥ F . \lvert\Delta M\rvert= \lvert\operatorname{tr}(\widetilde{\mathbf{M}}\mathbf{D})\rvert\le\lVert\widetilde{\mathbf{M}}\rVert_F\lVert\mathbf{D}\rVert_F. ∣ Δ M ∣ = ∣ tr ( M D )∣ ≤ ∥ M ∥ F ∥ D ∥ F .
For the dipole, we apply this inequality to each Cartesian component, square the three inequalities, and add them. With C μ , m 2 = ∑ α ∈ { x , y , z } ∥ μ ~ α ∥ F 2 C_{\mu,m}^2 = \sum_{\alpha\in\{x,y,z\}}\lVert\widetilde{\boldsymbol{\mu}}_\alpha\rVert_F^2 C μ , m 2 = ∑ α ∈ { x , y , z } ∥ μ α ∥ F 2 , the result is ∥ Δ μ ∥ 2 ≤ C μ , m ∥ D ∥ F \lVert\Delta\boldsymbol{\mu}\rVert_2 \le C_{\mu,m}\lVert\mathbf{D}\rVert_F ∥ Δ μ ∥ 2 ≤ C μ , m ∥ D ∥ F . This proves the dipole row of Table 1 . The nuclear contribution cancels because we compare predictions at the same geometry.
The real-space electron density is another linear function of the density matrix. For real orthonormal basis functions χ ~ μ \widetilde{\chi}_\mu χ μ , define Φ μ ν ( r ) = 2 χ ~ μ ( r ) χ ~ ν ( r ) \Phi_{\mu\nu}(r) = 2\widetilde{\chi}_\mu(r)\widetilde{\chi}_\nu(r) Φ μν ( r ) = 2 χ μ ( r ) χ ν ( r ) and Δ ρ ( r ) = ∑ μ , ν D μ ν Φ μ ν ( r ) \Delta\rho(r) = \sum_{\mu,\nu}D_{\mu\nu}\Phi_{\mu\nu}(r) Δ ρ ( r ) = ∑ μ , ν D μν Φ μν ( r ) . Its L 1 L_1 L 1 norm measures the integrated absolute density error and satisfies
∥ Δ ρ ∥ L 1 ≤ 2 ∑ j = 1 B ∣ d j ∣ ≤ 2 B ∥ D ∥ F . \lVert\Delta\rho\rVert_{L_1} \le2\sum_{j=1}^{B}\lvert d_j\rvert\le2\sqrt{B}\lVert\mathbf{D}\rVert_F. ∥ Δ ρ ∥ L 1 ≤ 2 j = 1 ∑ B ∣ d j ∣ ≤ 2 B ∥ D ∥ F .
where d j d_j d j are the eigenvalues of D \mathbf{D} D . To obtain the first inequality, diagonalize D \mathbf{D} D and rotate the basis functions by the same orthogonal matrix. Then Δ ρ = 2 ∑ j d j ψ j 2 \Delta\rho= 2\sum_j d_j\psi_j^2 Δ ρ = 2 ∑ j d j ψ j 2 with ∫ ψ j 2 = 1 \int\psi_j^2 = 1 ∫ ψ j 2 = 1 , so the triangle inequality applies term by term. The second inequality is Cauchy–Schwarz. Taking D = I \mathbf{D} = \mathbf{I} D = I attains both inequalities, so the induced Frobenius-to-L 1 L_1 L 1 constant for unrestricted symmetric errors is C 1 , m = 2 B C_{1,m} = 2\sqrt{B} C 1 , m = 2 B .
The L 2 L_2 L 2 density error depends on the spatial overlap of the basis-function products. Assuming these products are square-integrable, define Γ ( μ ν ) , ( κ ℓ ) = ∫ Φ μ ν ( r ) Φ κ ℓ ( r ) d r \Gamma_{(\mu\nu),(\kappa\ell)} = \int\Phi_{\mu\nu}(r)\Phi_{\kappa\ell}(r)\,\mathrm{d}r Γ ( μν ) , ( κ ℓ ) = ∫ Φ μν ( r ) Φ κ ℓ ( r ) d r . Expanding the squared density error gives
∥ Δ ρ ∥ L 2 2 = vec ( D ) T Γ vec ( D ) ≤ λ max ( Γ ) ∥ D ∥ F 2 . \lVert\Delta\rho\rVert_{L_2}^2 = \operatorname{vec}(\mathbf{D})^{\mathsf{T}}\Gamma\operatorname{vec}(\mathbf{D}) \le\lambda_{\max}(\Gamma)\lVert\mathbf{D}\rVert_F^2. ∥ Δ ρ ∥ L 2 2 = vec ( D ) T Γ vec ( D ) ≤ λ m a x ( Γ ) ∥ D ∥ F 2 .
Thus ∥ Δ ρ ∥ L 2 ≤ C 2 , m ∥ D ∥ F \lVert\Delta\rho\rVert_{L_2} \le C_{2,m}\lVert\mathbf{D}\rVert_F ∥ Δ ρ ∥ L 2 ≤ C 2 , m ∥ D ∥ F , where C 2 , m = λ max ( Γ ) C_{2,m} = \sqrt{\lambda_{\max}(\Gamma)} C 2 , m = λ m a x ( Γ ) . The L 2 L_2 L 2 row in Table 1 refers to the norm itself, whose bound is linear in ∥ D ∥ F \lVert\mathbf{D}\rVert_F ∥ D ∥ F . Its square has a quadratic bound. Substituting (39) into these observable bounds supplies one factor of λ max \lambda_{\max} λ m a x for each power of the density error.
Grassmann-Constrained Density Errors
For a valid rank-O O O projector, the leading density error only mixes occupied and virtual orbitals. This is the constraint that removes the first-order energy term. In the occupied–virtual basis, write P ~ ∗ = diag ( I O , 0 ) \widetilde{\mathbf{P}}^* = \operatorname{diag}(\mathbf{I}_O,\mathbf{0}) P ∗ = diag ( I O , 0 ) and parameterize a nearby projector by
K ( X ) = ( 0 X T − X 0 ) , P ~ ( X ) = e K ( X ) P ~ ∗ e − K ( X ) . \mathbf{K}(\mathbf{X}) =
\begin{pmatrix}
\mathbf{0} & \mathbf{X}^{\mathsf{T}} \\
-\mathbf{X} & \mathbf{0}
\end{pmatrix},
\qquad
\widetilde{\mathbf{P}}(\mathbf{X}) = e^{\mathbf{K}(\mathbf{X})}\widetilde{\mathbf{P}}^*e^{-\mathbf{K}(\mathbf{X})}. K ( X ) = ( 0 − X X T 0 ) , P ( X ) = e K ( X ) P ∗ e − K ( X ) .
Here X ∈ R ( B − O ) × O X \in\mathbb{R}^{(B-O)\times O} X ∈ R ( B − O ) × O contains the occupied–virtual rotation parameters. Because K K K is skew-symmetric, this construction preserves rank and idempotency. Expansion around X = 0 X=0 X = 0 gives
D = ( 0 − X T − X 0 ) + ( − X T X 0 0 X X T ) + O ( ∥ X ∥ F 3 ) . (41) D=\begin{pmatrix}0&-X^{\mathsf{T}}\\-X&0\end{pmatrix}+\begin{pmatrix}-X^{\mathsf{T}}X&0\\0&XX^{\mathsf{T}}\end{pmatrix}+\mathcal{O}(\lVert X\rVert_{F}^{3}). \tag*{(41)} D = ( 0 − X − X T 0 ) + ( − X T X 0 0 X X T ) + O (∥ X ∥ F 3 ) . (41)
The diagonal blocks begin at second order. The squared error satisfies ∥ D ∥ F 2 = 2 ∥ X ∥ F 2 + O ( ∥ X ∥ F 4 ) \lVert D\rVert_{F}^{2}=2\lVert X\rVert_{F}^{2}+\mathcal{O}(\lVert X\rVert_{F}^{4}) ∥ D ∥ F 2 = 2 ∥ X ∥ F 2 + O (∥ X ∥ F 4 ) .
To make the energy constant precise, let x = vec ( X ) x=\operatorname{vec}(X) x = vec ( X ) and let A m A_m A m be the Hessian of f m ( x ) = E m [ P ~ ( X ) ] f_m(x)=E_m[\widetilde{P}(X)] f m ( x ) = E m [ P ( X )] at x = 0 x=0 x = 0 . Stationarity gives ∇ f m ( 0 ) = 0 \nabla f_m(0)=0 ∇ f m ( 0 ) = 0 , hence f m ( x ) − f m ( 0 ) = x T A m x / 2 + O ( ∥ x ∥ 3 3 ) f_m(x)-f_m(0)=x^{\mathsf{T}}A_mx/2+\mathcal{O}(\lVert x\rVert_{3}^{3}) f m ( x ) − f m ( 0 ) = x T A m x /2 + O (∥ x ∥ 3 3 ) . Define h m = ∥ A m ∥ 2 / 2 h_m=\lVert A_m\rVert_{2}/2 h m = ∥ A m ∥ 2 /2 , where ∥ ⋅ ∥ 2 \lVert\cdot\rVert_{2} ∥ ⋅ ∥ 2 denotes the spectral norm. The factor of two accounts for the two off-diagonal blocks in the Frobenius norm of a tangent perturbation. We obtain
∣ E m [ P ~ ] − E m [ P ~ ∗ ] ∣ ≤ h m 2 ∥ D ∥ F 2 + O ( ∥ D ∥ F 3 ) . (42) \left|E_m[\widetilde{P}]-E_m[\widetilde{P}^{*}]\right|\leq\frac{h_m}{2}\lVert D\rVert_{F}^{2}+\mathcal{O}(\lVert D\rVert_{F}^{3}). \tag*{(42)} E m [ P ] − E m [ P ∗ ] ≤ 2 h m ∥ D ∥ F 2 + O (∥ D ∥ F 3 ) . (42)
This local bound holds for nearby rank-O O O projectors, including predictions from both GROOT constructions. The dipole and real-space density bounds remain linear because their maps are exactly linear in D D D .
The projector error also has an exact geometric interpretation. For principal angles θ i \theta_i θ i between the predicted and reference occupied subspaces,
∥ D ∥ F 2 = 2 ∑ i = 1 O sin 2 θ i = 2 ( O − tr ( P ~ P ~ ∗ ) ) . (43) \lVert D\rVert_{F}^{2}=2\sum_{i=1}^{O}\sin^{2}\theta_i=2\left(O-\operatorname{tr}(\widetilde{P}\widetilde{P}^{*})\right). \tag*{(43)} ∥ D ∥ F 2 = 2 i = 1 ∑ O sin 2 θ i = 2 ( O − tr ( P P ∗ ) ) . (43)
Eq. (43) connects the Frobenius error to the orbital-projection score without choosing individual occupied orbitals.
Hamiltonian-Induced Density Errors
A Hamiltonian prediction determines a valid density projector through its lowest O O O eigenvectors. Write H ~ = H ~ ∗ + V \widetilde{H}=\widetilde{H}^{*}+V H = H ∗ + V and let g = Δ ϵ H L = ϵ L U M O ∗ − ϵ H O M O ∗ > 0 g=\Delta\epsilon_{\mathrm{HL}}=\epsilon_{\mathrm{LUMO}}^{*}-\epsilon_{\mathrm{HOMO}}^{*}>0 g = Δ ϵ HL = ϵ LUMO ∗ − ϵ HOMO ∗ > 0 . We assume that P ~ ∗ \widetilde{P}^{*} P ∗ projects onto the lowest O O O eigenvectors of H ~ ∗ \widetilde{H}^{*} H ∗ and that ∥ V ∥ 2 < g / 2 \lVert V\rVert_{2}<g/2 ∥ V ∥ 2 < g /2 , which keeps the occupied and virtual eigenvalues separated. In the reference eigenbasis, first-order expansion of the projector and eigenvalue equations gives
D = ( 0 T T T 0 ) + O ( ∥ V ∥ F 2 / g 2 ) , T a i = − V a i ϵ a ∗ − ϵ i ∗ . D=\begin{pmatrix}0&T^{\mathsf{T}}\\T&0\end{pmatrix}+\mathcal{O}(\lVert V\rVert_{F}^{2}/g^{2}),\qquad T_{ai}=-\frac{V_{ai}}{\epsilon_{a}^{*}-\epsilon_{i}^{*}}. D = ( 0 T T T 0 ) + O (∥ V ∥ F 2 / g 2 ) , T ai = − ϵ a ∗ − ϵ i ∗ V ai .
Indices i i i and a a a denote occupied and virtual orbitals, respectively, and the matrix remainder is in Frobenius norm. The first-order diagonal blocks vanish by idempotency, and the occupied–virtual eigenvalue equation is ( ϵ a ∗ − ϵ i ∗ ) T a i + V a i = 0 (\epsilon_{a}^{*}-\epsilon_{i}^{*})T_{ai}+V_{ai}=0 ( ϵ a ∗ − ϵ i ∗ ) T ai + V ai = 0 . Thus
∥ D ∥ F 2 = 2 ∑ i ∈ o , a ∈ v ∣ V a i ∣ 2 ( ϵ a ∗ − ϵ i ∗ ) 2 + O ( ∥ V ∥ F 3 / g 3 ) ≤ ∥ V ∥ F 2 g 2 + O ( ∥ V ∥ F 3 / g 3 ) . \begin{aligned}
\lVert D\rVert_{F}^{2}=2\sum_{i\in o,\,a\in v}\frac{\lvert V_{ai}\rvert^{2}}{(\epsilon_{a}^{*}-\epsilon_{i}^{*})^{2}}+\mathcal{O}(\lVert V\rVert_{F}^{3}/g^{3}) \\
&\leq\frac{\lVert V\rVert_{F}^{2}}{g^{2}}+\mathcal{O}(\lVert V\rVert_{F}^{3}/g^{3}).
\end{aligned} ∥ D ∥ F 2 = 2 i ∈ o , a ∈ v ∑ ( ϵ a ∗ − ϵ i ∗ ) 2 ∣ V ai ∣ 2 + O (∥ V ∥ F 3 / g 3 ) ≤ g 2 ∥ V ∥ F 2 + O (∥ V ∥ F 3 / g 3 ) .
The inequality uses ϵ a ∗ − ϵ i ∗ ≥ g \epsilon_{a}^{*}-\epsilon_{i}^{*}\geq g ϵ a ∗ − ϵ i ∗ ≥ g and 2 ∑ i , a ∣ V a i ∣ 2 ≤ ∥ V ∥ F 2 2\sum_{i,a}\lvert V_{ai}\rvert^{2}\leq\lVert V\rVert_{F}^{2} 2 ∑ i , a ∣ V ai ∣ 2 ≤ ∥ V ∥ F 2 for symmetric V V V . Equivalently, ∥ D ∥ F ≤ ∥ V ∥ F / g + O ( ∥ V ∥ F 2 / g 2 ) \lVert D\rVert_{F}\leq\lVert V\rVert_{F}/g+\mathcal{O}(\lVert V\rVert_{F}^{2}/g^{2}) ∥ D ∥ F ≤ ∥ V ∥ F / g + O (∥ V ∥ F 2 / g 2 ) , which gives the inverse-gap factor for the dipole and density bounds.
For the energy rebuilt from this induced density, substitution into (42) gives
∣ E m [ P ~ ] − E m [ P ~ ∗ ] ∣ ≤ h m 2 g 2 ∥ V ∥ F 2 + O ( ∥ V ∥ F 3 / g 3 ) . (44) \left|E_m[\widetilde{P}]-E_m[\widetilde{P}^{*}]\right|\leq\frac{h_m}{2g^{2}}\lVert V\rVert_{F}^{2}+\mathcal{O}(\lVert V\rVert_{F}^{3}/g^{3}). \tag*{(44)} E m [ P ] − E m [ P ∗ ] ≤ 2 g 2 h m ∥ V ∥ F 2 + O (∥ V ∥ F 3 / g 3 ) . (44)
The curvature h m h_m h m and the remainder constants depend on the sample and energy functional. Eq. (44) gives the inverse-gap-squared factor in Tab. 1 without assuming how these constants vary across molecules. Using (40) adds a factor of λ min − 2 \lambda_{\min}^{-2} λ m i n − 2 to linear bounds and λ min − 2 \lambda_{\min}^{-2} λ m i n − 2 to quadratic bounds in the AO Hamiltonian error.
For the fixed independent-particle functional E 0 , m [ P ] = tr ( H ~ ∗ P ) E_{0,m}[P] = \operatorname{tr}(\widetilde{H}^{*}P) E 0 , m [ P ] = tr ( H ∗ P ) , we can retain each occupied–virtual gap to obtain a sharper energy bound. Substituting X = − T X=-T X = − T to first order into (41) gives
E 0 , m [ P ~ ^ e ] − E 0 , m [ P ~ e ∗ ] = ∑ i ∈ o , a ∈ v ∣ V a i ∣ 2 ϵ a ∗ − ϵ i ∗ + O ( ∥ V ∥ F 3 / g 2 ) ≤ ∥ V ∥ F 2 2 g + O ( ∥ V ∥ F 3 / g 2 ) . (45) E_{0,m}[\widehat{\widetilde{P}}_{\mathrm{e}}]-E_{0,m}[\widetilde{P}_{\mathrm{e}}^{*}]=\sum_{i\in o,a\in v}\frac{|V_{ai}|^{2}}{\epsilon_{a}^{*}-\epsilon_{i}^{*}}+O(\|\mathbf{V}\|_{F}^{3}/g^{2})
\leq\frac{\|\mathbf{V}\|_{F}^{2}}{2g}+O(\|\mathbf{V}\|_{F}^{3}/g^{2}). \tag*{(45)} E 0 , m [ P e ] − E 0 , m [ P e ∗ ] = i ∈ o , a ∈ v ∑ ϵ a ∗ − ϵ i ∗ ∣ V ai ∣ 2 + O ( ∥ V ∥ F 3 / g 2 ) ≤ 2 g ∥ V ∥ F 2 + O ( ∥ V ∥ F 3 / g 2 ) . (45)
For this functional, h 0 , m = max i , a ( ϵ a ∗ − ϵ i ∗ ) h_{0,m}=\max_{i,a}(\epsilon_{a}^{*}-\epsilon_{i}^{*}) h 0 , m = max i , a ( ϵ a ∗ − ϵ i ∗ ) . The generic curvature bound would have a quadratic coefficient larger by h 0 , m / g h_{0,m}/g h 0 , m / g . The inverse-gap bound in (45) follows from keeping the individual gaps and does not require h 0 , m h_{0,m} h 0 , m to scale with g g g . An explicit occupation factor of two doubles the energy and its bound. Evaluating energy directly from the predicted Hamiltonian eigenvalues can instead introduce a linear error through their first-order shifts.
Rotation Covariance and the Entrywise Term
Both AO and orthonormal Frobenius losses are invariant under physical rotations for the orthonormal spherical-harmonic shell convention used here. Such rotations act through an orthogonal matrix R R R , so ∥ R T Δ X R ∥ F = ∥ Δ X ∥ F \|R^{\mathsf{T}}\Delta X R\|_{F}=\|\Delta X\|_{F} ∥ R T Δ X R ∥ F = ∥Δ X ∥ F . The symmetric Löwdin transformation also preserves the same rotation law for the matrix representations because
( R T S R ) ± 1 / 2 = R T S ± 1 / 2 R . (46) (R^{\mathsf{T}}SR)^{\pm1/2}=R^{\mathsf{T}}S^{\pm1/2}R. \tag*{(46)} ( R T S R ) ± 1/2 = R T S ± 1/2 R . (46)
Order-dependent orthogonalizers, such as Cholesky or Gram–Schmidt, need not satisfy the covariance law in (46) , although they give the same invariant Frobenius loss. General nonorthogonal AO coordinate changes can alter the raw AO Frobenius norm.
An entrywise matrix L 1 L_{1} L 1 term does not share this orthogonal invariance. Writing ∥ A ∥ 1 , 1 = ∑ i , j ∣ A i j ∣ \|A\|_{1,1}=\sum_{i,j}|A_{ij}| ∥ A ∥ 1 , 1 = ∑ i , j ∣ A ij ∣ and ∥ A ∥ 1 = max j ∑ i ∣ A i j ∣ \|A\|_{1}=\max_{j}\sum_{i}|A_{ij}| ∥ A ∥ 1 = max j ∑ i ∣ A ij ∣ , we obtain
∥ Δ P ~ ∥ 1 , 1 ≤ ∥ S − 1 / 2 ∥ 2 2 ∥ Δ P ∥ 1 , 1 , ∥ Δ H ~ ∥ 1 , 1 ≤ ∥ S − 1 / 2 ∥ 2 2 ∥ Δ H ∥ 1 , 1 . \|\Delta\widetilde{P}\|_{1,1}\leq\|S^{-1/2}\|_{2}^{2}\|\Delta P\|_{1,1},\qquad\|\Delta\widetilde{H}\|_{1,1}\leq\|S^{-1/2}\|_{2}^{2}\|\Delta H\|_{1,1}. ∥Δ P ∥ 1 , 1 ≤ ∥ S − 1/2 ∥ 2 2 ∥Δ P ∥ 1 , 1 , ∥Δ H ∥ 1 , 1 ≤ ∥ S − 1/2 ∥ 2 2 ∥Δ H ∥ 1 , 1 .
These inequalities follow from vectorization and ∥ A ⊗ A ∥ 1 = ∥ A ∥ 1 2 \|A\otimes A\|_{1}=\|A\|_{1}^{2} ∥ A ⊗ A ∥ 1 = ∥ A ∥ 1 2 . The constants depend on the overlap eigenvectors as well as the eigenvalues. The overlap bounds and orthogonal invariance proved above therefore apply to the Frobenius loss in Eq. (7) . Adding an entrywise term does not preserve those guarantees for the full loss.
Directional Sensitivity in the Overlap Spectrum
This appendix formalizes the relative sensitivity analysis of § 5 . We formally introduce the sensitivity of a variable as its absolute positive directional derivative. We construct the eigenbasis from the overlap matrix and analytically derive the derivatives of L N O N \mathcal{L}_{\mathrm{NON}} L NON and L O N \mathcal{L}_{\mathrm{ON}} L ON .
Sensitivity as One-Sided Directional Derivatives
Let O \mathcal{O} O be an observable evaluated at the converged reference ground state X ∗ ∈ { H ∗ , P ∗ } X^{*}\in\{H^{*},P^{*}\} X ∗ ∈ { H ∗ , P ∗ } , and let Π ∈ R B × B \Pi\in\mathbb{R}^{B\times B} Π ∈ R B × B be a symmetric perturbation direction with ∥ Π ∥ F = 1 \|\Pi\|_{F}=1 ∥Π ∥ F = 1 . We measure the sensitivity of O \mathcal{O} O along Π \Pi Π by the one-sided directional derivative
D Π O ( X ∗ ) : = lim ϵ → 0 + O ( X ∗ + ϵ Π ) − O ( X ∗ ) ϵ . (47) D_{\Pi}\mathcal{O}(X^{*}):=\lim_{\epsilon\to0^{+}}\frac{\mathcal{O}(X^{*}+\epsilon\Pi)-\mathcal{O}(X^{*})}{\epsilon}. \tag*{(47)} D Π O ( X ∗ ) := ϵ → 0 + lim ϵ O ( X ∗ + ϵ Π ) − O ( X ∗ ) . (47)
The one-sided limit is required because the quantities we compare are not all differentiable at the reference. The L 2 L^{2} L 2 real-space density error and the Frobenius matrix norms entering both losses vanish at X ∗ X^{*} X ∗ and grow linearly in ϵ \epsilon ϵ in either direction, so their two-sided derivatives do not exist while Eq. (47) is well defined and positive. The sensitivity of O \mathcal{O} O along Π \Pi Π and the relative directional sensitivity of a loss L \mathcal{L} L with respect to O \mathcal{O} O are then
S Π ( O ) : = ∣ D Π O ( X ∗ ) ∣ , S r e l , Π ( L , O ) : = S Π ( L ) S Π ( O ) . (48) S_{\Pi}(\mathcal{O}):=\left|D_{\Pi}\mathcal{O}(X^{*})\right|,\qquad S_{\mathrm{rel},\Pi}(\mathcal{L},\mathcal{O}):=\frac{S_{\Pi}(\mathcal{L})}{S_{\Pi}(\mathcal{O})}. \tag*{(48)} S Π ( O ) := ∣ D Π O ( X ∗ ) ∣ , S rel , Π ( L , O ) := S Π ( O ) S Π ( L ) . (48)
The Overlap-Spectrum Basis of Directions
Due to its importance in deriving the Lipschitz continuity relationships between the NON loss and the physical observables we probe the sensitivity in a basis derived from the overlap S. We write the overlap matrix in its eigenbasis,
S = ∑ k = 1 B λ k u k u k T = U diag ( λ 1 , … , λ B ) U T , 0 < λ min ≤ λ k ≤ λ max , (49) \mathbf{S} = \sum_{k=1}^{B} \lambda_k \mathbf{u}_k \mathbf{u}_k^{\mathsf{T}} = \mathbf{U}\operatorname{diag}(\lambda_1,\ldots,\lambda_B)\mathbf{U}^{\mathsf{T}}, \qquad0 < \lambda_{\min} \le\lambda_k \le\lambda_{\max}, \tag*{(49)} S = k = 1 ∑ B λ k u k u k T = U diag ( λ 1 , … , λ B ) U T , 0 < λ m i n ≤ λ k ≤ λ m a x , (49)
consistent with Eq. (38) . Because the matrix-error bounds of App. § 11 are mediated by S, we resolve the analysis in the directions built from its eigenvectors,
Π i j : = { u i u i T , i = j , 1 2 ( u i u j T + u j u i T ) , i < j , (50) \boldsymbol{\Pi}_{ij} := \begin{cases}
\mathbf{u}_i\mathbf{u}_i^{\mathsf{T}}, & i=j,\\
\frac{1}{\sqrt{2}}\left(\mathbf{u}_i\mathbf{u}_j^{\mathsf{T}}+\mathbf{u}_j\mathbf{u}_i^{\mathsf{T}}\right), & i<j,
\end{cases} \tag*{(50)} Π ij := { u i u i T , 2 1 ( u i u j T + u j u i T ) , i = j , i < j , (50)
where the prefactors normalize each direction to ∥ Π i j ∥ F = 1 \lVert\boldsymbol{\Pi}_{ij}\rVert_F=1 ∥ Π ij ∥ F = 1 . The B ( B + 1 ) / 2 B(B+1)/2 B ( B + 1 ) /2 matrices { Π i j } i ≤ j \{\boldsymbol{\Pi}_{ij}\}_{i\le j} { Π ij } i ≤ j are mutually orthogonal under the Frobenius trace product tr ( A T B ) \operatorname{tr}(\mathbf{A}^{\mathsf{T}}\mathbf{B}) tr ( A T B ) and therefore form a complete orthonormal basis of the space of real symmetric B × B B\times B B × B matrices, which is exactly the space in which a symmetric matrix error Δ X \Delta X Δ X lives.
In addition to probing orthonormal perturbations the chosen basis decomposes the total Frobenius matrix error in its components. Since the total Frobenius error is itself invariant under orthonormal basis transformations we write
∥ Δ X ∥ F 2 = tr ( Δ X 2 ) = tr ( ( U T Δ X U ) 2 ) = tr ( Δ X ‾ 2 ) = ∥ Δ X ‾ ∥ F 2 . (51) \lVert\Delta X\rVert_F^2 = \operatorname{tr}(\Delta X^2) = \operatorname{tr}\left((\mathbf{U}^{\mathsf{T}}\Delta X\mathbf{U})^2\right) = \operatorname{tr}(\overline{\Delta X}^{\,2}) = \lVert\overline{\Delta X}\rVert_F^2. \tag*{(51)} ∥ Δ X ∥ F 2 = tr ( Δ X 2 ) = tr ( ( U T Δ X U ) 2 ) = tr ( Δ X 2 ) = ∥ Δ X ∥ F 2 . (51)
The total Frobenius error is then the sum of the squared components in the overlap basis, which we project out using the previously defined projectors,
∥ Δ X ‾ ∥ F 2 = ∑ i ( Δ X ‾ ) i i 2 + 2 ∑ i < j ( Δ X ‾ ) i j 2 = ∑ i ( u i T Δ X u i ) 2 + 2 ∑ i < j ( u i T Δ X u j ) 2 = ∑ i ≤ j tr ( Π i j Δ X ) 2 ≡ ∑ i ≤ j Δ x ‾ i j 2 . (52) \begin{aligned}
\lVert\overline{\Delta X}\rVert_F^2 &= \sum_i (\overline{\Delta X})_{ii}^2 + 2\sum_{i<j}(\overline{\Delta X})_{ij}^2\\
&= \sum_i(\mathbf{u}_i^{\mathsf{T}}\Delta X\mathbf{u}_i)^2 + 2\sum_{i<j}(\mathbf{u}_i^{\mathsf{T}}\Delta X\mathbf{u}_j)^2\\
&= \sum_{i\le j}\operatorname{tr}(\boldsymbol{\Pi}_{ij}\Delta X)^2 \equiv\sum_{i\le j}\overline{\Delta x}_{ij}^{\,2}. \tag*{(52)}
\end{aligned} ∥ Δ X ∥ F 2 = i ∑ ( Δ X ) ii 2 + 2 i < j ∑ ( Δ X ) ij 2 = i ∑ ( u i T Δ X u i ) 2 + 2 i < j ∑ ( u i T Δ X u j ) 2 = i ≤ j ∑ tr ( Π ij Δ X ) 2 ≡ i ≤ j ∑ Δ x ij 2 . (52)
This decomposition leads us to define the binned matrix error along a direction as the root mean square of its elements. Indexing the logarithmically spaced bins in λ i λ j \sqrt{\lambda_i\lambda_j} λ i λ j with b b b , the binned error is given by
Δ x ‾ b ≡ ⟨ Δ x ‾ i j 2 ⟩ b = ( 1 N b ∑ ( m , i , j ) ∈ b ( Δ x ‾ i j ( m ) ) 2 ) 1 / 2 , N b ≡ ∣ { ( m , i , j ) : λ i ( m ) λ j ( m ) ∈ b } ∣ . (53) \overline{\Delta x}_b \equiv\sqrt{\left\langle\overline{\Delta x}_{ij}^2\right\rangle_b} = \left(\frac{1}{N_b}\sum_{(m,i,j)\in b}\left(\overline{\Delta x}_{ij}^{(m)}\right)^2\right)^{1/2}, \qquad N_b \equiv\left|\left\{(m,i,j):\sqrt{\lambda_i^{(m)}\lambda_j^{(m)}}\in b\right\}\right|. \tag*{(53)} Δ x b ≡ ⟨ Δ x ij 2 ⟩ b = N b 1 ( m , i , j ) ∈ b ∑ ( Δ x ij ( m ) ) 2 1/2 , N b ≡ { ( m , i , j ) : λ i ( m ) λ j ( m ) ∈ b } . (53)
Here the superscript m m m indexes molecules. Squaring makes the bins additive and connects the binned errors back to total prediction error over the dataset
∑ b N b Δ x ‾ b 2 = ∑ m ∥ Δ X ( m ) ∥ F 2 . (54) \sum_b N_b\overline{\Delta x}_b^2 = \sum_m\left\lVert\Delta X^{(m)}\right\rVert_F^2. \tag*{(54)} b ∑ N b Δ x b 2 = m ∑ Δ X ( m ) F 2 . (54)
After picking the basis Π i j \boldsymbol{\Pi}_{ij} Π ij in Eq. (50) , we use the shorthands D i j ≡ D Π i j D_{ij}\equiv D_{\boldsymbol{\Pi}_{ij}} D ij ≡ D Π ij , S i j ≡ S Π i j S_{ij}\equiv S_{\boldsymbol{\Pi}_{ij}} S ij ≡ S Π ij and S r e l , i j ≡ S r e l , Π i j S_{\mathrm{rel},ij}\equiv S_{\mathrm{rel},\boldsymbol{\Pi}_{ij}} S rel , ij ≡ S rel , Π ij .
Loss Sensitivities
The reason Eq. (50) is the natural basis for this analysis is that it diagonalizes the overlap matrix S u i = λ i u i \mathbf{S}\mathbf{u}_i=\lambda_i\mathbf{u}_i S u i = λ i u i and therefore the transformation of both the non-orthonormal and the orthonormal loss functions L N O N \mathcal{L}_{\mathrm{NON}} L NON , L O N \mathcal{L}_{\mathrm{ON}} L ON . Applying the orthonormalizing basis transformations on the perturbation basis yields
S 1 / 2 Π i j S 1 / 2 = λ i λ j Π i j , S − 1 / 2 Π i j S − 1 / 2 = 1 λ i λ j Π i j . (55) \mathbf{S}^{1/2}\boldsymbol{\Pi}_{ij}\mathbf{S}^{1/2}=\sqrt{\lambda_i\lambda_j}\boldsymbol{\Pi}_{ij}, \qquad\mathbf{S}^{-1/2}\boldsymbol{\Pi}_{ij}\mathbf{S}^{-1/2}=\frac{1}{\sqrt{\lambda_i\lambda_j}}\boldsymbol{\Pi}_{ij}. \tag*{(55)} S 1/2 Π ij S 1/2 = λ i λ j Π ij , S − 1/2 Π ij S − 1/2 = λ i λ j 1 Π ij . (55)
Both losses are the normalized Frobenius loss ∥ Δ X ∥ F / B \lVert\Delta X\rVert_F/B ∥ Δ X ∥ F / B of Eq. (7) , evaluated in the non-orthonormal and the orthonormal basis respectively. Perturbing along a single direction leaves Δ X = ϵ Π i j \Delta X=\epsilon\Pi_{ij} Δ X = ϵ Π ij , so Eq. (47) together with Eq. (55) gives
S i j ( L N O N ) = ∥ Π i j ∥ F B = 1 B , S i j ( L O N ) = ∥ S s / 2 Π i j S s / 2 ∥ F B = ( λ i λ j ) s / 2 B . (56) S_{ij}(\mathcal{L}_{\mathrm{NON}})=\frac{\lVert\Pi_{ij}\rVert_F}{B}=\frac{1}{B},\qquad S_{ij}(\mathcal{L}_{\mathrm{ON}})=\frac{\lVert S^{s/2}\Pi_{ij}S^{s/2}\rVert_F}{B}=\frac{(\lambda_i\lambda_j)^{s/2}}{B}. \tag*{(56)} S ij ( L NON ) = B ∥ Π ij ∥ F = B 1 , S ij ( L ON ) = B ∥ S s /2 Π ij S s /2 ∥ F = B ( λ i λ j ) s /2 . (56)
with s = + 1 s=+1 s = + 1 for X = P \mathbf{X}=\mathbf{P} X = P and s = − 1 s=-1 s = − 1 for X = H \mathbf{X}=\mathbf{H} X = H (Eq. (3) ). The non-orthonormal loss weights every direction equally, while the orthonormal loss carries the factor ( λ i λ j ) s / 2 (\lambda_i\lambda_j)^{s/2} ( λ i λ j ) s /2 with which the direction enters the orthonormal representation, the same factor that mediates the observable bounds of App. C.
Observable Sensitivities
Energy The derivative of the energy E E E with respect to the density at the ground state is per definition the Hamiltonian matrix
∂ E ∂ P = H . (57) \frac{\partial E}{\partial P}=\mathbf{H}. \tag*{(57)} ∂ P ∂ E = H . (57)
Hence the sensitivity, i.e. the directional derivative of energy with respect to a perturbation, is given by
S i j ( E ) = ∣ tr ( H ∗ Π i j ) ∣ = 2 − δ i j ∣ ( U T H ∗ U ) i j ∣ (58) S_{ij}(E)=\lvert\operatorname{tr}(\mathbf{H}^{*}\Pi_{ij})\rvert=\sqrt{2-\delta_{ij}}\left\lvert\left(\mathbf{U}^{\mathsf{T}}\mathbf{H}^{*}\mathbf{U}\right)_{ij}\right\rvert \tag*{(58)} S ij ( E ) = ∣ tr ( H ∗ Π ij )∣ = 2 − δ ij ( U T H ∗ U ) ij (58)
so it reduces to rotating H ∗ \mathbf{H}^{*} H ∗ into the overlap eigenbasis with U \mathbf{U} U and reading off its ( i , j ) (i,j) ( i , j ) entry. Note that this is the unconstrained linear response with the Hamiltonian matrix fully pointing out of the Grassmannian manifold.
Dipole Since the dipole is linear in the density, μ α ( P ) = tr ( P μ α ) \mu_{\alpha}(\mathbf{P})=\operatorname{tr}(\mathbf{P}\boldsymbol{\mu}_{\alpha}) μ α ( P ) = tr ( P μ α ) with the dipole-integral matrices μ α \boldsymbol{\mu}_{\alpha} μ α , α ∈ { x , y , z } \alpha\in\{x,y,z\} α ∈ { x , y , z } , so is the dipole error with respect to a perturbation ϵ Π i j \epsilon\Pi_{ij} ϵ Π ij
Δ μ α = ϵ tr ( μ α Π i j ) = ϵ 2 − δ i j ( U T μ α U ) i j (59) \Delta\mu_{\alpha}=\epsilon\operatorname{tr}(\boldsymbol{\mu}_{\alpha}\Pi_{ij})=\epsilon\sqrt{2-\delta_{ij}}\left(\mathbf{U}^{\mathsf{T}}\boldsymbol{\mu}_{\alpha}\mathbf{U}\right)_{ij} \tag*{(59)} Δ μ α = ϵ tr ( μ α Π ij ) = ϵ 2 − δ ij ( U T μ α U ) ij (59)
The reported observable is the error magnitude ∥ Δ μ ∥ 2 \lVert\Delta\boldsymbol{\mu}\rVert_2 ∥ Δ μ ∥ 2 . Making use of the componentwise error linearity we obtain
S i j ( ∥ Δ μ ∥ 2 ) = 2 − δ i j ( ∑ α ∈ { x , y , z } ( U T μ α U ) i j 2 ) 1 / 2 . (60) S_{ij}(\lVert\Delta\boldsymbol{\mu}\rVert_2)=\sqrt{2-\delta_{ij}}\left(\sum_{\alpha\in\{x,y,z\}}\left(\mathbf{U}^{\mathsf{T}}\boldsymbol{\mu}_{\alpha}\mathbf{U}\right)_{ij}^{2}\right)^{1/2}. \tag*{(60)} S ij (∥ Δ μ ∥ 2 ) = 2 − δ ij α ∈ { x , y , z } ∑ ( U T μ α U ) ij 2 1/2 . (60)
L 1 L^1 L 1 density error The real-space density is linear in the density matrix, ρ ( r ) = ∑ μ ν P μ ν χ μ ( r ) χ ν ( r ) \rho(\mathbf{r})=\sum_{\mu\nu}P_{\mu\nu}\chi_{\mu}(\mathbf{r})\chi_{\nu}(\mathbf{r}) ρ ( r ) = ∑ μν P μν χ μ ( r ) χ ν ( r ) , so with the eigenvector orbitals u ˉ i ( r ) : = ∑ μ ( u i ) μ χ μ ( r ) \bar{u}_i(\mathbf{r}):=\sum_{\mu}(\mathbf{u}_i)_{\mu}\chi_{\mu}(\mathbf{r}) u ˉ i ( r ) := ∑ μ ( u i ) μ χ μ ( r ) the perturbation is again exact in ϵ \epsilon ϵ , Δ ρ ( ϵ , r ) = ϵ 2 − δ i j u ˉ i ( r ) u ˉ j ( r ) \Delta\rho(\epsilon,\mathbf{r})=\epsilon\sqrt{2-\delta_{ij}}\,\bar{u}_i(\mathbf{r})\bar{u}_j(\mathbf{r}) Δ ρ ( ϵ , r ) = ϵ 2 − δ ij u ˉ i ( r ) u ˉ j ( r ) , and the one-sided limit gives
S i j ( ∥ Δ ρ ∥ L 1 ) = 2 − δ i j ∥ u ˉ i u ˉ j ∥ L 1 = 2 − δ i j ∫ ∣ u ˉ i ( r ) u ˉ j ( r ) ∣ d r (61) S_{ij}(\lVert\Delta\rho\rVert_{L^1})=\sqrt{2-\delta_{ij}}\lVert\bar{u}_i\bar{u}_j\rVert_{L^1}=\sqrt{2-\delta_{ij}}\int\lvert\bar{u}_i(\mathbf{r})\bar{u}_j(\mathbf{r})\rvert\,\mathrm{d}r \tag*{(61)} S ij (∥ Δ ρ ∥ L 1 ) = 2 − δ ij ∥ u ˉ i u ˉ j ∥ L 1 = 2 − δ ij ∫ ∣ u ˉ i ( r ) u ˉ j ( r )∣ d r (61)
the absolute charge displaced along the direction. On the diagonal the prefactor is 2 − δ i i = 1 \sqrt{2-\delta_{ii}}=1 2 − δ ii = 1 and the integrand u ˉ i 2 \bar{u}_i^2 u ˉ i 2 is already non-negative, so the absolute value drops and the integral collapses onto the overlap itself,
S i i ( ∥ Δ ρ ∥ L 1 ) = ∫ u ˉ i ( r ) 2 d r = u i T S u i = λ i . (62) S_{ii}(\lVert\Delta\rho\rVert_{L^1})=\int\bar{u}_i(\mathbf{r})^2\,\mathrm{d}r=\mathbf{u}_i^{\mathsf{T}}S\mathbf{u}_i=\lambda_i. \tag*{(62)} S ii (∥ Δ ρ ∥ L 1 ) = ∫ u ˉ i ( r ) 2 d r = u i T S u i = λ i . (62)
L 2 L^2 L 2 density error Measuring the same perturbation in the L 2 L^2 L 2 norm instead gives
S i j ( ∥ Δ ρ ∥ L 2 ) = 2 − δ i j ∥ u ˉ i u ˉ j ∥ L 2 = 2 − δ i j ( ∫ u ˉ i ( r ) 2 u ˉ j ( r ) 2 d r ) 1 / 2 , (63) S_{ij}(\lVert\Delta\rho\rVert_{L^2})=\sqrt{2-\delta_{ij}}\lVert\bar{u}_i\bar{u}_j\rVert_{L^2}=\sqrt{2-\delta_{ij}}\left(\int\bar{u}_i(\mathbf{r})^2\bar{u}_j(\mathbf{r})^2\,\mathrm{d}r\right)^{1/2}, \tag*{(63)} S ij (∥ Δ ρ ∥ L 2 ) = 2 − δ ij ∥ u ˉ i u ˉ j ∥ L 2 = 2 − δ ij ( ∫ u ˉ i ( r ) 2 u ˉ j ( r ) 2 d r ) 1/2 , (63)
the spatial overlap of the two orbital densities that span the direction.
A Unifying Perspective on Hamiltonian and Density Learning
Naively, examining the inverse HOMO-LUMO gap scaling in Table 1 invites the question whether artificially increasing the gap could be utilized to reduce observable errors to zero. Combining ROCKET with the level shifts formally unifies Hamiltonian and density matrix learning problems through a continuous interpolation parameter ξ \xi ξ . Assume we learn a level-shifted Hamiltonian
H ~ ξ = H ~ + ξ ( I − P ~ ) = ξ I + ( H ~ − ξ P ~ ) . (64) \widetilde{\mathbf H}_{\xi}=\widetilde{\mathbf H}+\xi(\mathbf I-\widetilde{\mathbf P})=\xi\mathbf I+(\widetilde{\mathbf H}-\xi\widetilde{\mathbf P}). \tag*{(64)} H ξ = H + ξ ( I − P ) = ξ I + ( H − ξ P ) . (64)
Since any rescaling of the matrix target is absorbed by data normalization and L R O C K E T \mathcal{L}_{\mathrm{ROCKET}} L ROCKET is invariant under matrix shifts ξ I \xi\mathbf I ξ I we formalize an equivalence relation for Hamiltonian learning targets
[ H ~ 1 ] = [ H ~ 2 ] ⟺ ( ∃ c ∈ R , σ > 0 : H ~ 1 = σ ( H ~ 2 + c I ) ) . (65) [\widetilde{\mathbf H}_1]=[\widetilde{\mathbf H}_2]\Longleftrightarrow\left(\exists c\in\mathbb{R},\ \sigma>0:\widetilde{\mathbf H}_1=\sigma(\widetilde{\mathbf H}_2+c\mathbf I)\right). \tag*{(65)} [ H 1 ] = [ H 2 ] ⟺ ( ∃ c ∈ R , σ > 0 : H 1 = σ ( H 2 + c I ) ) . (65)
Such that we can rewrite Eq. (64) to obtain [ H ~ ξ ] = [ H ~ − ξ P ~ ] [\widetilde{\mathbf H}_{\xi}]=[\widetilde{\mathbf H}-\xi\widetilde{\mathbf P}] [ H ξ ] = [ H − ξ P ] . Dividing by ξ \xi ξ and taking the limit ξ → ∞ \xi\to\infty ξ → ∞ gives [ H ~ ξ ] = [ − P ~ ] [\widetilde{\mathbf H}_{\xi}]=[-\widetilde{\mathbf P}] [ H ξ ] = [ − P ] , meaning that in the limit of large level shifts, Hamiltonian learning reduces to density learning. This says nothing about the optimality of the level shift, but it makes the tradeoff between learning a smooth but higher-dimensional Hamiltonian target vs learning a discontinuous but lower-dimensional density target explicit.
Relation of the Orthonormal Loss to the Wavefunction Alignment Loss
Li et al. (2025b) introduce Wavefunction Alignment Loss (WALoss) for Hamiltonian prediction. Their construction is closely related to our orthonormal Hamiltonian supervision, but differs in several important respects. We distinguish the mathematical loss presented in the paper from the loss in the released implementation.2 The generalized eigenvectors of (1) satisfy
H ∗ C ∗ = S C ∗ ϵ , C ∗ T S C ∗ = I . (66) \mathbf H^*\mathbf C^*=\mathbf S\mathbf C^*\boldsymbol{\epsilon},\qquad\mathbf C^{*T}\mathbf S\mathbf C^*=\mathbf I. \tag*{(66)} H ∗ C ∗ = S C ∗ ϵ , C ∗ T S C ∗ = I . (66)
We further define Δ H = H ^ − H ∗ \Delta\mathbf H=\widehat{\mathbf H}-\mathbf H^* Δ H = H − H ∗ . The initial WALoss formulation in Eq. (2) of Li et al. (2025b) is
L W A ( 2 ) : = ∥ C W ∗ T H ^ C W ∗ − ϵ i ∗ ∥ F 2 ≡ ∥ C i ∗ T H ^ C i ∗ − C i ∗ T H ∗ C i ∗ ∥ F 2 = ∥ C ∗ T Δ H C ∗ ∥ F 2 . (67) \mathcal{L}_{\mathrm{WA}}^{(2)}:=\left\|\mathbf C_{\mathrm W}^{*T}\widehat{\mathbf H}\mathbf C_{\mathrm W}^*-\epsilon_i^*\right\|_{\mathrm F}^2\equiv\left\|\mathbf C_i^{*T}\widehat{\mathbf H}\mathbf C_i^*-\mathbf C_i^{*T}\mathbf H^*\mathbf C_i^*\right\|_{\mathrm F}^2=\left\|\mathbf C^{*T}\Delta\mathbf H\mathbf C^*\right\|_{\mathrm F}^2. \tag*{(67)} L WA ( 2 ) := C W ∗ T H C W ∗ − ϵ i ∗ F 2 ≡ C i ∗ T H C i ∗ − C i ∗ T H ∗ C i ∗ F 2 = C ∗ T Δ H C ∗ F 2 . (67)
This expression has a direct relation to ON-Loss. With H ~ = S − 1 / 2 H S − 1 / 2 \widetilde{\mathbf H}=\mathbf S^{-1/2}\mathbf H\mathbf S^{-1/2} H = S − 1/2 H S − 1/2 and C ~ ∗ = S 1 / 2 C ∗ \widetilde{\mathbf C}^*=\mathbf S^{1/2}\mathbf C^* C ∗ = S 1/2 C ∗ , the matrix C ~ ∗ \widetilde{\mathbf C}^* C ∗ is orthogonal and C ∗ T Δ H C ∗ = C ~ ∗ T Δ H ~ C ~ ∗ \mathbf C^{*T}\Delta\mathbf H\mathbf C^*=\widetilde{\mathbf C}^{*T}\Delta\widetilde{\mathbf H}\widetilde{\mathbf C}^* C ∗ T Δ H C ∗ = C ∗ T Δ H C ∗ , s.t. the invariance of the norm gives
∥ C ∗ T Δ H C ∗ ∥ F = ∥ Δ H ~ ∥ F . (68) \left\|\mathbf C^{*T}\Delta\mathbf H\mathbf C^*\right\|_{\mathrm F}=\left\|\Delta\widetilde{\mathbf H}\right\|_{\mathrm F}. \tag*{(68)} C ∗ T Δ H C ∗ F = Δ H F . (68)
Hence, if all entries are weighted uniformly, Eq. (67) uses exactly the same matrix geometry as our Löwdin formulation, up to normalization and the use of a squared rather than unsquared norm. The reference MO basis is simply a different choice of an orthonormal basis. However, the final WALoss equation presented in the paper is different. Eq. (3) of Li et al. (2025b) assigns weights ρ ≫ ξ \rho\gg\xi ρ ≫ ξ to the occupied orbitals and LUMO, but evaluates each state separately,
L W A ( 3 ) = ρ ∑ j ∈ I ( c j ∗ T Δ H c j ∗ ) 2 + ξ ∑ j ∉ I ( c j ∗ T Δ H c j ∗ ) 2 . (69) \mathcal{L}_{\mathrm{WA}}^{(3)}=\rho\sum_{j\in\mathcal I}\left(\mathbf c_j^{*T}\Delta\mathbf H\mathbf c_j^*\right)^2+\xi\sum_{j\notin\mathcal I}\left(\mathbf c_j^{*T}\Delta\mathbf H\mathbf c_j^*\right)^2. \tag*{(69)} L WA ( 3 ) = ρ j ∈ I ∑ ( c j ∗ T Δ H c j ∗ ) 2 + ξ j ∈ / I ∑ ( c j ∗ T Δ H c j ∗ ) 2 . (69)
Thus Eq. (69) contains only the diagonal of C ∗ T Δ H C ∗ \mathbf C^{*T}\Delta\mathbf H\mathbf C^* C ∗ T Δ H C ∗ . These terms are the first-order orbital-energy perturbations. In particular, the off-diagonal occupied–virtual couplings that drive first-order orbital rotations are absent. This contrasts with the preceding Eq. (2), whose full Frobenius norm does contain them.
The released implementation differs again. It explicitly forms both the diagonal and strict off-diagonal entries and, for its mean-squared-error (MSE) variant, uses 3
L W A c o d e = 1 B ∑ i T i i 2 + 1 B ( B − 1 ) ∑ i ≠ j T i j 2 , T = C ∗ T Δ H C ∗ . (70) \mathcal{L}_{\mathrm{WA}}^{\mathrm{code}}=\frac{1}{B}\sum_i T_{ii}^{2}+\frac{1}{B(B-1)}\sum_{i\ne j}T_{ij}^{2},\qquad\mathbf{T}=\mathbf{C}^{*\mathsf{T}}\Delta\mathbf{H}\mathbf{C}^{*}. \tag*{(70)} L WA code = B 1 i ∑ T ii 2 + B ( B − 1 ) 1 i = j ∑ T ij 2 , T = C ∗ T Δ H C ∗ . (70)
Eq. (70) is therefore not the uniformly weighted Frobenius norm in Eq. (68) . The separate means give each diagonal entry B − 1 B-1 B − 1 times the weight of each off-diagonal entry. Moreover, the released code does not apply the occupied–LUMO ρ / ξ \rho/\xi ρ / ξ weighting of Eq. (69) .
A further difference is that none of these flavors of WALoss is used as a standalone orthonormal loss, marking a significant gap in the literature w.r.t. the understanding of the proposed objective. The final training objective in App. K, Eq. (19) of Li et al. (2025b) combines it with elementwise MSE and MAE of the Hamiltonian in the original non-orthogonal representation.4 The AO Frobenius term retains the overlap-dependent anisotropy removed by Eq. (68) , while the entrywise MAE is not invariant even under a general orthogonal change of basis. Finally, WALoss does not account for the Hamiltonian gauge freedom. For any c ∈ R c\in\mathbb{R} c ∈ R ,
H ↦ H + c S , H ~ ↦ H ~ + c I , (71) \mathbf{H}\mapsto\mathbf{H}+c\mathbf{S},\qquad\widetilde{\mathbf{H}}\mapsto\widetilde{\mathbf{H}}+c\mathbf{I}, \tag*{(71)} H ↦ H + c S , H ↦ H + c I , (71)
leaves all generalized eigenvectors and therefore the density unchanged. Both the paper WALoss and its implementation nevertheless penalize this physically irrelevant direction through their diagonal terms. ROCKET instead quotients it out explicitly,
L R O C K E T = min c ∈ R L L o ¨ w d i n ( Δ H ~ − c I ) , (72) \mathcal{L}_{\mathrm{ROCKET}}=\min_{c\in\mathbb{R}}\mathcal{L}_{\mathrm{Löwdin}}\left(\Delta\widetilde{\mathbf{H}}-c\mathbf{I}\right), \tag*{(72)} L ROCKET = c ∈ R min L L o ¨ wdin ( Δ H − c I ) , (72)
before introducing any further conditioning or occupied-subspace structure. Thus, the occupied–LUMO emphasis of WALoss and our later ROCKET constructions should not be conflated: WALoss reweights a fixed reference Hamiltonian, whereas ROCKET first identifies Hamiltonians that represent the same physical ground state.
AO versus Löwdin Spatial Decay
Figure 6. AO versus Löwdin spatial decay for QM40 molecule 68311 at B3LYP/def2-SVP. Columns are H H H , P P P , P − P M I N A O P - P_{\mathrm{MINAO}} P − P MINAO , and H − H S A P − c S H - H_{\mathrm{SAP}} - cS H − H SAP − c S , each in the AO (a.k.a. NON) basis and after Löwdin orthogonalization, scaled by the dataset root-mean-square (RMS) σ 0 \sigma_0 σ 0 . AO entries decay with atom-pair distance. Löwdin entries remain large after the AO entries have dropped.
Datasets
We evaluate on five datasets. QM9 is the training set of the first regime, and QM40 tests the size extrapolation of the QM9-trained models. QMugs is the training set of the second regime and tests size extrapolation up to 660 electrons. 3BPA and Transition1x test the transfer of the QMugs-trained models to conformational and reactive chemistry. Table 4 to Table 8 provide one table per dataset. The upper block of each table describes the release and our copy of it. Each lower block covers one split, the rule that produced it, and the compute stages of Table 3 we ran on it.
Table 3. Compute stages, costs, and evaluated quantities for model predictions. Each split in Table 4 to Table 8 states the sample count evaluated at each stage. All errors are measured relative to the reference calculations of Table 2 .
Table 8. Transition1x reactive chemistry dataset splits and sample counts for self-consistency training (Schreiner et al., 2022). We inherit the release split, which assigns each molecular formula to one split, so our training, validation and test sets share no formula and no reaction. Within each reaction we keep the reactant (R), transition state (TS) and product (P) and a window of path images around the TS. We sign each image’s Kabsch root-mean-square deviation (RMSD) to the TS by the side of the TS it lies on. We divide [ − 0.5 , 0.5 ] [-0.5, 0.5] [ − 0.5 , 0.5 ] Å of this signed distance into 20 bins of 0.05 Å and keep the image nearest each bin center, dropping empty bins and geometric duplicates. Compute stages are defined in Table 3 .
Shared dataset conventions. From every release we take only the atomic numbers and Cartesian coordinates. Released energies, forces and other properties do not enter any loss or metric. We recompute every electronic-structure quantity with the pipeline of Table 2 . All molecules are neutral and closed-shell. A checkpoint’s element embedding is fixed by its training set. QM9-trained checkpoints know H, C, N, O and F, so we evaluate them only on datasets restricted to these elements. QMugs-trained checkpoints know H, C, N, O, F, P, S and Cl, so we can evaluate them on every dataset without Br or I. Each evaluation subset is a frozen list of sample identifiers, drawn with NumPy’s default_rng under the seed given in the tables. Where a table stratifies by size, we assign each molecule to the electron bin ⌊ N e l e c / 20 ⌋ ⋅ 20 \lfloor N_{\mathrm{elec}}/20 \rfloor\cdot20 ⌊ N elec /20 ⌋ ⋅ 20 and draw the same number of molecules from every bin, so each size carries equal weight.
Table 2. DFT reference pipeline (GPU4PySCF 1.8.1, B3LYP/def2-SVP, RI-JK). This pipeline produces the evaluation references for all five datasets, with the sample counts of each split given in Table 4 to Table 8 . It also produces the training labels of the QMugs-trained checkpoints. The QM9 training labels come from a separate store computed with identical settings except for a looser convergence threshold (Table 4 ). Transition1x self-consistency training uses no labels.
DFT reference. All reference labels use restricted Kohn–Sham DFT at B3LYP/def2-SVP. We run it with GPU4PySCF (Li et al., 2025a), the GPU backend of PySCF (Sun et al., 2020), with the settings in Table 2 .
Compute stages. We evaluate each prediction in up to three stages of increasing cost (Table 3 ). The cheap stage holds every metric available at the cost of one Fock build, the budget at which we compare all models. The SCF and force stages cost considerably more on large molecules. On the larger test sets we therefore run them on a nested subset only, drawn equally from every electron bin so that it keeps the size distribution of the full set. The stage rows of each test set in the dataset tables give the number of molecules per bin on which each stage ran.
Table 9. Output-scale normalization constants for different model types. σ 0 \sigma_0 σ 0 is the element-wise root-mean-square of the supervision target in the representation the readout emits into, using the Löwdin frame for the Löwdin-basis heads and the AO basis for the AO-basis heads. We fit all constants on the full training split (103,790 molecules) and verify them end-to-end through the training data pipeline on 20 random training molecules with agreement within 2.7%. The readout applies the constant internally. The additive heads compose init + σ 0 sym ( M ^ ) \sigma_0\operatorname{sym}(\hat{M}) σ 0 sym ( M ^ ) , while the rotation head scales the decoder output before generator construction (X ^ \hat{X} X ^ is linear in M ^ \hat{M} M ^ ), keeping the network output at unit scale while losses and gauge constants retain their physical units. c ˉ = 0.404129 \bar{c}=0.404129 c ˉ = 0.404129 Ha is the training-set constant gauge. c ˉ A O = 0.382862 \bar{c}_{\mathrm{AO}}=0.382862 c ˉ AO = 0.382862 Ha is the corresponding constant optimal in the AO Frobenius metric. The two metrics give different constants with spreads of 37.3 and 41.0 mHa. Because σ 0 \sigma_0 σ 0 anticorrelates with system size (r = − 0.86 r=-0.86 r = − 0.86 against the basis dimension), constants must be fitted on size-representative samples. For the rotation head, the decoder output M ^ \hat{M} M ^ enters through the projector sandwich X ^ ( M ^ ) \hat{X}(\hat{M}) X ^ ( M ^ ) (Eq. (34) ), which pins only the occupied–virtual block of M ^ \hat{M} M ^ at unit weight (P 0 S P_0S P 0 S is idempotent) and annihilates the rest. The value 0.0110 is the first-order pinned occupied–virtual block rms, measured against the purified MINAO projector. The true Grassmann-log value runs about 7% higher (≈ 0.0117 \approx0.0117 ≈ 0.0117 ), and we use the first-order convention because the fit and the configuration must share one convention. Under the Grassmann interpretation, σ 0 \sigma_0 σ 0 is a rotation-angle scale rather than a matrix-element scale. The gap-shifted target admits a closed-form constant because the shift lies in the span of { I , Π r e f } \{I,\Pi^{\mathrm{ref}}\} { I , Π ref } , giving σ 0 2 ( ξ ) = σ 0 , Δ H 2 + 2 b 1 ξ + b 2 ξ 2 \sigma_0^2(\xi)=\sigma_{0,\Delta H}^2+2b_1\xi+b_2\xi^2 σ 0 2 ( ξ ) = σ 0 , Δ H 2 + 2 b 1 ξ + b 2 ξ 2 with b 1 = E [ tr Δ − tr ( Δ Π ) ] / B 2 = 2.03 × 10 − 3 b_1=\mathbb{E}[\operatorname{tr}\Delta-\operatorname{tr}(\Delta\Pi)]/B^2=2.03\times10^{-3} b 1 = E [ tr Δ − tr ( ΔΠ )] / B 2 = 2.03 × 1 0 − 3 and geometric b 2 = E [ B − N ] / B 2 = 4.70 × 10 − 3 b_2=\mathbb{E}[B-N]/B^2=4.70\times10^{-3} b 2 = E [ B − N ] / B 2 = 4.70 × 1 0 − 3 . No re-measurement is needed for a new shift (σ 0 = 0.0378 / 0.0409 / 0.0471 \sigma_0=0.0378/0.0409/0.0471 σ 0 = 0.0378/0.0409/0.0471 at ξ = 0.05 / 0.1 / 0.2 \xi=0.05/0.1/0.2 ξ = 0.05/0.1/0.2 Ha).
Model Hyperparameters
Ground-State Descriptor Models
Table 10. QHFlow2 backbone ([34 ] ). SO(2)-equivariant edgewise–nodewise updates in the style of eSEN ([22 ] ), with the generative flow replaced by the GROOT readout.
Machine-Learned Interatomic Potential (MLIP) Reference Models
Table 11. Architecture of the PaiNN, NequIP and MACE baselines in the heat maps. All three models sum per-atom energies over the molecule; the PaiNN and MACE MLPs use SiLU. MACE hidden features are 256 × ( 0 e + 1 o + 2 e ) 256 \times(0e+1o+2e) 256 × ( 0 e + 1 o + 2 e ) , and its edge spherical harmonics reach ℓ = 3 \ell= 3 ℓ = 3 . The NequIP per-element energy scale is the per-element force RMS of the QM9 training split for the E and E+F models, and 1 for QMugs, which has no forces. The NequIP per-element shift is a least-squares fit to the training energies. MACE uses linear read-outs after interaction layers 1 and 2 and an MLP after layer 3, summed over layers.
Model Implementation Details
Following Kim et al. [34 ] , we combine the eSCNMD GNN backbone by Wood et al. (2025), which builds on eSEN and eSCN ([22 ] (Passaro & Zitnick 2023)), with equivariant matrix encoders for the initial-guess and overlap matrices and a QHNet readout (Yu et al. (2023b)). From the atomic numbers Z a Z_a Z a , coordinates R a \mathbf{R}_a R a , and initial-guess sub-matrices X a \mathbf{X}_a X a centered at each atom a a a , the backbone constructs spherical-harmonic node features through S O ( 2 ) SO(2) S O ( 2 ) -equivariant message-passing layers. The QHNet readout constructs the target matrix X \mathbf{X} X blockwise. Each atom pair ( i , j ) (i,j) ( i , j ) contributes a block X i j ∈ R B Z i × B Z j \mathbf{X}_{ij} \in\mathbb{R}^{B_{Z_i} \times B_{Z_j}} X ij ∈ R B Z i × B Z j , formed by a self-tensor product of the node features for i = j i=j i = j and a filtered tensor product across the two nodes for i ≠ j i \ne j i = j . Depending on the ansatz, X \mathbf{X} X is the Hamiltonian H \mathbf{H} H , the density P \mathbf{P} P , or the GROOTr o t _{\mathrm{rot}} rot input M ^ \hat{\mathbf{M}} M ^ . For the Hamiltonian ansatz, we obtain the density by solving Eq. (1) . For the Hamiltonian and density ansätze, we symmetrize the decoded block matrix as X ← ( X + X T ) / 2 \mathbf{X} \leftarrow(\mathbf{X}+\mathbf{X}^{\mathsf{T}})/2 X ← ( X + X T ) /2 . The GROOTr o t _{\mathrm{rot}} rot readout instead uses the raw M ^ \hat{\mathbf{M}} M ^ . Since we parametrize the generator in the same ON basis as the Hamiltonian and density matrices, these readout heads remain interchangeable.
Our JAX port (Babuschkin et al. [4 ] ) corrects two bugs in the official reference implementation at commit d82fa3a1 from 2026-08-09. The first bug occurs in escn_backbone_v4_no_t.py, lines 576 to 584, where the model adds contracted overlap and initial-guess blocks to the node representations. The contraction yields one scalar feature vector per atom, but the reference code reshapes this atom-indexed tensor as if its leading dimension counted graphs in QHFlow_so2_v5_1_no_t.py, lines 347 to 348 and then gathers from it with the graph assignment vector of the batch. Consequently, every atom of the g g g -th molecule in a batch receives the feature of the g g g -th atom of the batch instead of its own, so for a single molecule all atoms receive the feature of the first atom and the injected features depend on the atom ordering. Our port keeps the atom index and, going beyond the reference, contracts each block to features of degree ℓ = 0 , 1 , 2 \ell=0,1,2 ℓ = 0 , 1 , 2 that it adds to the matching channels of its own node. In our tests, this correction reduces the relative rotation-equivariance error from 10 − 3 10^{-3} 1 0 − 3 to 10 − 6 10^{-6} 1 0 − 6 . The second bug appears where the backbone hands off features to the tensor-product decoder at QHFlow_so2_v5_1_no_t.py, line 356 for node features and line 365 for pair features. The backbone stores features as ( N , ( ℓ max + 1 ) 2 , C ) (N,(\ell_{\max}+1)^2,C) ( N , ( ℓ m a x + 1 ) 2 , C ) tensors, in which the magnetic index precedes the channel index within each degree ℓ \ell ℓ , whereas the e3nn irreps of the decoder hold C C C copies of each degree with the channel index first. The reference code flattens the tensor with a raw reshape that omits the required blockwise transposition, so every ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 block reaches the decoder with its components misordered. Our port converts between the two memory layouts explicitly. With identical parameters and the same activation-normalization constant, our JAX decoder matches the PyTorch decoder to double-precision round-off.
Training Costs
Figure 10. Validation-loss trajectories for learning-rate selection on QMugs. (a) Hamiltonian models. (b) Density models. Each panel reports the selected learning rate above the axes and colors the remaining rates by their position on the sweep. Solid lines show 24-epoch runs, dashed lines show 12-epoch brackets, and crosses mark runs that stopped early. Completed 24-epoch runs take 35–39 h on one NVIDIA H200 GPU, or about 1.5 h per epoch.
Training and Optimization
In the tables of this appendix, bold and underlined entries are the lowest and second-lowest values in each column, respectively, and red marks an error above the thresholds of Table 23 (bold red marks a catastrophic error).
Table 23. QM40 probe observables of the production runs. Every model whose epoch, learning rate, and weight decay are set to its production value, aggregated over its entropy-seed replicates as the mean over seeds. The loss column evaluates each family’s own training objective on the fixed probe molecules (reg. 50, × 10 4 \times10^4 × 1 0 4 ) and is comparable only within a block. The cata. column sums the reg. 50 and hard 25 catastrophe counts. E E E is the one-Fock-build electronic-energy MAE in mEh, and a catastrophe is E > 1 000 E>1\,000 E > 1 000 mEh. Bold and underlined entries are the lowest and second-lowest values in each observable column, respectively. Red marks an error above 3/10 mEh for regular/hard E E E , 1/4 D for the dipole, 0.2/1 e for L 1 L_1 L 1 , or cata. > 1.
Table 12. Training and optimization hyperparameters. Muon optimizer configuration. The optimizer configuration is shared by all reported runs. Family-specific deviations are stated in the notes. Model-init and training-PRNG seeds are drawn from OS entropy per run.
Table 13. ROCKET restraint hyperparameters. The restraint weight α R O C K E T \alpha_{\mathrm{ROCKET}} α ROCKET is the 3 σ 3\sigma 3 σ weight α / 9 \alpha/9 α /9 with α = E [ L min ] / σ c 2 \alpha= \mathbb{E}[L_{\min}]/\sigma_c^2 α = E [ L m i n ] / σ c 2 fitted on the full training split. A three-standard-deviation gauge offset then costs as much as the mean shift-minimized loss. See § 4 .
Density Models
NON LOSS
Table 14. Validation and probe loss of density models trained with the NON loss across learning rates, weight decays, and seeds. Masked decay with σ 0 \sigma_0 σ 0 output norm. Target is Δ \Delta Δ -MINAO except for the absolute-readout block. Validation and QM40 loss are the AO objective (masked Frobenius root-mean-square error, RMSE) on the QM9 validation split at the final epoch and on the fixed probe molecules (reg. 50 / hard 25). ∥ W ∥ \lVert W\rVert ∥ W ∥ columns are per-entry RMS of the final EMA weights by optimizer branch. ON-Loss models are in Tab. 15.
ON-LOSS
Table 15. Validation loss of density models trained with the Löwdin-frame ON-Loss. Masked decay with σ 0 \sigma_0 σ 0 output norm. Target is Δ \Delta Δ -MINAO. Validation is the training objective (masked Frobenius RMSE, Löwdin picture) on the QM9 validation split at the final epoch. The QM40-loss columns are the same objective evaluated on the fixed probe molecules (reg. 50 / hard 25, same units). The density family ranks models (Spearman + 0.87 / + 0.79 +0.87/+0.79 + 0.87/ + 0.79 vs E E E ). ∥ W ∥ \lVert W\rVert ∥ W ∥ columns are per-entry RMS of the final EMA weights by optimizer branch. NON-loss models are in Tab. 14. GROOT models are in Tab. 16. Prediction-frame and auxiliary-supervision models are in Tab. 17.
Table 16. Validation and probe loss of GROOT density models trained with ON-Loss. Masked decay with σ 0 \sigma_0 σ 0 output norm and a Δ \Delta Δ -MINAO target. Validation is the training objective on the QM9 validation split at the final epoch. The QM40-loss columns evaluate that objective on the fixed probe molecules (reg. 50 / hard 25). ∥ W ∥ \lVert W\rVert ∥ W ∥ columns are per-entry RMS of the final EMA weights by optimizer branch.
Prediction frame and auxiliary supervision
Table 17. Prediction-frame and auxiliary-supervision ablations for density and Hamiltonian models under ON-Loss. Density target is Δ \Delta Δ -MINAO and Hamiltonian target is Δ \Delta Δ -SAP with the training-set optimal constant gauge. Parenthesized validation is the model’s own training objective when that objective differs from the table metric. The QM40-loss columns use the Löwdin objective on the fixed probe molecules (reg. 50 / hard 25). The Hamiltonian AO-frame run was killed before the QM40 probe.
Hamiltonian Models
Non-Orthonormal Loss
Table 18. Validation loss of Hamiltonian models trained with the NON loss, with and without a constant gauge shift. Masked decay with σ 0 \sigma_0 σ 0 output norm. Target is Δ \Delta Δ -SAP, with a training-set constant gauge in the second block only. Validation is the NON training objective on the QM9 validation split at the final epoch. The QM40-loss columns evaluate that objective on the fixed probe molecules (reg. 50 / hard 25). The covariant loss is gauge-dominated and nearly flat across models, quoted for completeness, not for ranking. ∥ W ∥ \lVert W\rVert ∥ W ∥ columns are per-entry RMS of the final EMA weights by optimizer branch. ON-Loss models are in Tab.20.
WALoss
Table 19. Validation and probe loss of Hamiltonian models trained with WALoss. Target is Δ \Delta Δ -SAP, with a training-set constant gauge in the second block only. Validation is the WALoss training objective on the QM9 validation split at the final epoch. The QM40-loss columns evaluate each run’s own WALoss objective on the fixed probe molecules (reg. 50 / hard 25). ∥ W ∥ \lVert W\rVert ∥ W ∥ columns are per-entry RMS of the final EMA weights by optimizer branch.
Orthonormal Loss
Table 20. Validation and probe loss of Hamiltonian models trained with ON-Loss. Target is Δ \Delta Δ -SAP, with a training-set constant gauge in the Δ ( H S A P + c S ) \Delta(H_{\mathrm{SAP}} + cS) Δ ( H SAP + c S ) block only. Validation is the training objective on the QM9 validation split at the final epoch. The QM40-loss columns evaluate that objective on the fixed probe molecules (reg. 50 / hard 25). ∥ W ∥ \lVert W\rVert ∥ W ∥ columns are per-entry RMS of the final EMA weights by optimizer branch.
ROCKET-Loss Ablations
Table 21. Validation and probe loss of Hamiltonian models trained with the ROCKET loss. Target is Δ \Delta Δ -SAP with a training-set constant gauge. Validation is the model’s training objective on the QM9 validation split at the final epoch. The QM40-loss columns evaluate that objective on the fixed probe molecules (reg. 50 / hard 25). ∥ W ∥ \lVert W \rVert ∥ W ∥ columns are per-entry RMS of the final EMA weights by optimizer branch.
Self-Consistency-Training Learning-Rate Selection
Self-consistency training needs no reference labels, so we also select its learning rate without them. Table 22 reports the training objective on the Transition1x validation split for every learning rate and epoch. At each scored epoch we take the learning rate with the lowest residual; the resulting checkpoints are evaluated on the test split in Tab. 30.
Table 22. Validation loss across learning rates and epochs for Transition1x self-consistency training (Table 8 ). Entries report the mean training objective residual over the Transition1x validation split in units of 10 − 4 10^{-4} 1 0 − 4 , used to select checkpoints for Tab. 30. For ROCKET 3rd stage, values omit the gauge-restraint term. LR denotes the peak learning rate of the warmup-cosine schedule. Underlined values mark the lowest validation loss per configuration and epoch column, identifying the selected checkpoint. † Epochs evaluated in the Transition1x test evaluation table (Tab. 30). * Runs stopped before configured completion. Each block reports a distinct model residual and cannot be compared across blocks.
Self-Consistency Training
Self-consistency training (SCT) fine-tunes a pretrained GSM on molecular geometries alone (Zhang et al., 2024). Instead of evaluating errors against converged electronic reference labels, each training step performs a single Fock build and penalizes deviation from self-consistency. We compare two such objectives on Transition1x (Tab. 30).
Hamiltonian and density matrix residuals. Zhang et al. (2024) introduce SCT for Hamiltonian prediction, penalizing the Frobenius difference between the predicted Hamiltonian and the Hamiltonian reconstructed from its own eigenvectors. We extend this residual to density GSMs and express both targets as
L r e s ( X ^ ) : = ∥ X ^ − SCF ( X ^ ) ∥ F B , SCF ( P ^ ) : = P ( H ( P ^ ) ) , SCF ( H ^ ) : = H ( P ( H ^ ) ) , (73) \mathcal{L}_{\mathrm{res}}(\widehat{X}) := \frac{\lVert\widehat{X} - \operatorname{SCF}(\widehat{X}) \rVert_F}{B}, \qquad\operatorname{SCF}(\widehat{P}) := \mathbf{P}\bigl(\mathbf{H}(\widehat{P})\bigr), \qquad\operatorname{SCF}(\widehat{H}) := \mathbf{H}\bigl(\mathbf{P}(\widehat{H})\bigr), \tag*{(73)} L res ( X ) := B ∥ X − SCF ( X ) ∥ F , SCF ( P ) := P ( H ( P ) ) , SCF ( H ) := H ( P ( H ) ) , (73)
where H ( ⋅ ) \mathbf{H}(\cdot) H ( ⋅ ) denotes one Fock build, and P ( ⋅ ) \mathbf{P}(\cdot) P ( ⋅ ) forms the occupied density matrix from the lowest O O O eigenvectors of Eq. (1) (Eq. (2) ). For density models, this residual is the self-consistency error Δ S C P \Delta_{\mathrm{SC}}^{P} Δ SC P of § 5 . Following Zhang et al. (2024), we evaluate the residual in the non-orthogonal (NON) basis and backpropagate through the Fock build. This residual weights all matrix entries equally and inherits the overlap-dependent spectral distortion of the NON metric (§ 4 , App. D). The targets are also scaled asymmetrically because L r e s ( H ^ ) \mathcal{L}_{\mathrm{res}}(\widehat{H}) L res ( H ) carries energy units while L r e s ( P ^ ) \mathcal{L}_{\mathrm{res}}(\widehat{P}) L res ( P ) is dimensionless, and differentiating through the eigensolver to form P ( ⋅ ) \mathbf{P}(\cdot) P ( ⋅ ) can destabilize training near orbital degeneracies.
Occupied–virtual gradient objective. Instead of evaluating matrix differences, we supervise GSMs with the occupied–virtual (OV) gradient of the electronic energy from solver-aligned initialization learning (SAIL) (Eberhard et al., [16 ] ). Under a budget of one Fock build, the multi-step trajectory of SAIL reduces to a single step
L O V ( X ^ ) : = ( 1 O V ∑ i = 1 O ∑ a = 1 V G i a 2 ) 1 / 2 , G : = C ~ O T H ~ ( P ^ ) C ~ V . (74) \mathcal{L}_{\mathrm{OV}}(\widehat{X}) := \left(\frac{1}{OV}\sum_{i=1}^{O}\sum_{a=1}^{V}G_{ia}^{2}\right)^{1/2}, \qquad\mathbf{G} := \widetilde{\mathbf{C}}_{O}^{\mathsf{T}}\widetilde{\mathbf{H}}(\widehat{P})\widetilde{\mathbf{C}}_{V}. \tag*{(74)} L OV ( X ) := ( O V 1 i = 1 ∑ O a = 1 ∑ V G ia 2 ) 1/2 , G := C O T H ( P ) C V . (74)
Here O O O and V V V denote the occupied and virtual orbital counts (O + V = B O + V = B O + V = B ), and H ~ ( P ^ ) = S − 1 / 2 H ( P ^ ) S − 1 / 2 \widetilde{\mathbf{H}}(\widehat{P}) = \mathbf{S}^{-1/2}\mathbf{H}(\widehat{P})\mathbf{S}^{-1/2} H ( P ) = S − 1/2 H ( P ) S − 1/2 is the Fock matrix in the Löwdin orthonormal basis. For density models, C ~ O \widetilde{\mathbf{C}}_{O} C O and C ~ V \widetilde{\mathbf{C}}_{V} C V collect the eigenvectors of the predicted Löwdin density P ~ \widetilde{P} P with the O O O largest and V V V smallest eigenvalues. For Hamiltonian models, they collect the eigenvectors of H ~ \widetilde{\mathbf{H}} H , with P ^ = P ( H ^ ) \widehat{P} = \mathbf{P}(\widehat{H}) P = P ( H ) . The matrix G ∈ R O × V \mathbf{G} \in\mathbb{R}^{O \times V} G ∈ R O × V measures the gradient of the electronic energy with respect to occupied–virtual rotations. It carries units of energy, vanishes exactly at self-consistency, and remains invariant under rotations within the occupied and virtual subspaces. The OV gradient provides a unified, physical objective for both density and Hamiltonian GSMs without requiring an ad hoc matrix norm.
Connection to the self-consistency rejection rule. The OV gradient directly minimizes the commutator rejection statistic used at inference (§ 5 ). In the orbital basis C ~ = [ C ~ O , C ~ V ] \widetilde{\mathbf{C}} = [\widetilde{\mathbf{C}}_{O}, \widetilde{\mathbf{C}}_{V}] C = [ C O , C V ] , any idempotent density matrix satisfies P ~ = diag ( I O , 0 V ) \widetilde{P} = \operatorname{diag}(I_{O}, 0_{V}) P = diag ( I O , 0 V ) . The diagonal blocks of the commutator between the Löwdin Fock matrix and the density matrix vanish identically, leaving only the off-diagonal blocks G \mathbf{G} G and − G T -\mathbf{G}^{\mathsf{T}} − G T . The Frobenius norm of this commutator gives the DIIS residual of the self-consistency rejection rule
r = 8 ∥ H ~ P ~ − P ~ H ~ ∥ F = 4 ∥ G ∥ F = 4 O V L O V ( X ^ ) . (75) r = \sqrt{8}\lVert\widetilde{\mathbf{H}}\widetilde{P} - \widetilde{P}\widetilde{\mathbf{H}}\rVert_{F} = 4\lVert\mathbf{G}\rVert_{F} = 4\sqrt{OV}\,\mathcal{L}_{\mathrm{OV}}(\widehat{X}). \tag*{(75)} r = 8 ∥ H P − P H ∥ F = 4 ∥ G ∥ F = 4 O V L OV ( X ) . (75)
For GROOT and all Hamiltonian models, the prediction is idempotent by construction, so L O V \mathcal{L}_{\mathrm{OV}} L OV directly minimizes the rejection statistic itself. This matches the drop in Transition1x rejection rates in Tab. 30, where rejection drops from 13.5% under the matrix residual to 2.6% under L O V \mathcal{L}_{\mathrm{OV}} L OV for GROOTr o t _{\mathrm{rot}} rot , and from 1.2% to 0.2% for GROOTp r o j _{\mathrm{proj}} proj . For unconstrained Pb a s e _{\mathrm{base}} base , predictions have fractional eigenvalues off the Grassmannian, producing commutator contributions that L O V \mathcal{L}_{\mathrm{OV}} L OV does not penalize and leaving rejection rates elevated at 25.0%.
Training protocol. We warm-start all models from the QMugs parent checkpoints of Table 28 and train on the 164,187 unlabeled frames of the Transition1x training split (Table 8 ) under a cosine learning-rate schedule without weight decay or replay of pretraining data. We select the peak learning rate of each model by the validation residual alone (App. L.§ 4 , Table 22 ), so that no training or selection step uses reference labels. Each epoch costs one Fock build and its backward pass per geometry, avoiding the costly iterations required for converged references.
Loss vs Observables
Frobenius Loss versus Observable Errors
Table 23 compares training losses by downstream observable accuracy. Here we evaluate whether the matrix-level training loss directly tracks observable errors across molecules, and whether evaluating that loss in the Löwdin basis strengthens the relationship. Figure 11 to Figure 14 plot observable errors against Frobenius losses in both bases across QM40 molecules. Table 24 reports the corresponding Pearson correlation r r r of log 10 \log_{10} log 10 loss with log 10 \log_{10} log 10 observable error, alongside mutual information I I I . The Löwdin loss predicts observable errors more reliably than the atomic-orbital loss in 22 of 24 panel pairs for r r r and in all 24 for I I I . This improvement is most pronounced for models trained with L O N \mathcal{L}_{\mathrm{ON}} L ON , where the atomic-orbital loss decorrelates from observable errors.
Figure 11. Energy error E E E against Frobenius loss. Each point represents one QM40 test molecule and seed on logarithmic axes. Rows correspond to model families P b a s e P_{\mathrm{base}} P base , H b a s e H_{\mathrm{base}} H base , and H b a s e + c t S H_{\mathrm{base}} + c_{\mathrm{t}}S H base + c t S . Column blocks indicate the training objective (L N O N \mathcal{L}_{\mathrm{NON}} L NON followed by L O N \mathcal{L}_{\mathrm{ON}} L ON ). Within each block, the left panel evaluates the raw loss ∥ Δ X ∥ F \lVert\Delta X\rVert_F ∥ Δ X ∥ F and the right panel evaluates the Löwdin loss (Eq. (3) ). Individual panels report r r r and I I I , with Löwdin panels displaying the gain over the raw counterpart. Table 24 compiles summary statistics across all four observables.
Figure 14. Force error against Frobenius loss. Panels share the models, layout, pooling, and annotations of Figure 11 . The vertical axis displays the per-atom mean force error ⟨ ∥ Δ F a ∥ ⟩ \langle\lVert\Delta F_a\rVert\rangle ⟨∥ Δ F a ∥⟩ . Because only 200 molecules per seed carry reference forces, these panels contain fewer samples than the preceding figures.
Figure 12. Dipole error against Frobenius loss. Panels share the models, layout, pooling, and annotations of Figure 11 . The vertical axis displays the dipole error ∥ Δ μ ∥ \lVert\Delta\mu\rVert ∥ Δ μ ∥ in Debye.
Figure 13. Density L 1 L^{1} L 1 error against Frobenius loss. Panels share the models, layout, pooling, and annotations of Figure 11 . The vertical axis displays the real-space density error ∥ Δ ρ ∥ L 1 \lVert\Delta\rho\rVert_{L^{1}} ∥ Δ ρ ∥ L 1 in electrons.
Model Evaluation Data
Table 25 evaluates observable errors for the models of Table 23 on the QM9 test split, providing the in-distribution baseline for size extrapolation. Figure 15 and Figure 16 resolve density observable errors over electron count N e l e c N_{\mathrm{elec}} N elec , separating errors present at training size from errors induced by extrapolation. Figure 17 and Figure 18 report the corresponding resolution for Hamiltonian models. Each figure pair shows QM40 before QMugs, extending extrapolation to approximately twice the electron counts of QM40. Table 26 and Table 27 aggregate observable errors for these models over the full QM40 and QMugs test sets.
Table 25. Observable errors on the QM9 test split for QM9-trained models (Table 4 ). Each cell reports the mean over seeds of the per-molecule mean absolute error, with the seed range in square brackets. Values in round brackets average all molecules of the lane before outlier exclusion, identical across models. Per column, the best bracketed mean and the best single seed are underlined. Predictions with DIIS residual r D I I S / N e l e c > 30 r_{\mathrm{DIIS}}/\sqrt{N_{\mathrm{elec}}}>30 r DIIS / N elec > 30 mHa are excluded as outliers, where r D I I S = 8 ∥ S − 1 / 2 ( F P S − S P F ) S − 1 / 2 ∥ F r_{\mathrm{DIIS}}=\sqrt{8}\lVert S^{-1/2}(F_{\mathrm{PS}}-S_{\mathrm{PF}})S^{-1/2}\rVert_F r DIIS = 8 ∥ S − 1/2 ( F PS − S PF ) S − 1/2 ∥ F for scored density P P P and Fock matrix F = F [ P ] F=F[P] F = F [ P ] . Unbracketed values average kept molecules only, and Excluded reports the lost molecule percentage. Models losing all molecules display a dash before the bracketed value. E ^ K S \hat{E}_{\mathrm{KS}} E ^ KS is the KS-DFT energy evaluated at the predicted density (§ 5 ), and E ∗ E^* E ∗ is the converged reference energy. All observables evaluate 2000 molecules before outlier exclusion. ERIC reports SCF iterations relative to the MINAO guess, averaged over the full lane with unconverged runs capped at 2. LR and WD denote peak learning rate and weight decay from the training configuration. †Single seed without range.
Figure 15. Density-readout models on QM40, resolved over electron count. All models use the QM9-trained checkpoint of Table 4 evaluated on the out-of-distribution QM40 set of Table 5 , binned by the molecular electron count N e l e c N_{\mathrm{elec}} N elec and given a one-Fock-build budget. We compare the absolute density readout, its unrescaled variant, the Δ P M I N A O \Delta P_{\mathrm{MINAO}} Δ P MINAO readout in the AO basis, the same Δ \Delta Δ -readout in the Löwdin basis (ON-Loss), and the two manifold-restricted variants G R O O T p r o j GROOT_{\mathrm{proj}} GR O O T proj and G R O O T r o t GROOT_{\mathrm{rot}} GR O O T rot (§ 4 ). Lines are means over the entropy-seed replicates stated in the legend and the shaded band spans the seed spread, so single-seed models carry no band; the vertical axes of all error panels are logarithmic. ERIC is the effective relative iteration count ([16 ] ), where values below one mean fewer SCF iterations than the reference initial guess.
Figure 16. Density-readout models on QMugs, resolved over electron count. Same QM9-trained checkpoints, evaluation protocol, binning and aggregation as Figure 15 , on the larger QMugs molecules (Figure 9 ), which reach N e l e c ≈ 650 N_{\mathrm{elec}} \approx650 N elec ≈ 650 against ≈ 270 \approx270 ≈ 270 on QM40. G R O O T r o t GROOT_{\mathrm{rot}} GR O O T rot is the only model whose error panels stay flat over the whole range and it leads every error panel, by up to three orders of magnitude on the energies; together with the Löwdin Δ \Delta Δ -readout it is also the only model that stays below the reference guess in ERIC, whereas G R O O T p r o j GROOT_{\mathrm{proj}} GR O O T proj rises above it from N e l e c ≈ 320 N_{\mathrm{elec}} \approx320 N elec ≈ 320 on and climbs towards the cap on the largest molecules. The evaluation set is the 950-molecule qmugs_ebins200_cheap50 subset of Table 27 .
Figure 17. Hamiltonian-readout models on QM40, resolved over electron count. Same evaluation protocol, binning and aggregation as Figure 15 , for the Δ H S A P \Delta H_{\mathrm{SAP}} Δ H SAP readouts. The models span the representation (AO versus Löwdin basis, Eq. (3) ), the loss (WALoss versus the ROCKET objective of Eq. (9) ) and the gauge treatment (none, a training-set fitted constant shift, and the EMA-centered restraint of Eq. (10) ), with the occupied-plus-LUMO masked variant as the final model. The Löwdin-basis ROCKET models separate from the AO-basis models by two to three orders of magnitude on every energy panel, and are the only models that stay below the reference guess in ERIC across the whole range.
Figure 18. Hamiltonian-readout models on QMugs, resolved over electron count. Same protocol as Figure 16 , for the Δ H S A P \Delta H_{\mathrm{SAP}} Δ H SAP readouts. The AO-basis model sits one to two orders of magnitude above the Löwdin-basis ROCKET models on every panel and is pinned at the ERIC cap across the range. Among the ROCKET models the gauge-EMA, occupied-plus-LUMO masked variant leads every panel, but unlike on QM40 (Figure 17 ) every Hamiltonian model exceeds the reference guess in ERIC beyond N e l e c ≈ 500 N_{\mathrm{elec}} \approx500 N elec ≈ 500 .
Table 27. Observable errors under size extrapolation to QMugs for QM9-trained models (Tab. 6).
Training on QM9
Density-Prediction Plots
Hamiltonian-Prediction Plots
QMugs Extrapolation Data Tables
Table 27: Observable errors under size extrapolation to QMugs for QM9-trained models (Table 6 ). Each cell reports the mean over seeds of the per-molecule mean absolute error, with the seed range in square brackets. Values in round brackets average all molecules of the lane before outlier exclusion, identical across models. Per column, the best bracketed mean and the best single seed are underlined. Predictions with DIIS residual r D I I S = 8 ∥ S − 1 / 2 ( F P S − S P F ) S − 1 / 2 ∥ F r_{\mathrm{DIIS}} = \sqrt{8}\left\lVert S^{-1/2}(FPS-SPF)S^{-1/2}\right\rVert_{\mathrm{F}} r DIIS = 8 S − 1/2 ( F P S − S P F ) S − 1/2 F exceeding 30 N e l e c 30\sqrt{N_{\mathrm{elec}}} 30 N elec mHa are excluded as outliers, judged per checkpoint and molecule. Unbracketed values average kept molecules only, and Excluded reports the lost molecule percentage. Models losing all molecules display a dash before each bracketed value. E ^ K S \hat{E}_{\mathrm{KS}} E ^ KS is the KS-DFT energy evaluated at the predicted density (§ 5 ), and E ∗ E^{*} E ∗ is the converged reference energy. Before outlier exclusion, 950 molecules enter Excluded, E ^ K S \hat{E}_{\mathrm{KS}} E ^ KS , Dipole, L 1 L_1 L 1 , and HOMO–LUMO, while 190 molecules enter Forces and ERIC. ERIC reports SCF iterations relative to the MINAO guess, averaged over the full lane with unconverged runs capped at 2. LR and WD denote peak learning rate and weight decay from the training configuration. †Single seed without range.
Training on QMugs
!Six-panel plot of Hamiltonian-readout models on the QMugs OOD test set, resolved over electron count. Panels show ∣ Δ E ∣ |\Delta E| ∣Δ E ∣ (Harris–Foulkes) [mEh], ∥ Δ F α ∥ 2 \lVert\Delta F_{\alpha}\rVert_2 ∥ Δ F α ∥ 2 [mEh/Å], ∣ Δ ε g a p ∣ |\Delta\varepsilon_{\mathrm{gap}}| ∣Δ ε gap ∣ [mEh], ∥ Δ μ ∥ 2 \lVert\Delta\mu\rVert_2 ∥ Δ μ ∥ 2 [D], ∥ Δ ρ ∥ L 1 \lVert\Delta\rho\rVert_{L^1} ∥ Δ ρ ∥ L 1 [e], and ERIC (rel. SCF iterations), plotted against N e l e c N_{\mathrm{elec}} N elec . Legend: ROCKET 2nd stage, ROCKET 3rd stage, H b a s e + c t S H_{\mathrm{base}}+c_tS H base + c t S (NON), and before DIIS exclusion. bbox=0.20,0.49,0.83,0.65
Figure 20. Hamiltonian-readout models on the QMugs OOD test set, resolved over electron count. Same checkpoints, dataset, protocol, binning, and aggregation as Figure 19 for the Δ H S A P \Delta H_{\mathrm{SAP}} Δ H SAP readouts, comprising the AO-basis readout with a training-set fitted constant gauge under L N O N \mathcal{L}_{\mathrm{NON}} L NON and the two ROCKET stages of Eqs. (10) and (12) . Table 28 reports the corresponding dataset-level means.
!Six-panel plot of density-readout models on the QMugs out-of-distribution test set, resolved over electron count. Panels show ∣ Δ E ∣ |\Delta E| ∣Δ E ∣ (Harris–Foulkes) [mEh], ∥ Δ F α ∥ 2 \lVert\Delta F_{\alpha}\rVert_2 ∥ Δ F α ∥ 2 [mEh/Å], ∣ Δ ε g a p ∣ |\Delta\varepsilon_{\mathrm{gap}}| ∣Δ ε gap ∣ [mEh], ∥ Δ μ ∥ 2 \lVert\Delta\mu\rVert_2 ∥ Δ μ ∥ 2 [D], ∥ Δ ρ ∥ L 1 \lVert\Delta\rho\rVert_{L^1} ∥ Δ ρ ∥ L 1 [e], and ERIC (rel. SCF iterations), plotted against N e l e c N_{\mathrm{elec}} N elec . Legend: P b a s e P_{\mathrm{base}} P base (ON), before DIIS exclusion, GROOTr o t _{\mathrm{rot}} rot , GROOTp r o j _{\mathrm{proj}} proj , and P b a s e P_{\mathrm{base}} P base (NON). bbox=0.20,0.17,0.83,0.33
Figure 19. Density-readout models on the QMugs out-of-distribution (OOD) test set, resolved over electron count. QMugs-trained 24-epoch checkpoints evaluated under the dataset and protocol of Table 28 , using 100 molecules per 20-electron bin over N e l e c ∈ [ 160 , 660 ) N_{\mathrm{elec}} \in[160, 660) N elec ∈ [ 160 , 660 ) , with forces and ERIC evaluated on the 500-molecule force subset. The models evaluate the Δ P M I N A O \Delta P_{\mathrm{MINAO}} Δ P MINAO readout under L N O N \mathcal{L}_{\mathrm{NON}} L NON and under ON-Loss, and the two manifold-restricted variants GROOTr o t _{\mathrm{rot}} rot and GROOTp r o j _{\mathrm{proj}} proj (§ 4 ). Markers are the per-bin mean absolute error of each model’s single seed and every error panel uses a logarithmic vertical axis; Table 28 reports the corresponding dataset-level means. ERIC is the effective relative iteration count (Eberhard et al., [16 ] ), where values below one mean fewer SCF iterations than the reference initial guess.
QMUGS Size-Extrapolation Data Tables
3BPA DIHEDRAL-SCAN DATA TABLES
Self-Consistency-Fine-Tuning on Transition1x
Table 30: Observable errors on the Transition1x test split across self-consistency training epochs (Table 8 ). These reactive geometries represent chemistry that the QMugs-trained parent checkpoints of Table 28 never encountered during pre-training. The first block evaluates the 24-epoch parent checkpoints before self-consistency training. Subsequent blocks evaluate models warm-started from each parent after 2, 4, and 6 epochs of occupied-virtual gradient training under a cosine schedule. The final block evaluates models trained for 6 epochs with the residual of Zhang et al. (2024). No run uses weight decay or experience replay. LR denotes the peak learning rate selected on the validation split by the self-consistency residual alone (Table 22 ). Each cell reports the per-molecule mean absolute error of a single seed. Values in round brackets average all 1715 frames before outlier exclusion, and the best bracketed value per column and block is underlined. E ^ K S \hat{E}_{\mathrm{KS}} E ^ KS is the KS-DFT energy at the predicted density, E ^ \hat{E} E ^ adds the first-order self-consistency correction (§ 5 ), and E ∗ E^* E ∗ is the converged reference energy. Predictions with DIIS residual r D I I S = 8 ∥ S − 1 / 2 ( F P S − S F P ) S − 1 / 2 ∥ F r_{\mathrm{DIIS}} = \sqrt{8}\lVert S^{-1/2}(F_{\mathrm{PS}}-SF_{\mathrm{P}})S^{-1/2}\rVert_{\mathrm{F}} r DIIS = 8 ∥ S − 1/2 ( F PS − S F P ) S − 1/2 ∥ F exceeding 30 N e l e c 30\sqrt{N_{\mathrm{elec}}} 30 N elec mHa are excluded as outliers, judged per checkpoint and molecule. Unbracketed values average kept molecules only, and Excluded reports the lost molecule percentage. Models losing all molecules display a dash before each unbracketed value. ERIC reports SCF iterations relative to the MINAO guess, averaged over all frames with unconverged runs capped at 2.
Table 30.
Table 30.
Runtime
Figure 21. Wall time to a converged SCF from ML and MINAO starts on out-of-distribution QMugs molecules. (a) Time from the prepared molecule to a converged SCF against the electron count, for the MINAO baseline (dashed) and for SCFs started from the predictions of G R O O T r o t \mathrm{GROOT}_{\mathrm{rot}} GROOT rot , G R O O T p r o j \mathrm{GROOT}_{\mathrm{proj}} GROOT proj and ROCKET (third stage). The timed region covers the initial guess, the model input, the forward pass and the SCF; only the per-molecule system setup is excluded. (b) Solid lines: mean cost of one SCF cycle, i.e. SCF time divided by cycle count, dominated by the Fock build and including DIIS and diagonalization. Dotted lines: time from the forward pass to the starting density, including the copy to the CPU and, for ROCKET, the density matrix after diagonalization of the predicted Hamiltonian; the GROOT models start from their predicted density directly. Points are single molecules; lines join per-bin medians in (a) and per-bin means in (b) over 20-electron bins, without fitted curves. The set holds three random QMugs molecules per 20-electron bin in [160, 660), 75 in total, all beyond the 150-electron training range, computed with the reference settings of Table 2 . Each molecule runs on one NVIDIA H200. One discarded warm-up round absorbs compilation and the grid and density-fitting setup; the four pipelines then alternate over 10 timed rounds, and each molecule contributes its minimum. All runs converge, and the ML-started SCFs reach the baseline total energy to within 3 × 10 − 11 E h 3 \times10^{-11}\ E_{\mathrm{h}} 3 × 1 0 − 11 E h . Relative to MINAO, the median time to convergence is 0.70 for both GROOT models and 0.72 for ROCKET.