Manuscript Offprint
arXiv:2611.07695Equivariant Deep Learning in Direct-Product Space for Electronic-Structure Hamiltonian Prediction
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Deep learning provides a promising route to efficient prediction of electronic-structure Hamiltonians, enabling high-throughput screening across large collections of materials. However, most existing equivariant architectures propagate features in direct-sum spaces of irreducible spherical tensors, whereas the target Hamiltonian is naturally an operator block in a direct-product representation over local orbital and spin bases. This representation mismatch fragments contiguous Hamiltonian blocks, obscures direct manipulation of orbital couplings, and organizes features into irregular angular-momentum components that require numerous transformations and are poorly aligned with efficient hardware execution and memory management. To address both the representation mismatch and computational bottleneck, we propose DP-Learner, an equivariant learning framework that performs message passing directly on Hamiltonian-like operator blocks in the direct-product space. Theoretically, we propose Lie-generator-based directional embedding and invariantly weighted left-right products and contractions that preserve equivariance to , , and spatial inversions, without explicit Clebsch–Gordan decomposition or inverse reconstruction. Methodologically, we instantiate this principle as a Transformer architecture, in which Hamiltonian-like feature matrices or tensors evolve through equivariant operators in the direct-product space, while non-linear invariant scalar routing controls structured gating over matrix units, directional propagation, attention, and environment-embedded context interactions. We further construct MP-HAM-110K, a large-scale Hamiltonian dataset comprising more than 110,000 material structures covering 68 elements with both Hamiltonian and wavefunction data. Experiments on MP-HAM-110K and Materials-HAM-SOC demonstrate that DP-Learner dramatically improves Hamiltonian prediction accuracy and inference efficiency over the state-of-the-art method, with up to a 40.6% reduction in prediction error, an speedup in neural inference, and a 95.2% reduction in peak GPU memory consumption.
1 INTRODUCTION
Accurately computing electronic-structure Hamiltonians, from which energy spectra, band topology, and electronic wavefunctions can be obtained, enables the prediction of electrical, optical, transport, and dynamical properties and ultimately connects microscopic electronic structure to macroscopic condensed-matter behavior. Such capabilities are essential for overcoming the efficiency bottleneck of traditional trial-and-error materials development and enabling low-cost, high-throughput materials screening for accelerated discovery. For decades, Hamiltonians have been primarily computed using density functional theory (DFT) (Hohenberg & Kohn, 1964; Kohn & Sham, 1965). However, DFT requires a self-consistent (SC) iteration loop involving repeated matrix diagonalizations, leading to a prohibitive computational cost of for a system of size and SC iterations. This cubic scaling severely limits the simulation of large-scale or structurally complex materials.

Figure 1: Existing approaches often encode features in the direct-sum representations of irreducible spherical tensors, creating a mismatch with the Hamiltonian target and requiring irregular, transformation-heavy computations that are difficult to execute efficiently. In contrast, DP-Learner operates directly in the Hamiltonian's native direct-product representation, preserving the target tensor structure, orbital and spin couplings, as well as the symmetry constraints throughout the network for accurate and efficient equivariant Hamiltonian prediction.
The landscape of computational physics has been substantially reshaped by the recent integration of artificial intelligence (Zhang et al., 2025). State-of-the-art deep geometric networks (Gong et al., 2023; Yu et al., 2023b; Zhang et al., 2024; Zhong et al., 2024; Wang et al., 2024; Yin et al., 2025; Li et al., 2025) have demonstrated the capability to directly map spatial atomic configurations to the corresponding electronic-structure Hamiltonian matrices. By bypassing the expensive self-consistent iterations, these data-driven approaches achieve orders-of-magnitude computational acceleration in acquiring core electronic-structure quantities, enabling high-fidelity exploration of novel materials. For more details, readers are directed to Appendix B.
However, current deep learning methods for electronic-structure Hamiltonian prediction still face central limitations in both representation quality and computational efficiency. Physically, the Hamiltonian is naturally represented as operator blocks in the direct-product (or tensor-product) space of local orbital and spin bases, where orbital and spin degrees of freedom are coupled with the underlying spatial geometry within a unified matrix- or tensor-valued observable. In contrast, existing equivariant architectures for Hamiltonian prediction commonly re-express these observables as direct sums of irreducible spherical tensors. This indirect organization fragments contiguous Hamiltonian blocks and obscures explicit orbital couplings. In tensor-product layers, feature products repeatedly undergo Clebsch–Gordan decomposition into irreducible components. Moreover, the heterogeneous channel sizes and angular-momentum-dependent tensor product, decomposition and reconstruction paths commonly involve padding and masking, sparse Clebsch–Gordan coefficient accesses, frequent indexing and coefficient lookups, and many small tensor kernels. These irregular operations complicate memory management, reduce data reuse, and are poorly matched to dense computation on modern hardware accelerators, particularly for rich basis sets containing - and -orbitals or explicit spin degrees of freedom.
A recent advance in Hamiltonian prediction is NextHAM (Yin et al., 2026), which introduces the zeroth-step Hamiltonian as a physically informed input descriptor that is naturally represented in the same direct-product operator space as the target Hamiltonian and can be efficiently constructed without matrix diagonalization. Because already encodes substantial electronic-structure priors while sharing the matrix topology, orbital basis, and symmetry constraints of the final self-consistent Hamiltonian, it alleviates the information sparsity of conventional atomic or bond embeddings and provides a unified, physically informed representation across diverse materials. This advance substantially improves cross-material transferability of the neural network, moving Hamiltonian learning beyond individual material systems with limited variation toward generalizable electronic-structure prediction over a chemically diverse materials space of more than 60 elements. However, NextHAM still converts into irreducible spherical tensors for feature propagation. The mismatch between fragmented features in the direct-sum space and native Hamiltonian blocks, together with the overhead of sparse and heterogeneous tensor operations and the heavy transformation between direct-sum and direct-product states, still remains. A detailed discussion of these related works is provided in Appendix D.
To address the representation mismatch and computational burdens, we propose DP-Learner, an equivariant Hamiltonian-prediction framework that performs message passing directly on complete atom-pair Hamiltonian blocks in the Direct-Product space. Starting from the zeroth-step Hamiltonian , DP-Learner preserves the matrix or tensor layout of the target self-consistent Hamiltonian throughout the network and learns the correction from to . This design naturally captures the intrinsic coupling structure of Hamiltonians in the direct-product space, while avoiding Clebsch–Gordan decompositions of feature tensor products and conversions between Hamiltonian matrices and irreducible features, providing substantial advantages in computational efficiency and hardware utilization, as analyzed in Appendix H.
Theoretically, we establish a Hamiltonian-native equivariant deep learning framework based on two complementary ingredients. First, we develop a Lie-generator-based directional embedding mechanism that maps each local geometric direction to an equivariant operator acting on the local orbital or orbital–spin spaces associated with the Hamiltonian block in the direct-product space. Second, we construct invariantly weighted left–right product and contraction mechanisms to update Hamiltonian-like matrices and spinor tensors while preserving their transformation laws under spatial rotations and inversions. These formulations encode geometric information and electronic couplings in a unified direct-product space instead of decomposing and reconstructing them through irreducible channels.
Methodologically, we develop our learning framework as an expressive and equivariant Transformer architecture in the direct-product space. Each layer encodes both equivariant matrix or tensor features and invariant scalar features. Normalized Frobenius summaries are computed for the direct-product units within each Hamiltonian block, where each unit couples one row orbital set to one column orbital set. These summaries, together with radial features and scalar node and edge features, are processed by non-linear scalar networks to produce per-unit gates, attention weights, directional weights, and contraction coefficients. Multi-head attention updates node features and conditions the edge-feature update, while constructing equivariant atom-wise context representations. The directional operator and the context then update each edge matrix or tensor through left, right, and bilateral products and contractions. Dimension-normalized products, LayerNorm, LayerScale, and zero-initialized update heads stabilize deep residual learning around .
Broad-coverage benchmarks for deep learning Hamiltonian prediction remain limited. To address this gap, we construct and release MP-HAM-110K, a benchmark comprising more than 110,000 diverse material structures sampled from the Materials Project (Jain et al., 2013) and covering 68 elements. It spans the first six rows of the periodic table and employs a rich atomic basis up to . MP-HAM-110K is approximately six times larger than the existing Materials-HAM-SOC dataset and includes structures containing more than 150 atoms, whereas Materials-HAM-SOC contains at most 80 atoms per structure. It thus provides a valuable benchmark for Hamiltonian prediction across chemically diverse materials and larger structures.
Comprehensive experiments on the proposed MP-HAM-110K benchmark and the existing Materials-HAM-SOC dataset demonstrate that DP-Learner achieves state-of-the-art Hamiltonian prediction accuracy together with dramatically improved computational efficiency across chemically diverse materials spanning more than 60 elements, substantially outperforming NextHAM, the pioneering universal Hamiltonian baseline published very recently. The predicted Hamiltonians also yield accurate band structures. These results demonstrate the value of representation learning in the direct-product space for accurate and efficient electronic-structure prediction, materials screening, and discovery.
where and are the representations aligned with the local basis spaces of . They are constructed by block-diagonal concatenation of the corresponding irreducible Wigner-D matrices for the local orbital sets.
For an SOC system, each basis function carries an orbital index and a spin index. The corresponding complex Hamiltonian block transforms as
where and are the orbital–spin representations associated with the local basis spaces. Here denotes a proper active spatial rotation, and the spin degree of freedom transforms through a corresponding lift of to . In addition to rotational symmetry, Hamiltonians also exhibit symmetry under spatial inversion. For a comprehensive symmetry analysis of Hamiltonians, we refer the reader to Appendix C.
3 THEORY: EQUIVARIANCE IN DIRECT-PRODUCT SPACE
Conventional equivariant networks for Hamiltonian prediction usually learn features in direct sums of irreducible tensors, whereas a Hamiltonian block is naturally represented as a matrix or tensor in the direct-product space of local orbital bases, with spin degrees of freedom additionally included when SOC is considered. Formal definitions of the direct-product and direct-sum spaces and their associated representations are provided in Definitions A.7 and A.8, respectively; the direct-product units of Hamiltonian blocks are defined in Definition A.9. Here, we aim to establish a rigorous theoretical foundation for symmetry-preserving operations in the Hamiltonian direct-product space, with exact equivariance, the corresponding spinor equivariance, and spatial-inversion equivariance, providing the theoretical basis for Section 4.
3.1 EQUIVARIANT DIRECTIONAL EMBEDDING
The direction vector specifies an orientation in three-dimensional space, but cannot directly act on the row or column basis of a Hamiltonian block. To bridge this gap, we develop a Lie-generator-based directional embedding formulation that maps the local geometric direction into equivariant operators acting directly on Hamiltonian-like matrices or tensors in the direct-product space. Specifically, we contract the Cartesian components of with orbital- and spin-resolved Lie generators to obtain the atom-wise directional operators and for non-SOC and SOC systems, respectively, as detailed in Appendix E. Under proper spatial rotations and spatial inversion, these directional operators obey the corresponding equivariance laws in the orbital or orbital–spin representations, as formalized in the following theorem:
Theorem 3.1 (Equivariance of Lie-algebraic directional embeddings). The directional embeddings and defined in Appendix E transform equivariantly under spatial rotations and are spatial-inversion equivariant with operator-level intrinsic parity . For non-SOC systems, is a real orbital matrix and satisfies
For SOC systems, is a complex spinor tensor with components and satisfies
Under spatial inversion , with denoting the local parity operator defined in Eq. (35), the two embeddings further satisfy
3.2 SO(3)-EQUIVARIANT OPERATORS
For non-SOC systems, consider three feature matrices in the direct-product space:
Here is the feature associated with atom pair , while and are atom-wise features acting on the orbital bases of atoms and , respectively. The dimensions and denote the numbers of orbital basis functions on the two atoms. The superscript indexes different feature heads, and denotes an invariant scalar coefficient.
Theorem 3.2 (SO(3) equivariance of operators in the direct-product space). Assume that satisfies the same SO(3) transformation rule as the Hamiltonian block in Eq. (1). Assume also that and satisfy the same transformation rule as Eq. (1) with replaced by , and replaced by , respectively. Define
where index the orbital basis of atom and index the orbital basis of atom . Then satisfies the same SO(3) transformation rule as Eq. (1).
In Eq. (7), can be instantiated by either the directional matrix or the equivariant context matrix defined in Appendix G.4. can be instantiated by either or .
3.3 SU(2)-EQUIVARIANT OPERATORS
For SOC systems, consider three feature tensors in the direct-product space:
The components of are written as , where index orbital basis functions on atoms , and index spin. The tensors and act on the orbital-spin bases of atoms and , respectively.
Theorem 3.3 (SU(2) equivariance of operators in the direct-product space). Assume that satisfies the same SU(2) spinor transformation rule as the Hamiltonian block in Eq. (2), with replaced by . Assume also that and satisfy the same transformation rule as Eq. (2) with replaced by , and replaced by , respectively. Define
where is an invariant scalar. Then satisfies the same SU(2) spinor transformation rule as Eq. (2).
In Eq. (9), can be instantiated by either the directional spinor tensor or the equivariant context tensor defined in Appendix G.4. can be instantiated by either or .
3.4 EQUIVARIANCE TO SPATIAL INVERSIONS
Theorem 3.4 (Spatial-inversion equivariance of operators in the direct-product space). Assume that the column basis of and the row basis of are the same ordered local basis of atom , while the row basis of and the column basis of are the same ordered local basis of atom , including spin in the SOC setting. For local-set indices and , assume that the units of , , and satisfy
If is inversion invariant, then the unit generated by the -th head in Eqs. (7) and (9) satisfies
Therefore, for a Hamiltonian-shaped input with , requiring for every retained head ensures that their sum preserves the Hamiltonian inversion parity defined in Eq. (36) for every output unit.
For the non-SOC model, this result together with the established equivariance gives full equivariance. For SOC systems, it combines the equivariance with the corresponding orbital-parity action.
Proposition 3.5 (Equivariance of invariantly weighted operator aggregation). If feature matrices or tensors are expressed in the same carrier space and common local basis, with matching direct-product-unit structure, dimensions, and equivariant transformation laws, and share the same operator-level intrinsic inversion parity , then obeys the same rotation and inversion laws as the aggregated features , provided that the weights are invariant scalars.
Implication. Scalar features can flexibly modulate the equivariant features without changing their transformation laws under rotations and inversions, thus enhancing the model capacity.
Proofs of all theorems and propositions are provided in Appendix F.
4 METHODOLOGY
We instantiate our theory as an equivariant and expressive Transformer architecture that jointly learns equivariant features in the direct-product space and invariant scalar features. Following the residual learning strategy of NextHAM (Yin et al., 2026), DP-Learner takes the zeroth-step Hamiltonian as input and learns a residual correction to predict the self-consistent Hamiltonian . We represent the equivariant atom-pair features propagated between layers as plus accumulated corrections in the target orbital or orbital-spin basis, as defined in Appendix G.1. Directional embeddings, attention, and matrix or tensor contractions combine bond directions with many-body environment information while preserving or spinor equivariance and spatial-inversion equivariance. Figure 2 summarizes the architecture. The components described below are detailed in the corresponding subsections of Appendix G, and the training loss is given in Appendix I. Appendix H analyzes the computational efficiency relative to representation learning methods (Geiger & Smidt, 2022; Passaro & Zitnick, 2023) in the direct-sum space.
Dual conversion between equivariant and invariant features. DP-Learner gains non-linear expressive power from invariant scalar features while preserving equivariance in the direct-product space. Normalized Frobenius norms summarize each direct-product unit of the current matrix or tensor. Multi-layer perceptrons (MLPs) combine these summaries with invariant node, edge, and radial features to predict gates, directional weights, attention weights, and contraction coefficients. These invariant scalars then modulate the equivariant features without changing their transformation laws. Appendix G.2 gives the corresponding equations.
Equivariant updates using directions. We encode the pair direction using fixed orbital and spin Lie generators to construct directional operators acting on the local orbital or orbital–spin bases of atoms a and b. These operators update the equivariant atom-pair feature through a bilateral contraction, injecting bond-orientation information into the direct-product space. An invariant scalar coefficient controls the strength of this update. Details are given in Appendices E and G.3.

