alphaFeedback

WorksPhysics and Astronomy

Reading Between the Lines: How Much Information Remains After Fitting a Stellar Spectrum?

AI contributions
  • GitHub Copilot
  • GPT-5.5 · bare
View details
Ancillary data
1 code link, 2 data links
View

Abstract

What if we could model 100% of a stellar spectrum? Modern surveys infer stellar properties by comparing observed spectra with synthetic models, yet even the best fits leave structured residuals. We analyse 7087 GALAH survey spectra and ask what information remains after subtracting each best-fitting model. Across 13927 pixels, 4.5% of residuals exceed 3σ3σ, far above 0.3% expected from Gaussian noise. We map the amplitude, significance, sign, and recurrence of these residuals and identify 380 significant regions. Comparison with stellar atlases, line lists, diffuse interstellar bands, and sky diagnostics links most regions to plausible causes: 62% are candidate line-strength or line-profile mismatches, while others trace missing or unidentified lines, interstellar absorption, sky emission, or broader reduction structure. We then train data-driven models on the residual spectra themselves. Residual-only models recover TeffT_\mathrm{eff} to 80-150 K and [Fe/H] to 0.059-0.086 dex, depending on sample quality, and retain weaker, partly indirect information about elemental abundances. Extinction-related coefficients recover the strongest known interstellar features, whereas chromospheric activity leaves plausible Balmer-line signatures but is not recovered robustly out of sample. Most strikingly, the residual flux in 6% of wavelength pixels that were synthesised but excluded from the GALAH DR4 optimisation recovers stellar labels almost as well as the full residual spectrum and better than the remaining 94% alone. Residuals are therefore not merely imperfections to discard: they map missing line data, incomplete physics, unfitted astrophysical components, and observational systematics. Reading between the lines turns one spectroscopist's trash into another one's treasure, and provides a practical route towards extracting more of the information already present in stellar spectra.

Introduction

Stellar spectra are among the most information-rich observables in astrophysics. They encode atmospheric parameters, elemental abundances, line-formation physics, stellar activity, and non-stellar absorption. Large spectroscopic surveys use this information to reconstruct the chemical and dynamical evolution of the Milky Way (Freeman & Bland-Hawthorn 2002; Bland-Hawthorn & Gerhard 2016) and other galaxies (van de Ven et al. 2025). High-precision spectra are also central to exoplanet science, where planetary signals must be separated from stellar, telluric, and instrumental variability (e.g. Fischer et al. 2016). Their scientific return therefore depends not only on the number of observed stars, but also on how completely the information in each spectrum is extracted.

This raises a deliberately provocative question: what if we could fit 100% of a stellar spectrum? In practice, every stellar spectroscopic analysis leaves residuals between the observed spectrum and the best-fitting model. These residuals are often treated as a quality-control diagnostic or as a nuisance to be masked, but they may also encode astrophysical, observational, and modelling information that the adopted spectral model has not captured. This is not only a conceptual issue: in the Galactic Archaeology with HERMES (GALAH) survey, one of the large-scale stellar spectroscopic surveys of the Milky Way, machine-learning interpolation made it computationally feasible to increase the fraction of the spectrum used for stellar parameter and abundance fitting from typically ∼20%\sim20\% in Data Release 3 (DR3, Buder et al. 2021) to 87% in Data Release 4 (DR4, Buder et al. 2025). However, even this modern synthesis could only use up to 94% of the spectrum outside the typically neglected telluric O2\mathrm{O}_2 Fraunhofer A-band region, because some observed spectral regions still could not be described reliably by the model Buder et al. 2025, Sec. 4.3.2). The central premise of this work is that the residual spectrum itself is a useful scientific object: it records where and how the model differs from the photons.

The modelling of stellar spectra has advanced substantially over the last decade Nissen & Gustafsson 2018; Jofré et al. 2019. Modern survey pipelines increasingly infer many stellar labels simultaneously across broad wavelength ranges (see Table 1 of Ness 2026), either through direct comparison with synthetic spectra or through flexible data-driven and emulator-based approaches (e.g. Ness et al. 2015; Casey et al. 2016; Ting et al. 2019). Data-driven methods now support spectral generation, label inference, calibration, denoising, component separation, and residual analysis (see Ness 2026, for a review). Their learned spectral derivatives can recover known line sensitivities and reveal previously unrecognised abundance-sensitive features Buder et al. 2018.

ModelNλN_{\lambda}N⋆N_{\star}T/g/FeT/g/\mathrm{Fe}[X/Fe]AKSA_{\mathrm{K_S}}log⁡RHK′\log R'_{\mathrm{HK}}
M1139277087×–––
M1*139273826×–––
M2139273826××––
M3139277087×–×–
M413927226×––×
M57937087×–––
M6131347087×–––

Table 1. Overview of the wavelength pixels, samples, and labels used by the residual models. See § 2.2 and § 4 for details on samples/models. Note: Each model uses a certain number of pixels (NλN_{\lambda}) for a total of N⋆N_{\star} spectra with input labels TeffT_{\mathrm{eff}}, log⁡g\log g, and [Fe/H] (abbreviated as T/g/FeT/g/\mathrm{Fe}). [X/Fe] denotes the additional use of abundances of elements Na, Mg, Mn, and Ba. Crosses indicate labels included in each model. Model M5 uses only pixels excluded from the GALAH DR4 optimisation, while M6 uses only pixels included in it.

Despite this progress, no survey analysis reproduces every observed pixel at the level implied by its uncertainties. Residuals can reflect uncertain atomic or molecular data, missing blends or hyperfine structure Heiter et al. 2021, continuum normalisation Jofré et al. 2017, fixed abundance or isotopic assumptions (e.g. Coelho et al. 2007; Yong et al. 2004; Masseron et al. 2021), incomplete stellar physics Amarsi et al. 2018; Masseron et al. 2021; Lind & Amarsi 2024; Bergemann & Hoppe 2025, activity Lisogorskyi et al. 2019; Spina et al. 2020; Wilson & Casey 2023, or Nordlander et al. 2024, and interstellar, telluric, sky, or instrumental contamination (Saydjari et al. 2023; Casey et al. 2026). Unresolved multiplicity introduces a further contribution that we bracket out of this single-star audit (El-Badry et al. 2018; Merle 2024). Such mismatches can nevertheless reveal usable information: C2C_2 and CNCN features initially considered inaccessible to GALAH [31] were first identified in carbon-enhanced stars (Čotar et al. 2019) and subsequently enabled C and N measurements for a much broader sample (Buder et al. 2025).

An important limitation is the completeness and accuracy of the underlying atomic and molecular data. Modern spectroscopic analyses rely on line lists that combine laboratory measurements, theoretical calculations, and astrophysical adjustments, but many transitions still lack experimentally validated wavelengths, oscillator strengths, isotopic shifts, hyperfine structure, or broadening parameters (Heiter et al. 2015). As survey data quality improves, systematic residuals around known transitions, unidentified absorption features, and line-profile mismatches can therefore serve as observational diagnostics of where improved laboratory spectroscopy, molecular data, and atomic-structure calculations are most urgently needed.

Residual and component-separation methods have already extracted extinction, diffuse interstellar bands, sky emission, and instrumental structure from large stellar surveys, including LAMOST, GALAH, and APOGEE [52] (Buder et al. 2018; Vogrinčič et al. 2023; McKinnon et al. 2024). More general frameworks such as MADGICS explicitly separate stellar, dust, sky, instrumental, and residual components (Saydjari et al. 2023). These studies demonstrate that spectral mismatches can contain astrophysically useful information from several distinct sources. Here, we take a complementary approach: after subtracting the best-fitting physical synthesis, we retain the residuals in the stellar rest frame and ask what they reveal about fitted stellar labels, abundance patterns, extinction, activity, and model limitations. Our aim is to diagnose and guide improvements to the physical model, rather than to replace it.

GALAH is particularly well suited to such an audit because it provides observed spectra, best-fitting synthetic spectra, flux uncertainties, stellar parameters, elemental abundances, extinction estimates, quality information, and residual-based diagnostic products for a large, homogeneous optical data set [31] (Buder et al. 2025). We focus first on a representative three-night GALAH sample. This keeps the analysis compact and transparent while still sampling ordinary survey targets across the broad GALAH magnitude range and 2-degree field of view (Martell et al. 2017), rather than selecting stars a posteriori by stellar labels or residual behaviour. A full survey-wide residual model is left to future work. We also use external activity indicators to test whether residuals encode spectral variability that is not part of the single-star photospheric synthesis.

Using the GALAH data and samples introduced in § 2, we address the broader question of what information remains in stellar-spectrum residuals through two complementary analyses. We first audit the significance, sign, recurrence, and plausible origins of the residual structure (§ 3), and then use data-driven models to determine which fitted and unfitted properties can still be recovered from the residual spectra alone (§ 4). These analyses address four specific questions, discussed further in § 5:

  1. How significant, systematic, and recurrent are the remaining residuals relative to the observational uncertainties, and how do they separate into features that are over-predicted or under-predicted by the synthesis?

  1. Which residual features can be associated with plausible stellar, interstellar, sky, instrumental, reduction, or line data origins, and which of these provide actionable targets for improving the spectral modelling?

  1. To what extent do residual spectra retain information about properties already included in the synthesis fit, such as stellar parameters and elemental abundances, as well as properties not explicitly fitted, such as interstellar extinction and chromospheric activity?

  1. Where within the spectrum is this information concentrated, and in particular, how much remains in wavelength regions excluded from the original GALAH DR4 optimisation?

Residual modelling is used here as a diagnostic rather than a replacement for physical synthesis: the aim is to identify where improved line data, line profiles, physical models, reduction procedures, additional labels, or complementary data-driven corrections would recover information that the current model leaves behind.

Data

For each spectrum, we use the observed continuum-normalised flux, its uncertainty, the best-fitting synthetic flux, and reference labels or diagnostics. § 2.1 describes these GALAH DR4 products, while § 2.2 defines the parent three-night sample and the baseline, abundance, and activity subsamples.

GALAH DR4 spectra and labels

We use data products from GALAH DR4 (Buder et al. 2025), based on spectra observed with the HERMES spectrograph (Barden et al. 2010; Brzeski et al. 2011; Heijmans et al. 2012; Farrell et al. 2014; Sheinis et al. 2015) on the Anglo-Australian Telescope as part of the GALAH survey [31]. HERMES records high-resolution optical spectra with a nominal resolution of 28000 in four non-contiguous wavelength channels, covering the blue (4713–4903 Å), green (5648–5873 Å), red (6478–6737 Å), and near-infrared (7585–7887 Å) arms for up to 400 fibres of the 2dF position system (Lewis et al. 2002; Miszalski et al. 2006). GALAH DR4 combines observations from the main GALAH survey with K2-HERMES, TESS-HERMES, cluster, halo, and other targeted HERMES programs. We return to the specific target selection of the representative sample in § 2.2.

The reduced 1D spectra are produced with the HERMES reduction pipeline of Kos et al. (2017), updated for GALAH DR4. This pipeline performs the extraction, wavelength calibration, sky subtraction, telluric correction, barycentric correction, uncertainty estimation, and line-spread-function measurement for each spectrum. GALAH DR4 provides the observed flux, the associated flux uncertainty, and the best-fitting synthetic spectrum inferred by the DR4 analysis and used to normalise the observation, as exemplified in Figure 1, where we visualise residuals in three different intensities based on their significance with respect to the reported flux uncertainty.

Example GALAH DR4 spectrum of the red giant 2MASS J22084160+0607286

Figure 1. Example GALAH DR4 spectrum of the red giant 2MASS J22084160+0607286 (sobject_id 170710003201361). Black and blue lines show the observed continuum-normalised spectrum and the best-fitting DR4 synthesis, respectively, across the four HERMES CCD arms. Shaded regions show the residual flux, with darker shades indicating larger significance relative to the reported flux uncertainty. Grey bands mark wavelength regions excluded from the DR4 optimisation.

