Hostname: page-component-74656f9884-kv2lp Total loading time: 0 Render date: 2026-11-05T15:05:37.922Z Has data issue: false hasContentIssue false

SM-Net: Learning a continuous spectral manifold from multiple stellar libraries

Published online by Cambridge University Press:  15 October 2026

Omar Anwar*
Affiliation:
ICRAR, The University of Western Australia , Australia
Aaron Robotham
Affiliation:
ICRAR, The University of Western Australia , Australia
Luca Cortese
Affiliation:
ICRAR, The University of Western Australia , Australia
Kevin Vinsen
Affiliation:
ICRAR, The University of Western Australia , Australia
*
Corresponding author: Omar Anwar; Email: o_anwar@ymail.com
Rights & Permissions [Opens in a new window]

Abstract

We present SM-Net, a machine learning model that learns a continuous spectral manifold from multiple high-resolution stellar libraries. SM-Net generates stellar spectra directly from fundamental stellar parameters such as effective temperature ($T_{\mathrm{eff}}$), surface gravity (${\log}\, g \equiv {\log}_{10}[g/(\mathrm{cm}\,\mathrm{s}{^{-2}})]$), and metallicity ($\log Z \equiv \log_{10}\kern-1.5pt(Z/Z_{\odot})$), trained on a combined grid derived from PHOENIX–Husser, C3K–Conroy, OB–PoWR, and TMAP–Werner libraries. By combining their respective parameter spaces to achieve broader coverage, we construct an extended composite dataset that spans a significantly larger, more continuous region of stellar parameter space than any single library. The unified grid spans $T_{\mathrm{eff}} = 2{\,}000$–$190{\,}000{\,}$K, $\log g = -1$ to 9, and $\log Z = -4$ to 1 dex, with spectra covering the wavelength range 3 000–100 000 Å. Within the combined parameter space, SM-Net provides smooth interpolation across heterogeneous library boundaries. Outside the sampled domain, it can generate numerically smooth exploratory predictions, although these extrapolated spectra are not directly validated against reference models. Zero or masked flux values are treated as unknowns rather than physical zeros, allowing the network to infer missing regions using correlations learned from neighbouring grid points. When evaluated over the unique, unaugmented splits of 3 526 training and 11 509 test spectra, SM-Net achieves mean per-spectrum mean-squared error values of $1.03\times10^{-5}$ and $1.97\times10^{-5}$, respectively, in the transformed log1p-scaled flux representation. These results confirm that the learned manifold reproduces the spectra with high accuracy while remaining robust to incomplete or masked data. Inference throughput exceeds $14\,000$ spectra per second on a single graphics processing unit. This throughput enables rapid exploration of the stellar parameter space and efficient construction of synthetic stellar population models. To promote accessibility and community use, we make the SM-Net model publicly available, along with an interactive dashboard that enables real-time spectral generation and visualisation through a web interface. Users can explore the influence of $T_{\mathrm{eff}}$, $\log g$, and $\log Z$ interactively, thereby demonstrating a deployed research model ready for exploration. SM-Net is a fast, robust, and flexible data-driven complement to traditional stellar population synthesis libraries, providing a pathway for next-generation stellar population modelling.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press on behalf of Astronomical Society of Australia
Figure 0

Figure 1. Top-level schematic of the SM-Net model architecture. The four stellar spectral libraries PHOENIX–Husser, C3K–Conroy, OB–PoWR, and TMAP–Werner are first combined into a unified multi-library dataset spanning a broad region of stellar parameter space. SM-Net is then trained on this dataset to generate spectra in two stages: a global parameter-to-coarse-spectrum prediction, followed by a convolutional refinement to produce the final high-fidelity output. The resulting model is accessed through an interactive dashboard that enables real-time spectral generation and exploration.

Figure 1

Table 1. Parameter ranges of the stellar spectral libraries used in this work. Surface gravity is reported as log⁡g≡log10[g/(cms−2)]$\log g \equiv \log_{10}\kern-1.5pt[g/(\mathrm{cm}\,\mathrm{s}{^{-2}})]$, and metallicity as log⁡Z≡log10(Z/Z⊙)$\log Z \equiv \log_{10}\kern-1.5pt(Z/Z_\odot)$. N is the number of unique spectra in each source library; SM-Net is trained on the combined dataset and can generate spectra continuously within the sampled parameter bounds, but only predictions within regions supported by the training manifold should be regarded as interpolation.Table 1 long description.

Figure 2

Figure 2. Figure 2 long description.Two-dimensional projections of the combined library coverage in log10(Teff/K)$\log_{10}\kern-1.5pt(T_{\text{eff}}/\text{K})$–log⁡g$\log g$, log10(Teff/K)$\log_{10}\kern-1.5pt(T_{\text{eff}}/\text{K})$–log⁡Z$\log Z$, and log⁡Z$\log Z$–log⁡g$\log g$ parameter space. Each point represents at least one spectrum in the combined dataset after collapsing over the third parameter axis. Colours indicate the contributing library or combination of libraries at each projected location.

