DeepDOSReasoner: Physics-Grounded Reasoning for Density-of-States Prediction and Materials Discovery
Authors: Yingheng Wang, Francesco Ricci, Zhilong Wang, Tao Yu, Junwen Bai, Xiangyun Lei, Shufeng Kong, Fengqi You, John M. Gregoire, Carla P. Gomes
Organizations: Department of Computer Science, Cornell University, Ithaca, NY, USA. · Institute of Condensed Matter and Nanosciences, Université catholique de Louvain, Louvain-la-Neuve, Belgium. · Matgenix SRL, Charleroi, Belgium. · Cornell University AI for Science Institute, Cornell University, Ithaca, NY, USA. · College of Engineering, Cornell University, Ithaca, NY, USA. · Robert Frederick Smith School of Chemical and Biomolecular Engineering, Cornell University, Ithaca, NY, USA. · School of Information and Communication Technology, Griffith University, Queensland, Australia · Current address: Google DeepMind, Mountain View, CA, USA. · Toyota Research Institute, Los Altos, CA, USA. · Current address: Ursa Simulation, Atlanta, GA, USA. · California Institute of Technology, Pasadena, CA, USA. · Current address: Autonomous Science Platform, Lila Sciences, Cambridge, MA, USA.
Predicting a material's behavior from its atomic structure is a longstanding goal of the physical sciences. The electronic and phonon densities of states (eDOS and phDOS) govern key electronic, optical, vibrational, and thermodynamic properties, yet their calculation using density functional theory (DFT) is costly: about 60% of Materials Project entries lack eDOS and over 80% lack phDOS. Existing crystal-to-spectrum models rely on pooled structural representations and pointwise regression, which blur spectral features and violate total-state conservation. Here we introduce DeepDOSReasoner, a physics-grounded framework that decodes spectra through atom-to-energy source attention and refines the normalized DOS through learned continuity-equation transport, enforcing nonnegativity and total-state conservation by construction. DeepDOSReasoner achieves the highest prediction accuracy across all evaluated metrics for both eDOS and phDOS, recovers element-resolved contributions without supervision, and most reliably identifies rare valence-band (VB) gaps. In a prospective screen of 8,106 uncharted materials validated by new DFT calculations, its predictions remain the most accurate among the methods evaluated, with 25 of its top 50 candidates confirmed as VB-gap materials. Three case studies spanning substituted compounds, photovoltaic chalcogenides, and a high-entropy alloy demonstrate transfer across materials classes. Ablations confirm that both stages are necessary, while the model retains comparable accuracy when trained on only 25% of the data. Predicting spectra in milliseconds enables exhaustive screening; we release predictions filling the missing eDOS for 91,405 and phDOS for 127,768 Materials Project entries. DeepDOSReasoner provides a blueprint for integrating machine learning with physical reasoning toward high-throughput spectral screening and autonomous materials discovery.
Figures & tables
Fig. 1: DeepDOSReasoner architecture. ( a ) End-to-end diagram of the two coupled stages: Stage I ( structure-aware spectrum decoding ) encodes the input crystal with an edge-aware crystal graph Transformer and decodes an initial eDOS sequence through source (atom-to-energy) attention over discrete energy bins; Stage II ( constraint-preserving physical reasoning ) refines the normalized eDOS through a learned transport field that moves spectral mass over energy while conserving total states, producing sharper band edges and peaks in the final prediction. ( b ) Architectural details of the source-attention decoder: each energy-bin query attends over the atom-level embeddings produced by the encoder through interleaved self-attention (across energy bins) and source attention (from energy bins to atoms), grounding each spectral coordinate in the atomic context that physically contributes at that energy. ( c ) Diagram of the seed-averaging ensemble used at inference: M independently trained DeepDOSReasoner copies are run through the full two-stage pipeline, their normalized predictions are averaged (a convex combination that preserves nonnegativity and unit mass), and the averaged density is rescaled by the total mass Z to recover the absolute DOS.
Method
R2↑
MAE ↓
MSE ↓
WD ↓
E3NN
0.615 ± 0.004
2.814 ± 0.001
47.034 ± 0.342
0.270 ± 0.001
MEGNet
0.639 ± 0.004
2.711 ± 0.001
44.015 ± 0.185
0.251 ± 0.002
GATGNN
0.618 ± 0.005
2.825 ± 0.002
47.115 ± 0.412
0.271 ± 0.002
NequIP
0.615 ± 0.005
2.805 ± 0.001
46.932 ± 0.302
0.271 ± 0.003
M3GNet
0.637 ± 0.003
2.702 ± 0.002
44.462 ± 0.312
0.250 ± 0.001
MACE
0.575 ± 0.006
3.084 ± 0.003
46.027 ± 0.279
0.258 ± 0.002
Table 1: eDOS prediction with band gaps retained. We report mean ± one standard deviation over five independent runs. Darkly shaded cells indicate the best results and lightly shaded cells indicate the second best.
Method
R2↑
MAE ↓
MSE ↓
WD ↓
E3NN
0.506 ± 0.015
0.082 ± 0.003
0.026 ± 0.001
0.103 ± 0.004
MEGNet
0.538 ± 0.014
0.080 ± 0.003
0.024 ± 0.001
0.094 ± 0.004
GATGNN
0.270 ± 0.025
0.106 ± 0.002
0.038 ± 0.003
0.155 ± 0.008
NequIP
0.327 ± 0.022
0.093 ± 0.004
0.035 ± 0.002
0.121 ± 0.006
M3GNet
0.543 ± 0.012
0.075 ± 0.003
0.024 ± 0.001
0.075 ± 0.003
MACE
0.013 ± 0.030
0.115 ± 0.004
0.052 ± 0.004
0.241 ± 0.012
Table 2: phDOS prediction performance on the original frequency scale ( n=152 test materials). We report mean ± one standard deviation over five independent runs. Darkly shaded cells indicate the best results and lightly shaded cells indicate the second best.
Fig. 2: Benchmark summary and representative spectrum-prediction examples. ( a ) Per-task radar summary of relative performance across the four benchmark tasks, eDOS prediction, phDOS prediction, VB-gap identification, and prospective VB-gap discovery, with DeepDOSReasoner (red) shown against all baselines. For each task the four reported metrics are min-max normalized across methods so that the outer ring corresponds to the best value on every axis; DeepDOSReasoner reaches the best normalized value on every axis of every task. ( b ) Representative eDOS predictions on materials from the primary eDOS benchmark: DeepDOSReasoner (pink) is shown alongside DFT ground truth (gray) and the two crystal-to-sequence baselines (Mat2Spec, DOSTransformer). ( c ) Representative phDOS predictions on materials from the held-out phDOS test set, with frequencies on the original cm -1 axis. Additional eDOS and phDOS visualization examples are provided in section S5.2.
Method
Prec. ↑
Recall ↑
F1 ↑
MCC ↑
E3NN
0.661 ± 0.023
0.409 ± 0.024
0.499 ± 0.038
0.499 ± 0.021
MEGNet
0.646 ± 0.014
0.441 ± 0.021
0.524 ± 0.049
0.513 ± 0.022
GATGNN
0.411 ± 0.015
0.391 ± 0.035
0.399 ± 0.027
0.373 ± 0.012
NequIP
0.698 ± 0.018
0.360 ± 0.015
0.471 ± 0.029
0.483 ± 0.013
M3GNet
0.734 ± 0.011
0.425 ± 0.019
0.538 ± 0.034
0.544 ± 0.034
MACE
0.389 ± 0.013
0.467 ± 0.022
0.418 ± 0.025
0.397 ± 0.029
Table 3: VB-gap identification performance. We report mean ± one standard deviation over five independent runs. Darkly shaded cells denote the best results and lightly shaded cells denote the second best.
Method
Prec. ↑
Recall ↑
F1 ↑
MCC ↑
E3NN
0.733
0.250
0.373
0.248
MEGNet
0.765
0.295
0.426
0.296
GATGNN
0.700
0.318
0.438
0.262
NequIP
0.647
0.250
0.361
0.189
M3GNet
0.737
0.318
0.444
0.290
MACE
0.696
0.364
0.478
0.281
Table 4: Prospective VB-gap discovery. Performance on 100 nonmagnetic Materials Project entries lacking a DFT eDOS, comprising the 50 top-ranked candidates of DeepDOSReasoner and the 50 top-ranked candidates of Mat2Spec under the gap-likeness screening score of section S5.6, drawn from the same 8,106 -material pool; the enrichment ensures enough DFT-validated VB-gap positives to estimate recall and F1. All methods are scored once against the same DFT-derived labels on this single fixed candidate set, so single values are reported. Darkly shaded cells denote the best results and lightly shaded cells denote the second best.
Fig. 3: Prospective VB-gap discovery visualization. Predicted eDOS (blue) is shown alongside DFT ground truth (gray) for twelve representative candidates flagged by DeepDOSReasoner from the 8,106 -material discovery pool of nonmagnetic Materials Project entries lacking a published DFT eDOS. The shaded blue window in each panel marks the contiguous sub-Fermi-energy region that satisfies the VB-gap detection criterion; the gray shading indicates the corresponding window obtained from the DFT reference. The visualization complements the precision/recall/F1/MCC numbers in Table 4 , showing how DeepDOSReasoner places suppressed-density windows on previously unseen compositions while preserving the surrounding band-edge structure.
Fig. 4: Spectrum prediction case studies across material classes. Predicted DeepDOSReasoner spectra (colored) are shown alongside DFT-derived references (gray). ( a ) Cl-for-I substitutional variants of CdI 2 ( mp-569994 ): CdCl 0.5 I 1.5 and CdICl. ( b ) Ga-for-In substitutional variants of Dy 4 Cu 2 In 6 ( mp-1225405 ): Dy 4 Cu 2 In 5 Ga and Dy 4 Cu 2 In 3 Ga 3 . ( c ) Seven I 2 –II–IV–X 4 quaternary chalcogenide semiconductors of the form Cu 2 Ba M X 4 ( M∈{ Hf, Si, Ti, Zr } , X∈{ S, Se } ): the presence of the band gap, the valence-band edge, and the dominant peaks are reproduced across the set. ( d ) CuPtFeCoNi high-entropy alloy: the model captures the gapless metallic spectrum and recovers the eDOS center εˉ with an absolute error of 0.20 eV ( −1.16 eV predicted versus −0.97 eV DFT). Panels (a) and (b) are discussed in the “Substituent-induced spectral changes” section, panel (c) in the “Chalcogenide semiconductor case study” section, and panel (d) in the “High-entropy alloy case study” section.
Fig. 5: Empirical analyses of DeepDOSReasoner. ( a ) Data-scaling behavior on eDOS prediction as the training-set fraction grows from 25% to 100%, reported for R2 , MAE, MSE, and WD against the two crystal-to-sequence baselines (Mat2Spec, DOSTransformer). ( b ) Ablation study isolating the contribution of structure-aware spectrum decoding and constraint-preserving physical reasoning to overall eDOS performance: DDR is the full DeepDOSReasoner model, DDR-NR removes the constraint-preserving physical reasoning stage, and DDR-NDNR removes both the structure-aware spectrum decoding and the constraint-preserving physical reasoning (corresponding numbers in table S5). ( c ) Element-resolved contribution ranking on the eDOS test set: overall accuracy, top-1 accuracy, and Spearman ρ of the element rankings recovered from source-attention weights (DeepDOSReasoner), compared against a random-ordering baseline and a composition-plus-oxidation-state chemistry heuristic (a trained-model-free baseline whose details are given in section S5.1), all scored against DFT-derived element-resolved contributions. ( d ) Peak-restricted mean absolute error on band-edge van Hove singularities: DeepDOSReasoner attains the lowest value of any method evaluated on the same eDOS test set as Table 1 .
Component / Setting
Value
Edge-Aware Crystal Graph Transformer
(Encoder)
Backbone operator
TransformerConv [ 60 ]
# encoder layers
3
Hidden size
512
Node embedding dim dh
512
Table S1: Hyperparameter settings for DeepDOSReasoner.
Quantity
Mean
Median
Std
Min
P10
P90
Max
Nwin
65.7
51.0
51.6
0.46
18.4
130.5
740.3
R=Nwin/Ntot
0.567
0.535
0.186
0.060
0.368
0.805
1.00
Table S2: Distribution of the absolute eDOS in-window states count Nwin and the intensive ratio R=Nwin/Ntot across the eDOS benchmark, where Ntot=∫−∞∞DdE is the analytic full-range total (number of included bands times spin degeneracy). Nwin is extensive (it scales with cell size and bands count); R is the size-normalized quantity the oracle regresses. The upper tail of R is clipped at 1.0 by the outlier filter.
Target
MAE
RMSE
R2
MAPE
R
0.0309
0.0515
0.921
5.9%
Nwin
3.58
6.90
0.982
5.9%
Nwin , metals (gap =0 )
2.95
5.71
0.989
5.2%
Nwin , gapped
4.37
8.14
0.971
6.9%
Table S3: Held-out accuracy of the eDOS states-count oracle. The oracle regresses the intensive ratio R=Nwin/Ntot and recovers the absolute count Nwin=R⋅Ntot by rescaling with the analytic full-range total Ntot . The bottom rows stratify the recovered Nwin by metallic (gap =0 ) versus gapped materials. RMSE, root-mean-square error; MAPE, mean absolute percentage error.
Protocol
Metric
Full set
Stable-only
Hardware Specifications
GPU Specification
1 × NVIDIA H100 (80GB)
CPU Specification
Intel Xeon Platinum 8462Y+
Stage I: Encoder + Decoder Training
Encoding Time / Crystal (ms)
4.39
4.75
Table S4: Computational cost and hardware specifications, reported for both the primary (full) eDOS benchmark and the stable-only subset. The per-crystal encoding and decoding times are single-sample module latencies (forward and backward pass, one crystal at a time), reported to show how the budget splits between the encoder and the decoder. The per-epoch wall-clock times are measured under the training configuration of Table S1 (batch size 128 ), where crystals are processed in parallel on the GPU. The two sets of figures are therefore measured under different batching and do not multiply: the per-epoch time is an order of magnitude below the per-crystal latency times the number of training structures. The single-crystal inference latency quoted in the main text ( ∼10.5 ms, forward pass only) is likewise lower than the per-crystal training figures here.
Fig. S1: Additional eDOS visualization examples extending main-text Figure 2(b). Predicted DeepDOSReasoner spectra (pink) are shown alongside DFT ground truth (grey) and the two crystal-to-sequence baselines (Mat2Spec, DOSTransformer) for twelve representative materials drawn from the eDOS test set, with the corresponding crystal structure inset in each panel.
Fig. S2: Additional phDOS visualization examples extending main-text Figure 2(c). Predicted DeepDOSReasoner phonon spectra (pink) are shown alongside DFT ground truth (grey) and the two crystal-to-sequence baselines (Mat2Spec, DOSTransformer) for twelve representative materials drawn from the held-out phDOS test set ( n=152 ), with the corresponding crystal structure inset in each panel. Frequencies are reported on the original cm -1 axis.
Fig. S3: DeepDOSReasoner prediction error versus material complexity on the eDOS test set ( n=3,756 ). The first two columns are boxplots of MAE and WD as a function of the number of distinct elements ( Nelements ); the last two columns are hexbin density plots of MAE and WD against the number of atomic sites in the unit cell ( Nsites ), with the colorbar reporting per-bin count on a log scale.
Fig. S4: DeepDOSReasoner prediction error versus training-set similarity on the eDOS test set. The first two columns are hexbin density plots of MAE and WD against the number of training compositions sharing the test material’s chemical system ( NCompSetsInTrain ); the last two columns are the analogous plots against the number of training entries sharing the test material’s space group ( NSpacegroupsInTrain ). Lower-similarity bins retain a comparable error distribution, indicating that the model does not concentrate its accuracy on training-set neighborhoods.
Fig. S5: Distribution of DeepDOSReasoner test-set members across error quintiles for three material subclasses. Rows correspond to ternary compounds with three non-rare-earth elements (top), ternary compounds of the form O + two non-rare-earth elements (middle), and cubic structures with space group 225 (bottom). Columns show MAE quintiles (left, blue) and WD quintiles (right, orange); quintile edges are computed on the full eDOS test set and shown below each axis. A subclass that concentrates in Q1 – Q2 is systematically easier than the test-set average.
Fig. S6: DeepDOSReasoner prediction error versus the relative Fourier composition of the DFT-derived eDOS. The frequency axis of the discrete Fourier transform of each target spectrum (on the 128-bin energy grid) is partitioned into five equal bands f1,…,f5 from low frequency (left) to high frequency (right). For each band, we plot per-material MAE (top row, blue) and WD (bottom row, orange) against the relative mean FFT intensity in that band; the Pearson correlation between the relative-intensity proxy and the error metric ( rMAE for the top row, rWD for the bottom row) is reported in each panel. The intermediate-frequency bands show the strongest positive correlation with MAE, the smooth lowest-frequency band the weakest, and WD correlations remain low in every band.
Fig. S7: DeepDOSReasoner gains from training and evaluating with metastable structures, expressed as the relative improvement of full-set performance (orange) over the stable-only baseline (grey, normalized to 1 ) on each of the four eDOS metrics ( R2 , MAE, MSE, WD; higher-is-better convention applied to each). MAE and MSE improve the most, consistent with the metastable subset acting as additional per-bin supervision.
Fig. S8: Per-method change in eDOS performance between the full-set and stable-only protocols. Each cell reports the relative advantage of the full-set protocol on the indicated metric, expressed as a percentage of the stable-only value: positive cells indicate that the method degrades when metastable training structures are removed, and hatched negative cells indicate that it improves under stable-only. The heatmap reproduces the numerical comparisons of Section S5.4 and complements the all-method ranking reported in Table S7 .
Method
R2↑
MAE ↓
MSE ↓
WD ↓
DDR
0.691 ± 0.004
2.567 ± 0.002
38.142 ± 0.253
0.191 ± 0.005
DDR-NR
0.668 ± 0.002
2.701 ± 0.039
40.668 ± 0.282
0.221 ± 0.015
DDR-NDNR
0.645 ± 0.003
2.710 ± 0.024
42.415 ± 0.227
0.243 ± 0.018
Table S5: Ablation study on eDOS prediction. We report mean ± one standard deviation over five independent runs. Darkly shaded cells denote the best results and lightly shaded cells denote the second best. Abbreviations: DDR = DeepDOSReasoner; NR = without constraint-preserving physical reasoning; NDNR = without both structure-aware spectrum decoding and constraint-preserving physical reasoning.
Method
MAE (eV) ↓
RMSE (eV) ↓
MedAE (eV) ↓
P 90∣e∣ (eV) ↓
R2↑
E3NN
0.198
0.337
0.112
0.462
0.862
MEGNet
0.174
0.307
0.096
0.403
0.886
GATGNN
0.193
0.334
0.110
0.438
0.864
NequIP
0.189
0.331
0.106
0.434
0.867
M3GNet
0.170
0.301
0.097
0.389
0.890
MACE
0.268
0.418
0.179
0.567
0.787
Table S6: eDOS-center ( εˉ ) prediction accuracy on the held-out eDOS test set, comparing all methods. We report mean absolute error (MAE), root-mean-square error (RMSE), median absolute error (MedAE), and the 90th-percentile absolute error (P 90∣e∣ ), all in eV, together with the coefficient of determination R2 . These values are single-run point estimates rather than means over the five independent runs used for the main benchmark tables. Darkly shaded cells indicate the best result and lightly shaded cells the second best.
Model
R2↑
MAE ↓
MSE ↓
WD ↓
E3NN
0.598 ± 0.002
3.131 ± 0.002
51.073 ± 0.256
0.276 ± 0.001
MEGNet
0.631 ± 0.003
2.964 ± 0.001
46.874 ± 0.276
0.219 ± 0.003
GATGNN
0.597 ± 0.005
3.212 ± 0.001
51.207 ± 0.398
0.279 ± 0.001
NequIP
0.602 ± 0.005
3.164 ± 0.002
50.493 ± 0.334
0.263 ± 0.002
M3GNet
0.633 ± 0.002
2.933 ± 0.004
46.528 ± 0.296
0.225 ± 0.003
MACE
0.538 ± 0.004
3.526 ± 0.002
58.641 ± 0.331
0.337 ± 0.001
Table S7: eDOS prediction performance under the stable-only protocol (training and test restricted to thermodynamically stable structures, energy above hull = 0). We report mean ± one standard deviation over five independent runs. Darkly shaded cells indicate the best results and lightly shaded cells indicate the second best.
Structured scientific spectra encode rich physical information while obeying hard constraints, such as conservation laws and characteristic spectral geometry. Accurate prediction of these spectra is central to materials discovery, yet existing methods often treat them as unconstrained sequences and therefore fail to enforce the underlying physical structure. Taking electronic density of states (eDOS) as the prototypical example, we introduce DeepSciReasoner, a general paradigm for predicting scientific spectra under physical constraints. The framework combines structure-aware spectrum decoding with constraint-preserving physical reasoning, allowing predictions to capture rich spectral structure while respecting the underlying physics. We evaluate DeepSciReasoner on eDOS, phonon density of states (phDOS), X-ray absorption near-edge structure (XANES), and Raman spectra, where it substantially improves prediction accuracy while maintaining physical consistency. These results establish DeepSciReasoner as a reusable blueprint for structured scientific spectrum prediction under hard physical constraints.
Yingheng Wang, Tao Yu, Shufeng Kong +3
Department of Computer Science, Cornell University · Griffith University · Institute of Condensed Matter and Nanosciences, Universit´e catholique de Louvain +3
Machine learning supports materials design, atomistic simulation and experimental characterization, yet models and workflows remain fragmented. We present PaddleMaterials, an open-source framework integrating heterogeneous materials-learning tasks while preserving task-specific representations and scientific semantics. It unifies data processing, training, evaluation, pretrained-model management and workflows across six task classes: property prediction, structure generation, machine-learning interatomic potentials, electronic-structure fields, spectrum elucidation and microscopy image processing. Task interfaces record physical quantities, units, aggregation conventions and references, making cross-task composition verifiable. A shared compiler backend enables switching from dynamic-graph to compiled execution through one setting, using graph optimization, operator fusion and hardware-targeted code generation without changing model definitions. Across 65 model instances in 11 groups, compiled execution accelerated every instance in eight groups, with group median speedups of 11%-224% and group maximum speedups of 11%-336%. Case studies on LiMnO2 and toluene link structure generation or spectrum elucidation, interatomic-potential relaxation, property prediction and electron-density prediction, using same-geometry density functional theory (DFT) calculations as references. For LiMnO2, predicted formation energies for generated and relaxed structures differed from same-geometry PBE+U references by at most 7 meV per atom, while the computational cost of model steps was less than one-twentieth of a DFT single-point calculation. PaddleMaterials extends unified materials workflows beyond conventional property, potential and structure-generation tasks while supporting verifiable cross-task operations and compiled execution.
Xuwei Liu, Zhimin Zhang, Xiaoguang Hu +5
Baidu Inc., Beijing, 100094, China · Suzhou National Laboratory, Suzhou, 215123, China
Kohn-Sham density functional theory (DFT) is the standard method for computing the electronic structure of molecules and materials, but its self-consistent-field (SCF) iterations make it expensive for large systems and high-throughput screening. Machine-learned Hamiltonian models offer a shortcut: an equivariant network predicts the Kohn-Sham Hamiltonian matrix in one forward pass, and diagonalizing the prediction yields orbital energies, the HOMO-LUMO gap, molecular orbitals and the electron density. These models are trained to match the reference matrix entry by entry, yet a small entry-wise error does not guarantee accurate eigenvalues or eigenvectors. Two physics-informed alternatives go partway: a recently proposed wavefunction-alignment loss adds a spectral penalty without diagonalizing the prediction, and matching the electron density of the diagonalized prediction supervises it directly. Neither is complete: by representing the prediction error in the eigenbasis of the reference Hamiltonian, we show that each sees only part of the error, and that shifting the predicted orbital energies leaves the electron density exactly unchanged. The same analysis identifies a complete training signal: the cumulative local density of states (cumulative LDOS), the number of electrons at each point in space with energy below a given threshold. The cumulative LDOS is a single physical observable that contains the electron density as a special case, responds to every component of the error, determines the Hamiltonian uniquely, and yields gradients that do not vanish for large orbitalenergy errors. Fine-tuning three Hamiltonian networks on QH9 in this way, which we call FermiScope, reduces the HOMO-LUMO gap error without increasing the element-wise error. The gains carry over to out-of-distribution and molecular-dynamics splits, where the wavefunction-alignment loss helps less.
Fang Sun, Hekai Cheng, Ruoyan Li +4
Computer Science Department, University of California, Los Angeles