In using these products, we retain the GALAH DR4 masking of the strongly telluric-contaminated region 7585–7680 Å. A reliable treatment of this wavelength range requires dedicated telluric modelling alongside the stellar model, as demonstrated by Saydjari et al. (2023) and Casey et al. (2026), whereas our aim is to assess residual structure in the DR4 analysis products rather than to introduce an additional telluric-modelling step. The GALAH DR4 stellar labels were inferred from a hybrid spectrum-synthesis workflow. The synthetic spectra were computed with Spectroscopy Made Easy (SME; Valenti & Piskunov 1996; Piskunov & Valenti 2017) and 1D MARCS model atmospheres (Gustafsson et al. (2008)), using the GALAH line list developed from the compilation of Heiter et al. (2021). To make the analysis feasible across the full GALAH wavelength range, GALAH DR4 trains neural-network interpolators on synthetic spectra in local regions of the TeffT_{\mathrm{eff}}, log⁡g\log g, and [Fe/H] parameter space. These interpolators enable the simultaneous optimisation of global stellar parameters and elemental abundances across most of the observed wavelength range, including broad molecular C2_2 and CN absorption features. The optimisation was done using up to 94% of the pixels, with several pixels being excluded by default after initial tests indicated persistently poor model–data agreement (for more details see § 4.3.2 of Buder et al. 2025). The 6% of pixels that were synthesised but not used for optimisation are particularly relevant here and are shown as grey regions in Figure 1.

The synthetic spectra include 1D non-LTE line formation for atomic lines where available. In GALAH DR4, this treatment is implemented through departure-coefficient grids from the BALDER/Multi3D framework and associated model atoms for H, Li, C, N, O, Na, Mg, Al, Si, K, Ca, Mn, Fe, and Ba (e.g. Amarsi et al. 2020, 2022). Other atomic transitions and molecular features are treated in 1D LTE. This distinction is important for the interpretation of residuals: although GALAH DR4 models the broad C2_2 and CN absorption that affected earlier analyses, these molecular features do not yet have the same non-LTE treatment as the listed atomic transitions.

We use the GALAH DR4 labels as reference quantities against which residual structure can be tested. The fitted stellar labels include the global stellar parameters TeffT_{\mathrm{eff}}, log⁡g\log g, [Fe/H], microturbulence velocity vmicv_{\mathrm{mic}}, projected rotational velocity vsin⁡iv \sin i, and radial velocity vradv_{\mathrm{rad}} as well as elemental abundances for Li, C, N, O, Na, Mg, Al, Si, K, Ca, Sc, Ti, V, Cr, Mn, Fe, Co, Ni, Cu, Zn, Rb, Sr, Y, Zr, Mo, Ru, Ba, La, Ce, Nd, Sm, and Eu. We use these associated abundance flags to distinguish reliable detections from upper limits, non-detections, and measurements affected by optimisation or boundary issues.

GALAH DR4 reports spectra on their native pixel grids, with individual wavelength solutions for each observed spectrum. Because the data-driven models used in this work require all spectra to be represented on a shared wavelength grid, we interpolate the observed fluxes, best-fitting synthetic fluxes, and flux uncertainties onto a common wavelength grid for each HERMES arm. The construction of the common grid is described in § 2.2.

We also make use of auxiliary quantities reported by GALAH DR4. These include the extinction-related quantity AKsA_{K_{\mathrm{s}}} estimated via the Rayleigh-Jeans Color Excess method (Majewski et al. 2011), as reported by Buder et al. (2025). This property is not fitted by the spectral synthesis, but it provides a useful reference label for testing whether residual spectra contain information associated with line-of-sight dust and interstellar absorption. GALAH DR4 also reports Gaussian fits to residuals at the expected positions of interstellar K I and three diffuse interstellar bands (see Sec. 6.1.3 Buder et al. 2025), as well as measurements of emission signals in the Balmer lines (see Sec. 6.1.4 Buder et al. 2025). These are diagnostic products of the residual spectra and are not included in the stellar synthetic spectra used in the DR4 analysis.

Parent sample and analysis samples

We select 7627 unique stars observed in 22 nominal GALAH fields over 10–12 July 2017, with no repeat observations. The pointings comprise three bright fields (9 <V/mag<< V/\mathrm{mag} < 12), 18 main fields (12 <V/mag<< V/\mathrm{mag} < 14), and one faint field (9 <V/mag<< V/\mathrm{mag} < 14.3). Because targets were randomly selected within the standard field magnitude limits rather than by stellar labels or residual behaviour, this provides a compact but representative pilot sample. We derive a baseline sample and more restrictive abundance and activity subsamples below. The baseline sample supports the general residual audit and global label experiments, the more restrictive abundance sample increases sensitivity to chemical abundance correlations, and the activity sample tests whether residuals retain information about an independently measured property that was not fitted by the GALAH synthesis.

For all analysis samples, we adopt a common residual representation on shared wavelength grids defined separately for each HERMES arm. We define each grid using the largest starting wavelength, the median wavelength dispersion, and the smallest final wavelength among the selected spectra. This gives common wavelength ranges of

4719.0299..0.0460..4893.8808 A˚,4719.0299..0.0460..4893.8808\ \text{\AA},
5655.5298..0.0547..5863.0182 A˚,5655.5298..0.0547..5863.0182\ \text{\AA},
6486.0104..0.0631..6726.4572 A˚,6486.0104..0.0631..6726.4572\ \text{\AA},

and

7689.1261..0.0735..7874.3127 A˚7689.1261..0.0735..7874.3127\ \text{\AA}

for the blue, green, red, and near-infrared arms, respectively. We linearly interpolate the observed flux, best-fitting synthetic flux, and flux uncertainty onto these grids before constructing the residual matrix.

We define the residual spectrum as the difference between the observed and best-fitting synthetic flux,

Δfλ=fλ,obs−fλ,model,(1)\Delta f_{\lambda} = f_{\lambda,\mathrm{obs}} - f_{\lambda,\mathrm{model}}, \tag*{(1)}

and use the reported flux uncertainties σfλ\sigma_{f_{\lambda}} to calculate a residual significance,

sλ=∣Δfλ∣σfλ,(2)s_{\lambda} = \frac{\lvert\Delta f_{\lambda}\rvert}{\sigma_{f_{\lambda}}}, \tag*{(2)}

and to construct inverse-variance weights,

wλ=σfλ−2.(3)w_{\lambda} = \sigma_{f_{\lambda}}^{-2}. \tag*{(3)}

After requiring finite interpolated fluxes and uncertainties across the common wavelength grid, the final matrix contains 7087 spectra and 13927 wavelength pixels. This residual matrix forms the input to the data-driven models analysed in the later sections.

We construct the residual models listed in Table 1 from different samples, labels, and wavelength subsets. Model M1 provides the baseline test using TeffT_{\mathrm{eff}}, log⁡g\log g, and [Fe/H]; subsequent models add abundance, extinction, or activity labels, or restrict the wavelength coverage. All models are formally introduced later in § 4.

Baseline Sample

We require a converged DR4 solution (flag_sp < 2048), χsp2<2\chi^2_{\mathrm{sp}} < 2, finite AKSA_{\mathrm{K_S}}, and signal-to-noise ratios snr_px_ccd > 10 in all four CCDs. We retain spectra with emission-line or binary flags because they test whether non-stellar or poorly modelled structure is recovered. These criteria leave 7087 unique spectra with median signal-to-noise ratios of 29, 42, 55, and 50 across the four CCDs.

The distribution of this sample in the Kiel diagram is shown in Figure 2a. The sample covers the main stellar types observed by GALAH, spanning approximately 3600 < TeffT_{\mathrm{eff}}/K < 8000, 0.5 < log⁡(g/cm s−2)\log(g/\mathrm{cm\,s^{-2}}) < 5.0, and −3.0 < [Fe/H] < 0.75 (but mainly −0.5 < [Fe/H] < 0.1). The vast majority of stars are observed at low extinction, AKS=0.02−0.02+0.09A_{\mathrm{K_S}} = 0.02^{+0.09}_{-0.02} mag up to a maximum of AKS≤0.37A_{\mathrm{K_S}} \leq0.37 mag.

Stellar-label distributions of the three analysis samples in the $T_{\mathrm{eff}}$–$\log g$ plane

Figure 2. Stellar-label distributions of the three analysis samples in the TeffT_{\mathrm{eff}}–log⁡g\log g plane. Left: the 7087-star baseline sample used for Models M1, M3, M5, and M6, colour-coded by [Fe/H]. Middle: the 3826-star abundance sample used for Models M1* and M2, coloured by the percentage of pixels with residual significance above 3σ3\sigma; excluded hot stars and fast rotators are shown as grey crosses, and the inset shows the selected stars in the [Mg/Fe]–[Fe/H] plane. Right: the 226-star activity sample used for Model M4, coloured by the activity indicator log⁡RHK′\log R'_{\mathrm{HK}} from Zhang et al. (2024) with the log⁡RHK′\log R'_{\mathrm{HK}} distribution in an inset.

Abundance Sample

Because elements with similar nucleosynthetic origins exhibit correlated abundance patterns (e.g. Kobayashi et al. (2020)), we use Mg, Mn, Na, and Ba as representatives of core-collapse-supernova, Type-Ia-supernova, odd-Z, and asymptotic-giant-branch enrichment, respectively. We require unflagged abundances for all four elements (flag_x_fe = 0), νsin⁡i<15 km s−1\nu\sin i < 15\ \mathrm{km\,s^{-1}}, and Teff<6500T_{\mathrm{eff}} < 6500 K. The rotation and temperature cuts concentrate absorption into fewer pixels and increases sensitivity to weak residual correlations. These criteria leave 3826 spectra in the abundance sample, shown in Figure 2b; excluded hot stars and fast rotators are shown in grey. The fraction of pixels with residual significance above 3σ3\sigma is generally largest among the coolest and most metal-rich stars. Visual inspection of cool stars with particularly large residual fractions shows that much of this additional structure is associated with imperfectly modelled molecular absorption, including CN, C2_2, and TiO features.

We do not include a separate rapid neutron-capture process label, because Eu is not modelled sufficiently reliably in GALAH DR4 (Kane et al. (2026)). Sm is detected too infrequently, and adding Nd would reduce the sample from 3826 to 2663 spectra while providing a pattern similar to the selected neutron-capture element Ba.

Activity Sample

To test whether residual spectra retain chromospheric information, we use the photosphere-corrected activity index log⁡RHK′\log R'_{\mathrm{HK}}, based on excess emission in the Ca II H and K cores (e.g. Wilson (1978); Noyes et al. (1984)). Although these lines lie outside the GALAH wavelength range, the LAMOST catalogue of Zhang et al. (2024) overlaps with 34 672 GALAH DR4 entries2 and with 226 stars in our baseline sample. Its G- and K-type dwarfs span 4800 < TeffT_{\mathrm{eff}}/K < 6250, log⁡(g/cm s−2)>3.8\log(g/\mathrm{cm\,s^{-2}}) > 3.8, and −5.0 < log⁡RHK′\log R'_{\mathrm{HK}} < −3.9 (see Figure 2c), covering the range in which Spina et al. (2020) found activity-dependent equivalent widths and abundances. To limit the influence of extreme positive sky-subtraction residuals, we cap continuum-normalised fluxes at 1.2 and assign the original flux value as their uncertainty before calculating Δf\Delta f.

A systematic audit of spectrum residuals

We first test whether the residuals are consistent with random noise or contain coherent structure across the baseline sample. We quantify their significance and sign as functions of wavelength before constructing a reproducible catalogue of their widths, recurrence, and plausible origins.

Where do significant residuals occur?

Negative residuals, Δfλ<0\Delta f_\lambda< 0, indicate that the observed absorption is deeper than the synthesis, whereas positive residuals indicate shallower absorption. This distinction helps separate missing or underestimated opacity from excessive absorption, line-core filling, normalisation, or reduction effects.

As a first global check, we compare the distribution of all residual significances in the baseline sample to the expectation for Gaussian noise. For normally distributed residuals with correctly estimated uncertainties, 68.3% and 99.7% of residuals should lie within 1σ1\sigma and 3σ3\sigma, respectively. Across the 99 million residual pixels in the baseline sample, only 63.4% and 95.3% lie within these limits. This corresponds to 4.6 million residual pixels outside 3σ3\sigma, compared to only 0.3 million expected for Gaussian noise. The residual field is therefore not fully described by the quoted observational uncertainties and random noise alone.

