Abstract
Optical spectroscopies provide a powerful means to probe light-matter interactions and complex electronic features that are crucial for the development and optimization of optoelectronic devices, where performance is closely tied to the underlying electronic spectrum. However, realistic modeling of tensor optical responses in materials remains computationally demanding and challenging. Here we introduce the Tensorial Spectra Equivariant Neural Network (TSENN), an equivariant graph neural network architecture that maps crystal structures directly to their full photon-frequency-dependent optical tensors. By encoding isotropic sequential scalar components and anisotropic sequential tensor components into spherical tensor representations, TSENN ensures symmetry-aware predictions consistent with crystalline symmetry constraints. Trained on frequency-dependent dielectric tensors of 1,432 bulk semiconductors, the model achieves a mean absolute error of 0.127, demonstrating its potential for efficient and general modeling of optical properties. Our framework opens new avenues for data-driven design of anisotropic optical responses to accelerate materials discovery for optoelectronic applications.
Subject terms: Computational methods, Quantum optics
Modeling full tensorial optical responses of crystalline materials is computationally demanding. Here, the authors introduce TSENN, an equivariant graph neural network that predicts symmetry-consistent, frequency-dependent optical tensors directly from crystal structures.
Introduction
Optical spectroscopies, which involve excitation of a material with external electromagnetic fields, provide a powerful tool for probing properties of materials. The two key frequency-dependent response functions involved here are the dielectric function and optical conductivity, which together form the foundation for interpreting a wide range of optical phenomena in solid-state systems1–3. Dielectric function captures the energy storage and dissipation mechanisms in the material, while optical conductivity characterizes the current response to varying external fields. Refractive index, extinction coefficient, and absorption coefficient also play important roles in specific applications such as the LEDs, integrated circuits, and solar cells4–8. Optical responses are often divided into various frequency regions, where the spectra carry fingerprints of distinct types of quasiparticles in materials9–11.
Materials with low-symmetry crystal structures exhibit pronounced anisotropies, which require tensors with nonzero off-diagonal components and a basis for new strategies for controlling their optical properties. For example, direction-dependent optical responses of van der Waals heterostructures can be tailored for polarization-sensitive photodetectors and developing thermal management schemes, among other applications12,13. These heterostructures are also promising materials platforms for developing ultrafast lasers and artificial synaptic devices, and other transformational emerging optoelectronic technologies14–16.
Graph neural networks (GNNs) have recently shown strong capabilities in capturing structure–property relationships and efficiently predicting complex functional properties of materials17–20. In particular, Euclidean neural networks (E(3)NN)21–23, which explicitly incorporate spatial symmetry constraints into their architecture, can, in principle, capture the full symmetry of a crystal. This enables high-fidelity predictions with relatively small training datasets (~103 examples). E(3)NNs have demonstrated success in a variety of applications, including the prediction of interatomic potentials24 and the construction of machine-learning Hamiltonians25,26.
Equivariant GNNs have also been extended to predict sequential material properties such as phonon density of states, optical conductivities, and absorption spectra18,27–29. For instance, GNNOpt employs ensemble embeddings of aggregated node features to predict the trace of dielectric functions and derived properties, enabling the discovery of promising solar–cell materials and the estimation of quantum weights in materials30. Similarly, Optimate and its extension were initially trained on 9915 semiconductors and insulators using dielectric functions within the independent-particle approximation (IPA), and subsequently fine-tuned on random-phase approximation (RPA) spectra to enhance their correspondence with experimental observations31,32. In parallel, several works have proposed equivariant architectures for predicting tensor quantities such as dielectric, piezoelectric, and elastic tensors33,34. For example, AnisoNet leverages spherical-harmonic decomposition in the ℓ = 0 and ℓ = 2 channels to directly predict the dielectric tensor, facilitating high-anisotropy materials discovery through database screening35, while DTNet adopts a transfer-learning approach that incorporates interatomic potentials as optimized latent embeddings to construct the 3 × 3 static dielectric constant using node features and atomic positions36. Notably, most existing studies focus exclusively on the dielectric constant. In contrast, the joint prediction of tensor structure and spectral behavior–specifically, the full frequency-dependent dielectric tensor–remains largely unexplored. Prior work has investigated tensorial spectra indirectly through equivariant machine-learning Hamiltonians, but the Brillouin-zone integrations involved continue to pose a computational bottleneck. Our approach addresses this gap by leveraging the expressive power of higher-order tensor channels within the equivariant GNNs to directly predict the full, frequency-dependent dielectric tensor from crystal structure, thereby providing a comprehensive framework for modeling anisotropic optical responses in crystalline materials.
Here, we propose the Tensorial Spectra Equivariant Neural Network (TSENN) whose architecture is based on E(3)NN, which is equivariant under translation, rotation, and inversion symmetries. These symmetry-aware capabilities of E(3)NN allow TSENN to model complex directional dependencies of functional properties of materials accurately. Our method utilizes sequential ℓ = 0 components to capture isotropic parts that are associated with quantities such as the total permittivity. The sequential ℓ = 2 components are employed to capture anisotropic parts associated with quantities such as birefringence and direction-dependent refractive index. We demonstrate the capabilities of TSENN by considering the frequency-dependent dielectric tensors of a dataset of 1432 nonmagnetic semiconductors calculated via first-principles methods using OpenMX37–40. By training TSENN on the aforementioned dataset, we achieve a mean absolute error (MAE) of 0.127 in the predicted imaginary part of the dielectric tensor. The high prediction accuracy enables reconstruction of the real part of the dielectric tensor via the Kramers–Kronig (K–K) relations, allowing us to compute additional optical properties derived from the spectra. Accurately predicting the full tensor while preserving its symmetry opens new opportunities for designing materials with tailored anisotropic responses, with applications in photovoltaics, optical modulators, and sensing technologies.
Results
Dataset
With our focus on small bandgap semiconductors in mind, we selected materials from the Materials Project41 with bandgaps ranging from 0.3 to 3 eV (photon wavelengths of 4100 nm (infrared) to 413 nm (violet)) that are appropriate for optoelectronic applications42,43. To maintain structural stability, we imposed an energy-above-hull threshold of 0.02 eV/atom. For computational efficiency, we limited our selection to materials with fewer than three elements and fewer than ten atoms per unit cell. Additionally, we excluded magnetic materials as well as materials containing elements with f electrons due to the lack of availability of accurate, predefined pseudo-potential sets. These constraints yielded a dataset of 1432 materials, whose composition is summarized in Fig. 1. Importantly, we did not impose symmetry constraints, such as filtering for specific space groups. As a result, our dataset includes anisotropic materials, whose tensor properties are not intrinsically diagonal. For each entry, we first symmetrized the structure by following the procedure of ref. 44 and performed first-principles calculations using OpenMX. The dielectric tensors were computed using the Kubo formula for photon energies ranging from 0 to 30 eV, with an increment of 0.01 eV, resulting in 1432 frequency-dependent dielectric tensors satisfying the symmetry constraints of the crystal systems considered45–47. In this work, the complex dielectric tensor refers to the frequency-dependent relative dielectric tensor, expressed as , where and denote the real and imaginary parts, respectively. The superscripts αβ index the directional dependence of the spectra. For simplicity, we omit the explicit frequency dependence (ω) hereafter.
Fig. 1. Overview of the diversity of materials in our dataset.
a Histogram showing the frequency of materials across different crystal symmetries. b Distribution of bandgaps (eV). c Periodic table highlighting the frequency of elements in the dataset, with the color gradient ranging from blue (low frequency) to yellow (high frequency). The Lanthanide and Actinide series are filtered out and not displayed.
To predict the dielectric tensor using an equivariant neural network, we express it in the spherical-harmonics basis, which naturally encodes rotational symmetry. The dielectric tensor is symmetric under the permutation of Cartesian indices, εij = εji, and therefore admits the decomposition
| 1 |
which separates the scalar trace component (ℓ = 0) from the traceless symmetric tensor component (ℓ = 2). Details of the decomposition procedure are provided in SI Section 6. This approach transforms the tensors from the Cartesian basis into the spherical-harmonics basis, making it easier to work with tensor properties in systems with rotational and inversion symmetries. In Eq. (1), note that a rank-2 Cartesian tensor can be decomposed into ℓ = 0 and ℓ = 2 channels, which involve 2ℓ + 1 different magnetic quantum numbers m ∈ { − ℓ, …, ℓ} that form a spherical tensor of order ℓ. Since we are dealing with frequency-dependent tensors, we take the Cartesian tensor at each photon energy, perform this change-of-basis operation, and obtain the frequency-dependent spherical-harmonic coefficients as our target, as shown in Fig. 2. The change of basis and the evaluation of the Wigner 3j coefficients were carried out using the e3nn package21.
Fig. 2. Dataset visualization.
Left panels illustrate the frequency-dependent dielectric tensors in Cartesian coordinates, with insets detailing the corresponding crystal systems, tensor formulas, and the non-vanishing components after ref. 47. Right panels depict the transformed spectra into the spherical-harmonic basis, serving as the ground truth for model training. a Triclinic system with all tensor components present. b Hexagonal system with non-vanishing components satisfying xx = yy ≠ zz, where the component arises from the xx + yy + zz component and the arises from the component.
Figure 2 illustrates the spherical-harmonics decomposition of the dielectric tensor for two representative materials from our dataset, which are shown both in the Cartesian and spherical-harmonics basis. It can be shown through a crystallographic analysis that there are five distinct cases of non-vanishing dielectric tensor components across the seven crystal systems. We highlight two examples. (i) Triclinic compound Br2PdSe6, which lacks any symmetry operations, so that all components of the dielectric tensor are non-vanishing. Consequently, the decomposition of its Cartesian dielectric tensor yields nonzero contributions across all irreducible spherical components, including the scalar channel and the five rank-2 spherical-harmonic components for m ∈ { − 2, − 1, 0, 1, 2}. And (ii) the hexagonal compound AsBaLi, in which the higher crystal symmetry imposes constraints on the tensor. Specifically, the sixfold rotational symmetry enforces the presence of diagonal components only with the relationships εxx = εyy ≠ εzz. The xx and yy components (blue and red curves in Fig. 2) are visually indistinguishable within numerical accuracy. All off-diagonal components vanish, consistent with the symmetry constraints summarized in the inset of Fig. 2. As a result, the spherical-harmonics decomposition becomes sparse, with only the and components remaining nonzero. Origin of these spherical channels can be traced back to the specific linear combinations of Cartesian components: the scalar component arises from the trace xx + yy + zz, while the rank-2 spherical-harmonic components correspond to the combination 48.
Equivariant graph neural network architecture
Our TSENN model extends the e3nn and GNNOpt frameworks, both of which have demonstrated strong performance in sequential prediction tasks such as electron and phonon densities of states, as well as the traces of optical spectra29,30,49. While TSENN is built on the foundational principles of equivariant GNNs as implemented in e3nn, it incorporates key extensions that distinguish it from GNNOpt. In particular, TSENN leverages higher-order spherical-harmonic components to better capture the anisotropy of tensorial properties (Fig. 3). The effectiveness of the output representation, model architecture, and comparison with state-of-the-art methods is further detailed in the Supplementary Information (SI). Accordingly, we construct a GNN that represents each material as a crystal graph, where the atomic and structural information is encoded through node and edge features. Each atomic node i is initially represented by a one-hot encoding of its atomic species corresponding to the 118 known chemical elements50. These atomic types are embedded via a multilayer perceptron to produce initial node-level features fi.
Fig. 3. Schematic architecture of TSENN.
The model takes a periodic crystal graph as input and encodes atom types via one-hot embeddings50. Edge vectors rij are expanded using radial basis functions and spherical-harmonics. Features pass through multiple gated equivariant convolution layers, followed by output convolution and mean pooling. Dropout is incorporated after each convolution block to prevent overfitting. The prediction is split into ℓ = 0 (isotropic) and ℓ = 2 (anisotropic) channels and trained using the composite loss function: MAE(ℓ = 0) + MAE(ℓ = 2).
TSENN enforces equivariance to 3D Euclidean transformations by adopting the formalism of tensor field networks22. Translational equivariance is achieved through the use of relative atomic positions in message passing, while rotational equivariance is enforced by constraining intermediate features to lie within irreducible representations of the rotation group SO(3). These are indexed by rotation order ℓ ∈ {0, 1, 2, …} and parity p ∈ {−1, 1}. Each feature tensor takes the form , where c indexes feature channels and m ∈ [−ℓ, ℓ] indexes spherical-harmonic components. Thus, a representation of degree ℓ occupies a tensor space of dimension .
These representations are combined using equivariant tensor product operations ⊗ to construct the pointwise convolution layers. This operation can be applied iteratively L times, following the Clebsch–Gordan decomposition as implemented in e3nn:
| 2 |
where and p0 = p1p2. For brevity, we omit the indices ℓ, p, c, and m when referring to these tensors hereafter.
After the final pointwise convolution layer, we apply mean pooling over all nodes to obtain a global representation of the material. The network output is then partitioned into two parts: a scalar component corresponding to ℓ = 0 and a tensor component corresponding to ℓ = 2. To train the model, we define a composite loss function , which separately evaluates the scalar and tensor components of the predicted optical spectra. Let N denote the number of materials and nω the number of frequency points. For each material entry i, and denote the predicted ℓ = 0 and ℓ = 2 components, respectively, and and denote the corresponding ground-truth values. Here, the hat symbol denotes the predicted tensor, unless explicitly specified otherwise, distinguishing it from the ground-truth tensor obtained via the Kubo formula. Since there are two objectives ( and ) with different magnitudes, we adopt the loss balancing approach for multi-objective training, which allows the network to determine the optimal weighting between objectives dynamically51. The effectiveness of this loss balancing is discussed in SI Section 2.2. The total loss is defined as:
| 3 |
where σ1 and σ2 are learnable parameters that represent the relative uncertainty of each task, with component-wise definitions:
| 4 |
| 5 |
where Mℓ = 2 = 2 × 2 + 1 = 5 is the number of components for the rank-2 irreducible representation. The model used for prediction was selected based on the best performance according to the validation loss. After obtaining the predicted spherical tensor components from the best model, we transformed them back into the Cartesian tensor representation.
To evaluate the model’s performance, the most direct measure is the MAE of the dielectric tensor,
| 6 |
This ensures that peak position, width, and sign are faithfully captured in the evaluation, without cancellation across frequencies or components. In addition, we compute the per-component errors MAEαβ, as well as a Normalized MAE (NMAEαβ), defined by normalizing MAEαβ to the characteristic magnitude of each tensor component. This scale–aware metric highlights how the prediction errors compare to the intrinsic strength of the typical dielectric response, thereby providing additional physical interpretability.
To isolate anisotropic behavior, we remove the isotropic contribution from the tensor,
| 7 |
This decomposition yields the component-wise anisotropic contributions and their overall magnitudes . From these, we define per-component errors , the related component–averaged value MAEaniso, and the Frobenius-norm errors , to quantify errors in the overall anisotropy strength. For completeness, we also report additional shape-sensitive metrics such as the first-derivative MAE of individual components , and the KL divergence for the diagonal components. Detailed definitions of these metrics are provided in the SI Section 1.
Prediction results
Table 1 summarizes error metrics for dielectric tensor predictions across chemically and structurally diverse test systems. The overall tensor MAE is 0.127 (0.097 median), establishing TSENN’s robust baseline accuracy. When decomposed into isotropic and anisotropic contributions, the averaged anisotropic error MAEaniso is 0.096 (0.074 median), demonstrating reliable capture of directional variations. By contrast, the Frobenius-norm anisotropy error is larger at 0.141 (0.111 median), reflecting the stricter requirement of reproducing the total anisotropy magnitude rather than individual Cartesian components. We emphasize that this norm-based measure is the most physically meaningful measure, since it is rotationally-invariant and directly corresponds to the ℓ = 2 spherical-harmonics channel. This invariance complements the model’s equivariance, which guarantees the correct transformation of anisotropic components as a rank-2 tensor under rotations.
Table 1.
Summary of full-tensor and per-component error metrics for dielectric tensor predictions (mean values with median in parentheses)
| Full-tensor metrics | Per-component metrics | ||||||
|---|---|---|---|---|---|---|---|
| Metric | Value | αβ | MAEαβ | NMAEαβ (%) | KL divergence | ||
| MAE | 0.127 (0.097) | xx | 0.251 (0.176) | 2.9 (2.8) | 0.099 (0.084) | 0.119 (0.047) | 0.092 (0.066) |
| MAEaniso | 0.096 (0.074) | yy | 0.237 (0.177) | 2.8 (2.9) | 0.094 (0.082) | 0.106 (0.047) | 0.083 (0.064) |
| 0.141 (0.111) | zz | 0.259 (0.206) | 3.0 (3.2) | 0.105 (0.092) | 0.161 (0.067) | 0.125 (0.099) | |
| xya | 0.082 (0.072) | 5.4 (8.4) | 0.034 (0.032) | – | 0.082 (0.072) | ||
| xza | 0.091 (0.089) | 7.3 (7.4) | 0.037 (0.034) | – | 0.091 (0.089) | ||
| yza | 0.105 (0.098) | 7.0 (8.0) | 0.039 (0.039) | – | 0.105 (0.098) | ||
aOff-diagonal values are reported only for symmetry-allowed systems. Since the isotropic trace contributes only to diagonal elements, for off-diagonal terms. The KL divergence is not reported for off-diagonal components because these spectra are not positive definite, and the normalization required for KL is ill-defined.
At the component level, the diagonal elements (xx, yy, zz) exhibit higher errors (0.237–0.259, with NMAE ~3%) compared to the off-diagonal terms (xy, xz, yz) (0.082–0.105, with NMAE ~5–7%). This hierarchy is physically natural: the diagonal responses are much stronger in magnitude and receive contributions from both the isotropic (ℓ = 0) and anisotropic (ℓ = 2) channels, whereas the off-diagonal terms arise purely from the ℓ = 2 sector and vanish in many high-symmetry systems. Note that we do not apply per-component normalization or weighting: equivariance permits only blockwise scalings that are constant on each SO(3) irreducible subspace. Any differential weighting inside the ℓ = 2 block (e.g., different weights for m = ±2, ±1, 0 or per–Cartesian rescaling) would break rotational equivariance.
Beyond absolute and relative magnitudes, values of first-derivative MAEs (0.094–0.105 for diagonal and 0.034–0.039 for off-diagonal terms) and KL divergences (0.106-0.161 for diagonal terms) confirm that the model reproduces not only overall intensities but also the line shapes and peak positions. The close agreement between the mean and median values across all metrics further indicates that performance is uniform across diverse systems, without being skewed by outliers. These results demonstrate that TSENN achieves high fidelity in predicting the full dielectric tensor, capturing both the dominant diagonal responses and the more subtle anisotropic features with accuracy and physical consistency.
To visualize the predictions, we stratified the test set based on MAE values and selected representative materials from each quartile, excluding cubic lattices since their isotropic dielectric response is already well understood. This sampling highlights systems with nontrivial anisotropies [Fig. 4a]. With the accurately predicted imaginary parts, we used K–K relations to obtain the real parts of the dielectric tensors. Since K–K relations are model-independent, they provide a rigorous test of the internal consistency of the predicted spectra. In Fig. 4b, we compare the real parts obtained via K–K relations from the predicted imaginary spectra against the reference real parts computed directly using the Kubo formula. An exemplar monoclinic system in the test set is used (Se4Te2), where, due to symmetry constraints, only four components of the dielectric tensor are nonzero: , , , and , while the off-diagonal components and vanish. As shown in the figure, the reconstructed components exhibit excellent agreement with the Kubo-derived results, demonstrating that both the off-diagonal elements (e.g., ) and the anisotropic diagonal elements (, , ) are faithfully reproduced. The other off-diagonal components, which are not shown, are found to be negligible in keeping with symmetry constraints. This analysis validates not only the predictive accuracy of the imaginary dielectric spectrum but also the physical plausibility and self-consistency of the full complex tensor. These results demonstrate the model’s potential for downstream applications, including photonic materials discovery, symmetry-aware property screening, and the inverse design of materials with tailored optical anisotropy.
Fig. 4. Prediction and reconstruction accuracy for the full complex dielectric tensor.
a Distribution of full-tensor MAE values across the test set (left) and representative spectra obtained by stratified sampling across quartiles (right). From the cumulative kernel-density-estimator (KDE) plot, we randomly selected three systems in each quartile (Q1–Q4), resulting in 12 representative examples that span the full error distribution. In these spectra, the horizontal axis is photon energy and the vertical axis is ε2(ω). Cubic lattices were excluded, as their isotropic spectra are already well studied. For each sampled material, the target and predicted tensor components are shown side by side, with the corresponding MAE reported in each panel. This stratified sampling strategy ensures that both the high- and low-error cases are represented, providing a balanced and unbiased view of the model’s performance across crystal systems and anisotropy strengths. b Real parts of the dielectric tensor components for the monoclinic system Se4Te2. Black curves give the ab initio dielectric spectra based on the IPA using the Kubo formula, while red curves denote spectra reconstructed from the predicted imaginary part via the K–K relation. MAEαβ is reported in each panel, with values ranging from 0.082 to 0.232, demonstrating strong agreement across all non-vanishing components (εxx, εyy, εzz, εxz). Notably, both the off-diagonal element (εxz) and the anisotropic diagonal terms are faithfully recovered.
To visualize the model’s performance and its ability to preserve symmetry across different crystal systems, we randomly selected five materials from the test set, each representing a distinct crystal class. These materials are arranged according to increasing symmetry, from triclinic (minimum symmetry) to cubic (maximum symmetry), see Fig. 5. In the Cartesian tensor representation, the predicted dielectric tensor exhibits symmetry-consistent behavior, correctly reproducing the expected nonzero tensor components in agreement with the ground truth.
Fig. 5. Symmetry preservation across different crystal systems.
Comparison of predicted and target dielectric tensors in the Cartesian and spherical-harmonics basis in five different crystal systems, ordered by increasing symmetry. In the triclinic system, all tensor components are non-vanishing. The monoclinic system retains four non-vanishing components: xx, yy, zz, and xz. The orthorhombic system exhibits anisotropy with xx ≠ yy ≠ zz, while the hexagonal system satisfies xx = yy ≠ zz. Finally, the cubic system represents the highest symmetry with xx = yy = zz. Left panel shows the pairwise comparison under the spherical tensor representation, while the right panel shows the comparison under the Cartesian tensor. Inset in the right panel provides the chemical formula, crystal system, and MAE.
To further confirm symmetry preservation, we applied a symmetry-based masking procedure to the predicted tensor at each photon energy (see Methods). While equivariance enforces rotational symmetry at the representation level, the network is not explicitly given point-group information. In practice, small numerical deviations or approximate symmetries in the input structures can lead to residual off-diagonal terms. The masking procedure ensures that the predicted spectra conform to the exact crystal symmetry across the entire spectral range. These distinct symmetries are also reflected in the spherical-harmonics decomposition. Each crystal system preserves different spherical channels that depend on its symmetry. This feature is observable in the spherical tensor plots of Fig. 5, where the colormap indicates the magnitude of each spherical-harmonic coefficients, providing a compact, symmetry-adapted view of the underlying Cartesian dielectric tensor. The prominent red region in the channel corresponds to a strong isotropic contribution, originating from the trace of the tensor, i.e., . In contrast, strong features in the channel (red or blue in Fig. 5) indicate significant anisotropic contributions from the diagonal components (e.g., ). A detailed breakdown of these contributions can be found in ref. 48. For example, in a hexagonal material, such as Br6Cd2Cs2, a visible peak appears in the channel, highlighted in red and blue in Fig. 5, which reflects the anisotropic nature of the diagonal components due to the symmetry condition (). This illustrates how the spherical-harmonics basis captures not only the symmetry but also the complexity of the directional responses.
As already pointed out, in the spherical tensor representation, the dielectric tensor can be decomposed into ℓ = 0 and ℓ = 2 channels. Since there are no additional irreducible components at this order, the ℓ = 0 channel remains decoupled as it cannot mix with higher-order terms. Improper mixing between the channels could introduce unphysical features in the predicted spectra. However, because both the input crystal structure and the corresponding dielectric tensor are inherently symmetry-consistent, the model preserves the underlying symmetry constraints during training. As a result, it outputs only the physically allowed tensor components, maintaining the correct form of the spherical decomposition. This symmetry-preserving behavior ensures that no spurious mixing occurs between channels and that the reconstructed Cartesian tensor contains only the symmetry-permitted elements. Consequently, the model captures the intrinsic symmetry of materials without violating crystallographic constraints.
Discussion
A major strength of our TSENN model lies in its equivariant architecture, which preserves the symmetries of the input crystal structure. We validate this feature of TSENN through a symmetry-mask-based analysis of the predicted dielectric tensors, particularly in the triclinic systems where all components, including the off-diagonal terms, are expected to be nonzero. As a result, the model effectively captures directional couplings (e.g., x → z, x → y) that are often missed or underestimated by the GNN in the absence of the equivariance architecture. Compared to first-principles methods, TSENN offers an efficient data-driven approach, enabling rapid screening of materials with pronounced anisotropic optical responses. In addition to maintaining a low MAE, the model respects both physical and symmetry constraints. For instance, all predicted spectra decay toward zero as the photon energy approaches 30 eV, a behavior consistent with the asymptotic vanishing of interband transitions at high frequencies. This trend ensures compliance with the f-sum rule, which dictates that the integral over the optical conductivity (or dielectric function) must satisfy a conserved quantity related to the total number of electrons. Such behavior enables the evaluation of derived quantities governed by the f-sum rule, including the generalized quantum weights52. For respecting symmetry constraints, the bipartite channel design of our model ensures that the trace (ℓ = 0) as well as the traceless tensor part (ℓ = 2) remains strictly separated, as validated in SI Section 2.3. This separation reflects the irreducible decomposition of a symmetric rank-2 tensor under SO(3), where the scalar ℓ = 0 channel is invariant under rotations and the ℓ = 2 channel transforms as a rank-2 tensor. As a result, the model faithfully captures the input symmetry: for example, in hexagonal systems, rotational invariance within the plane perpendicular to the c-axis enforces , while allowing to differ. More generally, the model reproduces symmetry-enforced relations across various crystal classes without imposing external symmetry priors.
To further investigate the model’s treatment of symmetry, we systematically examined the importance of the input structure in satisfying crystal symmetry constraints. Since the model is not explicitly trained on space or point-group information, and it is not symmetry-restricted in its architecture, we conducted a series of controlled tests to assess its behavior (Fig. 6). Specifically, we selected a cubic material absent from the training set and applied uniaxial strain along the c-axis, systematically varying the strain from 0 to 5% in increments of 1%, thereby transforming the structure into a tetragonal system, as illustrated in Fig. 6a. From symmetry considerations, the unstrained cubic structure enforces the constraint on the predicted dielectric tensor , while the strained tetragonal structure satisfies . At zero strain, the predicted and components are identical, resulting in a vanishing frequency-averaged anisotropy, , between them, which reflects the preservation of cubic symmetry. As the strain increases, an increasing difference between and emerges, consistent with the onset of anisotropy expected for a tetragonal system. By computing the frequency-averaged anisotropy components across all strained structures, we observe a highly linear dependence on the strain magnitude, with a R2 = 0.999. We also performed additional ab initio calculations to verify that the predicted trends are physically consistent (see SI, Section 5). These results demonstrate that the model faithfully captures the progressive symmetry breaking induced by strain while preserving the underlying physical constraints.
Fig. 6. Symmetry breaking under strain: tensile and shear validation.
Validation of the model’s symmetry-preserving behavior under tensile and shear strain. a Uniaxial strain along the c-axis is applied to a cubic material, which is not included in the training set, varying from 0 to 5% in 1% increments, thereby transforming the structure into a tetragonal system. At zero strain, cubic symmetry imposes , resulting in a vanishing mean anisotropy that grows between and . As strain increases, the mean anisotropy grows linearly with strain, yielding R2 = 0.999. b Shear strain applied to an orthorhombic material by varying the lattice angle β from 90° to 100°. In the undistorted case (β = 90°), the off-diagonal dielectric tensor element vanishes. As β deviates from 90°, a finite emerges, and its mean magnitude (averaged over the photon energy grid) increases with the shear angle. In the small-strain regime (< 10°), the dependence is nearly linear (R2 = 0.995), while a sinusoidal fit provides a better fit (R2 = 1.000), consistent with the expected angle dependence. These results confirm that the model captures the onset of symmetry breaking with high fidelity and reproduces the correct physical response across both perturbative and large-angle regimes.
We also evaluated the model’s response to shear strain perturbations by modifying the lattice angles, as shown in Fig. 6b. Starting from an orthorhombic material (a ≠ b ≠ c, α = β = γ = 90°), we introduced a monoclinic distortion by incrementally varying β from 90° to 100° in 2° steps. The essential distinction between the orthorhombic and monoclinic systems is that in the latter, β deviates from 90°, allowing the emergence of a nonzero component in the dielectric tensor. When no perturbation is applied (β = 90°), vanishes, yielding a zero mean magnitude . As the angular deviation increases, a finite progressively emerges, producing a nonzero . We quantified this emergent behavior as a function of the shear angle and observed an almost perfect linear relationship in the small-strain regime (R2 = 0.995). As expected, the emergence of the off-diagonal component is directly coupled to the applied β-angle distortion; consequently, a sine fit provides an even better description, with R2 = 1.0. At larger distortions, the dependence smoothly evolves toward a sinusoidal form, reflecting higher-order effects of the angular perturbation. Ab initio calculations confirm this crossover behavior: linear scaling in the perturbative regime and sinusoidal dependence at larger angles (see SI Section 5). The model thus reproduces both regimes with high fidelity, demonstrating that it not only respects the symmetry of the input structure but also quantitatively matches the physical response to both small and large shear distortions.
While the primary focus of this work is on predicting the imaginary part of the dielectric tensor, we also demonstrate that the real part can be accurately reconstructed by using K–K relations. This yields a complete complex dielectric tensor, which in turn enables the derivation of a broad range of optical response functions containing rich information, such as the direct extraction of optical bandgaps (see SI Section 5). This predictive capability is valuable for designing materials for photovoltaics, sensors, and nonlinear optical applications. Triclinic crystals, for example, with both and components, offer multidirectional optical control, which is desirable for heterostructures and chiral photonic devices.
An important challenge revealed by our analysis is that predictive errors nearly double in the low-frequency regime (ω < ωp), where the dielectric response is dominated by rich, material-specific absorption features with strong oscillator strengths. Here, ωp denotes the plasma frequency, which marks the crossover between collective electronic oscillations and the asymptotic high-frequency regime. The low frequency regime is both physically meaningful—since it encodes the distinct fingerprints of each compound—and difficult to capture accurately. One might consider introducing an energy-resolved weighting scheme during training to place more emphasis on this region; however, such an approach would require prior knowledge of ωp for each material and would introduce material-dependent biases at inference time, thereby compromising generalizability. To prevent this, we chose to retain an energy-independent training loss and instead provide a detailed frequency-resolved benchmarking in SI Section 4, which compares the error behavior above and below the plasma frequency.
It is appropriate to acknowledge the intrinsic limitations of the underlying ab initio data, which is based on the IPA rather than the RPA, so that the training of our model neglects local-field effects. Although the RPA provides some improvement by narrowing the discrepancy between theory and experiment, the computationally far more demanding Bethe–Salpeter approach53 is needed to capture excitonic effects properly. The Kohn–Sham DFT-based eigenvalues systematically underestimate bandgaps that can be corrected through more expensive GW calculations. Despite these limitations, TSENN, trained on a relatively modest dataset of approximately 103 materials, achieves strong data efficiency in learning high-rank tensorial responses. Recent work shows that machine-learning models trained on IPA spectra can be fine-tuned or transferred to RPA-level data to incorporate local-field effects32. In addition to these physical approximations, the dataset itself is dominated by materials with weak optical anisotropy, leading to intrinsically small off-diagonal components of the dielectric tensor and an imbalance in the distribution of tensor magnitudes. To more accurately assess model performance on genuinely anisotropic systems, we curated an auxiliary dataset composed exclusively of materials with finite off-diagonal responses. This benchmark not only targets applications that depend on off-diagonal tensor elements, but also reveals that our model attains substantially improved accuracy on these components (see SI Section 8). Building on this enhanced capability to predict off-diagonal optical responses, we further demonstrate the potential applicability of our framework by considering the magneto-optical Kerr effect and magnetic circular dichroism; see SI Section 9.
In summary, TSENN advances the prediction of complex frequency-dependent tensorial optical properties by accurately resolving full-tensor components across various symmetry classes, providing a practical tool for accelerating materials discovery for next-generation optoelectronic technologies. Our approach is inherently general as it proceeds by decomposing Cartesian tensors into spherical-harmonics components, and it would thus be naturally extendable to treat higher-rank tensors such as the piezoelectric and elastic tensors through the inclusion of higher-order ℓ channels. Furthermore, it holds promise for modeling sequential higher-order properties such as the shift current54 and second harmonic generation (see SI Section 10), making it a versatile framework for learning symmetry-constrained anisotropic physical phenomena.
Methods
Ab initio calculations
DFT calculations were performed using OpenMX37–40, which employs numerical pseudo-atomic orbitals as the basis set to expand the one-particle Kohn–Sham wave functions. The high-throughput calculations involved three main steps: generating input files, submitting jobs, and monitoring their progress. The input files were generated using the ASE package, which provides a predefined lookup table for optimized basis selection. However, this table has not been updated since 2013, leading to missing entries for some elements with heavy f-orbital character. We used the PBE-GGA functional in all calculations. We use a custom workflow for job submission and monitoring, implemented with Atomate55. Self-consistent field (SCF) convergence was ensured to an accuracy of 3.67 × 10−8 Hartree or 10−6 eV. All other settings used the default OpenMX parameters. The SCF k-point grid was generated using the pymatgen automatic density function with a target density of 2000 k-points per atom (kppa). This method selects Γ-centered meshes for hexagonal and face-centered lattices, and Monkhorst–Pack grids for all other crystal systems, ensuring consistent and resolution-adaptive Brillouin-zone sampling.
After achieving SCF convergence with OpenMX, we extracted the Hamiltonian, overlap matrices, and position operators to evaluate the tensorial relative permittivity. The dielectric tensor was computed within the IPA using the Kubo formula:
| 8 |
In this work, we denote the real and imaginary parts of the as and , respectively. Here ℏωnm = En−Em denotes the interband energy difference, fnm = f(En)−f(Em) is the difference of Fermi–Dirac occupations, and is the Berry connection, defined as with ∂α = ∂/∂kα the derivative with respect to the Cartesian momentum coordinate α ∈ {x, y, z}, where the Hamiltonian and position operator are projected onto a localized basis and the Brillouin-zone integrals are evaluated efficiently56–60. A uniform k-point mesh was constructed with reciprocal-space resolution of 0.05 Å−1 along each reciprocal lattice vector, ensuring consistent Brillouin-zone sampling across all materials. The smearing parameter η, introduced to improve numerical convergence of the optical response, was fixed at 0.05 eV in all calculations. This value corresponds to typical carrier relaxation times (~10 fs) in semiconductors61–63. This procedure is equivalent to constructing a Wannier-based tight-binding representation of the Hamiltonian, which provides a localized framework for efficient evaluation of the dielectric response. The present calculations are performed within the IPA, i.e., based on Kohn–Sham eigenvalues and wave functions without including quasiparticle (GW) corrections or electron–hole interaction (excitonic) effects64. Consequently, discrepancies between the computed dielectric spectra and the corresponding experimental results are expected.
Machine learning
The spectra were computed with a resolution of 0.01 eV, with a total of 3001 points. Including all points in the training process would significantly increase computational cost. To make training more efficient, we performed downsampling by interpolating the data along the photon energy grid to 300 points, which still captures the spectral response reasonably. We used an 80:10:10 split for training, validation, and testing datasets. Given our focus on crystal symmetries, we implemented balanced loading by analyzing the distribution of crystal systems across all splits to ensure even representation, see SI Section 7 for details.
Group theoretical analysis reveals five distinct cases based on crystalline symmetries. This enables us to construct a mask M that identifies the symmetry-allowed, non-vanishing components of the tensorial spectra. The mask is derived by initializing a 3 × 3 matrix of ones, 13 × 3, and applying the set of rotation operations associated with the space group symmetry of the crystal. The final mask is computed by averaging over the transformed matrices:
| 9 |
For example, in a monoclinic system, this process yields the following mask:
| 10 |
This mask highlights the non-vanishing tensor components, such as xx, yy, zz, and xz, as dictated by the symmetry constraints. To identify any symmetry violations, we define the residual mask as
| 11 |
where ϵ = 10−6 serves as the detection threshold. We apply this residual mask across the photon energy grid to verify the input tensors before training and the predicted tensors after training. Our results confirm that all tensors respect the imposed symmetry constraints, demonstrating that the model maintains equivariance throughout training without symmetry breaking.
We performed a comprehensive hyperparameter search using Optuna65 to optimize the performance of the model. The multiplicity of irreducible representations m used in the convolution layers was varied from 16 to 64, with 32 selected as the optimal value. The number of pointwise convolution layers L was tuned between 1 and 4, with the final model using 4. The embedding feature vector length was explored from 16 to 160, with 128 yielding the best performance. Dropout probability was tested at 0, 0.1, 0.2, and 0.4 with 0.4 selected as the optimal choice. Batch sizes from 1 to 16 were systematically evaluated, and a size of 8 was selected as the best tradeoff between computational efficiency and training stability. Smaller batches (e.g., size 1) led to unstable optimization due to insufficient statistical averaging per update. For very large batches (>32), the anisotropy was found to become less pronounced compared to smaller ones, likely because the optimization tends to get trapped in local minima and averages out sharper anisotropic signals through stochastic smoothing. The hyperparameters of the AdamW optimizer were carefully tuned. Learning rates between 5 × 10−4 and 5 × 10−2 were explored, with 1 × 10−2 achieving the lowest validation loss. To further enhance convergence, we applied PyTorch’s CosineAnnealingWarmRestarts scheduler, which gradually reduces the learning rate according to a cosine decay schedule. The initial number of iterations before the first restart was set to T0 = 10, with subsequent settings kept at their default values. This smooth, non-monotonic decay enables larger updates during the early training stages and finer adjustments at later stages, helping the model escape shallow minima and converge more robustly66.
To contrast the computational efficiency, we benchmarked our workflow against a representative ab initio calculation. For this purpose, we recalculated the dielectric tensor of Ag3AsS4 (Materials Project ID: mp-9538, 16 atoms per unit cell). The DFT self-consistent calculation converged in 119 s using a hybrid MPI/OpenMP setup on 2 AMD EPYC 7763 CPUs (256 threads in total) with default workflow settings. The subsequent dielectric tensor evaluation, carried out with Brillouin-zone integration parallelized over 128 processes, required 22 min 9 s. Including workflow orchestration overhead, the full pipeline–from job launch to data storage–took 26 min 32 s. By contrast, the GNN-based workflow was orders of magnitude faster: graph construction required 6.96 ± 0.01 ms, forward inference 695.20 ± 0.01 ms, and K–K relations took 570.04 ± 0.01 ms, giving a total runtime of 1.18 s on a single NVIDIA RTX 4090 GPU. In other words, our approach reduces a half-hour DFT calculation to just over 1 s.
Supplementary information
Acknowledgements
The authors are grateful to Alexander J. Heilman for insightful discussions on equivariant transformations. The authors also thank Weiyi Gong for helpful conversations on training strategies and for sharing expertise in equivariant graph neural networks. T.-W.H., A.B., and Q.Y. acknowledge support from the U.S. National Science Foundation under the Expanding Capacity in Quantum Information Science and Engineering (ExpandQISE) program (Award No. NSF-OMA-2329067). Z.F. acknowledges support from the U.S. Department of Energy, Office of Science, Basic Energy Sciences, under Award No. DE-SC0023664. This research utilized resources provided by the National Energy Research Scientific Computing Center (NERSC), a U.S. Department of Energy Office of Science User Facility operated under Contract No. DE-AC02-05CH11231, through NERSC Award No. BES-ERCAP0029544. Additional computational support was provided by the Northeastern University Discovery Cluster. This work benefited from the resources provided by the Massachusetts Technology Collaborative (Award No. MTC-22032) and Northeastern University’s Quantum Materials and Sensing Institute (QMSI).
Author contributions
T.-W.H., Z.F., and Q.Y. conceived the study. T.-W.H. performed the calculations and trained the models. Z.F. assisted with data analysis. A.B. and Q.Y. supervised the project. The manuscript was written with contributions from all authors, and all authors approved the final version.
Peer review
Peer review information
Nature Communications thanks Can Ataca, Erich Runge, Rui Zu, and the other anonymous reviewer(s) for their contribution to the peer review of this work. A peer review file is available.
Data availability
All datasets and optimized model weights used in this study are openly available at https://github.com/qmatyanlab/TSENN. The archived release is available on Zenodo67. The repository also includes reproducible Jupyter notebooks demonstrating data usage and reproducing the figures presented in this work.
Code availability
The third-party code OPENMX used in this study is publicly available at https://www.openmx-square.org. The custom workflows developed to compute the dielectric functions are accessible at https://github.com/qmatyanlab/OpenMX-workflowand were implemented using the JULIA programming language (https://julialang.org).
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Contributor Information
Ting-Wei Hsu, Email: hsu.ting@northeastern.edu.
Qimin Yan, Email: q.yan@northeastern.edu.
Supplementary information
The online version contains supplementary material available at 10.1038/s41467-026-69159-9.
References
- 1.Fox, M. Optical Properties of Solids (Oxford University Press, 2010).
- 2.Tanner, D. B. Optical Effects in Solids (Cambridge University Press, 2019).
- 3.Lucarini, V., Saarinen, J. J., Peiponen, K.-E. & Vartiainen, E. M. Kramers-Kronig Relations in Optical Materials Research Vol. 110 of Springer Series in Optical Sciences (Springer, 2005).
- 4.Slavich, A. S. et al. Exploring van Der Waals materials with high anisotropy: geometrical and optical approaches. Light Sci. Appl.13, 68 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Rufangura, P. & Sabah, C. Design and characterization of a dual-band perfect metamaterial absorber for solar cell applications. J. Alloys Compd.671, 43–50 (2016). [Google Scholar]
- 6.Bogaerts, W. et al. Programmable photonic circuits. Nature586, 207–216 (2020). [DOI] [PubMed] [Google Scholar]
- 7.Hannappel, T. et al. Integration of multijunction absorbers and catalysts for efficient solar-driven artificial leaf structures: a physical and materials science perspective. Sol. RRL8, 2301047 (2024). [Google Scholar]
- 8.Marpaung, D., Yao, J. & Capmany, J. Integrated microwave photonics. Nat. Photonics13, 80–90 (2019). [Google Scholar]
- 9.Xu, B. et al. Optical signatures of multifold fermions in the chiral topological semimetal CoSi. Proc. Natl. Acad. Sci. USA117, 27104–27110 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Nagaosa, N., Morimoto, T. & Tokura, Y. Transport, magnetic and optical properties of Weyl materials. Nat. Rev. Mater.5, 621–636 (2020). [Google Scholar]
- 11.Wang, Z. et al. Chiral molecular magnet superstructures with light control. Nano Lett.25, 2502–2508 (2025). [DOI] [PubMed] [Google Scholar]
- 12.Liu, Y. et al. Van der Waals heterostructures and devices. Nat. Rev. Mater.1, 16042 (2016). [Google Scholar]
- 13.Li, Z. et al. An anisotropic van der Waals dielectric for symmetry engineering in functionalized heterointerfaces. Nat. Commun.14, 5568 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.He, J. et al. 2D van der Waals heterostructures: processing, optical properties and applications in ultrafast photonics. Mater. Horiz.7, 2903–2921 (2020). [Google Scholar]
- 15.Tielrooij, K.-J. et al. Out-of-plane heat transfer in van der Waals stacks through electron–hyperbolic phonon coupling. Nat. Nanotechnol.13, 41–46 (2018). [DOI] [PubMed] [Google Scholar]
- 16.Zhao, S. et al. In-plane anisotropic electronics based on low-symmetry 2D materials: progress and prospects. Nanoscale Adv.2, 109–139 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Yan, K., Saxton, A., Qian, X., Qian, X. & Ji, S. A space group symmetry informed network for O(3) equivariant crystal tensor prediction. Proc. 41st Int. Conf. Mach. Learn. (ICML, 2024).
- 18.Kong, S. et al. Density of states prediction for materials discovery via contrastive learning from probabilistic embeddings. Nat. Commun.13, 949 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Fang, Z. & Yan, Q. Towards accurate prediction of configurational disorder properties in materials using graph neural networks. npj Comput. Mater.10, 91 (2024). [Google Scholar]
- 20.Fang, Z. & Yan, Q. Leveraging persistent homology features for accurate defect formation energy predictions via graph neural networks. Chem. Mater.37, 1531–1540 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Geiger, M. & Smidt, T. e3nn: Euclidean Neural Networks. Preprint at https://arxiv.org/abs/2207.09453 (2022).
- 22.Thomas, N. et al. Tensor field networks: rotation- and translation-equivariant neural networks for 3D point clouds. Preprint at https://arxiv.org/abs/1802.08219 (2018).
- 23.Cohen, T. S. & Welling, M. Group equivariant convolutional networks. Proc. 33rd Int. Conf. Mach. Learn. (ICML, 2016).
- 24.Batzner, S. et al. E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials. Nat. Commun.13, 2453 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Gong, X. et al. General framework for E(3)-equivariant neural network representation of density functional theory Hamiltonian. Nat. Commun.14, 2848 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Zhong, Y., Yu, H., Su, M., Gong, X. & Xiang, H. Transferable equivariant graph neural networks for the Hamiltonians of molecules and solids. npj Comput. Mater.9, 182 (2023). [Google Scholar]
- 27.Ibrahim, A. & Ataca, C. Prediction of frequency-dependent optical spectrum for solid materials: a multioutput and multifidelity machine learning approach. ACS Appl. Mater. Interfaces16, 41145–41156 (2024). [DOI] [PubMed] [Google Scholar]
- 28.Fung, V., Ganesh, P. & Sumpter, B. G. Physically informed machine learning prediction of electronic density of states. Chem. Mater.34, 4848–4855 (2022). [Google Scholar]
- 29.Chen, Z. et al. Direct prediction of phonon density of states with Euclidean neural networks. Adv. Sci.8, 2004214 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Hung, N. T., Okabe, R., Chotrattanapituk, A. & Li, M. Universal ensemble-embedding graph neural network for direct prediction of optical spectra from crystal structures. Adv. Mater.36, 2409175 (2024). [DOI] [PubMed] [Google Scholar]
- 31.Grunert, M., Großmann, M. & Runge, E. Deep learning of spectra: predicting the dielectric function of semiconductors. Phys. Rev. Mater.8, L122201 (2024). [Google Scholar]
- 32.Grunert, M., Großmann, M. & Runge, E. Machine learning climbs the Jacob’s ladder of optoelectronic properties. Nat. Commun.16, 8142 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Heilman, A., Schlesinger, C. & Yan, Q. Equivariant graph neural networks for prediction of tensor material properties of crystals. Preprint at https://arxiv.org/abs/2406.03563 (2024).
- 34.Dong, L., Zhang, X., Yang, Z., Shen, L. & Lu, Y. Accurate piezoelectric tensor prediction with equivariant attention tensor graph neural network. npj Comput. Mater.11, 63 (2025). [Google Scholar]
- 35.Lou, Y. & Ganose, A. M. Discovery of highly anisotropic dielectric crystals with equivariant graph neural networks. Faraday Discuss.256, 255–274 (2025). [DOI] [PubMed] [Google Scholar]
- 36.Mao, Z., Li, W. & Tan, J. Dielectric tensor prediction for inorganic materials using latent information from preferred potential. npj Comput. Mater.10, 265 (2024). [Google Scholar]
- 37.Ozaki, T. Variationally optimized atomic orbitals for large-scale electronic structures. Phys. Rev. B67, 155108 (2003). [Google Scholar]
- 38.Ozaki, T. & Kino, H. Numerical atomic basis orbitals from H to Kr. Phys. Rev. B69, 195113 (2004). [Google Scholar]
- 39.Ozaki, T. & Kino, H. Efficient projector expansion for the ab initio LCAO method. Phys. Rev. B72, 045121 (2005). [Google Scholar]
- 40.Lejaeghere, K. et al. Reproducibility in density functional theory calculations of solids. Science351, aad3000 (2016). [DOI] [PubMed] [Google Scholar]
- 41.Jain, A. et al. Commentary: The Materials Project: a materials genome approach to accelerating materials innovation. APL Mater.1, 011002 (2013). [Google Scholar]
- 42.Kang, Y., Youn, Y., Han, S., Park, J. & Oh, C.-S. Computational screening of indirect-gap semiconductors for potential photovoltaic absorbers. Chem. Mater.31, 4072–4080 (2019). [Google Scholar]
- 43.Yang, R. X., Horton, M. K., Munro, J. & Persson, K. A. High-throughput optical absorption spectra for inorganic semiconductors. Preprint at https://arxiv.org/abs/2209.02918 (2022).
- 44.Setyawan, W. & Curtarolo, S. High-throughput electronic band structure calculations: challenges and tools. Comput. Mater. Sci.49, 299–312 (2010). [Google Scholar]
- 45.Bir, G. L. & Pikus, G. E.Symmetry and Strain-Induced Effects in Semiconductors Ch. 5, 295–337 (Wiley, 1974).
- 46.Boyd, R. W. Nonlinear Optics 3rd edn. Ch. 1, 1–67 (Academic Press, 2008).
- 47.Powell, R. C. Symmetry, Group Theory, and the Physical Properties of Crystals Vol. 824 of Lecture Notes in Physics Ch. 3, 57–78 (Springer, 2010).
- 48.Mochizuki, E. Spherical harmonic decomposition of an elastic tensor. Geophys. J. Int.93, 521–526 (1988). [Google Scholar]
- 49.Okabe, R. et al. Virtual node graph neural network for full phonon prediction. Nat. Comput. Sci.4, 522–531 (2024). [DOI] [PubMed]
- 50.Xie, T. & Grossman, J. C. Crystal graph convolutional neural networks for an accurate and interpretable prediction of material properties. Phys. Rev. Lett.120, 145301 (2018). [DOI] [PubMed] [Google Scholar]
- 51.Kendall, A., Gal, Y. & Cipolla, R. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR, 2018).
- 52.Onishi, Y. & Fu, L. Fundamental bound on topological gap. Phys. Rev. X14, 011052 (2024). [Google Scholar]
- 53.Onida, G., Reining, L. & Rubio, A. Electronic excitations: density-functional versus many-body Green’s-function approaches. Rev. Mod. Phys.74, 601–659 (2002). [Google Scholar]
- 54.Fang, Z., Hsu, T.-W. & Yan, Q. Dataset of tensorial optical and transport properties of materials from the wannier function method. Sci. Data12, 1092 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55.Mathew, K. et al. Atomate: a high-level interface to generate, execute, and analyze computational materials science workflows. Comput. Mater. Sci.139, 140–152 (2017). [Google Scholar]
- 56.Wang, C. et al. First-principles calculation of optical responses based on nonorthogonal localized orbitals. N. J. Phys.21, 093001 (2019). [Google Scholar]
- 57.Wang, C. et al. First-principles calculation of nonlinear optical responses by wannier interpolation. Phys. Rev. B96, 115147 (2017). [Google Scholar]
- 58.Sipe, J. E. & Ghahramani, E. Nonlinear optical response of semiconductors in the independent-particle approximation. Phys. Rev. B48, 11705–11722 (1993). [DOI] [PubMed] [Google Scholar]
- 59.Marzari, N. & Vanderbilt, D. Maximally localized generalized wannier functions for composite energy bands. Phys. Rev. B56, 12847–12865 (1997). [Google Scholar]
- 60.Marzari, N., Mostofi, A. A., Yates, J. R., Souza, I. & Vanderbilt, D. Maximally localized Wannier functions: theory and applications. Rev. Mod. Phys.84, 1419–1475 (2012). [Google Scholar]
- 61.Sernelius, B. E. Intraband relaxation time in highly excited semiconductors. Phys. Rev. B43, 7136–7144 (1991). [DOI] [PubMed] [Google Scholar]
- 62.Sivadas, N., Okamoto, S. & Xiao, D. Gate-controllable magneto-optic Kerr effect in layered collinear antiferromagnets. Phys. Rev. Lett.117, 267203 (2016). [DOI] [PubMed] [Google Scholar]
- 63.Zhou, Z., Cao, G., Liu, J. & Liu, H. High-Throughput prediction of the carrier relaxation time via data-driven descriptor. npj Comput. Mater.6, 149 (2020). [Google Scholar]
- 64.Aga, G. S., Singh, P. & Geffe, C. A. First-principles study of the quasi-particle and excitonic effect in o-BC2N: the GW + BSE study. Adv. Condens. Matter Phys.2023, 7808434 (2023). [Google Scholar]
- 65.Akiba, T., Sano, S., Yanase, T., Ohta, T. & Koyama, M. Optuna: a next-generation hyperparameter optimization framework. Proc. 25th ACM SIGKDD Int. Conf. Knowl. Discov. Data Min. (KDD, 2019).
- 66.Loshchilov, I. & Hutter, F. SGDR: Stochastic Gradient Descent with Warm Restarts. Int. Conf. Learn. Represent. (ICLR, 2017).
- 67.Hsu, T.-W., Fang, Z., Bansil, A. & Yan, Q. qmatyanlab/TSENN (code repository). 10.5281/zenodo.18203976 (2026).
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
All datasets and optimized model weights used in this study are openly available at https://github.com/qmatyanlab/TSENN. The archived release is available on Zenodo67. The repository also includes reproducible Jupyter notebooks demonstrating data usage and reproducing the figures presented in this work.
The third-party code OPENMX used in this study is publicly available at https://www.openmx-square.org. The custom workflows developed to compute the dielectric functions are accessible at https://github.com/qmatyanlab/OpenMX-workflowand were implemented using the JULIA programming language (https://julialang.org).






