O-kRystal Framework
- O-kRystal is a dual-space orbital-learning framework designed to predict state-specific corrections towards HSE06 or $G_0W_0$ from standard PBE computations, achieving a high accuracy for band-energy predictions within 5 eV of the band edge. It utilizes both real- and reciprocal-space orbital matrices.
- It provides an efficient alternative to high-fidelity but costly methods such as HSE06 and $G_0W_0$ for diverse applications like magnetic states, highly correlated materials, orbital-resolved band structures, and effective-band mass calculations.
- O-kRystal's efficacy is verified across various materials across electronic structures; however, it has limitations with strongly correlated systems and metallic materials where orbital interaction partial occupations, and degeneracies present complexities
O-kRystal is a dual-space orbital-learning framework for predicting higher-level, momentum-resolved electronic band structures from lower-cost PBE calculations. It combines PBE band energies with real- and reciprocal-space orbital matrices to predict state-specific corrections toward HSE06 or for individual bands, crystal momenta, and spin channels. For states within $5$ eV of the band-edge midpoint, it achieves an HSE06 band-energy mean absolute error of eV across nearly three-dimensional materials (Kang et al., 14 Oct 2026).
1. Motivation and scope
Electronic band structures contain momentum-, band-, and spin-resolved information that is not retained by scalar descriptors such as band gaps. Band curvature, crossings, spin splitting, and the relative placement of orbital-derived states affect transport, optical response, topology, magnetism, and correlation-sensitive phenomena. High-fidelity approaches capable of describing these properties, including HSE06 and , are substantially more expensive than PBE.
PBE is a semilocal generalized-gradient approximation that is sufficiently inexpensive for large-scale calculations but commonly underestimates band gaps and misplaces occupied and unoccupied states. The paper attributes these deficiencies primarily to delocalization error and the absence of the exchange-correlation derivative discontinuity. The errors are particularly significant for localized transition-metal states and strongly correlated materials, where PBE may predict a metallic state while a higher-level method predicts an insulator.
HSE06 incorporates screened nonlocal exact exchange and generally reduces PBE delocalization errors, but its computational cost is substantially higher. The paper gives approximate asymptotic scalings of for Kohn–Sham DFT and approximately for conventional hybrid-functional and calculations, with additional dependence on the number of sampled -points. In the source dataset, the cumulative computational cost was $5$0 CPU core-hours for HSE06 and $5$1 CPU core-hours for PBE, an aggregate resource ratio of $5$2.
$5$3 applies an energy-dependent many-body self-energy correction to mean-field energies and is more directly related to quasiparticle addition and removal energies. It remains expensive because of frequency treatments, summations, and dense Brillouin-zone sampling, and its results depend on the PBE starting point.
O-kRystal exploits the fact that both target methods remain related to lower-level electronic structure. PBE serves simultaneously as an energy baseline, a physically meaningful representation of the material, and a source of orbital information from which higher-level corrections can be learned.
2. Definition and target representation
O-kRystal is a state-resolved, crystal-momentum-aware $5$4-learning model. Its central prediction is
$5$5
where $5$6 is the band index, $5$7 is the crystal momentum, and $5$8 is the spin channel. For PBE-to-HSE06 learning,
$5$9
For PBE-to-0 learning, the target correction is
1
The model predicts individual state energies rather than a fixed-size band vector. Signed band queries represent valence and conduction states: negative indices denote valence bands and positive indices denote conduction bands. This permits materials with different numbers of bands to be represented within a common architecture.
Each queried band is described using five PBE-derived descriptors:
- mean energy;
- standard deviation;
- minimum energy;
- maximum energy;
- band width.
The PBE band-edge reference is the midpoint between the maximum valence-band energy and the minimum conduction-band energy,
2
The model predicts target-theory state energies only. It does not predict target-theory wavefunctions, densities, Hamiltonian matrix elements, self-energies, or orbital-projection coefficients.
3. Orbital inputs and dual-space encoding
For each material, O-kRystal receives PBE band energies and four orbital operators represented in an atom-centered basis:
- the Kohn–Sham Hamiltonian 3;
- the overlap matrix 4;
- the density matrix 5;
- the spin-density matrix 6.
The spin-density matrix is
7
where 8 denotes the opposite spin channel. It is zero for non-spin-polarized materials.
In a nonorthogonal atomic-orbital basis, the PBE eigenvalues arise from
9
The orbital matrices provide information that is unavailable from band energies alone, including local chemical environments, orbital interactions, occupation, hybridization patterns at the PBE level, and spin polarization.
Real-space representation
For atomic orbitals 0 and 1 centered on atoms 2 and 3, the real-space block associated with lattice translation 4 is
5
with
6
On-site blocks describe atomic electronic environments, while off-diagonal blocks encode orbital interactions between atoms and periodic images. The real-space representation is organized as a periodic directed atom-image graph. Orbital blocks are padded to a maximum dimension of 7 per atom, and up to 8 electronically selected pair blocks are retained per central atom.
Unlike a geometry-only baseline, the orbital graph is electronically preselected rather than constructed solely by retaining nearest atoms according to distance.
Reciprocal-space representation
The reciprocal-space orbital matrix is the Bloch transform
9
The production model uses the real components of
0
The imaginary reciprocal channels are disabled in the final implementation. Reciprocal-space matrices are obtained directly from the electronic-structure data and are not reconstructed from the truncated real-space graph.
Crystal momentum is also encoded through atom-image displacements,
1
and Bloch-phase features,
2
Consequently, 3 enters through reciprocal-space orbital matrices, Bloch-phase conditioning of pair interactions, and the state and band information supplied to the decoder.
4. Architecture and correction model
O-kRystal uses a periodic 4-equivariant graph neural network. On-site orbital blocks initialize atom-centered features, pair blocks enter equivariant message passing, periodic relative displacements and spherical-harmonic geometric features encode geometry, and learned element embeddings represent chemical species. Atomic representations are pooled into a material- and 5-dependent latent representation.
The model has two jointly trained branches.
Affine branch
The affine branch receives real-space orbital blocks and Bloch-phase features. It predicts a band-dependent affine correction to the PBE dispersion and contains four interaction layers and four decoding layers.
For band 6, the correction is
7
where 8 and 9 are predicted from the pooled material representation and band-query features, and 0 is the mean PBE energy of band 1 across available high-symmetry points. This branch can learn both a band-dependent rigid shift and a rescaling or modification correlated with the PBE dispersion.
Dual-space residual branch
The residual branch additionally receives explicit reciprocal-space orbital matrices. It contains two interaction layers and two decoding layers. It predicts a pointwise momentum-dependent residual after the affine contribution has been removed.
The raw residual 2 is orthogonalized to remove a constant component and a component linear in the centered PBE dispersion:
3
where 4 is the mean residual over supervised high-symmetry points and 5 is the least-squares coefficient of the residual along the centered PBE dispersion. The total correction is
6
The seed-42 production model contains 7 trainable parameters, 8 radial basis functions, four attention heads of dimension 9, a material/0 latent dimension of 1, a signed-band embedding dimension of 2, and bfloat16 autocast during training.
Training objective
The PBE-to-HSE06 production loss combines a weighted state loss, a band-offset loss, and an indirect-gap loss:
3
The state loss uses weighted SmoothL1 errors with transition parameter 4 eV. States closer to the band-edge midpoint receive greater weight through
5
Direct-gap, dispersion, curvature, ranking, and effective-mass auxiliary losses were assigned zero weight in the production model.
5. Datasets, workflow, and benchmarks
The principal PBE-to-HSE06 dataset contained 6 chemically diverse three-dimensional parent materials, 7 band-structure entries, and 8 chemical elements after filtering. Materials with a PBE–HSE06 magnetic-moment difference exceeding 9 were removed to reduce baseline/target magnetic-state mismatches.
The data were split at the parent-material level in an approximately 0 ratio into training, validation, and test sets. Spin channels and repeated entries from a parent remained in the same partition. Three independent grouped splits used seeds 1, 2, and 3. The seed-42 split contained 4 training parents, 5 validation parents, and 6 test parents.
For the main three-dimensional task, supervision was restricted to stored high-symmetry points. The principal energy windows were defined relative to the PBE band-edge midpoint, with
7
The headline result uses the 8-eV window.
The training protocol used AdamW with an initial learning rate of 9, weight decay 0, 1, 2 epochs, a 3-epoch linear warm-up, cosine decay to 4, dynamic batches of 5–6 entries, a maximum of 7 atoms per batch, and bfloat16 autocast.
The practical workflow is:
- Run a converged PBE calculation.
- Export PBE band energies and the matrices 8, 9, 0, and 1.
- Construct the periodic atom-image graph.
- Encode real-space orbital blocks with equivariant message passing.
- Condition pair features on Bloch phases at the queried 2.
- Encode reciprocal-space orbital matrices in the residual branch.
- Form a signed-band query and its five PBE descriptors.
- Predict the affine correction and orthogonalized dual-space residual.
- Add the correction to the PBE energy.
- Evaluate many 3-points to obtain a band structure or density of states.
For the representative HSE06 test split, 4 matched state pairs were evaluated within the 5-eV window. The state-weighted MAE decreased from 6 eV for PBE to approximately 7 eV for O-kRystal. Across three independently trained models, the entry-balanced MAEs were:
| Energy window | O-kRystal MAE |
|---|---|
| 8 eV | 9 eV |
| $5$00 eV | $5$01 eV |
| $5$02 eV | $5$03 eV |
| $5$04 eV | $5$05 eV |
The uncorrected PBE MAEs were $5$06 eV within $5$07 eV and $5$08 eV within $5$09 eV. A rigid scissor correction reduced errors but could not represent state- or material-specific corrections. Linear+KRR achieved approximately $5$10–$5$11 eV, a geometry-based GNN achieved approximately $5$12–$5$13 eV, and O-kRystal achieved approximately $5$14–$5$15 eV. Relative to the matched geometry GNN, O-kRystal reduced the MAE by $5$16 within $5$17 eV and $5$18 within $5$19 eV.
6. Generalization, applications, and limitations
Momentum generalization and densities of states
Although the three-dimensional model was trained only at high-symmetry points, it was evaluated at previously unseen points along band paths. Across $5$20 held-out entries within $5$21 eV, the median high-symmetry-point MAE was $5$22 eV and the median path-interior MAE was $5$23 eV. This indicates that the model learned a continuous momentum-dependent correction rather than merely memorizing supervised locations.
Dense Brillouin-zone predictions were converted into densities of states using tetrahedron integration and Gaussian broadening with $5$24 eV. Within $5$25 eV, the median normalized $5$26 DOS error decreased from $5$27 for PBE to $5$28 for O-kRystal over $5$29 insulating materials, and from $5$30 to $5$31 over $5$32 metallic materials.
Electronic character and correlated materials
O-kRystal recovered HSE06 electronic character with accuracies of $5$33 for insulator-to-insulator cases, $5$34 for metal-to-insulator cases, and $5$35 for metal-to-metal cases. These results show that the model is not restricted to applying a uniform gap-opening correction.
Six strongly correlated materials were excluded from the primary splits and evaluated separately: CrO$5$36, LaCoO$5$37, LaNiO$5$38, antiferromagnetic MnO, antiferromagnetic NiO, and ferromagnetic Mott-insulating YTiO$5$39. Within $5$40 eV, the material-balanced MAE was $5$41 eV for PBE, $5$42 eV for the geometry GNN, and $5$43 eV for O-kRystal. The reduction from PBE to O-kRystal was $5$44, while the reduction relative to the geometry GNN was $5$45.
The model also improved orbital-resolved placement of transition-metal $5$46 and oxygen $5$47 states. Relative to PBE, the normalized $5$48 error was reduced by $5$49 for transition-metal $5$50 states and $5$51 for oxygen $5$52 states. In antiferromagnetic MnO, the correction was not a uniform band-gap opening: occupied and unoccupied Mn $5$53 features shifted differently across spin channels, while oxygen $5$54 weight moved toward the HSE06 energy range.
Derived properties
For fundamental band gaps, the MAE relative to HSE06 decreased from $5$55 eV for PBE to $5$56 eV for O-kRystal, while $5$57 increased from $5$58 to $0.98.
Effective masses were not directly predicted from O-kRystal band curvature. Instead, the paper used a gap-informed postprocessing reconstruction. The resulting experimental mean absolute percentage error was $5$59 for PBE, $5$60 for gap-informed O-kRystal, and $5$61 for HSE06 over $5$62 directional observations. The gap-informed value is therefore a downstream estimate rather than direct target-theory effective-mass accuracy.
$5$63 extension
The framework was separately trained on $5$64 nonmagnetic two-dimensional semiconductors from a C2DB-derived benchmark. Each material contained eight highest valence states and four lowest conduction states. Training used high-symmetry points and up to nine evenly spaced interior points per path segment, with five-fold material-level cross-validation.
Using a consistent GPAW PBE baseline, the quasiparticle-state MAE was $5$65 eV and the band-gap MAE was $5$66 eV. Using independently calculated FHI-aims PBE eigenvalues with the same $5$67 labels and orbital inputs increased the state-energy MAE to $5$68 eV and the band-gap MAE to $5$69 eV. This demonstrates that $5$70-learning performance depends on consistency between the baseline implementation and the target labels.
Limitations
O-kRystal requires a converged PBE calculation and its orbital matrices; it is not a structure-only model. It predicts target-theory energies but not target wavefunctions, densities, Hamiltonians, self-energies, or target orbital-projection coefficients. The orbital-projected density-of-states analysis therefore uses fixed PBE Mulliken weights and measures improved placement of orbital-derived energies rather than target-level changes in hybridization.
Metallic systems remain more difficult than insulating systems because of partial occupations, crossings, and near-degeneracies. Strongly correlated systems also remain challenging: although the correlated-material MAE was reduced by $5$71, the residual error was $5$72 eV, and NiO remained particularly difficult. O-kRystal learns a correction toward HSE06 or $5$73 and is not a general replacement for methods such as dynamical mean-field theory.
Accuracy decreases modestly with wider energy windows, and momentum extrapolation is not unlimited. Some insulating systems show increasing error with reciprocal distance from supervised points, while metallic systems exhibit larger fluctuations in difficult cases such as Ti$5$74P and Zr$5$75P. State correspondence can also become ambiguous near crossings, degeneracies, and changes in wavefunction character.
No direct end-to-end production speedup was reported. The paper gives a training cost of approximately $5$76 minutes per epoch on one NVIDIA H200, or approximately $5$77 GPU-hours for $5$78 epochs, but does not provide a complete comparison between PBE plus O-kRystal inference and an HSE06 calculation for each new material. Consequently, a precise end-to-end speedup cannot be inferred.
O-kRystal occupies an intermediate position between geometry-only machine learning and direct high-level electronic-structure calculations. Its distinguishing feature is the preservation and processing of structured PBE orbital information in both real and reciprocal space while learning state-, spin-, material-, and momentum-dependent corrections to higher-level theories. The reported results establish its application to PBE-to-HSE06 prediction for chemically diverse three-dimensional materials and to PBE-to-$5$79 prediction for two-dimensional semiconductors (Kang et al., 14 Oct 2026).