We next ask where these residuals occur in wavelength. Figure 3 summarises three complementary diagnostics across the four GALAH wavelength arms. The top panels show the median signed residual across the 7087 spectra at each wavelength pixel, together with the 16th and 84th percentiles. Most pixels have median residuals close to zero, but several regions show coherent offsets in flux space. Among the 14 strongest negative median residuals, with Δfλ<−0.1\Delta f_\lambda< -0.1, 11 occur in the blue arm, including the strongest features near 4748, 4771, and 4861 Å (Hβ). The remaining strong negative features occur near 5694 Å, Hα at 6563 Å, and the region near 7800 Å. Strong positive median residuals are slightly less frequent; the eight clearest positive features (Δfλ>0.1\Delta f_\lambda> 0.1) occur near 4745, 4792, 4888, 4891, 5668, 5754, 5831, and 7872 Å. In addition to these narrow features, we identify broader low-amplitude structures, including a wave-like residual pattern in CCD3 and broader residual behaviour in CCD1. These broad structures are less obvious in absolute flux, but may still be significant relative to the uncertainties. The middle panels of Figure 3 show the median residual significance, that is, the median across the 7087 stars of sλ=∣Δfλ∣/σfλs_\lambda= \lvert\Delta f_\lambda\rvert/\sigma_{f_\lambda} as a function of wavelength. This view highlights wavelength regions where the residuals are systematically large compared to the flux uncertainties, even when the median signed residual is modest. The cumulative distribution of per-wavelength median significances confirms that most wavelength pixels are well behaved: 87.8 % of pixels have a median residual significance below 1σ1\sigma, and 97.3 % below 2σ2\sigma. The remaining tail, however, is precisely the important part for this audit. It identifies wavelength regions where the mismatch between observations and synthesis is not driven by a few individual outliers, but recurs across a substantial fraction of the baseline sample.

Residual statistics across the four GALAH wavelength bands

Figure 3. Residual statistics across the four GALAH wavelength bands. From top to bottom, the panels show the distribution of residual flux, the typical residual significance, and the fraction of the 7087 spectra for which the observed flux is significantly shallower (blue) or deeper (red) than the synthesis at more than 3σ3\sigma. Columns correspond to the four HERMES CCD arms. An enlarged version of the middle panels can be found in our repository.

The typical level of residual significance also differs between the GALAH wavelength arms. CCD1 and CCD3 show slightly higher median residual significances than CCD2 and CCD4. This could indicate that the spectral synthesis performs differently across the arms, that the flux uncertainties are calibrated differently, or that some arms contain more difficult stellar, telluric, or reduction features. We therefore do not define significant residual regions using a single absolute threshold across all arms. Instead, in the next subsection, we identify outlying residual features relative to the median-significance distribution within each arm. Specifically, we use the 75th percentile of the median residual significance in each CCD as an arm-dependent reference level, corresponding to median significances of 0.92, 0.71, 0.87, and 0.67 for CCDs 1–4, respectively. These levels are shown as dashed horizontal lines in the middle panels of Figure 3. Pixels above these thresholds (highlighted as blue regions) reveal both narrow residual peaks and broader residual structures, including the Hα\alpha region and broad structure around 7715 Å.

Finally, we quantify how often residuals occur with a preferred sign. For each wavelength pixel, we calculate the fraction of the 7087 spectra in which the observed flux is significantly shallower or deeper than the synthesis. The bottom panels of Figure 3 show these signed recurrence fractions for the 3σ3\sigma threshold. Most wavelength pixels have low recurrence fractions in both directions, but several features are significant in the same direction for a large fraction of the sample. We find nine wavelength regions where the observations are significantly shallower than the synthesis for more than 50 % of spectra: 4745, 4792, 4891, 5668, 5754, 5831, 6593, 6713, and 7827 Å. Conversely, we find 18 wavelength regions where the observations are significantly deeper than the synthesis for more than 50 % of spectra: 4731, 4740, 4741, 4748, 4756, 4765, 4771, 4784, 4805, 4809, 4861, 5694, 5754, 5757, 6502, 6563, 6718, and 7800 Å. The Balmer lines are dominated by residuals in which the observed spectra are deeper than the synthesis. Other regions, especially in CCD4, show broader residual structure with lower but noticeable recurrence in both directions, suggesting residual behaviour that may vary with stellar type, observing conditions, or reduction quality. The wave-like pattern in CCD3 is also visible in the signed recurrence diagnostic, although much of it remains below the 3σ3\sigma threshold and is more apparent in the corresponding 1σ1\sigma and 2σ2\sigma panels shown in Figure A2.

Fraction of spectra with observed flux significantly shallower or deeper than the synthesis across the four GALAH wavelength bands

Figure A2. Fraction of spectra with observed flux significantly shallower or deeper than the synthesis at more than 1σ1\sigma (top) and 2σ2\sigma (bottom), shown across the four GALAH wavelength bands. The lower panels reproduce the significance threshold used in the bottom row of Figure 3.

A catalogue of residual peaks and their plausible causes

We convert the wavelength-localised, recurrent residual structure into a reproducible catalogue of candidate regions. The catalogue supports inspection, classification, and future model improvement rather than providing a unique mathematical or physical decomposition.

We identify residual peaks from the median residual-significance spectrum of the baseline sample. We use the median rather than the maximum significance so that the selection is driven by residuals recurring across many stars rather than by individual outliers. The search is performed independently in each GALAH wavelength arm using the FIND_PEAKS function of SCIPY V irtanen et al. (2020). As motivated in Sec. 3.1, we adopt the 75th percentile of the median residual-significance distribution in each arm as an arm-dependent reference level. We additionally require a minimum peak width of 3 pixels and a minimum separation of 6 pixels. These criteria suppress isolated single-pixel artefacts and reduce the subdivision of broad residual structures into multiple closely spaced detections. The resulting peak positions are shown as red dashed lines in the middle panels of Figure 3.

The adopted criteria identify 112, 117, 100, and 51 regions in CCDs 1–4, respectively, for a total of 380. Their exact number necessarily depends on the threshold, width, and separation parameters.

For each region, we create an inspection figure (with examples shown in Figure 4) combines the median logarithmic significance with the fractions of spectra showing significantly deeper or shallower observed flux. Mixed signs can indicate label-dependent behaviour or varying observational conditions, while broad regions are treated cautiously because observed-frame telluric, sky, and reduction features are smeared in the stellar rest frame.

Nine representative GALAH DR4 residual regions, panels A–I

Figure 4. Representative significant residual regions and their adopted classifications. Panels A–I illustrate, respectively, candidate log⁡gf\log gf too high, log⁡gf\log gf too low, Line profile, Insignificant, Skyline, Interstellar, Unknown line, Known missing, and Unclear classifications. Each panel combines the GALAH residual statistics with relevant external diagnostics, including the Solar and Arcturus atlases, GALAH line-list entries, telluric absorption, and sky-emission measurements.

We compare each region with the Solar and Arcturus atlases of Hinkle et al. (2000), including their stellar-line identifications and telluric measurements. We also compare against the GALAH DR4 line list, selecting atomic entries with estimated central depths of DEPTH >> 0.1 for identifying possible contributors and DEPTH >> 0.85 for visualisation (see also Sec. 4.2 of Heiter et al. 2021). This does not constitute a complete list of all possible blends, but includes the transitions expected to be most visible in high-quality Solar and Arcturus spectra. We additionally compare broad or ambiguous regions against the catalogue of diffuse interstellar bands by Vogrinčič et al. (2023) and against sky-emission calibration observations associated with the observations shown in Figure 1.

We assigned each region a preliminary classification as an ordered set of explicit if-else rules with fixed, manually selected thresholds based on wavelength, width, recurrence, residual direction, and proximity to the external diagnostics described above. The thresholds were chosen to encode the physically motivated criteria described below rather than fitted to the final classifications. Broad features coincident with established diffuse interstellar bands or interstellar K I were classified as Interstellar, while features coincident with sky emission were classified as Skyline. Regions showing significant residuals in fewer than 5 % of the spectra were labelled Insignificant.

For the remaining regions, we searched for stellar transitions within one detector pixel of the residual peak. Where the Hinkle et al. (2000) atlas and the GALAH DR4 line list identified the same transition, residuals that were predominantly shallower or deeper than the synthesis were classified as candidate log⁡gf\log gf too high or log⁡gf\log gf too low, respectively. Features present in the atlas but absent from the GALAH DR4 line list were classified as Known missing, while features without a counterpart in either source were classified as Unknown line. Regions with asymmetric, split, or otherwise structured profiles that could not be explained by a simple change in line strength were assigned to Line profile. The Unclear category was retained for blended or ambiguous cases for which no single explanation was sufficiently supported.

We subsequently inspected all 380 regions visually. The preliminary classification was confirmed for 312 regions (82 %), while 68 classifications (18 %) were revised. Most revisions involved blended or conflicting line identifications, Balmer-line or hyperfine-structure residuals, the broad undulating pattern in CCD3, ambiguous skyline coincidences, or cases in which the residual morphology indicated a (profile) mismatch rather than a simple line-strength error.

The final catalogue is dominated by candidate stellar line-

strength mismatches. As shown in the legend of Figure 4, we classify 227 regions as log⁡gf\log gf too high (130 regions) or log⁡gf\log gf too low (94 regions), with a further 13 regions assigned to Line profile. Together, these 236 regions account for 62 % of the catalogue. Another 46 regions correspond to absent or unidentified absorption features, comprising 8 Known missing and 38 Unknown line classifications. We identify 15 Skyline and 12 Interstellar regions, while 19 cases remain Unclear. The remaining 51 regions are classified as Insignificant, most commonly because the apparent peak is significant in only a small fraction of the sample or forms part of broader detector-scale structure.

Figure 4 illustrates the nine adopted classifications. Panels A–C show three forms of stellar-modelling mismatch: a line that is too strong in the synthesis, a line that is too weak, and a structured profile mismatch. Panels D–F show a low-recurrence or detector-scale feature, residual sky emission, and interstellar absorption. Panels G–I illustrate progressively less certain identifications: an unidentified feature, a known stellar log⁡gf\log gf references: K14: Kurucz (2014), K06: Kurucz (2006), CB: Corliss & Bozman (1962a), BHN: Bizzarri et al. (1993), KP: Kurucz & Peytremann (1975), K13: Kurucz (2013), MFW: Martin et al. (1988), GESMCHF: Froese Fischer et al. (2006), 2014ApJS..215...20L: Lawler et al. (2014), 1983MNRAS.204..883B,1989A&A...208..157G: Blackwell et al. (1983); Grevesse et al. (1989), GESB86: Blackwell et al. (1986), 1998PhRvA..57.1652Y: Yan et al. (1998), GESHRL14: Den Hartog et al. (2014), WSL: Wickliffe et al. (1994), KL-astro: GALAH manually adjusted, HLSC: Den Hartog et al. (2003), DLSC: Den Hartog et al. (2006), 2009A&A...497..611M: Meléndez & Barbuy (2009), BWL: O’Brian et al. (1991), 1990JQSRT..43..207C: Chang & Tang (1990), PQWB: Palmeri et al. (2000), WBb: Whaling & Brault (1988), NIST10: Ralchenko et al. (2010a), 2013ApJS..205...11L: Lawler et al. (2013a), 2009JPCRD..38..565W: Wiese & Fuhr (2009), 2015ApJS..220...13L: Lawler et al. (2015), MC: Meggers et al. (1975), RU: Raassen & Uylings [101], BK: Bard & Kock (1994), MRW: May et al. (1974), CBcor: Corliss & Bozman (1962b), GESB82c+BWL: Blackwell et al. (1982); O’Brian et al. (1991), LSCI: Lawler et al. (2009), 2014MNRAS.441.3127R: Ruffoni et al. (2014), FMW: Fuhr et al. (1988), LD-HS: Lawler et al. (2006), LGWSC: Lawler et al. (2013b), K07: Kurucz (2007), K09: Kurucz (2009), SDL: Salih et al. (1983), NIST: Ralchenko et al. (2010b), MULT: Kurucz (1993), K10: Kurucz (2010), 1985A&A...153..109W: Whaling et al. (1985), K08: Kurucz (2008), GC: García & Campos (1988), BK+ BWL: Bard & Kock (1994); O’Brian et al. (1991), GESB86+BWL: Blackwell et al. (1986); O’Brian et al. (1991), BLQS: Biémont et al. (2003), GESB82c: Blackwell et al. (1982), GKOB: Gorshkov et al. (1983), LD: Lawler & Dakin (1989), WLN: Wickliffe et al. (2000), KR|1989ZPhyD..11..287C: Kock & Richter (1968); Carlsson et al. (1989), 2014ApJS..211...20W: Wood et al. (2014), MA-astro: GALAH manually adjusted