Figure 2: Overview of the neural network architecture of DP-Learner.
Attention-based updates of node, edge, and context features. The attention module updates invariant node and edge features and constructs equivariant atom-wise context features. Multi-head attention aggregates invariant edge features to update the destination-node features. In parallel, attention over incoming equivariant features assigns invariant weights and aggregates the matrices or tensors in a common local basis to form the context . The updated node features, radial features, current edge features, and new Frobenius summaries then determine the invariant edge update. Appendix G.4 describes these operations.
Equivariant updates using context features. The context features at atoms and update the corresponding equivariant atom-pair feature through left, right, and bilateral products or contractions. Invariant coefficients predicted from the local environment control the three contributions, propagating many-body information from neighboring Hamiltonian blocks. The resulting correction is accumulated for the next layer. Appendix G.5 gives the complete equations.
Stabilization techniques and -centered residual correction. Dimension-aware normalization controls the growth of numerical scales of equivariant features during repeated contractions: per-unit Frobenius summaries use root-mean-square magnitudes, and one-sided and bilateral contractions are scaled by and , respectively, where is the matrix dimension in the common basis layout. LayerNorm operates within invariant MLPs, while LayerScale regulates the equivariant, edge, and node updates. The output heads are zero initialized so that the initial prediction equals , and directional weights use to retain the fixed generator contribution. After layers, the output module produces the Hamiltonian correction , which is added to to obtain the final prediction. Appendix G.6 describes the initialization and output.
5 DATASET
To enable Hamiltonian learning at a broader scale and with greater diversity, we construct and release MP-HAM-110K, comprising more than 110,000 material structures sampled from the Materials Project (Jain et al., 2013), for which self-consistent first-principles calculations are performed to obtain Hamiltonian annotations. MP-HAM-110K provides zeroth-step Hamiltonians , self-consistent Hamiltonians , overlap matrices, and the wavefunction information required for reciprocal-space supervision. As discussed in Appendix D.2, the dataset is formulated in the non-SOC orbital setting to bridge the gap in existing data resources and provide a scalable com-
Table 1: Accuracy and computational efficiency comparison on the Materials-HAM-SOC benchmark (Yin et al., 2026) and the proposed MP-HAM-110K benchmark. denotes the total number of network parameters. As detailed in Appendix K, denotes the Gauge MAE metric; denotes the mean per-sample runtime of the neural inference stage, including input feeding, neural-network execution, result format conversion and saving; denotes the mean per-sample peak GPU memory reserved by PyTorch. Lower values indicate better performance for all metrics.
| Method | Materials-HAM-SOC | MP-HAM-110K | ||||||
|---|---|---|---|---|---|---|---|---|
| (M) | (meV) | (s) | (GiB) | (M) | (meV) | (s) | (GiB) | |
| NextHAM | 50.285 | 1.417 | 3.014 | 20.398 | 50.263 | 2.394 | 2.032 | 6.135 |
| DP-Learner | 26.445 | 0.841 | 0.269 | 0.989 | 26.094 | 1.595 | 0.203 | 0.531 |
plement to computationally demanding SOC datasets. This design enables efficient data generation, learning, and inference over a broad materials space. Further details are provided in Appendix J.
6 EMPIRICAL STUDY
Given the page limit, we present only the key experimental results in the main text. Ablation studies, element-wise error analyses, and additional band-structure comparisons are comprehensively provided in Appendix L and are also referenced in the analysis below. We compare the prediction accuracy and computational efficiency of DP-Learner with NextHAM (Yin et al., 2026), a recent state-of-the-art method for Hamiltonian prediction across a broad range of elements. Experiments are conducted on Materials-HAM-SOC and MP-HAM-110K, both of which cover chemically diverse periodic materials and provide the zeroth-step Hamiltonians required by the two methods. Other Hamiltonian benchmarks often focus on specific material systems, lack publicly accessible data, or do not provide , limiting their suitability for this comparison, as discussed in Appendix D.2. The software and hardware environments, parameter settings, and training and inference configurations for both methods are detailed in Appendix K.
As shown in Table 1, DP-Learner improves both accuracy and efficiency relative to NextHAM. On Materials-HAM-SOC, it reduces Gauge MAE (Wang et al., 2024) by 40.6%, peak GPU memory consumption by 95.2%, and the parameter count by 47.4%, while achieving an speedup in neural inference. On MP-HAM-110K, it reduces Gauge MAE by 33.4%, peak GPU memory consumption by 91.3%, and the parameter count by 48.1%, with a inference speedup. Together, these results establish a new state of the art on both benchmarks in Hamiltonian prediction accuracy and inference efficiency. Preserving the Hamiltonian structure provides an inductive bias for learning how the local environment affects orbital or orbital-spin couplings, while equivariant matrix contractions enable efficient batched computation. Table 4 in Appendix L further shows substantial reductions in Gauge MAE relative to using directly on both datasets. Figure 7 illustrates the improvement in band structures: DP-Learner closely reproduces the DFT reference bands, whereas exhibits pronounced deviations.
The results on MP-HAM-110K further demonstrate the efficiency of the non-SOC formulation. Although its testing structures contain approximately twice as many atoms on average as those in Materials-HAM-SOC, DP-Learner requires substantially less inference time and GPU memory. It is worth noting that the higher reported MAE on MP-HAM-110K does not by itself indicate poorer regression performance. The reported errors also reflect the different block structures of SOC and non-SOC Hamiltonians: the SOC error is averaged over four spin blocks, whereas the non-SOC error is evaluated over a single orbital block. In SOC systems, already closely approximates the spin-flip blocks, as shown by the statistics in NextHAM (Yin et al., 2026). The reported SOC error is averaged over all four spin blocks, including the two spin-flip blocks with negligible errors. Consequently, the mean error over the two spin-conserving blocks is approximately twice the overall error. After accounting for this averaging, the errors are comparable to those on the single orbital block in the non-SOC setting.

