arXiv:2610.34021cond-mat.mtrl-sciOct 2026

Manuscript Offprint

arXiv:2610.34021

Deep Scientific Reasoning under Physical Constraints: Structure-Aware Spectrum Prediction

Yingheng Wang, Tao Yu, Shufeng Kong, Francesco Ricci, John M. Gregoire, Carla P. Gomes

Abstract

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. Code and data are available on the project page: https://yingheng-wang.com/DeepSciReasoner

1. Introduction

Structured scientific spectra arise throughout the physical sciences, including electronic density of states (eDOS), phonon density of states (phDOS), X-ray absorption near-edge structure (XANES), Raman spectra, mass spectra, and nuclear magnetic resonance spectra. These spectra encode rich mechanistic information while obeying hard physical constraints. These constraints include conservation laws (e.g., mass/charge/state counts) and spectral geometry (e.g., sharp discontinuities at band edges and peaks) that are essential for correct downstream observables.

Machine learning has made rapid progress on crystal property prediction for scalar targets (Xie & Grossman, 2018; Schütt et al., 2018; Chen et al., 2019). Predicting physical spectra is more challenging because the output is a high-dimensional sequence over a spectral axis (energy, wavenumber, or frequency) whose validity depends on physical constraints and spectral geometry. Beyond basic nonnegativity, physically meaningful predictions must preserve the total spectral mass (the integral over the spectral axis) and accurately capture where spectral mass lies, including sharp band edges, prominent peaks, and sparse vibrational lines. Taking eDOS as the prototypical example, total-state conservation, band-edge sharpness, and the placement of Van Hove singularities (Van Hove, 1953) all need to be respected for the prediction to be physically faithful; analogous geometric and conservation considerations recur in phDOS, XANES, and Raman.

Existing approaches (Chen et al., 2021b; Kaundinya et al., 2022; Kong et al., 2022; Lee et al., 2023) often fall short, revealing a mismatch between pointwise regression and the constrained geometric nature of physical spectra. For example, there are three key limitations in previous eDOS prediction methods. First, they predict the band gap and spectrum separately and reconcile them post hoc, which misaligns band edges near the Fermi level and introduces spurious in-gap density. Second, pointwise regression loss can report low per-bin error while still shifting peaks, blurring features such as Van Hove singularities, or drifting from global constraints, yielding spectra that are visually plausible yet physically inconsistent and that induce erroneous derived properties. Third, the total eDOS is theoretically a sum of atom-projected DOS (pDOS) (Mulliken, 1955); however, prior models collapse a crystal into a single global embedding, reducing interpretability and ignoring atom-projected contribution. These pathologies: mass drift, peak blurring, and missing element-resolved attribution, are not unique to eDOS and recur across other structured spectra.

1^{1}Department of Computer Science, Cornell University 2^{2}Griffith University 3^{3}Institute of Condensed Matter and Nanosciences, Université catholique de Louvain 4^{4}Matgenix SRL 5^{5}California Institute of Technology 6^{6}Lila Sciences. Correspondence to: Yingheng Wang yingheng@cs.cornell.edu.

Code: https://github.com/yingheng-wang/DeepSciReasoner Proceedings of the 43rd43^{rd} International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).

These issues motivate moving beyond unconstrained regression to reasoning over structured spectra under physical constraints. To this end, we introduce DeepSciReasoner, a general spectrum prediction framework that couples structure-aware spectrum prediction with constraint-preserving physical reasoning. This framework generalizes across structured spectra with the same architecture essentially unchanged.

DeepSciReasoner has two stages: (i) an edge-aware crystal graph Transformer encodes atomic structure with gated, edge-modulated attention; and a structure-aware spectrum decoder operates over discrete spectral bins using source (atom-to-spectral-axis) attention, preserving physically meaningful atom-projected contributions (Vaswani et al., 2017); (ii) a mass-conserving iterative refinement transports the normalized spectral density with a learned velocity field that satisfies the continuity equation (Kundu et al., 2024). The velocity is supervised using a 2-Wasserstein displacement-interpolation reference flow (McCann, 1997), and inference is implemented stably via a CDF-based upwind scheme (Godunov & Bohachevsky, 1959). Together, this method produces spectra with sharper edges and peaks while preserving total spectral mass.

Contributions In summary, we make the following contributions. (i) We introduce DeepSciReasoner, a general design paradigm for deep scientific reasoning under hard physical constraints for structure-aware spectrum prediction, formulated generically over discrete spectral grids so that the same architecture transfers across spectrum types. (ii) Using eDOS as the prototypical example, we introduce a crystal-to-spectrum model with source attention from atoms to spectral bins, designed to retain element-resolved contributions across the spectrum, and (iii) a mass-conserving iterative refinement stage that transports the normalized spectral density with a continuity-constrained velocity field to sharpen peaks and gaps while preserving total spectral mass. (iv) Across four physically distinct structured spectra (eDOS, phDOS, XANES, and Raman), DeepSciReasoner achieves state-of-the-art performance, demonstrating DeepSciReasoner as an extendable blueprint for reasoning over structured scientific spectra under physical constraints. (v) Beyond overall benchmarking, we show that DeepSciReasoner improves spectral gap identification, and exhibits stronger data-scaling behavior, demonstrating its practical value for physically constrained spectrum prediction.