line absent from the GALAH DR4 line list, and an ambiguous blend for which several explanations remain plausible.

Fe I accounts for the largest number of candidate line-strength mismatches, including 41 of the 130 log⁡gf\log gf too high regions and 36 of the 94 log⁡gf\log gf too low regions. Recurrent classifications (too high/low) are also found for Ti I (11/10), Ce II (11/9), Cr I (9/5), Si I (13/0), V I (8/0), Ca I (8/0), and Ni I (6/0). These counts are descriptive rather than occurrence rates because the number and strength of available transitions vary substantially between species. The eight Known missing features comprise four Cr I, three Fe I, and one Si I transition.

The classifications represent the most plausible explanation supported by the available diagnostics rather than unique physical identifications. In particular, the categories log⁡gf\log gf too high and log⁡gf\log gf too low indicate the direction in which the synthesised line strength would need to change. The underlying cause could instead involve an unresolved blend, inaccurate abundance, incomplete hyperfine or isotopic structure, wavelength or broadening errors, or deficiencies in the adopted line-formation treatment. The Line profile, Unknown line, and Unclear classes explicitly identify cases for which a simple adjustment of the oscillator strength would be insufficient or poorly justified.

A complete version of Table 2, including the classifications, supporting measurements, and inspection comments for all 380 regions, is provided as a machine-readable FITS table in the public repository3. The corresponding diagnostic figure for every region is also provided in the repository.

Peakλair\lambda_{\mathrm{air}} Åsλs_\lambdaWidth pixelsClassificationShallower DeeperHinkle+(2000) SpeciesNearest DR4 Species & DEPTHlog⁡gf\log gfSky fskyf_{\mathrm{sky}}Comments
3717845.312.96loggf too high+48%; -0%NoneCa I 0.75 (7845.34+0.03Å)-0.08 (K07)Fig. 4A
3577799.965.16loggf too low+0%; -77%Si I (7800.01+0.05Å)Si I 0.30 (7800.00+0.03Å)-2.21 (K07)Fig. 4B
1485700.271.66Line profile+21%; -0%Cu I (5700.24+0.04Å)Cu I 0.92 (5700.27+0.01Å)-2.69 (KR1989ZPhyD..11..287C)Fig. 4C
2966651.020.94Insignificant+0%; -4%NoneNoneFig. 4D
3737853.250.825Skyline+7%; -7%NoneNone11.5Fig. 4E
1905779.641.14Interstellar+0%; -14%Fe I (5779.69+0.04Å)Fe II 0.22 (5779.66+0.01Å)-6.34 (K13)Fig. 4F
784831.411.76Unknown line+0%; -26%NoneNoneFig. 4G
1605714.172.46Known missing+0%; -41%Fe I (5714.15+0.01Å)NoneFig. 4H
564799.852.84Unclear+0%; -46%NoneTi I 0.91 (4799.85+0.00Å)-0.92 (K10)Fig. 4I

Table 2. Example entries from the significant-residual catalogue, including residual significance sλs_\lambda (see Eq. (2)) and sky flux fskyf_{\mathrm{sky}}, selected to illustrate the nine classifications shown in Figure 4. The complete machine-readable catalogue is available in the public repository.

Data-driven extraction of residual information

The audit established that the residuals contain coherent stellar, interstellar, and observational structure. We now ask whether this mismatch is predictive by applying the data-driven machinery of The Cannon to residual rather than observed spectra. We test labels already included in the GALAH fit, unfitted extinction and activity indicators, and the relative information in wavelength pixels used or excluded during the GALAH DR4 optimisation.

Residual modelling and validation with The Cannon

We model the residual spectra using The Cannon (Ness et al. 2015) with an updated version4 of the code by Casey et al. (2016). Unlike its conventional application, in which The Cannon learns the relationship between observed flux and stellar labels, here we train it on the residual flux between each observed spectrum and its best-fitting synthetic spectrum.

For a star nn at pixel λ\lambda, we model each residual Δfnλ\Delta f_{n\lambda} as

Δfnλ=ℓ(n)⋅θλ+ϵnλ,(4)\Delta f_{n\lambda} = \boldsymbol{\ell}(\boldsymbol{n}) \cdot\boldsymbol{\theta}_{\lambda} + \epsilon_{n\lambda}, \tag*{(4)}

where ℓn\boldsymbol{\ell}_n contains the selected labels of star nn, ν(ℓn)\boldsymbol{\nu}(\boldsymbol{\ell}_n) is the corresponding design vector, and ϵnλ\epsilon_{n\lambda} is a noise term drawn from a Gaussian distribution whose variance combines the observational flux uncertainty σnλ\sigma_{n\lambda} and an additional wavelengthdependent model scatter σmodel,λ\sigma_{\mathrm{model},\lambda},

ϵnλ∼N(0,σnλ2+σmodel,λ2).(5)\epsilon_{n\lambda} \sim\mathcal{N}\left(0,\sigma_{n\lambda}^{2}+\sigma_{\mathrm{model},\lambda}^{2}\right). \tag*{(5)}

Throughout this work, we use a quadratic model, for which the design vector contains a constant term, the linear and quadratic terms of each label, and all pairwise cross-terms. The wavelength-dependent coefficient vector θλ\boldsymbol{\theta}_{\lambda} therefore describes how the residual flux changes across label space. For numerical stability, The Cannon internally centres and scales the input labels before constructing the quadratic design vector.

We train the model independently at each wavelength pixel using stars with known reference labels to determine the coefficient vector θλ\boldsymbol{\theta}_{\lambda} and model scatter σmodel,λ\sigma_{\mathrm{model},\lambda}. At each wavelength, the implementation minimises the inverse-variance-weighted χ2\chi^{2} in the training residuals using the L-BFGS-B algorithm implemented in scipy.optimize.minimize, with Powell optimisation as a fallback. The model scatter is subsequently estimated by requiring the median normalised squared residual to be unity. After this training step, we fix these quantities and infer the labels of any residual spectrum by minimising the summed χ2\chi^{2} across all wavelength pixels, equivalent to maximising the Gaussian likelihood. In practice, the code minimises the weighted residual sum of squares using scipy.optimize.least_squares with the Levenberg-Marquardt algorithm (Virtanen et al. 2020).

The models used in this section differ in their training sample, input labels, and wavelength coverage. They test whether residuals retain information about stellar parameters, abundance patterns, extinction, and activity, and whether that information is concentrated in pixels used or masked during the GALAH DR4 optimisation, as already listed in Table 1.

We analysed the robustness of our data-driven extraction through five-fold cross-validation. Using the KFold implementation of sklearn’s model_selection (Pedregosa et al. 2011), we divided each sample into five reproducibly shuffled subsets. For each split, we trained the model on 80 % of the spectra and evaluated it on the remaining 20 %, such that every spectrum was used for testing once.

We quantify the recovery of each label using

Δℓ=ℓCannon−ℓreference.(6)\Delta\ell= \ell_{\mathrm{Cannon}}-\ell_{\mathrm{reference}}. \tag*{(6)}

Figure 5, Figure 7, and Figure 9 show the recovery Δℓ\Delta\ell over ℓ\ell for selected labels.5 For each panel, we also calculated robust standard deviations from the 16th–84th percentile intervals both of the labels and their recovery. We further quantify the recovery spread relative to the sampled label spread by using

Cross-validated recovery differences for selected labels

Figure 5. Cross-validated recovery differences, Δℓ=ℓCannon−ℓreference\Delta\ell= \ell_{\mathrm{Cannon}}-\ell_{\mathrm{reference}}, as a function of the reference labels for Model M1 (grey), Model M2 (blue), and M3 (orange). From top left to bottom right, the panels show TeffT_{\mathrm{eff}}, log⁡g\log g, [Fe/H], AKsA_{K_{\mathrm{s}}}, [Na/Fe], [Mg/Fe], [Mn/Fe], and [Ba/Fe]. Dashed lines mark Δℓ=0\Delta\ell=0. Annotations give the 16th, 50th, and 84th percentile of the label and recovery distributions and the label-recovery ratio RℓR_{\ell}. Equal axis scaling in label units allows the recovery scatter to be compared directly with the label spread.

In-sample fit and out-of-sample cross-validated recovery of stellar labels

Figure 7. In-sample fit (left) and out-of-sample cross-validated recovery (right) of TeffT_{\mathrm{eff}}, log⁡g\log g, [Fe/H], and log⁡RHK′\log R'_{\mathrm{HK}} with Model M4 for the 226 stars in the activity sample. The left panels show predictions from a model trained and evaluated on the complete sample and therefore do not provide an independent performance estimate. The right panels combine predictions for the left-out spectra from the five cross-validation folds. Plotting conventions follow Fig. 5.

Cross-validated recovery of stellar labels using excluded and included pixels

Figure 9. Cross-validated recovery of TeffT_{\mathrm{eff}}, log⁡g\log g, and [Fe/H] using the 793 pixels excluded from the GALAH DR4 optimisation with Model M5 (left; red) and the 13134 pixels included in the optimisation with Model M6 (right; pink). Plotting conventions follow Figure 5.

Rℓ=σ(ℓ)σ(Δℓ).(7)R_{\ell} = \frac{\sigma(\ell)}{\sigma(\Delta\ell)}. \tag*{(7)}

Larger RℓR_{\ell} indicates that prediction errors are small relative to the label range. These performance indicators, in particular a higher ratio RℓR_{\ell}, establish whether the residuals contain predictive information. The wavelength-dependent linear coefficients, corresponding to the first derivatives of the model with respect to each scaled label (see Figure 6 and Figure 10), are then used to identify where that information resides and to compare the learned residual sensitivity with known spectral lines and the residual catalogue from § 3.2. For each wavelength pixel, we show the median coefficient across the five folds

Selected coefficients across wavelength for Models M1, M2, M3, and M4

Figure 6. Selected coefficients across wavelength for Models M1, M2, M3, and M4. Lines show the median coefficient across the five cross-validation folds, and shaded regions show the full fold-to-fold range. Because the labels are internally centred and scaled, the coefficients describe the local residual response near the centre of each training-label distribution.

Selected coefficients across wavelength for Model M5

Figure 10. Selected coefficients across wavelength for Model M5, using only the 793 wavelength pixels excluded from the GALAH DR4 optimisation. Lines show the median coefficient across the five cross-validation folds, and shaded regions show the full fold-to-fold range.

together with its full fold-to-fold range. Because each fold contains 80% of the sample, the internal label scaling and resulting coefficients differ only slightly. The narrower envelopes for almost all linear coefficients therefore demonstrate that the learned wavelength dependence is robust to the choice of training subset; they are not interpreted as formal coefficient uncertainties.

Information about fitted stellar labels

The GALAH synthesis was explicitly optimised using global stellar parameters and individual elemental abundances. As a reference scale, the median uncertainties reported by GALAH DR4 for stars in the abundance sample are 70 K in TeffT_{\mathrm{eff}}, 0.10 dex in log⁡g\log g, and 0.060 dex in [Fe/H], which all include absolute uncertainties as well. For the elemental abundances, the corresponding median precision uncertainties are 0.035 dex for [Na/Fe], 0.029 dex for [Mg/Fe], 0.031 dex for [Mn/Fe], and 0.068 dex for [Ba/Fe].