Figure 3

Table 2. Illustrative assignment of spectra to train/validation/test sets based on the 2–2 parameter split pattern. Ticks indicate membership; boundary cases appear in both the training and validation sets.Table 2 long description.

Figure 4

Figure 3. Distribution of zero/unknown flux values across the dataset of combined grids. Counts are aggregated over log⁡Z$\log Z$ values.

Figure 5

Table 3. Number of spectra in each dataset split before and after augmentation based on spectral uniqueness. The test set was not augmented for model evaluation.Table 3 long description.

Figure 6

Figure 4. The replication counts for the entire dataset based on spectral dissimilarity, aggregated over log⁡Z$\log Z$.

Figure 7

Figure 5. Figure 5 long description.Block-level architecture of SM-Net, showing the two-stage mapping from stellar parameters to a high-resolution synthetic spectrum. The Lookup Block takes the input parameters (effective temperature, surface gravity, and metallicity) and produces a coarse, low-frequency spectral estimate through a sequence of embedding, fully connected, and projection layers. This coarse spectrum, together with the physical parameters and positional encodings, is passed to the Refinement Block, where convolutional feature extractors and residual convolutional blocks learn wavelength-dependent corrections. The refinement output is added to the coarse spectrum to produce the final high-resolution stellar spectrum.

Figure 8

Figure 6. Training and validation losses throughout the training process. Red lines indicate the epochs at which the learning rate and the batch size were reduced, both by a factor of 0.8.

Figure 9