Figure 3: Band structure comparison for a representative testing sample from Materials-HAM-SOC. Red solid lines show the DFT reference bands used as ground truths in our dataset; blue dashed lines show the bands obtained from the Hamiltonians predicted by NextHAM (left) and DP-Learner (right). Additional DP-Learner results are shown in Figures 9 and 11. The displayed energies are referenced to the Fermi energy .
Figures 8 and 10 in Appendix L compare prediction accuracy across element-defined subsets of the Materials-HAM-SOC and MP-HAM-110K testing sets, respectively. For each element, we collect all of the testing structures containing it and compute the Gauge MAE metric within each subset. DP-Learner outperforms NextHAM in every subset shown, with consistent accuracy improvements across all of the elements represented in these testing sets. These results demonstrate that the accuracy gains brought by DP-Learner cover chemically diverse materials, rather than being confined to structures containing a few specific elements. The gains in Hamiltonian prediction accuracy also translate into more accurate band structures. For the ZnS example in Figure 3, DP-Learner substantially reduces the deviations present in the prediction results of NextHAM, particularly in the band gap, and closely reproduces the DFT reference bands. Figures 9 and 11 provide further evidence of band structure agreement of our method with DFT calculations across diverse materials, including structurally complex systems with many closely spaced bands. These results demonstrate the practical value of DP-Learner for electronic-structure analysis and highlight its potential for industrial applications in which electrical conductivity and optical properties are critical. The ablation studies on both datasets in Table 4 demonstrate the individual contributions of five core components to prediction accuracy: updating equivariant features across layers, incorporating bond directions, aggregating equivariant context features, predicting invariant coefficients from the local environment, and scaling residual feature updates with LayerScale. The full model combines all five components and achieves the lowest prediction error on both datasets. Taken together, these results support the central premise of DP-Learner: learning equivariant features in the direct-product space with preservation of the Hamiltonian structure supports both accurate prediction and efficient computation.
7 CONCLUSION
We present an equivariant Hamiltonian prediction framework that operates directly on Hamiltonian-like operator blocks in the direct-product space. By preserving the native matrix or spinor-tensor structure of Hamiltonians throughout message passing, DP-Learner avoids the representation mismatch and irregular tensor transformations between direct-product and direct-sum spaces used by conventional methods. The framework combines Lie-generator-based directional embedding with invariantly weighted left-right contractions, ensuring exact rotation and inversion equivariance. These principles are instantiated as an equivariant Transformer architecture, where dense left-right operator products and contractions are guided by non-linear invariant scalar routing over gates, directional propagation, attention, and environmental context. We further present MP-HAM-110K, a comprehensive benchmark with over 110,000 periodic-material structures across 68 elements, supporting systematic evaluation of universal Hamiltonian prediction at substantially larger scale. Experiments on MP-HAM-110K and Materials-HAM-SOC demonstrate that DP-Learner achieves superior Hamiltonian prediction accuracy and dramatic gains in inference efficiency compared to the state-of-the-art NextHAM method.
AI USE STATEMENT
LLMs were used for manuscript language polishing to improve fluency and grammatical correctness.
ETHICS STATEMENT
This work aims to advance deep-learning methods for materials research. Although no immediate adverse social or ethical consequences are apparent, it remains important to consider the broader implications of data-driven scientific modeling. DP-Learner provides a physically informed framework for learning Hamiltonians directly in their native direct-product space. This design improves the alignment between the model architecture and the underlying quantum-mechanical representation of the prediction target, while substantially improving computational efficiency. Nevertheless, the detailed roles of the learned invariant routing coefficients, attention weights, and environment-dependent operator interactions remain only partially understood. Further analysis of these learned quantities may clarify how physical information is encoded and utilized by the model, thereby strengthening the scientific interpretability, reliability, and applicability of its predictions across diverse materials systems.
REPRODUCIBILITY STATEMENT
Proofs of all theorems and propositions are provided in Appendix F. The network architecture, training objective, and implementation details are described in Appendices G, I, and K, respectively. Dataset construction, annotations, and splits are documented in Appendix J, and the ablation configurations for both datasets are specified in Appendix L.
The source code and pretrained model weights are available through an anonymous link: https://dzefile.hpccube.com:65011/efile/s/w/YWlmb3JtYXRlcm1hbHM=_6a9f3a62a80f02c4&, with access code: GUgZ. The proposed MP-HAM-110K dataset is available through another anonymous link: https://dzefile.hpccube.com:65011/efile/s/w/YWlmb3JtYXRlcm1hbHM=_5b81ae7c44ef8d7e&, with access code: rjvT.
REFERENCES
Ilyes Batatia, David P Kovacs, Gregor Simm, Christoph Ortner, and Gábor Csányi. Mace: Higher order equivariant message passing neural networks for fast and accurate force fields. In NeurIPS, pp. 11423–11436, 2022.
Simon Batzner, Albert Musaelian, Lixin Sun, Mario Geiger, Jonathan P Mailoa, Mordechai Kornbluth, Nicola Molinari, Tess E Smidt, and Boris Kozinsky. E (3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials. Nature Communications, 13(1): 2453, 2022.
Andrea Dal Corso. Projector augmented wave method with spin-orbit coupling: Applications to simple solids and zincblende-type semiconductors. Physical Review B, 86(8):085135, 2012.
Mildred S Dresselhaus, Gene Dresselhaus, and Ado Jorio. Group theory: application to the physics of condensed matter. Springer Science & Business Media, 2007.
Johannes Gasteiger, Florian Becker, and Stephan Günnemann. Gemnet: Universal directional graph neural networks for molecules. Advances in Neural Information Processing Systems, 34:6790–6802, 2021.
Mario Geiger and Tess E. Smidt. e3nn: Euclidean Neural Networks. CoRR, abs/2207.09453, 2022.
Xiaoxun Gong, He Li, Nianlong Zou, Runzhang Xu, Wenhui Duan, and Yong Xu. General framework for E(3)-equivariant neural network representation of density functional theory Hamiltonian. Nature Communications, 14(1):2848, 2023.
D. R. Hamann. Optimized norm-conserving Vanderbilt pseudopotentials. Physical Review B, 88(8): 085117, 2013.
Pierre Hohenberg and Walter Kohn. Inhomogeneous electron gas. Physical Review, 136(3B):B864, 1964.
Anubhav Jain, Shyue Ping Ong, Geoffroy Hautier, Wei Chen, William Davidson Richards, Stephen Dacek, Shreyas Cholia, Dan Gunter, David Skinner, Gerbrand Ceder, et al. Commentary: The Materials Project: A materials genome approach to accelerating materials innovation. APL materials, 1(1), 2013.
Gan Jin, Hongsheng Pang, Yuyang Ji, Zujian Dai, and Lixin He. Pyatb: An efficient python package for electronic structure calculations using ab initio tight-binding model. Computer Physics Communications, 291:108844, 2023.
Robert O Jones. Density functional theory: Its origins, rise to prominence, and future. Reviews of modern physics, 87(3):897, 2015.
Kuzma Khrabrov, Anton Ber, Artem Tsypin, Konstantin Ushenin, Egor Rumiantsev, Alexander Telepov, Dmitry Protasov, Ilya Shenbin, Anton Alekseev, Mikhail Shirokikh, Sergey Nikolenko, Elena Tutubalina, and Artur Kadurin. DFT: A universal quantum chemistry dataset of drug-like molecules and a benchmark for neural network potentials. In NeurIPS, Datasets and Benchmarks Track, 2024.
Walter Kohn and Lu Jeu Sham. Self-consistent equations including exchange and correlation effects. Physical Review, 140(4A):A1133, 1965.
R. B. Lehoucq, D. C. Sorensen, and C. Yang. ARPACK Users' Guide: Solution of Large-Scale Eigenvalue Problems with Implicitly Restarted Arnoldi Methods. 1998.
He Li, Zun Wang, Nianlong Zou, Meng Ye, Runzhang Xu, Xiaoxun Gong, Wenhui Duan, and Yong Xu. Deep-learning density functional theory Hamiltonian for efficient ab initio electronic-structure calculation. Nature Computational Science, 2(6):367–377, 2022.
Pengfei Li, Xiaohui Liu, Mohan Chen, Peize Lin, Xinguo Ren, Lin Lin, Chao Yang, and Lixin He. Large-scale ab initio simulations based on systematically improvable atomic basis. Computational Materials Science, 112:503–517, 2016.
Yunyang Li, Zaishuo Xia, Lin Huang, Xinran Wei, Samuel Harshe, Han Yang, Erpai Luo, Zun Wang, Jia Zhang, Chang Liu, Bin Shao, and Mark Gerstein. Enhancing the Scalability and Applicability of Kohn-Sham Hamiltonians for Molecular Systems. In ICLR, 2025.
Zhixin Liang, Yunlong Wang, Chi Ding, Junjie Wang, Hui-Tian Wang, Dingyu Xing, and Jian Sun. Hot-ham: an accurate and efficient e (3)-equivariant machine-learning electronic structures calculation framework. Chinese Physics Letters, 43(2):020704, 2026.
Peize Lin, Xinguo Ren, and Lixin He. Strategy for constructing compact numerical atomic orbital basis sets by incorporating the gradients of reference wavefunctions. Physical Review B, 103(23):235131, 2021.
Peize Lin, Xinguo Ren, Xiaohui Liu, and Lixin He. Ab initio electronic structure calculations based on numerical atomic orbitals: Basic formalisms and recent progresses. WIREs Computational Molecular Science, 14:e1687, 2024.
Erpai Luo, Xinran Wei, Lin Huang, Yunyang Li, Han Yang, Zaishuo Xia, Zun Wang, Chang Liu, Bin Shao, and Jia Zhang. Efficient and scalable density functional theory hamiltonian prediction through adaptive sparsity. In ICML, 2025.
Ágnes Nagy. Density functional. theory and application to atoms and molecules. Physics Reports, 298(1):1–79, 1998.
Saro Passaro and C. Lawrence Zitnick. Reducing SO(3) convolutions to SO(2) for Efficient Equivariant GNNs. In ICML, pp. 27420–27438, 2023.
John P. Perdew, Kieron Burke, and Matthias Ernzerhof. Generalized Gradient Approximation Made Simple. Physical Review Letters, 77(18):3865–3868, 1996.
Chen Qian, Valdas Vitartas, James R Kermode, and Reinhard J Maurer. Equivariant electronic hamiltonian prediction with many-body message passing. npj Computational Materials, 2026.
Kristof T Schütt, Huziel E Sauceda, P-J Kindermans, Alexandre Tkatchenko, and K-R Müller. Schnet—a deep learning architecture for molecules and materials. The Journal of chemical physics, 148(24), 2018.
Kristof T Schütt, Michael Gastegger, Alexandre Tkatchenko, K-R Müller, and Reinhard J Maurer. Unifying machine learning and quantum chemistry with a deep neural network for molecular wavefunctions. Nature Communications, 10(1):5024, 2019.
Nathaniel Thomas, Tess Smidt, Steven Kearnes, Lusann Yang, Li Li, Kai Kohlhoff, and Patrick Riley. Tensor field networks: Rotation-and translation-equivariant neural networks for 3d point clouds. arXiv preprint arXiv:1802.08219, 2018.
Viren Tyagi, Mike Pols, Geert Brocks, and Shuxia Tao. Tracing ion migration in halide perovskites with machine learned force fields. The Journal of Physical Chemistry Letters, 16(20):5153–5159, 2025.
Oliver Unke, Mihail Bogojeski, Michael Gastegger, Mario Geiger, Tess Smidt, and Klaus-Robert Müller. Se (3)-equivariant prediction of molecular wavefunctions and electronic densities. In NeurIPS, pp. 14434–14447, 2021.
M. J. van Setten, M. Giantomassi, E. Bousquet, M. J. Verstraete, D. R. Hamann, X. Gonze, and G.-M. Rignanese. The pseudodojo: Training and grading a 85 element optimized norm-conserving pseudopotential table. Computer Physics Communications, 226:39–54, 2018.
Yuxiang Wang, Yang Li, Zechen Tang, He Li, Zilong Yuan, Honggeng Tao, Nianlong Zou, Ting Bao, Xinghao Liang, Zezhou Chen, et al. Universal materials model of deep-learning density functional theory Hamiltonian. Science Bulletin, 69(16):2514–2521, 2024.
Chen Hao Xia, Manasa Kaniselvan, Alexandros Nikolaos Ziogas, Marko Mladenović, Rayen Mahjoub, Alexander Maeder, and Mathieu Luisier. Learning the Electronic Hamiltonian of Large Atomic Structures. In ICML, 2025.
Shi Yin, Xinyang Pan, Fengyan Wang, and Lixin He. Tracegrad: a Framework Learning Expressive SO(3)-equivariant Non-linear Representations for Electronic-Structure Hamiltonian Prediction. In ICML, 2025.
Shi Yin, Zujian Dai, Xinyang Pan, and Lixin He. Advancing universal deep learning for electronic-structure hamiltonian prediction of materials. In ICLR, 2026.
Haiyang Yu, Meng Liu, Youzhi Luo, Alex Strasser, Xiaofeng Qian, Xiaoning Qian, and Shuiwang Ji. QH9: A Quantum Hamiltonian Prediction Benchmark for QM9 Molecules. In NeurIPS, 2023a.
Haiyang Yu, Zhao Xu, Xiaofeng Qian, Xiaoning Qian, and Shuiwang Ji. Efficient and Equivariant Graph Networks for Predicting Quantum Hamiltonian. In ICML, pp. 40412–40424, 2023b.
He Zhang, Chang Liu, Zun Wang, Xinran Wei, Siyuan Liu, Nanning Zheng, Bin Shao, and Tie-Yan Liu. Self-consistency training for density-functional-theory hamiltonian prediction. In ICML, 2024.
Xuan Zhang, Limei Wang, Jacob Helwig, Youzhi Luo, Cong Fu, Yaochen Xie, Meng Liu, Yuchao Lin, Zhao Xu, Keqiang Yan, et al. Artificial intelligence for science in quantum, atomistic, and continuum systems. Foundations and Trends® in Machine Learning, 18(4):385–912, 2025.
Yang Zhong, Hongyu Yu, Mao Su, Xingao Gong, and Hongjun Xiang. Transferable equivariant graph neural networks for the Hamiltonians of molecules and solids. npj Computational Materials, 9(1):182, 2023.
Yang Zhong, Hongyu Yu, Jihui Yang, Xingyu Guo, Hongjun Xiang, and Xingao Gong. Universal machine learning kohn–sham hamiltonian for materials. Chinese Physics Letters, 41(7):077103, 2024.
A OVERVIEW OF BASIC CONCEPTS IN GROUP THEORY
This section presents the group-theoretic definitions used throughout the paper. The presentation is intentionally brief and focuses on the concepts relevant to Hamiltonian blocks. For a more comprehensive physical introduction, we refer the reader to standard texts on group theory in solid-state physics (Dresselhaus et al., 2007).
Definition A.1 (Group). A group is a pair , where is a nonempty set and
is a binary operation satisfying the following axioms:
- Closure. For any ,
- Associativity. For any ,
- Identity. There exists an element , called the identity element, such that for every ,
- Inverse. For every , there exists an element , called the inverse of , such that
Definition A.2 (Linear representation). Let be a finite-dimensional real or complex vector space. A representation of on is a group homomorphism
After choosing a basis of , is represented by an invertible matrix. In this paper, the relevant representations are the orbital representations of and their orbital–spin extensions induced by the lift of spatial rotations.
Definition A.3 (Invariant subspace and irreducible representation). A subspace is invariant under if
Equivalently, every vector initially in remains in after the group action. The representation is irreducible if its only invariant subspaces are and . Otherwise, is reducible and, for compact groups, can be decomposed after a suitable change of basis into a direct sum of irreducible representations.
Definition A.4 (Equivariant and invariant maps). Let and be representations of on vector spaces and . A map is equivariant if
If carries the trivial representation, this condition reduces to invariance:
In DP-Learner, scalar networks act on invariant quantities, while matrix or spinor-tensor states carry nontrivial equivariant representations.
Definition A.5 ( and ). The special orthogonal group is
the group of proper rotations in three-dimensional Euclidean space. The special unitary group is
The group is the double cover of and provides the spinor representation associated with spatial rotations. Thus, a rotation acts as on spin-1/2 states, while a rotation returns to .
Definition A.6 (Wigner representations and spinor lift). For each integer angular-momentum label , let denote the -dimensional orbital representation space. A spatial rotation acts on through a Wigner representation matrix
in a real spherical-harmonic basis, or through the equivalent complex Wigner matrix in a complex spherical basis.
In the SOC setting, the orbital space is tensored with the spin-1/2 space. If denotes the corresponding spinor lift of , then the orbital–spin representation used in this paper is
Definition A.7 (Direct-product space and representation). Throughout this paper, following common usage in physics, the term direct-product space refers to the tensor-product space .
Let and be finite-dimensional vector spaces with bases and , respectively. Their direct-product space is
The basis degrees of freedom are therefore indexed jointly by a pair , and
A general element can be written as
so its coefficients naturally form a two-index array.
If
are representations of a group , their direct-product representation acts simultaneously on the two factors:
For the operator spaces relevant to this work, let denote the dual basis of . Here the superscript denotes the algebraic dual space. The canonical isomorphism
identifies a linear operator with
whose coefficients form an matrix. The induced group action is
For orthogonal representations, , whereas for unitary representations, .
Definition A.8 (Direct-sum space and representation). Let and be finite-dimensional vector spaces with bases and , respectively. Their direct-sum space is
with basis
The two sets of basis degrees of freedom are concatenated rather than pairwise combined, and hence
A general element is written as
If
are representations of , their direct-sum representation acts separately on the two components:
In a basis adapted to the two summands, the corresponding representation matrix is block diagonal:
Thus, a vector initially belonging to one summand remains in that summand under the group action. More generally, carries the block-diagonal representation
In summary, the direct-product space pairwise combines basis indices and has multiplicative dimension, whereas the direct-sum space concatenates separate basis sets and has additive dimension.
Definition A.9 (Direct-product unit as a local coupling operator). Let and be the orbital subspaces spanned by two local orbital sets and , with angular degrees and . We write for the vector space of all linear maps from to . For finite-dimensional spaces, there is a canonical isomorphism
A direct-product unit coupling the v-side orbital set to the u-side orbital set is therefore an operator
In an orthonormal real orbital basis, this unit is represented by a matrix
and transforms under an active spatial rotation as
If the complete operator block is inversion homogeneous with operator-level intrinsic parity , shared by all of its non-zero direct-product units, then
Here, the factor arises from the orbital parities of the row and column subspaces, while characterizes the intrinsic inversion parity of the operator itself. A complete atom-pair Hamiltonian block is assembled from all direct-product units associated with the local orbital sets on the two atoms. The full-block rotation and inversion laws for Hamiltonians, together with their corresponding extension to complex orbital–spin bases in the SOC setting, are formalized in Appendix C.
Definition A.10 (Clebsch–Gordan decomposition). As introduced in Definition A.9, the local orbital subspaces and carry irreducible representations of angular degrees and , respectively. We therefore write
so that a direct-product unit can be regarded as an operator
Choose the magnetic basis of and the dual basis of . The operator can then be written as
(15) where are the matrix elements of in the direct-product basis.
To express the same operator in irreducible angular-momentum components, we use the fact that every integer-angular-momentum irreducible representation of is self-dual:
After choosing a fixed equivariant identification between these two spaces, the Clebsch–Gordan decomposition gives
This decomposition reorganizes the matrix elements of into irreducible components with total angular momentum .
Using the coefficient tensor , the Clebsch–Gordan decomposition maps the direct-product matrix/tensor components into the following irreducible components in the direct-sum space:
where .
The original direct-product matrix/tensor components can be recovered through the inverse transformation:
B ELECTRONIC STRUCTURE CALCULATIONS: FROM DENSITY FUNCTIONAL THEORY TO DEEP LEARNING METHODS
Density Functional Theory (DFT) (Hohenberg & Kohn, 1964; Kohn & Sham, 1965) is one of the central computational frameworks for electronic-structure calculations in condensed matter physics, quantum chemistry, and materials science. Instead of explicitly treating the full many-electron wave-function, DFT uses the electron density as the fundamental variable. This reformulation greatly reduces the complexity of the quantum many-body problem while retaining the essential information required for many ground-state properties. Owing to this balance between physical fidelity and computational tractability, DFT has become a standard tool for computing band structures, orbital energies, relaxed geometries, and electronic, magnetic, optical, and transport-related properties.
The practical formulation most widely used in materials calculations is Kohn–Sham DFT (Kohn & Sham, 1965). It maps the interacting many-electron problem to an auxiliary single-particle problem,
where is the effective Kohn–Sham Hamiltonian. The potential consists of the external potential and the Hartree–exchange–correlation contribution
where and are both evaluated as functionals of the density. For periodic systems, the density is obtained from the occupied Kohn–Sham orbitals as
where is the weight of the k-point and denotes the occupation of band at .
To solve Eq. (19) numerically, the orbitals are expanded in a finite basis. In localized-basis electronic-structure codes, numerical atomic orbitals (NAOs) are commonly used because of their compact spatial support and favorable efficiency. A basis function is written as the product of a radial function and a real spherical harmonic,
where denotes the chemical species, labels the radial channel, and are the angular momentum and magnetic quantum numbers, and denotes the angular direction of . The radial part is tabulated on a radial grid and is truncated beyond a cutoff radius . In many implementations it can be represented by a finite spherical-Bessel expansion,
Let be a composite index denoting the -th atomic orbital centered on atom in the reference unit cell, and define
where is the atomic position within the unit cell and is a lattice vector. The Bloch eigenstates are then expanded as
where is the expansion coefficient of orbital for band at , and is the number of unit cells in the Born–von–Kármán supercell, equivalently the number of sampled -points.
Substituting Eq. (23) into the Kohn–Sham equation gives the generalized eigenvalue problem
where , , and are the Hamiltonian matrix, overlap matrix, and eigenvector matrix at , respectively. The diagonal matrix contains the Kohn–Sham eigenvalues .
The reciprocal-space Hamiltonian is obtained from real-space matrix elements. For orbitals and , with
the real-space Hamiltonian element is
The corresponding matrix at is obtained through the lattice Fourier transform
The overlap matrix is transformed in the same way:
A standard Kohn–Sham calculation proceeds through a self-consistent-field (SCF) iteration:
-
Initialization: choose an initial density and set the iteration index .
-
Potential update: construct from the current density.
-
Hamiltonian assembly: build the Hamiltonian matrix using Eq. (25).
-
Eigenproblem solution: Fourier transform the real-space matrices to reciprocal space and solve Eq. (24) to obtain and .
-
Density update: compute the next density from the occupied orbitals using Eq. (20).
-
Convergence check: update and repeat until the input and output densities satisfy a prescribed convergence criterion.
Schematically, the procedure can be written as
After convergence, defines the self-consistent electronic structure and can be used to compute band structures, orbital energies, total energies, and related electronic, magnetic, optical, and transport properties.
Although Kohn–Sham DFT has been highly successful across materials science, chemistry, and physics (Nagy, 1998; Jones, 2015), its computational cost remains substantial for complex systems. A major cost arises from solving the generalized eigenvalue problem in Eq. (24); dense diagonalization scales cubically with the matrix dimension, i.e., , where is the number of basis functions. For localized atomic-orbital calculations with a fixed number of basis functions per atom, grows linearly with the number of atoms , so the dense eigensolution scales as . Since the eigenvalue problem must be solved repeatedly within an SCF loop requiring iterations, a dense eigensolver can incur a total computational cost of , imposing a substantial computational burden.
Recent machine-learning approaches (Schütt et al., 2019; Unke et al., 2021; Li et al., 2022; Gong et al., 2023; Yu et al., 2023b; Li et al., 2025; Luo et al., 2025; Yin et al., 2025) address this bottleneck by learning to predict the converged Hamiltonian directly from atomic structures and related descriptors. In this setting, the expensive SCF trajectory is replaced by a single neural forward pass that outputs the final Hamiltonian matrix elements, thereby bypassing the repeated full-matrix eigensolutions required during conventional self-consistency.
The locality of NAOs gives the Hamiltonian a sparse block structure. Because basis functions have finite spatial extent, is non-zero only when the corresponding atoms lie within an interaction cutoff. If is the number of atoms and denotes the average number of neighboring atoms within this cutoff, then the number of local atomic pairs, and hence the number of Hamiltonian blocks to predict, scales as . For small systems in which grows with , the number of non-zero blocks can exhibit scaling. In sufficiently large systems, however, approaches a constant, and the number of non-zero Hamiltonian blocks scales linearly as .
Once the Hamiltonian has been predicted, many downstream electronic properties do not require the full eigenspectrum. In particular, electronic and transport properties are often governed primarily by bands within a limited energy window around the Fermi level. In such cases, one may compute only the targeted eigenstates near this energy window using sparse iterative eigensolvers, including shift-invert methods implemented in ARPACK (Lehoucq et al., 1998). When only a small fraction of the spectrum is required, the resulting computational cost can be substantially lower than that of full diagonalization. Learned Hamiltonian models therefore eliminate the repeated diagonalizations of the SCF procedure and can further combine sparse Hamiltonian representations with targeted local eigensolutions for downstream analysis. For very large materials systems, this combination provides a scalable pathway in which Hamiltonian prediction can approach scaling, while the subsequent spectral calculation is restricted to the physically relevant energy window near the Fermi level, allowing the relevant electronic states to be computed efficiently. This substantially improves the feasibility of large-scale materials analysis, screening, and design, compared to the traditional DFT method.
C SYMMETRY OF HAMILTONIANS
This section provides a rigorous formulation of the symmetry laws obeyed by Hamiltonians under spatial rotations and inversion, expanding the compact statements given in Section 2. The associated group-theoretic concepts have been introduced in Definitions A.7, A.8, and A.9.
Hamiltonian-block and direct-product-unit organization. For an atomic pair , the complete atom-pair Hamiltonian block couples the localized basis of atom to that of atom . Let and index local orbital sets on the two atoms, with angular degrees and , respectively. Let and denote the corresponding local orbital subspaces. The direct-product unit
is a linear map from to , or equivalently an element of
The complete atom-pair block is assembled from all such direct-product units:
Each unit represents one row–column coupling between a pair of local orbital sets and is associated with the angular-momentum-degree pair .
For systems without spin-orbit coupling, the Hamiltonian block is typically represented in a real orbital basis. Under an active spatial rotation , the real spherical-harmonic basis associated with angular-momentum label transforms according to the orthogonal Wigner- representation matrix
Each direct-product unit satisfies
Defining the atom-wise block-diagonal representation matrices
gives the block-level equivariant form in Eq. (1).
When spin-orbit coupling is included, the basis expands from pure orbital states to orbital–spin states . Each direct-product unit becomes a complex spinor tensor
with components , where index magnetic basis components and index spin.
For a spatial rotation , let denote its spin-1/2 representation, i.e., the corresponding lift. The orbital–spin representation for angular-momentum label is
The spinor Hamiltonian block transforms through contractions over both orbital and spin indices:
At the full-block level, defining
gives the block-level equivariant form in Eq. (2).
Spatial-inversion representation. Let denote spatial inversion, . Since an orbital subspace of angular degree has parity and spin is an axial degree of freedom, we can define the parity action on each local orbital set by
The physical Hamiltonian is inversion homogeneous with operator-level intrinsic parity . Its direct-product units obey
Assembling all units gives the equivalent full-block law
More generally, an operator block is called inversion homogeneous with operator-level (block-level) intrinsic parity if the same is shared by all of its non-zero direct-product units and
For the Hamiltonian block, , whereas the Lie-generator-based directional embedding has intrinsic parity .
D RELATED WORK
D.1 EQUIVARIANT NEURAL NETWORKS FOR ELECTRONIC-STRUCTURE HAMILTONIAN PREDICTION: CURRENT STATUS AND BOTTLENECKS
Symmetry is a fundamental principle in physics and is closely connected to conservation laws. Symmetry-preserving neural networks have therefore become a standard paradigm for learning atomistic quantities from three-dimensional structures. Early models such as SchNet construct scalar representations from invariant geometric descriptors, primarily interatomic distances (Schütt et al., 2018). Subsequent equivariant architectures propagate vectors and higher-order tensors transforming under irreducible representations of spatial rotations, using equivariant linear maps, tensor products, Clebsch–Gordan decompositions, and non-linear gating mechanisms (Thomas et al., 2018; Geiger & Smidt, 2022; Gasteiger et al., 2021; Batzner et al., 2022; Batatia et al., 2022). By retaining directional information, these models provide richer representations than purely invariant scalar networks and have become the foundation of modern deep learning models of atomic systems.
Deep-learning Hamiltonian models directly predict Kohn–Sham Hamiltonians from material structures, bypassing expensive self-consistent iterations and enabling efficient calculations of band structures, densities of states, and related electronic properties. For example, the original DeepH framework uses local coordinates to transform the rotation-equivariant Hamiltonian prediction problem into an invariant learning problem (Li et al., 2022); DeepH-E3 upgrades this local-frame invariant formulation with explicit -equivariant message passing over irreducible tensor features and Wigner–Eckart reconstruction, providing a more expressive representation of directional orbital couplings and supporting spin-orbit coupling (Gong et al., 2023); DeepH-2 retains a bond-aligned local z-axis, realizes global equivariance through more efficient operations, and combines this formulation with an equivariant Transformer (Wang et al., 2024). Other studies improve transferability, many-body modeling, sparsity, non-linear expressiveness, or tensor-product efficiency (Yu et al., 2023b; Qian et al., 2026; Zhong et al., 2023; 2024; Luo et al., 2025; Yin et al., 2025; Liang et al., 2026).
Many existing Hamiltonian-prediction models use learnable element embeddings for atoms and, in some architectures, explicit element-pair embeddings for atom pairs. These chemical descriptors are typically initialized randomly and optimized from the training data, with limited explicit electronic-structure priors. Consequently, element-dependent orbital characteristics and element-pair-dependent electronic couplings must be inferred largely through data-driven learning, which can limit generalization across chemically diverse systems. Because elements and element pairs are highly imbalanced in materials databases, embeddings associated with rare elements, unusual bonds, and underrepresented chemical environments receive limited supervision and can generalize poorly to unseen material systems. Moreover, maintaining separate lookup tables requires parameters for element embeddings and, when explicit element-pair embeddings are used, up to parameters for edge embeddings, where is the number of covered elements. The resulting data sparsity and rapidly growing representation cost pose substantial challenges to constructing universal electronic-structure Hamiltonian models that span broad regions of the periodic table.
NextHAM addresses these limitations by replacing conventional node and edge embeddings with the zeroth-step Hamiltonian as a physically informed input descriptor (Yin et al., 2026). Unlike randomly initialized element and element-pair embeddings, incorporates electronic-structure information from the atomic configuration and initial charge density, including electron–ion interactions and an initial approximation to electron–electron interactions. This substantially alleviates the data-sparsity problem associated with rare elements and infrequent element pairs, while avoiding embedding tables whose size grows with the number of chemical species, making the input representation naturally scalable to broad chemical spaces. At the output stage, NextHAM only learns the residual correction
rather than reconstructing the self-consistent Hamiltonian from scratch. NextHAM has achieved remarkable cross-material generalization over a chemically diverse materials space containing more than 60 elements (Yin et al., 2026). These results demonstrate the effectiveness of -conditioned learning as a practical route toward universal electronic-structure Hamiltonian prediction.
However, a fundamental representation mismatch remains in most of the existing equivariant methods for Hamiltonian prediction: the Hamiltonian is naturally an operator in the direct-product space, whereas the neural network usually represents and propagates information through a direct sum of irreducible tensor features. Specifically, an atom-pair Hamiltonian block is a linear map from the local basis space of atom to that of atom ,
The full block is assembled from orbital units in the direct-product space,
where, for orbital angular momenta and ,
Thus, in a fixed localized basis, each direct-product unit is naturally represented as a regular matrix with explicit row–column structure.
However, most of the existing equivariant Hamiltonian models (Gong et al., 2023; Yu et al., 2023b; Zhong et al., 2023; Wang et al., 2024; Zhong et al., 2024; Liang et al., 2026; Qian et al., 2026) adopt direct sums of irreducible tensor features as their persistent internal representation. For an orbital pair in the setting, the corresponding direct-product representation decomposes as
so that a complete coupling is represented by a collection of irreducible channels
Although the total number of degrees of freedom is preserved,
a regular direct-product matrix is fragmented and reorganized into multiple irreducible tensor channels of heterogeneous sizes.
Even in NextHAM, where the input is already a Hamiltonian operator in its native direct-product space, the corresponding blocks are still transformed into irreducible tensor features in the direct-sum space, propagated in that feature space, and subsequently reconstructed to obtain the Hamiltonian residual () (Yin et al., 2026) in the direct-product space. Thus, although provides a strong Hamiltonian-level physical prior, its native direct-product structure is not preserved in the internal representation throughout the network.
This representation mismatch introduces both representation-learning bottlenecks and computational overheads. From a representation-learning perspective, representing a Hamiltonian block that naturally lives in the direct-product space with direct sums of irreducible tensor features fragments its coherent row–column coupling structure across multiple angular-momentum channels, making the underlying orbital-coupling relationships less explicit in the internal representation. From a computational perspective, representing complete Hamiltonian matrices as direct sums of irreducible tensors and processing them without information loss suffers from high computational complexity. At the hardware-execution level, the heterogeneous dimensions implied by Eq. (43) lead to irregular feature layouts and angular-momentum-dependent routing paths, as analyzed in Appendix H. The introduction of spin degrees of freedom in SOC systems further increases this heterogeneity. Practical implementations therefore involve extensive irregular indexing and gathering, masking, padding, coefficient lookup, and many small tensor-product operations, which are poorly matched to the dense matrix-multiplication kernels highly optimized on modern graphics processing units, particularly for rich basis sets containing - and -orbitals.
Our framework is designed to address this representation and computational bottleneck. Since the Hamiltonian is intrinsically an operator in the direct-product space, we develop encoding and message-passing mechanisms that keep Hamiltonian-like features in the same direct-product matrix or tensor space throughout the network. This aligns the internal neural representation with the native representation of the Hamiltonian, while reducing computational complexity and enabling efficient execution through dense matrix operations and hardware acceleration. As demonstrated in our experiments, this design yields substantial advantages in both prediction accuracy and computational efficiency in terms of time and memory cost.
D.2 BENCHMARKS AND DATA RESOURCES FOR DEEP LEARNING OF HAMILTONIANS: CURRENT LANDSCAPE AND REMAINING GAPS
Large-scale datasets such as QH9 and DFT (Yu et al., 2023a; Khrabrov et al., 2024) provide valuable benchmarks for molecular Hamiltonian learning. However, their elemental coverage is restricted to five elements (H, C, N, O, and F) in QH9 and eight elements (H, C, N, O, F, S, Cl, and Br) in DFT. Both datasets focus on finite molecular systems and do not provide Hamiltonian data for periodic crystals. Consequently, despite their large scale, these datasets lack the broad elemental coverage and periodic crystal structures needed to train and evaluate generalizable Hamiltonian models across chemically diverse periodic materials.
In contrast, publicly available Hamiltonian datasets for periodic materials remain limited. Early studies have largely focused on individual material classes or system-specific benchmarks, such as graphene, MoS, BiSe, and amorphous HfO (Li et al., 2022; Gong et al., 2023; Xia et al., 2025). More recent work, such as MACE-H (Qian et al., 2026), has likewise evaluated periodic Hamiltonian prediction on material datasets covering C, Mo, S, Bi, Se, Te, and Au. Although these studies established the feasibility of deep Hamiltonian prediction, their restricted material scopes limit both the training and systematic evaluation of cross-material generalization, preventing them from serving as large-scale universal benchmarks for diverse periodic materials.
More recent efforts have extended Hamiltonian learning toward broader material spaces. DeepH-2 (Wang et al., 2024) and HamGNN (Zhong et al., 2024) expand the elemental and structural coverage beyond earlier system-specific benchmarks. However, the associated datasets and electronic-structure resources are not yet available as fully open and standardized benchmarks for unified training and evaluation across broad materials spaces. In addition, compromises in dataset construction and basis selection may limit physical coverage. For example, DeepH-2 reduces computational complexity by adopting a truncated basis without -orbitals, which may affect the description of materials in which higher-angular-momentum orbitals play important roles.
The emerging -conditioned paradigm for Hamiltonian prediction, such as NextHAM (Yin et al., 2026), requires benchmark datasets to provide a broader range of electronic-structure quantities for developing generalizable models. Such methods require not only the final self-consistent Hamiltonian, but also the zeroth-step Hamiltonian, overlap matrices, and additional electronic-structure information for reciprocal-space supervision. Materials-HAM-SOC (Yin et al., 2026) addresses this need by providing a broad SOC Hamiltonian benchmark containing 17,000 periodic structures spanning 68 elements, together with high-quality localized basis sets, zeroth-step Hamiltonians, self-consistent Hamiltonians, and overlap matrices. Its explicit treatment of SOC provides a stringent benchmark for spinor Hamiltonian learning, but also substantially increases the computational and memory costs of data generation, training, and inference, and can make self-consistent DFT calculations more difficult to converge.
From a physical perspective, explicit SOC effects are relatively weak for many light-element systems. Although SOC is essential for describing spin-dependent phenomena and topological properties in many heavy-element compounds, scalar-relativistic non-SOC calculations remain useful for studying equilibrium structures and atomic dynamics, including in some systems containing heavy elements. For equilibrium properties, a systematic PAW study of 56 solids found that relativistic corrections beyond the scalar-relativistic approximation caused small changes in the lattice constants and bulk moduli of some systems containing fifth- or sixth-period elements, while changes in the other systems examined were below the numerical resolution (Dal Corso, 2012). For atomic dynamics, a study of iodide-defect migration in CsPbI found that SOC had no significant influence on the forces in their evaluations. The authors therefore omitted SOC from the force-field training calculations to reduce computational cost (Tyagi et al., 2025). These findings illustrate the practical value of non-SOC reference data for structural and dynamical studies and motivate complementary SOC and non-SOC Hamiltonian benchmarks. A large-scale non-SOC benchmark with broad chemical coverage, rich orbital bases, and the electronic-structure annotations required for -conditioned learning therefore provides a useful resource for scalable materials modeling.
To bridge this gap and provide a substantially larger and more scalable data resource, we construct MP-HAM-110K, a benchmark dataset for -conditioned Hamiltonian learning in the non-SOC orbital setting. MP-HAM-110K contains 113,800 diverse periodic material structures sampled from the Materials Project (Jain et al., 2013), covers 68 elements from the first six rows of the periodic table, and employs high-quality localized numerical atomic-orbital basis sets with up to orbitals per element. For each structure, it provides the atomic structure, zeroth-step Hamiltonian , self-consistent Hamiltonian , overlap matrix S, band-structure references, and wavefunction-related annotations required for reciprocal-space supervision. These quantities support physically informed residual learning, and joint real- and reciprocal-space supervision.
Compared with Materials-HAM-SOC (Yin et al., 2026), MP-HAM-110K contains more than six times as many material structures and extends the system size to unit cells containing up to 169 atoms, thereby providing a broader testbed for large-scale and cross-material Hamiltonian learning. At the same time, its non-SOC formulation avoids the additional orbital–spin degrees of freedom and offers a computationally lighter setting for data generation, model training, and inference. The two datasets therefore serve complementary roles: MP-HAM-110K supports scalable orbital Hamiltonian learning over a substantially larger materials space, whereas Materials-HAM-SOC provides a benchmark for spinor Hamiltonian prediction with explicit SOC. Together, they enable systematic evaluation of generalizable Hamiltonian models across both large-scale non-SOC and explicitly spin-orbit-coupled settings.
E CONSTRUCTION OF DIRECTIONAL EMBEDDINGS USING LIE ALGEBRA GENERATORS
To incorporate bond directions into equivariant feature updates in the direct-product space, we encode each direction as an equivariant operator acting on the local orbital or orbital–spin basis. The operator is constructed by contracting the Cartesian components of the direction with fixed Lie-algebra generators and combining the resulting channels with invariant scalar weights. Below, we define these generators and construct the corresponding directional embeddings for non-SOC and SOC systems.
E.1 ORBITAL ROTATION GENERATORS
We first define the matrices that describe rotations of the local orbital basis. A local orbital set contains the basis functions with a common radial function and orbital angular momentum . Rotations mix these basis functions through a real orthogonal matrix , which forms a -dimensional representation of . The infinitesimal rotations about the three Cartesian axes are described by the fixed matrices
These generators are real and antisymmetric. They satisfy the commutation relations,
together with cyclic permutations. A finite rotation is obtained by exponentiating the generators:
where specifies a rotation by angle about the unit axis .
The full orbital basis of atom consists of a collection of local orbital sets, denoted by . Sets with different radial functions are treated separately, even if they have the same . Since rotations act within each set, the generators and rotation matrices for the full orbital basis have the block-diagonal form
E.2 ORBITAL–SPIN GENERATORS
For SOC systems, a spatial rotation acts on both the orbital and spin degrees of freedom. We therefore extend the orbital generators to the tensor product of the local orbital space and the two-dimensional spin space. Using , we define the Hermitian orbital angular-momentum generators and the spin-1/2 generators as
where are the Pauli matrices. The generator of a simultaneous orbital and spin rotation is
where and are the identity matrices on the local orbital and spin spaces, respectively. The first term rotates the orbital components, and the second rotates the spin components. For the same axis–angle vector , the combined transformation is
This is the spinor rotation associated with . The convention ensures that its orbital part agrees with defined above.
E.3 DIRECTIONAL EMBEDDINGS FROM GENERATOR CHANNELS
We now use these generators to encode a unit bond direction as an operator acting on the local basis of atom . Each local orbital set provides an orbital generator channel and, in SOC systems, an additional spin generator channel. Within each channel, we contract the three Cartesian generator components with and multiply the result by an invariant scalar weight. This allows the contribution of each channel to depend on the local pair environment while preserving rotational equivariance.
Let denote the projector from the full local orbital space onto set , including all of its magnetic components. Because rotations preserve each set, commutes with . In the orbital–spin space, the corresponding projector commutes with .
For non-SOC systems, the orbital generator channel associated with set u is
This projection retains the generator block for set u and sets all other blocks to zero. The directional orbital operator is then
where is an invariant scalar function of the local pair environment. The same weight multiplies all three Cartesian components of a channel.
For SOC systems, we keep the orbital and spin contributions separate so that they can be assigned independent weights. Their generators are
The orbital channel acts on the orbital components within set u, while the spin channel acts on the spin components associated with that set. Combining the two gives the directional spinor operator
where and are independent invariant scalar functions of the local pair environment.
To express both constructions in a common notation, we collect their channel indices into
Here or identifies a channel, and specifies the non-SOC or SOC construction. Writing the corresponding generator and weight as and , respectively, Eqs. (54) and (56) become
The directional embeddings defined above satisfy the equivariance laws for spatial rotations and spatial inversion stated in Theorem 3.1, with operator-level intrinsic parity . The proofs are provided in Appendix F.
F PROOFS FOR SECTION 3
Proof of Theorem 3.1. We use the active rotation convention in Eqs. (1) and (2). Under a proper rotation, the three generators in each channel transform as the components of a vector:
where and for non-SOC systems, while and for SOC systems. Applying Eq. (59) to Eq. (54) gives
(60)
Here , and the invariant channel weights commute with the group action.
For the SOC representation, the same calculation uses Hermitian conjugation and the SOC generator set:
(61)
This proves the proper-rotation statements in Eqs. (3) and (4).
For spatial inversion, each generator channel acts within a fixed local orbital set. Since the parity operator is proportional to the identity on each such set, with an additional spin identity in the SOC setting, every channel satisfies
Because the channel weights are invariant and sends , Eq. (58) gives
(63)
Taking in the non-SOC setting and in the SOC setting proves Eq. (5). Equivalently, every non-zero directional unit obeys
establishing that both directional embeddings are inversion homogeneous with operator-level intrinsic parity -1.
Proof of Theorem 3.2. Under the convention in Eq. (1), the relevant transformations are
Because and are orthogonal, and . Applying the contraction after rotation gives
(68)
where the argument has been suppressed in the intermediate expressions for readability. Thus the output obeys the same transformation rule as the input Hamiltonian block.
Proof of Theorem 3.3. Under the convention in Eq. (2),
Substituting these expressions into Eq. (9) produces internal contractions of the form
using the unitarity of the orbital–spin representations. All internal representation matrices cancel, leaving
This exactly matches the spinor-tensor transformation rule in Eq. (2).
Proof of Theorem 3.4. For either , the output unit can be written as
Because , , and are inversion homogeneous, their non-zero units transform according to Eq. (38). One contracted path therefore acquires the factor
(75) because the internal orbital parities associated with and each appear twice. The spin identity in the SOC setting contributes no additional inversion sign. Since is inversion invariant, the -th contraction term is inversion homogeneous with . If these products are equal for all retained terms, the sum has the same operator-level intrinsic parity. For an input that obeys the Hamiltonian transformation law under spatial inversion, . Requiring for every retained term then gives . Consequently, each output unit transforms with the same factor as the corresponding Hamiltonian unit, establishing spatial-inversion equivariance.
Summary of operator-level intrinsic parities. The Hamiltonian, every persistent Hamiltonian-shaped feature, the attention-derived context, and the identity operator have
whereas Eq. (64) gives . Taking a transpose or Hermitian adjoint does not change the operator-level intrinsic parity. Consequently, the bilateral directional action has , while each one-sided or bilateral context action contains only factors with intrinsic parity +1. Per-unit gating, residual addition, and LayerScale modulation use invariant scalars and preserve the same operator-level parity and its unitwise factor .
Proof of Proposition 3.5. Let denote the local representation associated with atom , with for the non-SOC setting and for the SOC spinor setting. Since all incoming operators are expressed in the same carrier space and common local basis, they obey
Using the rotational invariance of , the aggregated context therefore transforms as
Hence obeys the same proper-rotation law as every incoming operator .
For spatial inversion, let the incoming operators share the operator-level intrinsic parity . Restricting the aggregation to one direct-product unit , with , gives
(78)
The same is therefore shared by every non-zero context unit, so . For the Hamiltonian-shaped feature stream involved in the architecture, and hence .
G ARCHITECTURAL DETAILS OF THE PROPOSED NEURAL NETWORK
G.1 DELTA REPRESENTATION LEARNING FROM IN THE DIRECT-PRODUCT SPACE
The equivariant atom-pair feature passed from one layer to the next is represented in the same direct-product space as the Hamiltonian block for atoms . Its indices refer to the orbital basis for non-SOC systems,
(79) and to the orbital–spin basis for SOC systems,
We initialize this feature with the zeroth-step Hamiltonian block and accumulate a correction in that basis:
Alongside these equivariant atom-pair features, the network maintains invariant node and edge features that describe the local environment and determine the coefficients for the equivariant updates. The following subsections describe how the two types of features are initialized and updated within each layer.
Both implementations pad the atom-wise bases to a common orbital-set layout, with a consistent ordering of orbital and spin components. Corresponding basis slots thus carry the same rotation and parity representations on every atom. In this layout, each equivariant atom-pair feature is a real matrix for non-SOC systems or a complex tensor for SOC systems. The latter is reshaped into a matrix for contractions. The common matrix dimension is therefore for non-SOC and for SOC. This shared representation allows incoming edge matrices to be aggregated into equivariant atom-wise context features.
G.2 DUAL CONVERSION BETWEEN EQUIVARIANT AND INVARIANT FEATURES
The invariant node and edge features provide the inputs to scalar neural networks that control the equivariant updates. They receive information about pair distances and the current equivariant atom-pair features through quantities that are unchanged by rotations and spatial inversion. We encode the pair distance with Gaussian radial basis functions,
and summarize each direct-product unit of by a normalized Frobenius norm. For non-SOC units, this summary is
and for SOC units, it is
Here is the number of orbital basis functions in set u, and also counts the spin components in the SOC setting. Orthogonal or unitary left-right transformations and spatial inversion preserve these norms, so their concatenation is an invariant vector.
For a directed edge , we take as the source atom, , and as the destination atom, . We denote the concatenated norms by and the radial features by . At initialization, an MLP combines the norms of with the radial features to construct the invariant edge feature. Summing these edge features over the incoming edges of each atom then provides the input for its invariant node feature:
At layer k, the scalar networks receive the current Frobenius summaries, the invariant edge feature, the invariant node features of the source and destination atoms, and the radial features:
Here denotes concatenation. MLPs map to per-unit gates, directional weights, a bilateral directional coefficient, attention logits, and an edge gate. Later in the layer, the updated node features and new Frobenius summaries define a second invariant input for the context coefficients and invariant edge update, as described in Appendix G.4. The two stages connect the feature types in both directions: norms convey information from equivariant atom-pair features to the scalar networks, and invariant coefficients control the equivariant operations.
The first operation within a layer applies a gate to each direct-product unit of , producing . Each gate is shared across all magnetic components of its row–column orbital-set pair and, for SOC systems, across the spin components as well:
Using projectors onto the local orbital sets, the same operation can be written as
For SOC systems, each projector includes the spin identity, . Throughout this appendix, for non-SOC matrices and for SOC tensors. Because the projectors commute with rotations and spatial inversion and the gates are invariant scalars, the scalar networks can adjust the direct-product units independently without changing the transformation laws of the equivariant atom-pair features.
G.3 EQUIVARIANT UPDATES USING DIRECTIONS
To incorporate bond orientation, we construct directional operators acting on the local bases of atoms and and apply them to the gated equivariant atom-pair feature . For edge , the directional MLP uses to predict a residual weight for each generator channel . The same residual is used for the corresponding channel on both atoms in the common basis layout. Substituting the parameterization into Eq. (58) gives
(91)
Here, and the fixed generators are defined in Appendix E. The operator acts on the orbital basis in non-SOC systems and on the orbital–spin basis in SOC systems. For on-site pairs, setting the direction vector to zero removes the explicit directional contribution; the implementation uses this convention whenever .
The weights determine the contribution of each generator channel to the directional operator. The directional MLP also predicts a separate invariant scalar coefficient that scales the bilateral contraction of these operators with . For non-SOC systems,
and for SOC systems,
With the matrix dimension D defined in Appendix G.1, both expressions take the form
(94) where . The use of a bilateral product follows from spatial-inversion symmetry. Each directional operator has operator-level intrinsic parity , whereas the equivariant atom-pair feature has . Their product therefore has and follows the Hamiltonian transformation law under inversion. A one-sided directional product would have and is excluded from this update.
G.4 ATTENTION-BASED UPDATES OF NODE, EDGE, AND CONTEXT FEATURES
Attention aggregates the incoming edge information at each atom through two branches. The equivariant branch combines the atom-pair features obtained after incorporating the bond direction to construct a context feature. The invariant branch combines the current invariant edge features to update the node features. Both branches use logits predicted from , whose Frobenius summaries are computed from the input feature of the current layer. The attention MLP also predicts an edge gate:
The superscripts op and inv distinguish the equivariant and invariant branches, respectively, and H is the number of invariant attention heads.
For destination atom , let be its set of incoming edges. The equivariant branch normalizes its logits over this set and uses the resulting invariant weights to construct the atom-wise context:
The incoming equivariant atom-pair features use the same representation space and common local basis, as required by Proposition 3.5. Their sum with invariant weights is therefore an equivariant context feature . It also inherits their intrinsic parity, giving . Each non-zero direct-product unit consequently satisfies
In the invariant branch, each edge feature is projected into attention heads, . The weights for each head are normalized over the same set of incoming edges:
Here . The displayed denominators follow the SOC implementation, which adds to each exponential sum. The non-SOC implementation instead bounds each sum below by , for both equivariant and invariant attention. Each head aggregates its projected edge features, and their concatenation determines the residual update of the destination-node feature:
After these aggregations, the edge gate scales to produce the intermediate equivariant atom-pair feature used in the remaining operations:
We compute new normalized Frobenius summaries from and concatenate them with the updated invariant node features and of the source and destination atoms, the current invariant edge feature , and the radial features . The resulting invariant vector supplies the input for the edge update,
and for the context-contraction coefficients described next. Thus, the context matrices aggregate , while the subsequent context contractions and their coefficients use and its summaries.
G.5 EQUIVARIANT UPDATES USING CONTEXT FEATURES
The context features and summarize the equivariant atom-pair features on edges directed into atoms and , respectively. To incorporate this neighborhood information into the correction, we contract with on the left, on the right, or both. An MLP maps to three invariant coefficients, one for each contribution.
Before applying LayerScale, the contribution from context features for non-SOC systems is
For SOC systems, the corresponding contribution is
Multiplying by the LayerScale parameter gives the equivariant feature correction, where . For and the common matrix dimension , the unified matrix form is
(105)
Here, the orbital and spin indices are combined into matrix indices in the SOC setting.
The context features and the equivariant atom-pair feature all have intrinsic parity +1. For a one-sided contraction, the identity operator on the unused side also has intrinsic parity +1. All three contributions therefore satisfy the parity-product rule in Theorem 3.4, so each output unit has the same spatial-inversion transformation law as the corresponding Hamiltonian unit.
We accumulate the resulting correction:
The next layer receives , together with the updated invariant node and edge features.
G.6 STABILIZATION TECHNIQUES AND -CENTERED RESIDUAL CORRECTION
Repeated contractions combine feature magnitudes across basis indices. We control their scale with normalization factors determined by the basis dimension, and regulate the learned updates with
LayerNorm and LayerScale. The normalized Frobenius summaries in Eqs. (83)–(84) use root-mean-square magnitudes so that units with different numbers of components have comparable summaries. Dividing one-sided contractions by and bilateral contractions by controls growth with the basis dimension. These factors are invariant scalars and preserve equivariance.
LayerNorm is used in the hidden layers of the invariant MLPs:
Each MLP ends with a linear output without normalization. LayerNorm is not applied to the raw physical inputs or to the equivariant atom-pair features, whose magnitudes remain available to the network. In the large-scale non-SOC implementation, an optional operation limits exceptionally large equivariant feature magnitudes: if the Frobenius norm exceeds a specified threshold, the entire matrix is rescaled by a single invariant scalar detached from gradient computation. This rescaling also preserves equivariance.
Each layer has separate LayerScale parameters for its equivariant atom-pair, invariant edge, and invariant node updates. We initialize these parameters to small values and zero initialize the final affine layers of the MLPs for gating, directional operations, attention, context coefficients, and invariant edge and node updates. At initialization, the resulting weights and coefficients satisfy
(108)
These conditions apply to every edge and layer. The unit weights retain the fixed generator contributions to and in Eq. (91). Since , however, their bilateral contraction makes no change to the gated feature: Eq. (94) gives . The zero gate residuals and also leave the features unchanged by gating. Finally, the three context coefficients are zero, so Eq. (105) gives . Starting from , the accumulation in Eq. (106) therefore leaves , and the initial prediction equals .
After layers, the output module maps the accumulated feature correction to the Hamiltonian correction , which is added to the input Hamiltonian block:
Here is the correction accumulated within the network, whereas is the correction used in the final prediction. The prediction remains in the target orbital or orbital–spin basis and follows the Hamiltonian transformation laws under rotations and spatial inversion.
H ANALYSIS OF COMPUTATIONAL COMPLEXITY AND HARDWARE EFFICIENCY
We compare the computational efficiency of our proposed equivariant learning method in the direct-product space with that of conventional methods in the direct-sum space, including tensor products (Geiger & Smidt, 2022) and convolutions used in eSCN (Passaro & Zitnick, 2023), in the context of Hamiltonian prediction. We distinguish two settings: fixed channel multiplicity at each angular degree, and channel multiplicities sufficient to represent a complete Hamiltonian block. The latter setting reflects the computational complexity of updating features that represent complete Hamiltonian blocks and is therefore directly relevant to Hamiltonian prediction.
We use and to denote computational costs for operations in the direct-sum and direct-product spaces, respectively. The subscript identifies the method or operation.
Unless stated otherwise, operation counts are per directed edge. For a Hamiltonian block , denotes the number of coefficients. We assume that the local basis dimensions at atoms and are comparable, , so that . Here, is the dimension of a local orbital or orbital–spin basis, whereas is the maximum angular degree of a direct-sum feature. All counts use conventional dense matrix multiplication. The spin dimension is fixed and therefore affects constant factors only. The resulting asymptotic orders apply to the update rules and basis families specified below.
H.1 THEORETICAL COMPLEXITY
Encoding features in the direct-sum space with fixed channel multiplicity. We begin with a direct-sum feature containing channels at each angular degree from 0 to :
Its coefficient count is
This setting fixes the multiplicity independently of the angular cutoff; it does not yet specify a complete Hamiltonian block.
For the tensor product in this direct-sum space, the feature is coupled to spherical harmonics of the edge direction. We retain all input and output degrees and all filter degrees . These choices give
angular coupling paths. On each path, we evaluate a dense Clebsch–Gordan contraction for every input channel, at cost
We then apply a weight matrix to mix the channels for each of the output magnetic components. This second step costs per path. Summing the angular contractions and channel mixing over all paths yields
Thus, for fixed , the dense angular contractions give a leading cost of (Passaro & Zitnick, 2023).
The convolution in the direct-sum space first transforms the features using Wigner matrices associated with a rotation that maps the edge direction to a fixed reference axis. In a complex basis, the convolution then mixes coefficients with the same signed magnetic order across angular degrees and channels. Since each degree contributes coefficients, the corresponding block has dimension . In a real basis, the components associated with and are processed jointly, which preserves the asymptotic complexity. Dense mixing over all orders therefore costs
After mixing, the output is transformed back to the original coordinate frame using the inverse rotation. Applying the forward and inverse rotations through dense Wigner matrices costs
Combining the mixing and rotation operations gives
For fixed , the total cost is (Passaro & Zitnick, 2023).
The cost of the tensor product and the cost of the convolution therefore both apply here to direct-sum features with fixed channel multiplicity and coefficients. To compare these operations for features representing a complete Hamiltonian block, we must first determine how the required channel multiplicities grow with the orbital basis.
Encoding features in the direct-sum space for representing a complete Hamiltonian block. Let and denote the retained orbital sets on atoms and , respectively. Their largest angular degree is
The orbital space at atom is
where counts the radial copies at degree ; the space at atom is defined analogously. We study a family of bases in which increases, radial multiplicities remain bounded, and each atom retains angular degrees. With spin multiplicity for non-SOC and for SOC, the local basis dimensions are and . Under these assumptions,
This relation determines the conversion from angular-degree scaling to scaling in the coefficient count .
The space of complete Hamiltonian blocks is
Its orbital part decomposes into the direct-sum space as
The multiplicity at coupled degree is
because each orbital-set pair contributes one copy of every degree allowed by the angular-momentum triangle condition. In particular, the decomposition preserves the full orbital coefficient count:
Each multiplicity is at most , and
holds for degrees with . The fixed spin dimension adds components in SOC without changing these orders. Hence a direct-sum representation of the complete Hamiltonian requires multiplicities that grow with the basis size. The fixed- estimates above cannot be applied while keeping constant in this setting.
For the same dense tensor product in the direct-sum space, replace on each angular path by the relevant input and output multiplicities. The angular contraction and channel mixing then cost, respectively,
Summing over all admissible paths gives operations in each contribution, so
This is the cost of applying the specified dense direct-sum update while retaining all coefficients of the Hamiltonian block.
For the convolution in the direct-sum space, a magnetic-order block now includes the multiplicities of every degree :
There are such orders with . Dense mixing over all magnetic orders therefore requires
The accompanying edge-frame rotations cost
Mixing determines the leading total cost, . This result assumes that every magnetic order is included in the direct-sum convolution. If mixing is restricted to a fixed range , its cost becomes for the same basis family, with a corresponding restriction on the couplings performed by each update.
Encoding features in the direct-product space for representing a complete Hamiltonian block.
DP-Learner retains the same coefficients as a matrix feature . Each layer updates this equivariant atom-pair feature using bond directions and context features through a fixed number of left, right, and bilateral matrix products, independent of . For operators and acting on the row and column bases of , respectively, the individual costs are
(129)
For comparable local basis dimensions, , these products and their intermediate matrices give the layer cost and feature storage
Here, includes the matrix feature and its intermediate matrices within one layer. The leading cubic cost follows from the fixed number of contractions on complete Hamiltonian matrices.
To account for the remaining operations, let be the invariant hidden width and the number of direct-product units. Per-unit norms, directional-operator construction, scalar weighting, attention aggregation, and residual additions require work. With fixed MLP depth, radial-feature width, and attention-head count, the invariant MLPs require operations per edge and per node. For the basis family above, . Thus, when is also fixed, these operations have lower order in and leave the leading layer cost unchanged.
Across layers and directed edges, the matrix contractions require operations, and the invariant node updates add . For a fixed basis and network architecture, a bounded number of neighbors per atom therefore gives total cost linear in the number of atoms.
Input and output conversion for methods in the direct-sum space. We now count the transformations needed at the input and output stages of a network operating in the direct-sum space. At the input stage, it takes the complete matrix as input, converting it into irreducible components. At the output stage, it returns a complete Hamiltonian matrix by converting features in the direct-sum space to the direct-product space. These input and output conversions are distinct from the repeated Clebsch–Gordan decompositions of feature tensor products within message-passing layers, whose costs are included in the layer-update analysis above.
For an orbital-set pair , let be the number of coefficients in its direct-product unit. The magnetic selection rule permits coupled coefficients per matrix entry. Evaluating only these permitted positions gives a conversion cost of
(131)
Alternatively, multiplying by a dense coefficient matrix for each orbital-set pair costs
The inverse transformation has the same order. Thus, a complete prediction requires one input and one output transformation, each costing up to for these implementations. DP-Learner updates and predicts the Hamiltonian in the target basis, so neither conversion is needed.
Comparison of computational costs. We now compare the three methods when their equivariant features retain all coefficients of an atom-pair Hamiltonian block. In the direct-sum space, the channel multiplicities required to retain this information depend on the orbital basis and grow with the basis family considered here. The comparison therefore differs from the setting in which the number of channels at each angular degree is held fixed. Table 2 summarizes the results for both settings.
For the basis family in Eq. (119), with , the costs of updating these equivariant features for one directed edge in a single layer are
Here, the first two costs correspond to tensor products and convolutions in the direct-sum space, respectively.
To obtain the cost of a complete prediction from to , we account for all layers. The direct-sum networks additionally require a conversion of the input Hamiltonian into direct-sum features and a reconstruction of the output Hamiltonian from those features. Using , the total costs per directed edge are
where denotes the cost of one forward or inverse Clebsch–Gordan transformation between a Hamiltonian block and its direct-sum representation.
The computational advantages of DP-Learner arise from two aspects. First, under the assumptions above, its matrix contractions require operations per layer, compared with for tensor products and for convolutions in the direct-sum space. Second, its equivariant features retain the orbital or orbital–spin matrix structure throughout the network, eliminating the input decomposition and output reconstruction described above. The next subsection explains how these design choices also enable efficient implementation on hardware accelerators.
H.2 HARDWARE EFFICIENCY
Both Materials-HAM-SOC (Yin et al., 2026) and MP-HAM-110K use the common basis layout described in Appendix G.1. The local basis dimensions on atoms and are therefore equal, , with for non-SOC and for SOC. DP-Learner stores equivariant atom-pair features in arrays of shape and equivariant atom-wise context features in arrays of shape . The storage required for these features and their intermediate matrices within one layer is , where .
The common matrix dimensions allow the network to update many atom-pair features together using optimized dense matrix multiplication kernels. In particular, the contractions that incorporate bond directions and context features can be evaluated in batches without separating the features by angular degree or magnetic order. The computation of per-unit Frobenius norms, application of invariant
Table 2: Comparison of feature sizes and computational costs per directed edge. The upper part assumes channels at each angular degree. The lower part compares methods that represent a complete Hamiltonian block with coefficients, using the basis family in Eq. (119). The layer-update column reports the cost of one message-passing layer. Direct-sum methods additionally convert the input Hamiltonian into irreducible features and reconstruct the output Hamiltonian after message passing. The last column gives an upper bound on the cost of each conversion. DP-Learner operates directly on Hamiltonian blocks and requires neither conversion.
| Representation | Method | Feature size | Layer-update cost | Input/output conversion |
|---|---|---|---|---|
| Fixed channel multiplicity | ||||
| Direct-sum | tensor product | - | ||
| convolution (eSCN) | - | |||
| Retaining all coefficients of a complete Hamiltonian block: | ||||
| Direct-sum | tensor product | Up to | ||
| convolution (eSCN) | Up to | |||
| Direct-product | DP-Learner | Not required | ||
weights, and attention aggregation also operate directly on the same matrix arrays. The representation thus supports the full sequence of equivariant feature operations in a consistent layout.
In comparison, tensor products in the direct-sum space perform contractions along angular coupling paths with different tensor dimensions and access the corresponding Clebsch–Gordan coefficients. convolutions in the direct-sum space rotate features into and out of the edge-aligned frame and mix coefficients in blocks whose sizes depend on the magnetic order. Implementations that process these paths or blocks separately require repeated indexing and coefficient or feature reads. Batching tensors with different shapes may also require padding and masking. These operations can increase memory traffic and kernel-launch overhead, while many small contractions can limit data reuse. DP-Learner organizes its equivariant feature updates as a fixed number of batched matrix products with common dimensions, allowing these operations to use the dense computation supported by modern hardware accelerators.
DP-Learner avoids the computation and memory traffic required to convert between Hamiltonian blocks and irreducible features. When a complete Hamiltonian block is processed in the direct-sum space, its orbital or orbital–spin entries must first be decomposed into coupled angular components. The predicted components must then be converted back into Hamiltonian matrix entries at the output. In addition to the arithmetic costs derived in Appendix H.1, these conversions require access to Clebsch–Gordan coefficients, reorganization of feature indices, and temporary storage for intermediate results. The number of components grows with the angular degrees of the orbital basis, increasing this overhead for the rich basis sets considered here.
DP-Learner retains the orbital or orbital–spin matrix structure throughout message passing and updates the couplings directly through matrix contractions. It therefore avoids costly conversions between direct-product and direct-sum representations. The common matrix layout also allows features from many atom pairs to be processed together using optimized dense matrix multiplication kernels. Avoiding these conversions and performing feature updates through batched matrix operations contribute to the inference-time and GPU-memory improvements reported in Table 1.
I TRAINING LOSS FUNCTION
DP-Learner learns a Hamiltonian correction so that the prediction
approximates the self-consistent ground-truth Hamiltonian. The loss therefore supervises the correction through the resulting full Hamiltonian. The output assembly used for evaluation is specified in Eq. (109). Here, denotes the lattice vector connecting the reference unit cell and a neighboring unit cell.
Hamiltonian comparison must account for the arbitrary choice of energy reference. In a non-orthogonal basis, adding to a Hamiltonian, where is a real scalar and is the overlap matrix, shifts all generalized eigenvalues by while preserving eigenvectors and energy differences. Following the gauge-error formulation of Wang et al. (2024), we use a common shift for the real-space and reciprocal-space supervision targets and determine it by minimizing their joint loss.
Real-space supervision. The real-space loss compares the predicted Hamiltonian with the ground-truth Hamiltonian after alignment of the energy reference:
where denotes the mean squared error over Hamiltonian matrix elements and controls the weight of the real-space term. The unshifted ground-truth Hamiltonian is the self-consistent result,
The aligned supervision target is
where is the real-space overlap matrix.
Reciprocal-space supervision. Following NextHAM (Yin et al., 2026), we also supervise the Hamiltonian in reciprocal space, where band structures and observables that depend on eigenstates are evaluated. In a non-orthogonal localized basis, small real-space Hamiltonian errors can be amplified by the generalized eigenvalue problem involving the overlap matrix, affecting both eigenvalues and eigenvectors. The reciprocal-space term addresses these errors by comparing the Hamiltonians in the ground-truth eigenbasis, with separate weights for the low-energy subspace, the high-energy subspace, and the coupling between them.
The predicted reciprocal-space Hamiltonian is obtained by Fourier transforming the full real-space prediction:
The aligned ground-truth Hamiltonian is obtained by the same Fourier transform of . We represent both Hamiltonians in the ground-truth eigenbasis
The columns of and span the low-energy and high-energy subspaces, respectively, with the energy threshold specified in Appendix K. The generalized eigenvectors are normalized with respect to the overlap matrix:
Consequently, adding to the ground-truth Hamiltonian adds in this basis. The shift changes only the diagonal entries and leaves the blocks coupling the two subspaces unchanged. The transformed Hamiltonians are partitioned as
Because this basis consists of ground-truth eigenvectors, the ground-truth block coupling the two subspaces vanishes:
Prediction errors can produce nonzero entries in , mixing the low-energy and high-energy subspaces and potentially distorting the resulting bands. We therefore penalize errors in the two diagonal blocks and in the coupling block:
The weights , , and control the relative contributions of the three terms.
Joint loss and optimal energy shift. Combining the real-space and reciprocal-space terms gives
Here, , , and refer to the three mean-squared-error terms in Eq. (137).
Since the supervision targets depend linearly on , the joint loss is quadratic in this scalar. We determine the common energy shift by the stationarity condition
The PQ term does not contribute to this condition because its target is unchanged by the energy shift. The real-space term and the diagonal entries of the PP and QQ blocks give the analytical solution
where denotes scalar or entrywise complex conjugation. The quantities , , and are the total numbers of Hamiltonian matrix elements in the real-space, PP, and QQ losses, respectively. The ground-truth reciprocal-space blocks written without in Eq. (139) are the unshifted blocks. Substituting this value of into both supervision targets aligns their energy reference according to the joint objective.
J DATASET DETAILS
To construct our MP-HAM-110K dataset, first-principles calculations are performed with the localized numerical atomic-orbital implementation of ABACUS (Li et al., 2016; Lin et al., 2024). We use the Perdew–Burke–Ernzerhof (PBE) exchange-correlation functional (Perdew et al., 1996) and scalar-relativistic optimized norm-conserving Vanderbilt (ONCV) pseudopotentials (Hamann, 2013) from the PseudoDojo library (van Setten et al., 2018). The self-consistent calculations employ a wave-function cutoff of 100 Ry, a -centered k-point mesh with a reciprocal-space spacing of 0.08 Bohr , Gaussian smearing of Ry, and a charge-density convergence threshold of . All calculations are spin-unpolarized and exclude spin-orbit coupling. For each structure, the zeroth-step Hamiltonian , the converged Hamiltonian , and the overlap matrix S are generated, and PYATB (Jin et al., 2023) is used for band-structure post-processing. The element-resolved pseudopotential valence configurations and numerical atomic-orbital (NAO) basis sets (Lin et al., 2021) are summarized in Table 3. The dataset additionally provides the wavefunction-related information required for constructing the reciprocal-space loss. For each training sample, the ground-truth reciprocal-space Hamiltonian and overlap matrix at the sampled k point are used to solve the generalized Kohn–Sham eigenvalue problem, yielding the ground-truth eigenvalues and eigenvectors. The resulting Kohn–Sham eigenvectors define the ground-truth eigenstate basis, which is partitioned into low- and high-energy subspaces and subsequently used to project the predicted and ground-truth Hamiltonians for constructing the k-space loss.
Table 3: Element-resolved scalar-relativistic ONCV-PBE pseudopotentials and numerical atomic-orbital (NAO) basis sets used for the non-SOC dataset.
| Z | Element | UPF | Pseudopotential valence | NAO basis | (a.u.) |
|---|---|---|---|---|---|
| 1 | H | H.upf | 7 | ||
| 2 | He | He.upf | 7 | ||
| 3 | Li | Li.upf | 7 | ||
| 4 | Be | Be.upf | 7 | ||
| 5 | B | B.upf | 7 | ||
| 6 | C | C.upf | 7 | ||
| 7 | N | N.upf | 7 | ||
| 8 | O | O.upf | 7 | ||
| 9 | F | F.upf | 7 | ||
| 10 | Ne | Ne.upf | 7 | ||
| 11 | Na | Na.upf | 7 | ||
| 12 | Mg | Mg.upf | 7 | ||
| 13 | Al | Al.upf | 7 | ||
| 14 | Si | Si.upf | 7 | ||
| 15 | P | P.upf | 7 | ||
| 16 | S | S.upf | 7 | ||
| 17 | Cl | Cl.upf | 7 | ||
| 18 | Ar | Ar.upf | 7 | ||
| 19 | K | K.upf | 7 | ||
| 20 | Ca | Ca.upf | 8 | ||
| 21 | Sc | Sc.upf | 7 | ||
| 22 | Ti | Ti.upf | 8 | ||
| 23 | V | V.upf | 7 | ||
| 24 | Cr | Cr.upf | 8 | ||
| 25 | Mn | Mn.upf | 8 | ||
| 26 | Fe | Fe.upf | 7 | ||
| 27 | Co | Co.upf | 7 | ||
| 28 | Ni | Ni.upf | 7 | ||
| 29 | Cu | Cu.upf | 7 | ||
| 30 | Zn | Zn.upf | 7 | ||
| 31 | Ga | Ga.upf | 7 | ||
| 32 | Ge | Ge.upf | 7 | ||
| 33 | As | As.upf | 7 | ||
| 34 | Se | Se.upf | 7 | ||
| 35 | Br | Br.upf | 7 | ||
| 36 | Kr | Kr.upf | 8 | ||
| 37 | Rb | Rb.upf | 8 | ||
| 38 | Sr | Sr.upf | 8 | ||
| 39 | Y | Y.upf | 7 | ||
| 40 | Zr | Zr.upf | 8 | ||
| 41 | Nb | Nb.upf | 7 | ||
| 42 | Mo | Mo.upf | 7 | ||
| 43 | Tc | Tc.upf | 8 | ||
| 44 | Ru | Ru.upf | 8 | ||
| 45 | Rh | Rh.upf | 8 | ||
| 46 | Pd | Pd.upf | 7 | ||
| 47 | Ag | Ag.upf | 7 | ||
| 48 | Cd | Cd.upf | 7 | ||
| 49 | In | In.upf | 7 | ||
| 50 | Sn | Sn.upf | 7 | ||
| 51 | Sb | Sb.upf | 7 | ||
| 52 | Te | Te.upf | 7 | ||
| 53 | I | I.upf | 7 | ||
| 54 | Xe | Xe.upf | 7 | ||
| 55 | Cs | Cs.upf | 8 | ||
| 56 | Ba | Ba.upf | 8 | ||
| 72 | Hf | Hf.upf | 7 | ||
| 73 | Ta | Ta.upf | 7 | ||
| 74 | W | W.upf | 8 | ||
| 75 | Re | Re.upf | 7 | ||
| 76 | Os | Os.upf | 8 | ||
| 77 | Ir | Ir.upf | 8 | ||
| 78 | Pt | Pt.upf | 7 | ||
| 79 | Au | Au.upf | 7 | ||
| 80 | Hg | Hg.upf | 7 | ||
| 81 | Tl | Tl.upf | 7 | ||
| 82 | Pb | Pb.upf | 7 |
Continued on next page
Table 3 – continued from previous page
| Z | Element | UPF | Pseudopotential valence | NAO basis | (a.u.) |
|---|---|---|---|---|---|
| 83 | Bi | Bi.upf | 7 |
The crystal structure files were obtained from the Materials Project database (Jain et al., 2013), yielding 113,800 periodic structures. The dataset is randomly divided into 91,040 training, 11,380 validation, and 11,380 testing structures, corresponding to an 8:1:1 split. It covers 68 elements, comprising H–Ba and Hf–Bi. The unit cells contain 1–169 atoms, with a mean of 31.62 atoms per structure, and 1–9 distinct element types. Figure 6 shows 18 representative structures ordered from 14 to 106 atoms, illustrating the diversity of their chemical compositions and structural complexity. The atomic-count and element-diversity distributions in Figure 4 show that most structures contain 11–60 atoms and three or four element types, with closely matched profiles across the three splits. Figure 5 presents the corresponding element-occurrence frequencies; all 68 elements occur in the training set, while 65 and 66 occur in the validation and test sets, respectively.
K IMPLEMENTATION DETAILS
Computational environment and baseline reproduction. All experiments use PyTorch 2.2.0 with CUDA 12.1 on cloud servers equipped with NVIDIA A800 GPUs, each with 80 GiB of memory, same as that of NextHAM. The NextHAM results in Table 1 are obtained using its official code¹. For Materials-HAM-SOC, we evaluate the released pretrained models and obtain results consistent with the original study. For MP-HAM-110K, we train and evaluate NextHAM from scratch. Because the released code targets SOC systems, we make only the adaptations required for the non-SOC dataset, primarily adjusting the input feature dimensions.
The original NextHAM framework uses four sub-models to predict Hamiltonian corrections for different atom-pair distance intervals (Yin et al., 2026). DP-Learner instead uses a single model to predict corrections across the full distance range. In our experiments, this model provides sufficient expressive capacity to capture the corrections across different distances, without partitioning the prediction task among separate models. We also observe that using separate DP-Learner models for individual distance intervals increases the tendency to overfit. Each NextHAM sub-model receives the entire structure as input but predicts corrections only for atom pairs within its assigned interval. The four outputs are assembled according to these intervals to form the complete Hamiltonian prediction. Our comparison therefore includes all four NextHAM sub-models and the single DP-Learner model, so that both methods perform the complete prediction task. With the official implementation, running all four NextHAM sub-models on a single GPU causes out-of-memory errors for some structures during both training and inference. We therefore retain its original configuration, distributing the four sub-models across four GPUs. DP-Learner uses one GPU for both training and inference. The reported parameter counts, GPU memory consumption, and inference times account for the complete predictor of each method.
Graph construction and feature representations. We construct the atomic graph using a cutoff distance of 8.0 Å to define the Hamiltonian blocks of atom pairs. Both the non-SOC and SOC models use layers, with independent parameters in each layer. The invariant node and edge features each have dimension 256. Attention for aggregating invariant features uses 4 heads with 64 channels per head, while a separate scalar attention weight controls the aggregation of equivariant features. Pair distances are expanded using Gaussian basis functions with fixed centers evenly spaced over Å. The standard deviation in Eq. (82) is Å.
Both models use a common layout of nine local orbital sets, with angular degrees , corresponding to four sets, two sets, two sets, and one set. For the non-SOC model, the resulting 27 orbital basis functions give real equivariant atom-pair features in the direct-product space. The directional MLP predicts one orbital weight for each local orbital set, and all gates and contraction coefficients are real.
For the SOC model, each orbital has two spin components. The equivariant atom-pair features therefore have shape and are reshaped into complex matrices for contractions.
¹https://github.com/DavidYin94/NextHAM

(a) Distribution of the number of atoms in the supplied unit cell.

(b) Distribution of the number of distinct element types per structure.
Figure 4: Distributions of atomic counts and numbers of element types in the training, validation, and testing sets.

(a) Training set (91,040 structures).

(b) Validation set (11,380 structures).

(c) Testing set (11,380 structures).
Figure 5: Element-occurrence frequencies in the training, validation, and testing sets.
The implementation permutes the external spin-major layout into this orbital-major layout before the contractions and reverses the permutation at the output. The directional MLP predicts nine orbital weights and nine spin weights separately. The per-unit gates, directional weights, and contraction coefficients are complex scalars formed from pairs of real MLP outputs. The invariant node and edge features and the attention logits remain real. In both models, the equivariant feature update using bond directions includes only the bilateral directional contraction defined in Appendix G.3.
MLP parameterization. The direct-product units provide 81 normalized Frobenius summaries in both models. Concatenating these summaries with the radial features gives the MLP for initial edge features an input dimension of . Within each layer, the MLPs for per-unit gating, directional embedding, attention, context-contraction coefficients, and invariant edge updates receive inputs comprising the Frobenius summaries, the radial features, and the three 256-dimensional feature vectors associated with the edge, its source atom, and its destination atom. Their input dimension is therefore . The MLPs for initial node features and invariant node updates each receive a 256-dimensional input.
The MLPs for per-unit gating, directional embedding, and attention each have three hidden layers. The MLPs for initial node and edge features, context-contraction coefficients, and invariant node and edge updates each have two hidden layers. Every hidden layer has width 256 and applies an affine transformation, LayerNorm, and SiLU in that order. Each MLP ends with an affine output layer without normalization or activation. The MLP for context-contraction coefficients produces three real scalars in the non-SOC model and three complex scalars in the SOC model.
The non-SOC and SOC configurations contain 26,093,805 and 26,445,381 parameters, respectively, counting all registered parameter tensors.
Time-reversal symmetry. For SOC systems, we follow NextHAM (Yin et al., 2026) in applying corrections to the real parts of the two spin-conserving blocks. Its analysis on Materials-HAM-SOC shows that the discrepancies between and the self-consistent Hamiltonian are concentrated in these components, while the errors in the spin-flip blocks and the imaginary parts of the spin-conserving blocks are negligible. We therefore retain these remaining components from . During output post-processing, we average the real parts of the predicted corrections to the and blocks and add the resulting real matrix to both spin-conserving blocks of . This procedure preserves the time-reversal symmetry of Hamiltonians.
Initialization and normalization. Each layer has three trainable LayerScale parameters, initialized to 0.01, for updating the equivariant features, invariant edge features, and invariant node features. The weights and biases of the final affine layers in the MLPs for per-unit gating, directional embedding, attention, context-contraction coefficients, and invariant node and edge updates are initialized to zero.
With the parameterization in Eq. (91), the directional weights start at one. The gate residuals, the coefficient for the bilateral directional contraction, and the three coefficients for contractions using context features start at zero, as summarized in Eq. (108). The resulting initial prediction is , following the update equations in Appendix G.6.
The normalized Frobenius summaries use inside the square root. Each matrix multiplication used to update equivariant features with directional or contextual information is divided by , where for non-SOC and for SOC. A bilateral contraction involving two matrix multiplications therefore has an overall normalization factor of .
Training protocol. For the reciprocal-space loss, ground-truth eigenstates with energies at or below eV define the low-energy subspace , and the remaining states define the high-energy subspace , following NextHAM (Yin et al., 2026). For the joint loss in Eq. (138), we use the same weights as NextHAM: , , , and . These weights control the real-space Hamiltonian loss and the reciprocal-space losses for the , , and blocks, respectively, as defined in Appendix I.

Figure 6: Sampled material structures from our MP-HAM-110K dataset.
We train DP-Learner for 100 epochs with Adam and select the checkpoint with the best performance on the validation set for testing. The learning rate increases linearly from to during the first five epochs, then follows a cosine decay to over the remaining 95 epochs. On each dataset, we train the full model and each of the five architectural ablation variants from scratch with three random seeds (2025, 2026, and 2027) and report the mean results over the three runs. For the full models and the ablation studies, the standard deviation of Gauge MAE across runs is below 0.005 meV.
Accuracy evaluation. Although mean absolute error (MAE) provides a straightforward measure of prediction accuracy, Hamiltonians must be compared with a common energy reference. In a non-orthogonal atomic-orbital basis, adding to the Hamiltonian, where is a real scalar and is the overlap matrix, shifts all eigenvalues equally while preserving eigenvectors and energy differences. An unaligned MAE can therefore penalize differences arising solely from the arbitrary choice of energy reference.
To account for this gauge freedom, we evaluate Hamiltonian prediction accuracy using Gauge MAE, following the evaluation protocol of NextHAM (Yin et al., 2026) and the gauge-error formulation of Wang et al. (2024). For each test structure, a common energy-reference offset is removed before computing the mean absolute error over entries selected by the evaluation mask. For SOC systems, the metric uses the complex modulus of each entrywise error and includes all four spin blocks. Results are averaged over test structures and reported in meV. The full model, the architectural ablations, and the Only reference use the same evaluation procedure.
Efficiency evaluation. We report the mean peak GPU memory per test structure using PyTorch's reserved-memory metric. The measurement includes resident model parameters and input tensors, together with the additional memory required to compute the prediction. To account for the complete predictor, we sum the peak GPU memory values across all four GPUs used by the complete NextHAM predictor. For DP-Learner, which uses a single model on one GPU, we record the peak memory on that device.
We also measure the elapsed wall-clock time for transferring model inputs, executing the forward pass, converting the outputs into a DFT-compatible Hamiltonian format, and saving the predicted Hamiltonians to disk. Since both methods share the same pre-processing pipeline, including the construction of the zeroth-step Hamiltonian , the pre-processing cost is not included, allowing a direct comparison of model-dependent inference costs. The reported time is averaged over test structures. Concurrent model computations are counted once within this elapsed interval; runtimes across GPUs are not summed.
L ADDITIONAL EXPERIMENTAL RESULTS
We compare DP-Learner with an Only reference and five architectural ablation variants on both Materials-HAM-SOC (Yin et al., 2026) and MP-HAM-110K, using the SOC and non-SOC formulations, respectively. The Only reference measures the improvement achieved by learning a correction to the zeroth-step Hamiltonian. The five architectural ablations assess the individual contributions of the following components to Hamiltonian prediction accuracy: updating equivariant features across layers, incorporating bond directions through Lie generators, aggregating equivariant features from neighboring atom pairs, predicting invariant coefficients from the local environment, and scaling residual feature updates with LayerScale. Each architectural ablation starts from the corresponding full architecture in Appendix G and makes the changes described below. Within each dataset, all comparisons use the same testing structures and evaluation procedure. The five trained variants also use the same split, training objective, optimizer, learning-rate schedule, and training duration as the full model. The radial basis, cutoff radius, invariant hidden width, MLP depth, and attention configuration also follow the corresponding full model wherever these components are retained.
The settings below apply to both formulations, with . We use , , and for the non-SOC model on MP-HAM-110K, and , , and for the SOC model on Materials-HAM-SOC. The feature symbols follow the corresponding formulation; we omit where the same expression applies to both.
The reference and ablation settings are described below.
Only . This reference uses the zeroth-step Hamiltonian directly as the prediction, , without applying a neural network correction. It has no trainable parameters and requires no training. We evaluate it on both testing sets using the same Gauge MAE procedure as the learned models. This comparison quantifies the accuracy gained by learning the correction from the initial Hamiltonian to the self-consistent reference.
Without equivariant feature updates across layers. In the full model, invariant node and edge features determine the coefficients used to update equivariant atom-pair features in the direct-product space. This variant removes those equivariant feature updates and retains message passing through invariant node and edge features. In particular, it removes the intermediate features , their per-unit and edge gating, the construction of directional operators, and the attention that aggregates equivariant features into atom-wise context features. The matrix contractions that update equivariant features using directional information,
and contextual information,
are therefore absent from every layer. The retained invariant networks use fixed summaries of throughout message passing and predict scalar coefficients that modify at the output.
The initial invariant features are constructed in the same way as in the full model. Let contain the normalized Frobenius norms of the direct-product units of , computed using Eq. (83) for non-SOC and Eq. (84) for SOC. The initial edge and node features are
Since no intermediate equivariant features are updated, each layer combines the fixed summaries with the current invariant features and radial information:
The scalar attention logits are predicted from , and the attention value vectors are obtained from . Multi-head attention then updates the invariant node features according to Eq. (100). The updated node features enter the input for the invariant edge update,
which gives
Thus, the invariant node and edge networks continue to learn non-linear functions of the neighboring environment, while the Hamiltonian summaries remain fixed across layers.
An output MLP maps the final invariant features to one scalar coefficient for each direct-product unit of . This readout allows the variant to learn a Hamiltonian correction after the equivariant feature updates have been removed. Its input is
and its outputs are
The coefficients are real for non-SOC and complex for SOC; in the latter case, each complex coefficient is formed from two real MLP outputs. To apply these coefficients to the corresponding orbital sets, define
where projects onto the complete magnetic subspace of orbital set on atom . For SOC, the tensor product with includes both spin components. The correction before the final output processing is
The same output module as in the full model maps to the final Hamiltonian correction . The prediction is
The output assembly therefore follows Eq. (109), while this variant does not propagate equivariant features across layers. The final affine layer of is zero initialized, so that and the initial prediction equals .
The coefficients are invariant, and the projectors commute with the rotation and spatial-inversion representations. The correction therefore follows the same transformation law as the Hamiltonian. Before the common output processing, all entries within each direct-product unit are multiplied by the same scalar. This multiplication can adjust the magnitude and, for complex coefficients, the phase of each unit according to the environment, but it does not mix its row or column components. This variant compares learning equivariant matrix features across layers with using invariant message passing to modulate the fixed units of .
Without directional embedding. In this variant, we remove the directional operators in Eq. (58) and their bilateral contraction with the equivariant atom-pair features in Eq. (94). The gated feature therefore passes directly to the attention calculation and aggregation of equivariant context features:
This modification removes the orbital contribution to the directional embedding in the non-SOC model and both the orbital and spin contributions in the SOC model.
Per-unit gating, aggregation of equivariant atom-wise context features, and updating equivariant atom-pair features using those context features remain active. The invariant node and edge networks and the stabilization mechanisms are also retained. Given that already depends on the orbital orientation, this comparison measures the additional contribution of using bond directions explicitly through the Lie-generator-based embedding.
Without aggregation of equivariant context features. This variant removes the mechanism that aggregates incoming equivariant atom-pair features into the atom-wise context in Eq. (97). The associated logits and weights are removed, and the context feature is replaced by the identity matrix at every layer:
The local bases of the source and destination atoms are padded to the same dimension . Substituting into Eq. (105) gives
The left, right, and bilateral matrix contractions thus reduce to scalar multiplication of the current equivariant atom-pair feature. The coefficients , , and are still predicted from the invariant features of the local environment.
Updating equivariant features using directional information, scalar attention, invariant node and edge updates, and all stabilization mechanisms are retained. Neighboring atoms can therefore still influence the predicted scalar coefficients through invariant message passing. What is removed is the aggregation of neighboring equivariant matrix features and their subsequent action on the orbital or orbital–spin components of the current atom-pair feature.
Without environment-dependent invariant coefficients. In the full model, MLPs use the local environment to predict invariant coefficients for updating equivariant features and logits for attention. This ablation term replaces these MLPs with directly learnable parameters of the same output shapes. Each layer has its own set of parameters, shared across all atom pairs. These parameters are optimized during training but do not vary with the input environment. The per-unit gates, directional-weight residuals, coefficient for the bilateral contraction using directional operators, edge gate, and coefficients for contractions using context features become
Here, the overbars denote the directly learned parameters. Gates remain distinct across direct-product units, and directional weights remain distinct across generator channels. These coefficients retain the real or complex type used in the corresponding full model, while attention logits remain real. The parameters are initialized to match the outputs of the corresponding heads in the full model:
The directional weights therefore still start from , and the initial Hamiltonian correction is zero.
The attention logits for aggregating equivariant features and for each scalar attention head are also replaced by parameters shared across edges within each layer:
The softmax then assigns equal weights to the incoming edges of each destination atom:
These expressions follow the denominator stabilization used in the corresponding full models, as described in Appendix G.4. Both assign equal weights within each nonempty incoming-edge set; the SOC weights include the stabilization constant and are approximately .
All matrix contractions that update equivariant features using directional and contextual information are retained. The invariant node and edge networks also remain in the architecture, but their input-dependent features no longer determine the coefficients or attention weights used in the equivariant computation. The Hamiltonian prediction still depends on the input through , the bond directions, and the aggregated equivariant features. This comparison assesses the benefit of adapting both the coefficients for updating equivariant features and the attention weights to the local environment.
Without LayerScale. In the full model, LayerScale regulates the magnitudes of the residual feature updates through trainable parameters initialized to 0.01. This ablation term fixes the residual scaling factors for the equivariant atom-pair features and the invariant edge and node features to one. In every layer, the effective multipliers in Eqs. (105), (102), and (100) satisfy
The residual feature updates are therefore added without learnable LayerScale multipliers. Any bounding function applied to these multipliers is bypassed so that their effective values are exactly one.
All feature representations, attention mechanisms, and matrix contractions are retained. The contraction factors and , zero initialization of the correction heads, parameterization, and other stabilization mechanisms are unchanged. This variant evaluates the contribution of LayerScale to controlling the magnitudes of the three types of residual feature updates.
Table 4 reports the mean Gauge MAE on both testing sets. The full model achieves 0.841 meV on Materials-HAM-SOC and 1.595 meV on MP-HAM-110K, improving on both the Only reference and every architectural ablation. Removing any of the five components increases the error in both the SOC and non-SOC formulations.
Using only gives Gauge MAEs of 2.606 meV on Materials-HAM-SOC and 5.203 meV on MP-HAM-110K. DP-Learner reduces these errors to 0.841 and 1.595 meV, respectively, corresponding to absolute decreases of 1.765 and 3.608 meV. These reductions show that the learned corrections substantially improve on the initial electronic-structure estimates in both settings. The zeroth-step Hamiltonian provides a physically informed starting point, while the network uses the local geometric and electronic environment to refine its orbital or orbital–spin couplings toward the self-consistent reference. Figure 7 shows that the bands obtained from exhibit substantial deviations from the DFT reference, whereas DP-Learner closely reproduces the reference band structures, demonstrating the effectiveness of the learned Hamiltonian corrections.
Removing equivariant feature updates across layers produces the largest error among the trained variants on both datasets: 1.875 meV on Materials-HAM-SOC and 3.421 meV on MP-HAM-110K. These correspond to increases of 122.9% and 114.5% over the respective full models. These results demonstrate the importance of learning equivariant features across layers for both orbital and orbital–spin Hamiltonian prediction. The variant still learns non-linear invariant node and edge features, but its correction before the final output processing is restricted to scaling the direct-product units of . The full model uses directional operators and equivariant context features to mix the row and column components of atom-pair features during message passing. These matrix contractions allow the network to represent more general changes in individual orbital or orbital–spin couplings induced by the local geometric and electronic environment, providing a more expressive representation for predicting the self-consistent Hamiltonian.
Removing the directional embedding increases Gauge MAE to 1.025 meV on Materials-HAM-SOC and 2.302 meV on MP-HAM-110K, corresponding to increases of 21.9% and 44.3%, respectively. These increases indicate that explicitly incorporating bond directions helps the network model the orientation dependence of orbital and orbital–spin couplings more accurately, even though already contains some orientation information. The directional embedding contracts bond directions with orbital Lie generators and, for SOC, spin Lie generators to construct operators that act on the row and column components of atom-pair features. With weights learned from the local environment, these operators allow bond orientation to guide feature updates at every layer while preserving equivariance.
Removing the aggregation of equivariant context features increases Gauge MAE to 1.354 meV on Materials-HAM-SOC and 2.433 meV on MP-HAM-110K, corresponding to increases of 61.0% and 52.5%, respectively. These increases demonstrate the importance of incorporating information about neighboring couplings through equivariant matrix features when modeling how the surrounding environment affects each Hamiltonian block. Invariant message passing still conveys information about neighboring atoms and determines the coefficients in Eq. (154), but the equivariant context matrices are no longer available for feature updates. The full model constructs these atom-wise context features from neighboring atom-pair features and uses them in matrix contractions to update the row and column components of each atom-pair feature. The neighboring environment therefore
Table 4: Results of ablation study on the Materials-HAM-SOC and MP-HAM-110K testing sets, using the SOC and non-SOC formulations, respectively. Gauge MAE is the gauge-corrected Hamiltonian mean absolute error in meV. The ablation term labeled as Only reports the error obtained by directly using the zeroth-step Hamiltonian as the prediction, without any learned correction. Results for the full model and the five other ablation terms are averaged over three independent training runs. Lower values indicate better performance.
| Method | Gauge MAE (meV) ↓ | |
|---|---|---|
| Materials-HAM-SOC | MP-HAM-110K | |
| Only | 2.606 | 5.203 |
| Without equivariant feature updates across layers | 1.875 | 3.421 |
| Without directional embedding | 1.025 | 2.302 |
| Without aggregation of equivariant context features | 1.354 | 2.433 |
| Without environment-dependent invariant coefficients | 1.280 | 2.230 |
| Without LayerScale | 0.963 | 2.065 |
| DP-Learner (full) | 0.841 | 1.595 |

Figure 7: Band structures obtained using only and using DP-Learner for three representative structures from the MP-HAM-110K dataset. Each row shows the crystal structure (left), the bands obtained from (middle), and the DP-Learner bands (right). Red solid lines show the DFT reference bands used as ground truths in our dataset, while blue dashed lines show the results of the corresponding method. Energies are referenced to the Fermi energy .
contributes to these updates through both scalar coefficients and equivariant matrices, enabling a more expressive description of its influence on orbital or orbital–spin couplings.
Removing the MLPs that predict invariant coefficients and attention logits from the local environment increases Gauge MAE to 1.280 meV on Materials-HAM-SOC and 2.230 meV on MP-HAM-110K, corresponding to increases of 52.2% and 39.8%, respectively. These increases demonstrate the importance of adapting attention and equivariant matrix contractions to the local environment in both formulations. In this variant, the MLP outputs are replaced with learnable parameters shared across all atom pairs within each layer. The matrix contractions remain available, but their coefficients no longer depend on the input, and attention assigns equal weights to the incoming edges at each atom. At each layer, the full model predicts these coefficients and logits from invariant features that encode local geometric and electronic information. These predictions allow the network to adaptively weight neighboring contributions and adjust how directional and contextual information is used to update each equivariant atom-pair feature.
Removing LayerScale increases Gauge MAE to 0.963 meV on Materials-HAM-SOC and 2.065 meV on MP-HAM-110K, corresponding to increases of 14.5% and 29.5%, respectively. These increases highlight the benefit of using LayerScale to control the magnitude of residual feature updates during training. LayerScale provides separate trainable scaling factors for equivariant atom-pair features and invariant node and edge features, allowing their update magnitudes to be adjusted independently at each layer. The contraction normalizations, zero initialization of the correction branches, and other stabilization mechanisms remain unchanged in this ablation.
Together, the comparison with Only and the ablations on both datasets demonstrate the accuracy gained from learned corrections and the complementary roles of invariant and equivariant features in Hamiltonian prediction. Invariant features allow the attention weights and contraction coefficients to adapt to the local geometric environment and electronic couplings, while equivariant features retain the Hamiltonian structure in the direct-product space and are refined across layers. Explicit bond directions and equivariant context features provide information about bond orientation and neighboring couplings, respectively, while LayerScale controls the magnitude of residual feature updates. Combining these components yields the lowest prediction error on both datasets, demonstrating the effectiveness of this design for both SOC and non-SOC Hamiltonian prediction.

Figure 8: Gauge MAE (meV) for element-defined subsets of the Materials-HAM-SOC testing set. Each subset contains all test structures with the indicated element. Colors are clipped to the displayed range; numerical labels give the actual errors.


Figure 9: More band structure results for representative Materials-HAM-SOC testing samples. Red solid lines show the DFT reference bands used as ground truths in our dataset; blue dashed lines show DP-Learner predictions. Energies are referenced to the Fermi energy .

Figure 10: Gauge MAE (meV) values for element-defined subsets of the MP-HAM-110K testing set. Each subset contains all test structures with the indicated element. Colors are clipped to the displayed range; numerical labels give the actual errors.

Figure 11: Additional band-structure results for representative test structures from MP-HAM-110K. Red solid lines show the DFT reference bands used as ground truths in our dataset; blue dashed lines show DP-Learner predictions. Energies are referenced to the Fermi energy .