Recovering these labels from the residuals would therefore show that the remaining model-data mismatch still varies systematically across the label space used in the original fit. We first examine the global stellar parameters in § 4.2.1, before testing for more specific information about elemental abundance patterns in § 4.2.2.

Stellar parameters

Model M1 tests the recovery of TeffT_{\mathrm{eff}}, log⁡g\log g, and [Fe/H] using the baseline sample, which spans the broadest stellar-parameter range considered here. Model M1* repeats the same experiment using the more restricted abundance sample, which excludes the hottest stars and applies additional quality criteria. This comparison tests whether the predictive residual structure persists within a more homogeneous, higher-quality sample, although it does not isolate the effects of signal-to-noise ratio, quality selection, and stellar-type coverage individually.

The cross-validated recovery results are combined in Figure 5 using model-specific colour maps; here, we focus on the grey-scale panels for Model M1. For this model, the robust recovery scales are σ(ΔTeff)=150\sigma(\Delta T_{\mathrm{eff}}) = 150 K, σ(Δlog⁡g)=0.19\sigma(\Delta\log g) = 0.19 dex, and σ(Δ[Fe/H])=0.086\sigma(\Delta[\mathrm{Fe}/\mathrm{H}]) = 0.086 dex. These are substantially smaller than the corresponding label spreads of 660 K, 0.94 dex, and 0.286 dex, yielding label-recovery ratios of RTeff=4.5R_{T_{\mathrm{eff}}} = 4.5, Rlog⁡g=4.9R_{\log g} = 4.9, and R[Fe/H]=3.3R_{[\mathrm{Fe}/\mathrm{H}]} = 3.3. The median biases are small: −20 K, 0.00 dex, and −0.005 dex, respectively.

The recovery is not uniform across the sampled label space. For TeffT_{\mathrm{eff}}, the scatter and frequency of outliers increase among the comparatively sparse stars hotter than approximately 6500 K. The log⁡g\log g recovery shows a mildly asymmetric trend among dwarfs near log⁡g∼4\log g \sim4 and increased scatter around the red clump near log⁡g∼2.5\log g \sim2.5. The metallicity recovery is strongest across the well-sampled central range and deteriorates towards the metal-poor edge, where few training stars are available. The quoted global recovery scales should therefore be interpreted as cross-validated interpolation performance within the baseline sample, rather than as uniform precision across its full parameter range.

Model M1* confirms that the residual information persists in the more restricted abundance sample. Its robust recovery scales are 85 K in TeffT_{\mathrm{eff}}, 0.14 dex in log⁡g\log g, and 0.059 dex in [Fe/H], compared with label spreads of 623 K, 0.95 dex, and 0.270 dex. The corresponding ratios increase to RTeff=7.4R_{T_{\mathrm{eff}}} = 7.4, Rlog⁡g=6.7R_{\log g} = 6.7, and R[Fe/H]=4.6R_{\mathrm{[Fe/H]}} = 4.6. The median biases remain negligible at +0 K, 0.00 dex, and −0.002 dex. Model M1* therefore performs better in both absolute terms and relative to the label coverage of its sample, although the combined sample-selection differences prevent us from attributing this improvement to any single factor. The complete recovery statistics are summarised in Table 3.

ModelΔTeff\Delta T_{\mathrm{eff}} / KΔlog⁡g\Delta\log g / dexΔ[Fe/H]\Delta[\mathrm{Fe}/\mathrm{H}] / dex
P50P_{50}P16−P50P_{16}-P_{50}P84−P50P_{84}-P_{50}P50P_{50}P16−P50P_{16}-P_{50}P84−P50P_{84}-P_{50}P50P_{50}P16−P50P_{16}-P_{50}P84−P50P_{84}-P_{50}
M1−20-20−130-130+160+160+0.00+0.00−0.19-0.19+0.19+0.19−0.005-0.005−0.084-0.084+0.089+0.089
M1*+0+0−77-77+92+92+0.00+0.00−0.14-0.14+0.14+0.14−0.002-0.002−0.058-0.058+0.059+0.059
M2+0+0−78-78+82+82−0.01-0.01−0.14-0.14+0.15+0.15−0.004-0.004−0.060-0.060+0.058+0.058
M3−20-20−130-130+150+150+0.01+0.01−0.19-0.19+0.19+0.19−0.004-0.004−0.085-0.085+0.087+0.087
M4+10+10−100-100+130+130−0.01-0.01−0.09-0.09+0.13+0.13+0.007+0.007−0.079-0.079+0.091+0.091
M5−60-60−140-140+180+180−0.00-0.00−0.23-0.23+0.20+0.20−0.01-0.01−0.10-0.10+0.09+0.09
M6+10+10−160-160+220+220+0.02+0.02−0.21-0.21+0.23+0.23+0.00+0.00−0.10-0.10+0.13+0.13

Table 3. Cross-validated recovery of TeffT_{\mathrm{eff}}, log⁡g\log g, and [Fe/H][\mathrm{Fe}/\mathrm{H}] for the residual models. Columns give the median recovery difference and its 16th–50th and 50th–84th percentile intervals, calculated from the combined left-out predictions of the five folds. M1* denotes training of model M1 on the abundance sample, rather than the baseline sample.

The coefficient spectra panels in Figure 6, each showing the full range of coefficients across the five folds, identify the wavelength regions associated with this predictive information. Because the model is quadratic and the labels are internally centred and scaled, the plotted linear coefficients describe the local residual response near the centre of the training-set label distribution, conditional on the other labels. They should not be interpreted as global derivatives across the full parameter range; quadratic and cross-terms may become important elsewhere in label space.

The TeffT_{\mathrm{eff}} coefficient contains numerous narrow positive and negative features across all four wavelength arms, indicating that the temperature dependence is distributed across many residual spectral features. The strongest response occurs around Hα, where the line-core and wing residuals vary in opposite directions with temperature. This demonstrates a systematic temperature dependence in the remaining Hα mismatch, but does not by itself distinguish between deficiencies in line formation, broadening, continuum normalisation, activity, or other modelling effects. A lower-amplitude, broader response is also visible across parts of the blue arm, potentially reflecting the combined influence of many weaker features.

The log⁡g\log g coefficient is likewise dominated by structure around Hα and Hβ, together with narrower responses associated with individual metal-line residuals. These include regions near the modelled Fe I lines at 4870.97 and 4891.16 Å with too high log⁡gf\log gf and the candidate missing Fe I line near 7780.56 Å. Parts of the blue-arm response have the opposite sign to the temperature coefficient, illustrating the partial covariance of the residual dependences on TeffT_{\mathrm{eff}} and log⁡g\log g.

The [Fe/H] coefficient contains many line-localised responses, consistent with metallicity information distributed across absorption features and blends that are not reproduced perfectly by the synthesis. Not every Fe-associated peak from § 3.2 appears prominently in the linear metallicity coefficient. Some features may instead vary non-linearly with metallicity, enter through cross-terms with TeffT_{\mathrm{eff}} or log⁡g\log g, or become informative only within a restricted region of label space.

Three related diagnostics should be distinguished. The cross-validated recovery scales quantify predictive performance for out-of-sample spectra, the inferred wavelength-dependent model scatter describes the typically small residual variation not captured by the fitted label model, and the fold-to-fold coefficient ranges measure the stability of the learned wavelength response against changes in the training subset. The coefficient envelopes in Figure 6 are narrow for almost all linear terms, showing that the identified wavelength structure is highly reproducible across the five folds.

Element abundance patterns

Having established that the residual spectra retain substantial information about the global stellar parameters, we next test whether they preserve more specific chemical information. Model M2 extends Model M1* by fitting [Na/Fe], [Mg/Fe], [Mn/Fe], and [Ba/Fe] alongside TeffT_{\mathrm{eff}}, log⁡g\log g, and [Fe/H]. Both models use the same abundance sample, allowing their performance to be compared without changing the underlying stellar sample. The recovery of the three global labels remains nearly unchanged, with robust scales of approximately 80 K in TeffT_{\mathrm{eff}}, 0.15 dex in log⁡g\log g, and 0.059 dex in [Fe/H] (Table 3).

In contrast to the strong recovery of these global labels, the individual abundance ratios are recovered only modestly relative to their intrinsic sample spreads. The abundance recovery is shown by the blue-density panels in Figure 5. The robust recovery scales σ(Δ[X/Fe])\sigma(\Delta[\mathrm{X/Fe}]) are 0.084 dex for Na, 0.070 dex for Mg, 0.058 dex for Mn, and 0.14 dex for Ba. These values are larger than the corresponding median GALAH DR4 precision uncertainties by factors of approximately 1.9–2.4.

The abundance recovery must also be considered relative to the limited label spread of the sample. The robust spreads σ([X/Fe])\sigma([\mathrm{X/Fe}]) are 0.102 dex for Na, 0.117 dex for Mg, 0.092 dex for Mn, and 0.16 dex for Ba. The corresponding label-recovery ratios are therefore R[Na/Fe]=1.2R_{\mathrm{[Na/Fe]}} = 1.2, R[Mg/Fe]=1.7R_{\mathrm{[Mg/Fe]}} = 1.7, R[Mn/Fe]=1.6R_{\mathrm{[Mn/Fe]}} = 1.6, and R[Ba/Fe]=1.1R_{\mathrm{[Ba/Fe]}} = 1.1. The residual spectra thus contain modest predictive information about Mg and Mn, whereas Na and Ba are recovered only marginally better than a constant prediction near the centre of their training-label distributions. The recovery also deteriorates towards sparsely sampled abundance extremes, where individual training folds contain relatively few chemically enhanced stars.

The linear coefficients (blue in Figure 6) suggest that this abundance information is not carried primarily by clear residual signatures of the corresponding elements. In particular, the Mg and Ba coefficients retain broad, wave-like structure across the red arm, while several abundance coefficients respond strongly around the Balmer lines. The Mn and Ba coefficients also show structure near the diffuse interstellar bands around 5780 Å, 5797 Å, and 6613 Å. By contrast, no single set of element-specific absorption features clearly dominates the coefficient spectrum for each abundance.

A comparison with the residual catalogue confirms that the abundance coefficients are rarely element-localised. The strong Si I residual near 7800 Å produces no prominent Na, Mg, Mn, or Ba response, while only Mg and Mn coefficients near 4796.36, 4829.0, and 4871.0 Å coincide with candidate Ti I, Ni I, and Fe I features of the same element group. Most identified stellar residuals respond more strongly to [Fe/H]. Model M2 thus seems to exploit correlations of abundances with stellar populations, atmospheric parameters, extinction, observing conditions, or reduction and normalisation artefacts rather than direct sensitivity to the nominal element. These correlations are reproducible across the folds, but may also enter through quadratic or cross-terms and should not be interpreted as independent abundance diagnostics.

Information about properties not fitted by the synthesis

The abundance results show that predictive recovery does not have to arise from direct sensitivity to the corresponding atomic features. We therefore turn to properties not included in the GALAH synthesis, for which independent spectral diagnostics can help distinguish physically meaningful responses from indirect or contaminating correlations. We first examine interstellar extinction and absorption in § 4.3.1, followed by chromospheric activity in § 4.3.2.

Interstellar extinction and absorption

Model M3 extends Model M1 by adding the line-of-sight extinction AKSA_{K_{\mathrm{S}}} to TeffT_{\mathrm{eff}}, log⁡g\log g, and [Fe/H][\mathrm{Fe}/\mathrm{H}], using the same baseline sample. Although extinction does not directly alter a continuum-normalised stellar spectrum through its broad wavelength dependence, it correlates with narrow absorption produced by intervening interstellar material, including diffuse interstellar bands (DIBs) and atomic K I.