Figure 7. Mean and median residuals between matched PHOENIX–Husser and C3K spectra as a function of log10(λ/$\log_{10}\kern-1.5pt(\lambda/$Å). Residuals are defined as Husser −$-$ C3K and are computed in the log1p-scaled flux representation across 783 matched (Teff,log⁡g,log⁡Z)$(T_{\text{eff}}, \log g, \log Z)$ grid points. The shaded region indicates the ±1σ$\pm 1\sigma$ dispersion of the residuals.

Figure 10

Figure 8. Mean squared difference between matched PHOENIX–Husser and C3K spectra across the common parameter grid, shown in the log10(Teff/K)$\log_{10}\kern-1.5pt(T_{\text{eff}}/\text{K})$–log⁡g$\log g$ plane. The vertical axis shows log⁡g$\log g$. Values are computed in the log1p-scaled flux representation and averaged over log⁡Z$\log Z$.

Figure 11

Figure 9. Comparison between C3K and PHOENIX–Husser spectra for Teff=2500K$T_{\text{eff}} = 2\,500\,\text{K}$, log⁡g=4.0$\log g = 4.0$, and log⁡Z=−1.5$\log Z = -1.5$. The upper panel shows the two matched library spectra, while the lower panel shows the residual, defined as Husser −$-$ C3K. The residual highlights the underlying differences in the physics between the two libraries.

Figure 12

Figure 10. Figure 10 long description.Distribution of MSE prediction errors across log10(Teff/K)$\log_{10}\kern-1.5pt(T_{\text{eff}}/\text{K})$. High MSE occurs predominantly at low temperatures, with consistent trends across splits, indicating robust generalisation.

Figure 13

Figure 11. Distribution of MSE across log⁡g$\log g$. Elevated errors occur in validation and test sets near the lower boundary of OB–PoWR (around 2.20), indicating inconsistencies in the underlying physics of the three overlapping libraries in this region.

Figure 14

Figure 12. Figure 12 long description.Distribution of MSE across log⁡Z$\log Z$. Errors are broadly uniform, with particularly low mean and median MSEs at log⁡Z=−4$\log Z=-4$ and −3$-3$, which originate from regions governed by a single library and therefore contain no cross-library inconsistencies.

Figure 15

Table 4. Summary of SM-Net reconstruction quality across the combined multi-library dataset. For each split, N is the number of unique spectra in the original, unaugmented split, mean MSE is the mean per-spectrum mean squared error, and RMSflux$\text{RMS}_{\text{flux}}$ is the corresponding root-mean-square flux deviation. Percentiles and minimum/maximum values are computed over the per-spectrum MSE distribution.Table 4 long description.

Figure 16

Figure 13. Figure 13 long description.Distribution of MSE across log10(Teff/K)$\log_{10}\kern-1.5pt(T_{\text{eff}}/\text{K})$ for the four libraries.

Figure 17

Figure 14. Figure 14 long description.Distribution of MSE across log⁡g$\log g$ for the four libraries.

Figure 18

Figure 15. Distribution of MSE across log⁡Z$\log Z$ for the two libraries with metallicities.

Figure 19

Figure 16. Test-set colour–colour distributions in the (g−i)AB$(\,g-i)_{\text{AB}}$ versus (J−Ks)AB$(J-K_s)_{\text{AB}}$ plane for the retained reference spectra (left) and the corresponding SM-Net predictions (right). The Sun-like validation point is overlaid for reference. The solid red, dashed blue, and dotted black contours enclose, respectively, the highest-density regions containing 50%, 80%, and 95% of each smoothed distribution. The orange marker denotes the Sun-like validation point at Teff=5800$T_{\text{eff}}=5\,800\,$K, log⁡g=4.5$\log g=4.5$, and log⁡Z=0$\log Z=0$.

Figure 20

Figure 17. Figure 17 long description.Synthetic broad-band colour residuals across the full test set as a function of effective temperature. Residuals are defined as Δ(X−Y)=(X−Y)reference−(X−Y)SM-Net$\Delta(X-Y)=(X-Y)_{\text{reference}}-(X-Y)_{\text{SM-Net}}$. The faint points show individual test spectra, while the solid line shows the running median and the shaded region denotes the 16–84 percentile interval. The median absolute residual and 90th-percentile absolute residual are reported in each panel.

Figure 21

Figure 18. Synthetic colour differences, defined as PHOENIX–Husser −$-$ C3K, at the 783 exact matched stellar-parameter labels.

Figure 22

Figure 19. Synthetic colour differences, defined as PHOENIX–Husser −$-$ SM-Net, at the same 783 matched stellar-parameter labels.

Figure 23

Table 5. Typical and upper-tail synthetic-colour differences at the 783 exact PHOENIX–Husser/C3K matched labels. Differences are defined relative to PHOENIX–Husser. The median absolute difference characterises the typical offset, while the 90th percentile characterises the upper tail. All values are in magnitudes.Table 5 long description.

Figure 24

Figure 20. Figure 20 long description.Comparison of line-strength indices from the reference test spectra and the corresponding SM-Net reconstructions for Hβ$\beta$, Fe5270, Fe5335, Ca4227, CN1, and TiO2. Atomic indices are given as pseudo-equivalent widths in Å, and CN1 and TiO2 in magnitudes. Points are coloured by log10(Teff/K)$\log_{10}\kern-1.5pt(T_{\text{eff}}/\text{K})$, with the dashed line indicating one-to-one agreement. Each panel reports r, R2$R^2$, the median absolute residual, and the 90th percentile of the absolute residual.

Figure 25

Figure 21. Predicted spectrum for the closest Sun-like grid point, compared with the corresponding PHOENIX–Husser reference spectrum. The upper panel shows the spectra in log1p-scaled flux space, and the lower panel shows the residual, defined as reference −$-$ SM-Net.

Figure 26

Figure 22. High-fidelity SM-Net reconstruction for Teff=6900K$T_{\text{eff}} = 6\,900\,\text{K}$, log⁡g=4.0$\log g = 4.0$, and log⁡Z=−2.0$\log Z = -2.0$, shown against the corresponding PHOENIX–Husser reference spectrum.

Figure 27

Figure 23. High-quality SM-Net reconstruction for Teff=13000K$T_{\text{eff}} = 13{\,}000\,\text{K}$, log⁡g=4.5$\log g = 4.5$, and log⁡Z=−1.5$\log Z = -1.5$, compared with the corresponding C3K reference spectrum.

Figure 28

Figure 24. Example of a low-quality reconstruction at Teff=2200K$T_{\text{eff}} = 2\,200\,\text{K}$, log⁡g=3.0$\log g = 3.0$, and log⁡Z=−2.1$\log Z = -2.1$, shown against the corresponding C3K reference spectrum.

Figure 29

Figure 25. Example of a low-quality reconstruction for Teff=22000K$T_{\text{eff}} = 22\,000\,\text{K}$, log⁡g=2.4$\log g = 2.4$, and log⁡Z=−1.0$\log Z = -1.0$, compared against the corresponding OB–PoWR reference spectrum.

Figure 30

Figure 26. Example of SM-Net reconstructing the missing high-wavelength flux for Teff=60000K$T_{\text{eff}} = 60{\,}000\,\text{K}$ and log⁡g=6.5$\log g = 6.5$, compared with the corresponding TMAP reference spectrum.

Figure 31

Figure 27. Example visualisation of a three-dimensional parameter grid produced by the SM-Net interface from a user-uploaded CSV file. Colours indicate the stellar library, or combination of libraries, contributing coverage in each region of the grid, as defined by the training dataset.

Figure 32

Figure A1. Figure A1 long description.Most negative reference Hβ$\beta$ case from each input library. The reference and SM-Net spectra are shown together with the blue and red pseudo-continuum passbands, the Hβ$\beta$ feature band, and the corresponding fitted pseudo-continua. The strongly negative PHOENIX–Husser and C3K indices arise where much of the feature-band flux lies above the fitted pseudo-continuum.

Figure 33

Figure A2. Representative non-extreme Hβ$\beta$ reconstructions from each input library. Cases were selected to have a meaningful Hβ$\beta$ feature and good agreement in both the measured index and the local feature shape. The OB–PoWR example illustrates the comparatively greater difficulty of reconstructing this library.