The baseline sample is strongly concentrated towards low-extinction sightlines, with AKS=0.017−0.017+0.054A_{K_{\mathrm{S}}}=0.017^{+0.054}_{-0.017} mag and the orange-density panel in Figure 5 therefore probes a highly asymmetric label distribution with a hard lower boundary near zero. The robust recovery scale, σ(ΔAKS)=0.037\sigma(\Delta A_{K_{\mathrm{S}}})=0.037 mag, is comparable to the label spread of σ(AKS)=0.035\sigma(A_{K_{\mathrm{S}}})=0.035 mag, yielding RAKS=1.0R_{A_{K_{\mathrm{S}}}}=1.0. For such a narrow and strongly skewed distribution, however, this ratio is not by itself a reliable measure of predictive information: most stars have negligible extinction, for which both the reference and recovered values naturally cluster near zero. The absolute recovery differences generally remain below 0.1 mag, including for the more extinguished sightlines, and stars with AKS∼0.2A_{K_{\mathrm{S}}}\sim0.2 mag are preferentially assigned larger recovered values. The residual spectra therefore retain useful information about extinction, particularly towards the higher-extinction tail, even though the global recovery ratio is compressed by the label distribution.

The linear AKSA_{K_{\mathrm{S}}} coefficient in Figure 6 provides clearer evidence for the physical origin of this information. Its strongest negative responses coincide with the established DIBs near 5780.59, 6613.66, and 5797.19 Å, with peak linear-coefficient amplitudes δ(Δf)/δAKS\delta(\Delta f)/\delta A_{K_{\mathrm{S}}} of approximately −0.078-0.078, −0.045-0.045, and −0.030-0.030, respectively. A similarly strong response near 7698.96 Å, with an amplitude of approximately −0.046-0.046, coincides with interstellar K I. Additional responses align with DIBs identified by Vogrinčič et al. (2023) near 4762.57, 5705.21, 6493.11, 6496.67, 6530.17, and 6592.53 Å. The agreement in wavelength and profile morphology shows that

Model M3 extracts identifiable interstellar absorption rather than only broad correlations between extinction and the stellar sample. A complete one-to-one correspondence with the DIB catalogue of Vogrinčič et al. (2023) is not expected. Their analysis shifted spectra into a common interstellar rest frame and combined high-quality spectra in reddening bins, whereas our coefficients are inferred from individual spectra in the stellar rest frame and from a sample dominated by nearly unreddened sightlines. Differences between the stellar and interstellar radial velocities can therefore broaden or dilute weak ISM responses in our analysis. This likely contributes to the absence of clear coefficients at several previously identified DIBs, including the features near 5747.62 and 5784.78 Å, as well as numerous weaker catalogue entries.

Conversely, Model M3 shows additional responses near 4726.40, 4741.47, 4823.13, 5849.91, 6535.89, 6660.74, and 6699.33 Å. These correlations should not automatically be classified as DIBs, because an extinction label can also trace stellar-population, observing, or reduction-related structure. This is particularly apparent for the narrow or step-like responses near 7737.34, 7741.97, 7747.26, and 7826.79 Å. Their morphology differs from the smoother and broader response (above 9 pixels), for example around the 5780 Å DIB (covering 29 pixels), making an interstellar origin less likely despite their correlation with AKSA_{K_{\mathrm{S}}}.

The K I response near 7699 Å is also more complex than the isolated DIBs. The stellar synthesis includes the stellar photospheric K I line, while the observed spectrum may contain an additional interstellar component at a different radial velocity. When the stellar and interstellar components overlap, part of the additional absorption may be absorbed into the fitted stellar potassium abundance; when they are offset, the interstellar component remains as asymmetric or split residual structure around the synthesised stellar line. The coefficient should therefore be interpreted as evidence for interstellar K I, but not as a simple isolated line profile. We note that this behaviour might apply to several interstellar absorption features that overlap with fitted stellar absorption features.

Chromospheric activity

Model M4 tests whether residual spectra retain information about chromospheric activity by fitting the activity indicator log⁡RHK′\log R'_{\mathrm{HK}} alongside TeffT_{\mathrm{eff}}, log⁡g\log g, and [Fe/H][\mathrm{Fe}/\mathrm{H}] for the 226 stars in the activity sample. Extreme positive flux residuals, several of which arise from imperfectly subtracted sky emission, can strongly influence a model trained on such a small sample. We therefore cap continuum-normalised fluxes above 1.2 at this value and assign them an uncertainty of the original flux value to strongly reduce their weight. As shown below, this treatment limits but does not eliminate correlations with sky-subtraction residuals.

Figure 7 contrasts the in-sample fit obtained when Model M4 is trained and evaluated on all 226 spectra with its out-of-sample performance from five-fold cross-validation. The in-sample fit yields a robust recovery scale of σ(Δlog⁡RHK′)=0.053\sigma(\Delta\log R'_{\mathrm{HK}}) = 0.053, compared with a label spread of σ(log⁡RHK′)=0.114\sigma(\log R'_{\mathrm{HK}}) = 0.114, corresponding to Rlog⁡RHK′=2.2R_{\log R'_{\mathrm{HK}}} = 2.2. This apparent recovery does not persist out of sample: the cross-validated recovery scale increases to 0.11, giving Rlog⁡RHK′=1.0R_{\log R'_{\mathrm{HK}}} = 1.0. The diagonal trend in Δlog⁡RHK′\Delta\log R'_{\mathrm{HK}} indicates that the out-of-sample predictions regress towards the centre of the activity distribution rather than recovering its full range.

The precise in-sample fit does not generalise: with only approximately 180 training spectra per fold, the cross-validated predictions regress towards the centre of the activity distribution. This may reflect the small sample, uneven activity coverage, sensitivity to individual spectra, or correlations with unrelated residual features.

The coefficient spectra nevertheless provide evidence that the residuals contain some physically plausible activity-related structure. Figure 8 examines selected regions in greater detail by showing the observed spectra of the 15 stars with the largest log⁡RHK′\log R'_{\mathrm{HK}} values together with the linear and quadratic activity coefficients at the bottom in dark and bright purple, respectively. The three most active stars (in redder colours) show particularly clear changes around Hα\alpha and Hβ\beta, supporting an activity-related origin for the Balmer-line coefficients. They also differ around the Li I line at 6707.8 Å, a region already identified as imperfectly represented by the GALAH DR4 neural-network synthesis (Buder et al. 2025, Sec. 8.3.4). Because lithium is primarily associated with stellar youth (see e.g. Žerjal et al. 2019), rather than being a direct tracer of chromospheric emission, any remaining response is more plausibly interpreted as a combination of this known modelling limitation and the correlation between youth and activity within the sample.

Observed flux for the 15 stars with highest $\log R'_{\mathrm{HK}}$ of the activity sample, with linear and quadratic coefficients

Figure 8. Observed flux for the 15 stars with highest log⁡RHK′\log R'_{\mathrm{HK}} of the activity sample as well as linear and quadratic coefficients of log⁡RHK′\log R'_{\mathrm{HK}} (thick and thin purple lines) for selected wavelength regions.

Of the activity-sensitive lines identified by Wise et al. (2018) from HARPS spectra, four lie within the GALAH wavelength range: 4827.46, 4861.33, 5707.00, and 6562.81 Å (see Fig. 8). The latter two Balmer lines, Hβ\beta and Hα\alpha, show clear responses in the log⁡RHK′\log R'_{\mathrm{HK}} coefficients, whereas the features near 4827.46 and 5707.00 Å show no prominent response. Among the 32 HARPS lines studied by Lisogorski et al. (2019) within our wavelength range (attached in Fig. A3), we also identify a signal near 4736.78, 4859.75, and 4890.76 Å, in addition to the Balmer lines.

Not all strong coefficient responses have a stellar origin. Model M4 also responds to residual sky-emission features, including those near 7751.1, 7794.7, 7822.1, and 7853.9 Å (in the bottom right of Fig. 8). Some of these responses vary substantially between the cross-validation folds, indicating that they are driven by a small number of influential spectra rather than by a stable relation with chromospheric activity. Their presence illustrates that a reproducible correlation between a residual feature and an activity label does not by itself establish a causal connection: activity can correlate accidentally with observing conditions, reduction artefacts, or sample selection.

The coefficients nevertheless recover plausible Balmer and metal-line responses while also tracing unstable sky-emission residuals. The current model therefore demonstrates that activity-related information is present, but not that log⁡RHK′\log R'_{\mathrm{HK}} can be recovered reliably. A larger, more diverse sample and more comprehensive masking of contaminated regions are required for robust out-of-sample prediction.

Where is the residual information concentrated?

Of the 380 significant residual regions identified in Sec. 3.2, 111 (29 %) fall within pixels excluded from the GALAH DR4 optimisation, while 269 (71 %) fall within the retained wavelength range. This is a strong over-representation: the excluded region contains only 793 of the 13927 pixels (6 %). Such a concentration is partly expected because these pixels were excluded during the DR4 analysis where representative spectra showed imperfect synthesis or reduction behaviour.

We now test whether this concentration of residual structure also corresponds to a concentration of recoverable stellar-label information. We divide the 13927 pixels into the 793 excluded from the GALAH DR4 optimisation and the 13134 retained pixels. Models M5 and M6 fit the same labels, spectra, and cross-validation folds as Model M1, but use only the excluded and retained subsets, respectively.

Despite using only 6 % of the wavelength pixels, Model M5 recovers TeffT_{\mathrm{eff}}, log⁡g\log g, and [Fe/H] to approximately 160 K, 0.22 dex, and 0.095 dex, only moderately worse than the full-spectrum values of 150 K, 0.19 dex, and 0.086 dex (see Fig. 9).

Model M6, using the remaining 94 %, reaches 190 K, 0.22 dex, and 0.12 dex. The excluded pixels therefore outperform the 17-times-larger retained subset for all three labels.

This is not a random-subset comparison: the pixels were excluded precisely because their synthesis or reduction was less reliable and thus more likely to leave systematic residuals. Figure 10 confirms that many narrow Model M1 features remain in the excluded subset, whereas much of the broad Balmer structure lies outside its mask. Their narrow fold-to-fold ranges show that this information is reproducible across the cross-validation splits.

Discussion

The two complementary analyses presented above lead to a consistent conclusion: the mismatch between observed and best-fitting synthetic spectra is neither random nor devoid of information. The systematic audit identifies recurrent residual structure with plausible stellar, interstellar, and observational origins, while the data-driven experiments show that this structure remains predictive of both fitted and unfitted properties. At the same time, the abundance and activity experiments demonstrate that predictive correlations are not necessarily direct or causal. We therefore discuss first what the residuals reveal about the limitations of current spectral modelling, then what can and cannot be inferred from their predictive information, and finally how these results can guide progress towards modelling a larger fraction of the observed spectrum.

Residuals are systematic rather than noise

The excess, wavelength localisation, recurrence, and preferred sign of the residuals show that they cannot be described solely by independent noise or a uniform rescaling of the flux uncertainties. Instead, the residual field superposes narrow stellar-line mismatches, broad parameter-dependent Balmer structure, interstellar absorption, sky emission, and detector- or reduction-related patterns. Their signs indicate the direction in which the modelled flux must change, but not uniquely whether the cause is line opacity, blending, line formation, emission, normalisation, or reduction. The residuals must therefore be interpreted component by component rather than absorbed into a single additional noise term. Their overall prevalence also varies across stellar-label space: cool and metal-rich stars show the largest fractions of significantly mismatched pixels, consistent with their denser and stronger absorption spectra. In the coolest stars, visual inspection identifies molecular features, including CN, C2_2, and TiO, as important contributors. Accurate full-spectrum modelling is therefore especially challenging where severe line blending combines with remaining uncertainties in molecular line data, molecular equilibrium, atmospheric structure, and continuum placement.

What the residual catalogue reveals about current spectral models

The classification of the 380 residual regions provides a direct overview of the origins of the recurrent signed structure. Figure 11 places the adopted classifications on top of the fractions of spectra with significantly deeper or shallower observed flux. This presentation links the residual catalogue back to the original statistical audit and demonstrates that similar residual amplitudes and signs can arise from physically different causes. The category assignments therefore require the additional atlas, line-list, interstellar, and sky-emission diagnostics described in § 3.2.

Classification map of the recurrent signed residual structure across the four GALAH wavelength bands

Figure 11. Classification map of the recurrent signed residual structure across the four GALAH wavelength bands. The underlying curves reproduce the fractions of baseline-sample spectra for which the observed flux is more than 3σ3\sigma shallower or deeper than the synthesis, as shown in the bottom panels of Figure 3. Short coloured bars mark the 380 catalogue regions and are grouped vertically by their adopted primary classification: candidate line-strength and Line profile mismatches in red and orange, Insignificant, Skyline, and Interstellar regions in blue, and missing, unidentified, or ambiguous features in purple. The vertical offsets are categorical and carry no quantitative meaning; the horizontal bar widths are proportional to the fitted residual-region widths.

The catalogue is dominated by candidate stellar line-strength and profile mismatches, while smaller subsets trace missing or unidentified lines, interstellar absorption, sky emission, and broader detector structure. This establishes stellar-line modelling as the largest identified contribution, although the classification sign indicates only the required change in total opacity and not necessarily an error in the oscillator strength itself.

These results highlight the continuing need for accurate experimental atomic data. Laboratory measurements provide the most reliable atomic parameters for stellar spectroscopy, yet many transitions of astrophysical importance still lack experimental determinations. Although individual residuals cannot be uniquely attributed to shortcomings in the atomic data alone, the prevalence of line-strength mismatches, profile discrepancies, and missing or unidentified features demonstrates that limitations in the underlying atomic data remain an important contributor to modelling errors. The residuals identified here demonstrate that improving the completeness and accuracy of atomic data remains a critical requirement for the next generation of stellar spectroscopic analyses.

Line strengths, blends, and profiles

Fe I contributes the largest absolute number of candidate line-strength mismatches, with 41 features classified as log⁡gf\log gf too high and 36 as log⁡gf\log gf too low. Substantial numbers are also associated with Ti I, Cr I, Si I, V I, Ca I, and Ce II. These raw counts are descriptive rather than species-specific failure rates, because the number and strength of available transitions differ greatly between elements. Nevertheless, repeated mismatches identify groups of transitions for which the adopted line data warrant further investigation.

The most directly actionable cases are relatively isolated lines with a consistent residual sign. If a synthesised line is repeatedly too deep, its adopted opacity should be reduced; if it is too shallow, additional opacity is required. This does not uniquely identify the cause: an incorrect oscillator strength or blend contribution, abundance offset, or inadequately modelled line formation, including LTE/non-LTE effects, can produce the same residual direction. But it provides a well-defined direction for targeted line-list tests.

A particularly important example is the Si I feature near 7800 Å, shown as the log gfgf too low example in panel B of Figure 4. The currently adopted oscillator strength, log⁡gf=−2.215\log gf = -2.215 (Kurucz 2007), produces substantially too little Si i absorption. Within the present synthesis, a value closer to log⁡gf≈−0.75\log gf \approx-0.75 (Abia et al. 2020) reproduces the observed feature more closely. The mismatch is especially consequential because the Si i feature blends with the only Rb i line covered by GALAH. Underestimating the Si contribution can therefore bias or destabilise the decomposition of the blend and is the likely explanation for the currently imprecise measurements of Rb abundances in GALAH DR4. A similar issue was reported by Azhari et al. (2025), who found that inaccurate Si i blending lines compromised the fit of a Th ii feature – a rare radioactive tracer of rapid neutron-capture nucleosynthesis that can help constrain the role of events such as neutron-star mergers in producing the heaviest elements, while also enabling cosmic age dating (Hill et al. 2002).

Two related examples are the Na i line at 5688.19 Å and the Mg i line at 5711.05 Å, both of which are among the small number of useful GALAH diagnostics for their respective elements. The observations are more than 3σ3\sigma deeper than the synthesis in 10 % and 13 % of the spectra, respectively, while neither line is more than 3σ3\sigma shallower in a measurable fraction of the sample. The GALAH DR4 Solar abundances inferred from these lines are correspondingly offset by +0.171 dex for Na and +0.085 dex for Mg relative to Grevesse et al. (2007). These results are consistent with underestimated modelled opacity, but do not uniquely establish that the adopted oscillator strengths are responsible. Because the required Solar abundances are themselves offset from the adopted reference scale, the relevant synthetic spectra may also probe a less well covered region of the neural-network training grid used in GALAH DR4 to create them.

The Li i feature near 6707.8 Å shows the structured mismatch previously associated with limitations of the GALAH DR4 neural-network synthesis (Buder et al. 2025, Sec. 8.3.4). By contrast, the O i triplet at 7771–7775 Å shows recurrent residuals below 5 %.

The catalogue additionally contains candidate residual associations with Mn i at 4748.15 Å, Gd ii near 4791.15 Å, possible Ti i, Cd i, or W i contributors near 4799.85 Å, Mo i at 4833.896 and 5858.30 Å, Pr ii at 4877.87 Å, and Sm i at 4883.99 Å. Several of these regions are blended or ambiguous and should therefore be treated as candidate associations of rare elements with potential for further investigation rather than secure new line identifications.

The 13 line profile cases cannot be explained adequately through a scalar change in line strength. They include the Balmer lines and several asymmetric, split, or wing-dominated residuals associated with possible neglected or inaccurate hyperfine or isotopic structure, isotope shifts, component wavelengths, or imperfect broadening. i by Jofré et al. (2017), involve Cu i 5700.2, V i 5761.4, as well as Sc i 5671.9 and 5686.9. These cases require improved component patterns or line-formation calculations rather than a simple adjustment of log⁡gf\log gf.

The Balmer residuals are the clearest large-scale example. Both Hα and Hβ show broad residual structure whose amplitude and sign vary with stellar parameters, and both appear among the strongest activity-sensitive coefficients. Their behaviour could reflect several combined effects, including broadening, continuum normalisation, atmospheric structure, departures from LTE, and chromospheric filling. The current analysis establishes that their residual profiles vary systematically, but does not isolate the contribution of each physical mechanism.

Residuals are also present in the left wing of the near-infrared Al i doublet at 7835.3 and 7836.1 Å. Broad CCD3 structure further complicates the Eu ii region near 6645 Å, where Co i and Fe i blends may also be imperfectly modelled. Thus, broad instrumental or reduction structure can coexist with, and partly hide, local stellar-line problems.

The 8 known missing and 38 unidentified features provide a second set of priorities. The known missing transitions can be tested directly for inclusion in future line lists. The unidentified regions may contain omitted atomic or molecular transitions, poorly attributed blends, or residual reduction structure. For these lines, we do not identify strong corresponding signals in the data-driven abundance extraction of § 4.2.2. Possible identifications involving rarely measured species remain especially interesting, but require confirmation from independent atlases, laboratory data, or spectra with different wavelength coverage and resolution – in particular of stars for which the abundances of the potential elements are significantly enhanced and absorption is more likely.

Non-stellar and reduction-related residuals

The classification map also shows that not all recurrent residuals belong to the stellar synthesis. The 12 interstellar regions include established diffuse interstellar bands and interstellar K i. Their appearance in the stellar rest frame depends on the relative stellar and interstellar velocities, which can broaden the overall response or produce asymmetric residuals when an interstellar feature overlaps a fitted photospheric line.

The 15 skyline regions demonstrate an analogous effect for emission fixed in the observed frame. Imperfect sky subtraction leaves positive residual flux whose apparent position is shifted when the spectrum is transformed into the stellar rest frame. Their influence on Model M4 illustrates how a small number of spectra can generate an apparent label correlation when observing conditions happen to correlate with the sampled activity distribution.

The broad undulating structure in CCD3 provides another example of a residual that cannot be explained through individual stellar lines, but can complicate the interpretation of genuine lines embedded within the pattern. Its origin is more likely connected to reduction and normalisation, or broad instrumental effects than to a sequence of unrelated atomic transitions.

These cases motivate analysing residual components in their natural frames. Stellar-line residuals are most coherent in the stellar rest frame, interstellar features in an ISM rest frame, and sky or telluric features in the observed frame. A single-frame analysis necessarily broadens or blends some of these components and may conceal their true morphology.

Residual information is predictive, but not always directly attributable

The data-driven experiments establish that residual spectra contain predictive information, but also show that the physical interpretation of that information depends on the label, sample, and validation method. Table 3 summarises the recovery of the common global labels.

Information about fitted stellar labels

The recovery of TeffT_{\rm eff}, log⁡g\log g, and [Fe/H] demonstrates that the remaining mismatch changes coherently across the label space used in the original fit. Model M1* confirms this within the more restricted abundance sample, although its different signal-to-noise ratio, quality selection, parameter coverage, and label distribution prevent attribution of the improved performance to one factor. Balmer and numerous narrow metal-line residuals contribute to the global labels, whereas Mg and Mn are recovered only modestly and Na and Ba scarcely outperform a central prediction. Their non-element-specific coefficients show that Model M2 mainly exploits chemical and population correlations rather than isolated missing opacity.

This distinction matters for transferability. A correlation that predicts an abundance within the GALAH training sample may not generalise to a population with different chemical or stellar-parameter correlations. Predictive recovery should therefore not automatically be interpreted as evidence that the residual model has identified missing opacity from the corresponding element.

Information about unfitted and correlated properties

The extinction experiment provides the clearest physical validation for an unfitted label. Although the strongly skewed AKsA_{K_{\rm s}} distribution limits the interpretation of the global recovery ratio, the more extinguished sightlines are preferentially assigned larger values. More importantly, the extinction coefficient recovers the strongest known diffuse interstellar bands and interstellar K I. Their independently known wavelengths and morphology demonstrate that the model identifies genuine interstellar absorption remaining outside the stellar synthesis.

The incomplete recovery of weaker DIBs is expected because the current analysis uses individual spectra in the stellar rest frame and is dominated by low-extinction sightlines. Relative stellar and interstellar velocities broaden weak features, whereas dedicated DIB analyses (e.g. Vogrinčič et al. 2023; Saydjari et al. 2023) can shift spectra into an interstellar frame and combine many reddened observations.

The activity experiment provides a contrasting caution. Hα and Hβ show plausible activity-sensitive responses, and several additional coefficient features coincide with lines previously associated with activity. However, the apparent in-sample recovery of log⁡RHK′\log R'_{\rm HK} does not persist under cross-validation. The activity model also responds to residual sky-lines, for example around 7795 Å. The current sample therefore contains genuine chromospheric information, but it is too small and confounded for reliable out-of-sample prediction.

Together, the abundance, extinction, and activity experiments illustrate a hierarchy of interpretation. The extinction response is supported by independently identifiable physical features. The abundance responses are stable but partly indirect. The activity responses combine genuine stellar signatures with demonstrably unrelated observational correlations. Stability, prediction, and physical causality are therefore distinct properties that must be tested separately.

Towards modelling the full spectrum

The disproportionate information retained by the excluded 6 % does not imply that these pixels should simply be restored to the stellar fit. They were excluded because they combine unreliable stellar lines and profiles with Balmer, interstellar, sky, and reduction structure. Their recovery instead shows that information-rich and safely modelled are not synonymous. Isolated stellar-line mismatches require revised line data or additional blends, ideally through reproducible tools for constructing and updating atomic and molecular line lists, such as LINEMAKE (Placco et al. 2021). Structured profiles require improved hyperfine, isotopic, wavelength, broadening, or line-formation information; interstellar features require a separate velocity component; and sky, telluric, and reduction residuals require observational rather than stellar corrections.

A practical route forward is therefore to retain physical synthesis as the baseline while modelling well-validated residual corrections conditionally on stellar and observational labels. Such corrections should be restricted to wavelength regions where their behaviour is stable across independent stellar populations, fields, and observing conditions. Cross-validation within a single sample is necessary but not sufficient; transfer tests across nights or surveys would be needed to establish that the corrections are not survey-specific correlations.

The Balmer-line residuals provide a natural test case for connecting calculations of different physical fidelity. GALAH already employs extensive grids of 1D non-LTE departure coefficients to make non-LTE synthesis practical for survey-scale analysis (Amarsi et al. 2020). However, detailed calculations show that 3D non-LTE effects can alter both the inner and outer Balmer-line wings and can produce significant differences in inferred effective temperature relative to 1D calculations (Amarsi et al. 2018). Observed Hα profile morphology also carries information about stellar properties and additional atmospheric or velocity structure (Bergemann et al. 2016; Sayeed et al. 2024); recent reviews summarise the broader progress and remaining challenges of 3D non-LTE stellar spectroscopy (Lind & Amarsi 2024; Bergemann & Hoppe 2025). The strong and reproducible dependence of the Hα and Hβ residuals on TeffT_{\rm eff} and log⁡g\log g therefore identifies these lines as immediate benchmarks for testing whether more realistic calculations explain the observed residual morphology.

Because full 3D non-LTE synthesis remains too expensive for routine optimisation and uncertainty exploration across large label spaces, a practical intermediate approach would be to calculate a sparse but representative grid of paired 1D LTE and 3D non-LTE spectra and train an emulator of their wavelength-dependent difference. The computationally inexpensive 1D LTE framework could then be retained for fitting and uncertainty propagation, while the learned correction approximates the behaviour of the more realistic calculations within the covered parameter range. Such a model should be trained and validated on withheld 3D calculations, applied only within the interpolation domain of the training grid, and developed separately for those elements and wavelength regions for which sufficiently reliable 3D calculations are available. The present residual audit does not demonstrate such a mapping, but identifies the lines and regions where it would be most valuable to test.

A complete description of an observed spectrum requires distinct stellar, interstellar, terrestrial, sky, instrumental, and reduction components. Separating these contributions will be especially important when searching for signals, such as those from planets, that are much smaller than the stellar spectrum itself.

Limitations and priorities for future work

The present audit uses a restricted GALAH sample and therefore does not capture the full temporal and instrumental diversity of the survey. Residual structures associated with particular nights, fields, velocities, or reduction conditions may be over- or under-represented. Extending the analysis across independent observing periods would establish which features are stable throughout GALAH and which are specific to individual data sets.

The peak catalogue also depends on the adopted significance threshold, minimum width, and peak separation. These choices define a reproducible set of prominent residual regions, but not a unique decomposition of every mismatch. Broad structures can contain several local causes. The classification map should therefore be interpreted as an overview of the dominant catalogue features rather than a complete partition of the residual spectrum.

The adopted classifications remain plausibility assessments. The residual sign often determines whether more or less modelled opacity is required, but does not uniquely distinguish oscillator strengths, abundances, blends, broadening, or atmospheric structure. The Solar and Arcturus atlases also represent only two regions of stellar-label space. Confirmation of individual line-data corrections will require targeted synthesis tests, additional benchmark stars, and laboratory information where available.

The data-driven models are limited by their training samples, label distributions, and quadratic form. Their performance describes interpolation within the sampled label space and should not be extrapolated to sparsely represented stars. Importantly, successful out-of-sample recovery demonstrates that predictive information is present, whereas failed recovery does not demonstrate its absence: information may remain in the residuals but be inaccessible to the adopted quadratic The Cannon model, the available training sample, or the particular set of labels. Label covariance also permits indirect prediction, while small samples can produce strong correlations with observational artefacts, as demonstrated by the activity model.

As an exploratory test of how the adopted data-driven model affects these conclusions, we repeated the analysis using the observed continuum-normalised flux fλ,obsf_{\lambda,\mathrm{obs}} instead of the residual flux Δfλ\Delta f_{\lambda}, while retaining the same labels, samples, wavelength coverage, and cross-validation procedure6. The observed spectra improve the recovery of some labels: the recovery scales (σ(Δℓ))(\sigma(\Delta\ell)) decrease from 150 to 68 K for TeffT_{\mathrm{eff}}, from 0.086 to 0.054 dex for [Fe/H], and from 0.070 to 0.059 dex for [Mg/Fe]. For several other labels the performance is similar, with residual- versus observed-flux recovery scales of 0.14 versus 0.13 dex for [Ba/Fe], 0.058 versus 0.059 dex for [Mn/Fe], 0.084 versus 0.082 dex for [Na/Fe], and 0.11 versus 0.10 for log⁡RHK′\log R'_{\mathrm{HK}}. Unexpectedly, the observed spectra perform worse for log⁡g\log g (0.24 versus 0.19 dex) and AKSA_{\mathrm{K}_{\mathrm{S}}} (0.059 versus 0.039 mag).

These mixed results emphasise that the recovery precision of a particular The Cannon model is not a direct measure of the total information contained in its input spectra. The physical synthesis may remove dominant and highly non-linear spectral variation, leaving residual correlations that are easier for the adopted quadratic model to represent, while limited coverage of label space can further restrict what either model can learn, particularly for sparsely sampled abundance extremes. Conversely, poor recovery from the residuals does not demonstrate that information about a label is absent. A full comparison of otherwise identical models trained on the observed, synthetic, and residual spectra, and of more flexible data-driven architectures, would be required to separate information content from model accessibility; such an analysis is beyond the scope of the present residual-focused study.

Immediate priorities include validating the highest-significance line-strength and line-profile candidates, correcting important blends such as the Si i–Rb i region near 7800 Å, separating stellar, interstellar, and observed-frame residual components, and constructing larger and more representative activity samples. Applying the same framework to independent surveys would further distinguish limitations common to stellar synthesis from those specific to the GALAH line list, instrument, or reduction.

Conclusions

We introduced a stellar-rest-frame audit of the residuals between 7087 observed GALAH DR4 spectra and their best-fitting 1D LTE and non-LTE syntheses. Rather than behaving as random noise, the residuals contain coherent, recurrent, and signed structure: 4.6 million of approximately 99 million pixels exceed 3σ3\sigma, compared with 0.3 million expected for independent Gaussian noise.

A reproducible peak search identifies 380 residual regions (Figure 3). Comparison with stellar atlases, the GALAH line list, interstellar catalogues, and sky measurements associates most with candidate line-strength or profile mismatches, while others trace missing or unidentified lines, interstellar absorption, sky emission, and broad reduction structure (Figure 11). Their signs indicate whether the total modelled absorption should increase or decrease, although blends, abundance offsets, hyperfine or isotopic structure, broadening, and line formation remain degenerate. The Si i–Rb i blend near 7800 Å illustrates how such residuals can directly limit an astrophysically important abundance measurement.

Using The Cannon, we trained data-driven models on the residual flux rather than the observed flux and recovered TeffT_{\mathrm{eff}} to 80–150 K, log⁡g\log g to 0.14–0.19 dex, and [Fe/H] to 0.059–0.086 dex (Table 3), demonstrating that label-dependent structure remains after the original fit. Mg and Mn retain modest but partly indirect predictive information, whereas Na and Ba scarcely outperform a central prediction and their coefficients do not trace clean element-specific residuals (Figure 6). Among unfitted properties, the extinction coefficient recovers established diffuse interstellar bands and interstellar K i. Hα and Hβ retain plausible activity signatures, but log⁡RHK′\log R'_{\mathrm{HK}} is not recovered out-of-sample and skyline correlations expose the risk of confusing prediction with causality.

A particularly striking result is that the 793 pixels excluded from the GALAH DR4 optimisation, corresponding to only approximately 6 % of the available wavelength range, recover the global stellar parameters almost as well as the complete residual spectrum and better than the remaining 13134 optimisation pixels alone. These regions were excluded because the synthesis or reduction was considered less reliable there; their strong predictive performance shows that they contain a disproportionate fraction of the remaining label-dependent information. This does not imply that they should simply be returned to the original fit. Rather, their information can only be used reliably once distinct stellar, interstellar, sky, and reduction-related contributions are modelled explicitly.

In the current survey era, the critical bottleneck for extracting more information from stellar spectra is shifting from data volume and quality towards model fidelity (Xiang et al. 2019; Saydjari et al. 2023; Buder et al. 2025; Storm et al. 2026; Casey et al. 2026). Coherent residuals in features such as the Balmer-line profiles demonstrate the need for more realistic stellar-atmosphere and line-formation calculations, including 3D non-LTE modelling. The prevalence of line-strength mismatches, line-profile discrepancies, and missing or unidentified absorption features shows that complete, experimentally anchored atomic and molecular data are equally essential for realising the precision of large spectroscopic surveys.

Extending our audit across fields, epochs, and observing conditions would separate survey-wide modelling deficiencies from local reduction effects. Future models should treat stellar, interstellar, and observed-frame components separately and may combine targeted line-list revisions with validated data-driven corrections or sparse mappings from 1D to 3D non-LTE calculations.

Residual spectra are therefore not merely quality-control products: they identify where the physical and observational description remains incomplete, where information has not yet been extracted, and where predictive correlations require caution. Residual modelling does not replace physical synthesis, but helps diagnose, validate, and prioritise its improvement. In this sense, one spectroscopist’s trash is another’s treasure: reading between the lines maps the information that tomorrow’s models should recover.

Acknowledgments

We thank David W. Hogg for an inspiring conference summary talk exactly a decade ago that postulated we need to better model the wealth of existing data, and for a lengthy discussion over coffee that reinforced our motivation to investigate how much information remains in spectral residuals.

We acknowledge the traditional owners of the land on which the ANU stands, the Ngunnawal and Ngambri people. We pay our respects to elders past, and present and are proud to continue their tradition of surveying the night sky and its mysteries to better understand our Universe.

SB acknowledges support from the Australian Research Council under grant number DE240100150. SB acknowledges the use of GitHub Copilot within VSCode to assist with code completion and OpenAI’s ChatGPT (GPT-5.5 Thinking) for brainstorming, critical feedback on analysis choices and interpretations, manuscript organisation, and language refinement. All AI-generated suggestions, including code, were critically reviewed, revised where necessary, and validated by the authors before use. All scientific analyses, interpretations, and conclusions presented in this work are those of the authors.

Software

Python (version 3.12.11) and included its packages Astropy (Astropy Collaboration et al. 2013, 2018, v. 7.2.0;), IPython (Pérez & Granger 2007, v. 8.37.0), Matplotlib (Hunter 2007, v. 3.10.9); NumPy (Walt et al. [115], v. 2.2.6;), SciPy (Virtanen et al. 2020, v. 1.17.1); scikit-learn (Pedregosa et al. 2011, v. 1.9.0;); TOPCAT (Taylor 2005, v. 4.7;); TheCannon (Ness et al. 2015; Casey et al. 2016, v. 0.9.00 from https://github.com/ANU-RSAA/Antilassо maintained by Marc White from ANU RSAA/AITC’s Software Group).

Data availability

All code to reproduce the analysis and figures can be publicly accessed via https://github.com/svenbuder/residual_cannon. All data products of GALAH DR4 are publicly available at https://cloud.datacentral.org.au/teamdata/GALAH/public/GALAH_DR4/ as described in Buder et al. (2025).

Supplementary residual diagnostics

This appendix presents three supporting diagnostics referenced in the main text. Figure A1 compares the broad fourth-arm residual structure with observed sky emission, Figure A2 shows the signed recurrence of residuals at the lower 1σ1\sigma and 2σ2\sigma thresholds (compared to 3σ3\sigma from Figure 3 bottom), and Figure A3 shows the residual activity response for lines from Lisogorsky et al. (2019).

Comparison of the broad residual structure in the fourth GALAH wavelength band with observed sky-emission features

Figure A1. Comparison of the broad residual structure in the fourth GALAH wavelength band with observed sky-emission features. The agreement in wavelength supports the identification of these features as residuals associated with imperfect sky subtraction.

Observed flux for 32 activity-sensitive lines

Figure A3. Observed flux for 32 lines listed as activity-sensitive by Lisogorskyi et al. (2019). Flux is coloured by log RHK′R'_{\mathrm{HK}} of the activity and linear and quadratic coefficients of log RHK′R'_{\mathrm{HK}} are shown as thick and thin purple lines.

This paper was built using the Open Journal of Astrophysics LaTeX template. The OJA is a journal which provides fast and easy peer review for new papers in the astro-ph section of the arXiv, making the reviewing process simpler for authors and referees alike. Learn more at http://astro.theoj.org.

References

  1. [31]De Silva G. M., et al., 2015, MNRAS, 449, 2604
  2. [52]Ho A. Y. Q., et al., 2017, ApJ, 836, 5
  3. [101]Raassen A. J. J., Uylings P. H. M., 1998, A&A, 340, 300
  4. [115]Walt S. V. d., Colbert S. C., Varoquaux G., 2011, Comput Sci Eng, 13, 22

Paper details

vlnc:W_zct8z96c
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Physics and Astronomy

GitHub Copilot, GPT-5.5 (bare) · View statement →

Looking for related papers…
Contents