WorksPhysics and Astronomy
NASA's Pandora SmallSat Mission: Gaussian Processes for Simulated Stellar Heterogeneity Corrections under Imperfect Stellar Models
Abstract
Stellar contamination is the primary bottleneck limiting robust atmospheric characterization of exoplanets orbiting active K- and M-dwarfs with James Webb Space Telescope (JWST) transmission spectroscopy. Launched in January 2026, NASA's Pandora SmallSat mission addresses this challenge through long-term, simultaneous visible photometry and near-infrared spectroscopy of planet-hosting stars, providing the data to disentangle planetary and stellar signals. However, conventional stellar-contamination corrections rely on stellar atmosphere models, making them vulnerable to model inaccuracies that can impede accurate inferences. Here, we investigate how Pandora data can be used to mitigate stellar contamination without an accurate host star model. We present a Gaussian-process-aided stellar retrieval framework that learns wavelength-dependent deviations from current stellar model grids. We propagate stellar contamination factors directly from the stellar retrieval into the planetary atmospheric retrievals, allowing the atmospheric inference to marginalize over stellar-contamination uncertainty without relying on a biased stellar model. Tests using simulated Pandora observations with realistic stellar model mismatch show that this framework consistently improves the recovery of disk-integrated stellar spectra. For a WASP-69 b-like system, this approach can reduce model-driven biases in inferred atmospheric properties, though degeneracies among stellar and atmospheric parameters can leave residual biases. This flexible, data-driven framework is a promising approach toward accurate stellar-contamination corrections and more robust atmospheric inference even when host-star model grids are inaccurate.
Introduction
JWST transmission spectroscopy routinely reaches precisions at the tens-of-ppm level (e.g. [6] (Z. Rustamkulov et al. 2023; O. Lim et al. 2023; J. Kirk et al. 2024)), making stellar contamination, or the transit light source effect, a leading limitation on exoplanet atmospheric characterization (B. V. Rackham et al. 2018, 2019, 2023; O. Lim et al. 2023; S. E.) Moran et al. 2023; M. Radica et al. 2025; N. Espinoza et al. [19]; Z. Ko et al. 2026). By measuring starlight that filters through a planet’s atmosphere, transmission spectroscopy is inevitably sensitive to the stellar photosphere. Heterogeneities like spots and faculae can imprint signatures onto transmission spectra, masking or mimicking exoplanet atmospheric features [25] (B. Rackham et al. 2017; B. V. Rackham et al. 2018; B. V. Rackham et al. 2019; A. Pinhas et al. 2018; Z. Zhang et al. 2018; H. R. Wakeford et al. 2019). These effects are especially prominent for K- and M-dwarfs due to their high magnetic activity and large spot and facula covering fractions (B. V. Rackham & J. de Wit 2024; H. N. Smitha et al. 2025; Sumida, V. Y. D. et al. 2026; C. A. Murray et al. 2026). For several rocky planets around such hosts, stellar contamination has prevented definitive interpretations of the transmission spectra [e.g. 2] (S. E. Moran et al. 2023; O. Lim et al. 2023; E. M. May et al. 2023; T. Barclay et al. 2025). Developing models to address stellar contamination is therefore essential to robustly understanding exoplanet atmospheres.
Successfully launched in January 2026 [21] as part of NASA’s Astrophysics Pioneers Program, the Pandora SmallSat mission aims to address the issue of stellar contamination by obtaining long-baseline observations of a sample of exoplanets and their host stars to disentangle planetary and stellar signals (T. Barclay et al. 2025). Pandora’s visible-band photometric channel (VISDA) covers 0.4 to 0.7 and is responsible for tracking the time-varying stellar surface heterogeneities (J. Karburn et al. 2023). The near-infrared spectroscopic channel (NIRDA) covers 0.9 to 1.6 with an effective resolving power of and is responsible for detecting exoplanet molecular features such as and (Y. Rotman et al. 2026). The primary mission sample consists of around 20 planets spanning Earth to Jupiter in size, orbiting active K- or M-dwarfs. For each target, Pandora will obtain around ten 24-hour visits [26] (T. Barclay et al. 2025). By operating concurrently with JWST, Pandora will also provide long-baseline stellar monitoring needed to correct stellar contamination in JWST transmission spectra.
Under the key assumption that the adopted stellar model perfectly describes the true stellar spectra, Pandora can typically recover photospheric temperatures to K, infer the stellar radius with negligible bias at the level, and constrain spot properties when they contribute noticeably to the disk-integrated spectrum. For simple spot geometries, Pandora’s out-of-transit data can reduce contamination signals from – ppm down to ppm, well below the anticipated precision of Pandora transmission spectra (B. V. Rackham et al. 2026).
However, stellar models are imperfect representations of real stellar spectra. Typical 1D spectral models neglect the magnetic and 3D convective structure of active regions, treating spot spectra as temperature shifts of the quiescent photosphere. Independent observational and theoretical work has shown that this approximation breaks down for cool stars, especially below 3000 K [23, 25] (H. R. Wakeford et al. 2019; C. A. Murray et al. 2026; A. R. Iyer et al. 2026; A. R. Iyer & M. R. Line 2020; I. S. Narrett et al. 2024; H. N. Smitha et al. 2025; Sumida, V. Y. D. et al. 2026). Therefore, the accuracy of contamination corrections is constrained by the fidelity of the underlying stellar models.
In this paper, we directly address the issue of stellar model–data mismatch by introducing two Gaussian process (GP) components into the stellar spectral model: one describing deviations in the photosphere spectrum and one describing deviations in the spot spectrum. GPs provide a flexible, non-parametric framework for modeling wavelength-correlated residuals and are thus able to capture and marginalize over stellar model inaccuracies without assuming a specific functional form. GPs have been explored as a way to model correlated residuals in transmission spectra (Y. Rotman et al. 2025) and have been incorporated into JWST analyses to tackle stellar contamination [19] (Z. Ko et al. 2026). However, individual JWST transit observations generally lack the long-baseline, time-variable stellar monitoring needed to empirically disentangle the underlying stellar spectral components. Pandora is well-suited to address this problem because its repeated out-of-transit observations can sample changing spot covering fractions as stars rotate over time, causing the photosphere and spot components to contribute with different weights to the observed disk-integrated spectrum. Through this time-variable mixing, Pandora’s out-of-transit data can be used to separate the two components and infer the stellar contamination signal. This is analogous to existing GP-based spectral disentangling frameworks that separate binary-star components from time-variable composite spectra [14] and methods that use time-resolved spectroscopy over a stellar rotation cycle to empirically constrain the spectra of stellar photospheres and surface heterogeneities [7]. Our framework follows this empirical disentangling motivation but is tailored to Pandora’s observing strategy and addresses stellar-model mismatch by using stellar models as GP mean functions rather than than exact templates. This directly supports Pandora’s science goal of measuring the stellar spot covering fractions and correcting their impacts on transmission spectra ((T. Barclay et al. 2025)). Using revised simulated Pandora datasets based on B. V. Rackham et al. (2026), we quantify how this GP-aided stellar model framework improves the recovery of latent stellar components and corrected transmission spectra relative to retrievals that rely solely on biased physical stellar models.
We also propagate the stellar retrieval posterior samples into the atmospheric retrieval as empirical prior distributions over the contamination correction factor. The atmospheric retrieval is thus able to incorporate stellar-contamination uncertainty directly into the inferred planetary parameters. This differs from conventional approaches that correct a transmission spectrum using deterministic stellar templates, which can lead to biased and overconfident atmospheric constraints when the stellar models are inaccurate.
In § 2, we describe the simulated Pandora dataset used to test this framework. In § 3, Methods I, we present the stellar retrieval framework, including the baseline two-component stellar contamination model and the GP-aided extension. In § 4, Methods II, we describe how the inferred stellar spectra are propagated into atmospheric retrievals. In § 5, we present results for a representative M-dwarf scenario and then summarize performance across all eight simulated stellar activity scenarios. In § 6, we interpret the GP corrections, discuss when the GP-aided framework is warranted, and outline future extensions. Finally, we summarize our conclusions in § 7.
Simulated Dataset
We use a revised set of simulated Pandora observations based on the eight stellar activity scenarios presented by B. V. Rackham et al. (2026). The spot filling-factor time series have been rescaled to produce approximately 1% peak-to-peak VISDA variability across the sampled observations, representative of Pandora targets. This revised dataset is publicly available on Zenodo1. This dataset consists of simulated out-of-transit Pandora VISDA and NIRDA observations for eight representative stellar activity scenarios: K- and M-dwarfs, fast and slow rotators, giant and solar-like spots (e.g., MFG denotes an M-dwarf, fast rotator with giant spots). Each scenario is set to a magnitude of mag, representative of Pandora targets. The dataset is summarized in Table 1.
| Scenario | (K) | (K) | (d) | () | (pc) | (°) | NIRDA var. (%) | VISDA var. (%) | |||
| KFG | 4700 | 3600 | 5 | 0.73 | 4.5 | 69.2 | 7 | 0.000 | 0.011 | 0.63 | 1.00 |
| KFS | 4700 | 3600 | 5 | 0.73 | 4.5 | 69.2 | 2 | 0.030 | 0.041 | 0.61 | 1.00 |
| KSG | 4700 | 3600 | 30 | 0.73 | 4.5 | 69.2 | 7 | 0.000 | 0.011 | 0.62 | 1.00 |
| KSS | 4700 | 3600 | 30 | 0.73 | 4.5 | 69.2 | 2 | 0.030 | 0.041 | 0.65 | 1.00 |
| MFG | 3400 | 3000 | 5 | 0.36 | 5.0 | 21.1 | 7 | 0.000 | 0.013 | 0.50 | 1.00 |
| MFS | 3400 | 3000 | 5 | 0.36 | 5.0 | 21.1 | 2 | 0.049 | 0.061 | 0.46 | 1.00 |
| MSG | 3400 | 3000 | 30 | 0.36 | 5.0 | 21.1 | 7 | 0.000 | 0.013 | 0.46 | 1.00 |
| MSS | 3400 | 3000 | 30 | 0.36 | 5.0 | 21.1 | 2 | 0.049 | 0.062 | 0.46 | 1.00 |
Table 1. Table 1. Simulated stellar activity scenarios. is the spot angular radius, and and are the minimum and maximum spot covering fractions of the sinusoidal time series. The NIRDA and VISDA variabilities are peak-to-peak amplitudes as a percentage of the mean flux. Distances are set such that an unspotted star with the given photosphere temperature has .
Time-dependent spot filling factors are initially estimated using spotter (L. Garcia et al. [24]). For each spectral type and spot size, a peak-to-peak variability amplitude of 1% in the VISDA band is adopted for the spotter simulations, consistent with typical rotational modulation in active K- and M-dwarfs. Circular spots are distributed isotropically over the stellar surface and the number of spots is increased until the VISDA rotational modulation reaches 1%. These geometric assumptions are used only to provide representative spot-covering-fraction ranges and are not intended to model a true stellar surface. Our retrieval framework only uses the resulting disk-integrated spectra and projected spot covering fractions rather than the detailed spot geometry. For each configuration, minimum and maximum projected spot filling factors over a rotation cycle, and , are calculated by averaging over 100 realizations.
However, spotter applies a spatially varying contrast profile to each spot, whereas the subsequent Pandora data simulations assume a uniform spot contrast. As filling factors extracted from spotter include pixels in the low-contrast wings of the spot profiles, applying a uniform contrast across these areas therefore produces substantially larger VISDA variability amplitudes than the original 1% target. For this reason, we rescaled the filling-factor ranges in this study to produce approximately 1% peak-to-peak VISDA variability across the sampled pre- and post-transit binned observations.
These values are used to define a sinusoidal time series that varies between and over the adopted rotation period, describing the time evolution of the spot filling factor. The sinusoidal model is a simplifying choice that provides a controlled sampling of different stellar activity states, and more complex spot-covering-fraction models can be implemented, as discussed in § 6.4.
The disk-integrated stellar spectrum at each time step is constructed as a linear combination of a quiet photosphere and a cool spot component both drawn from the PHOENIX ACES grid ((T.-O. Husser et al. 2013)),
and are the stellar surface fluxes at the photospheric and spot temperatures, respectively. The stellar spectra are scaled to yield the flux density at Earth and propagated through an instrument response and noise model using the pandora-sat package (C. Hedges et al. [30]).
Each of the eight scenarios has 10 simulated visits to mimic a realistic Pandora dataset. Each visit spans a 24-hour window centered on a hypothetical transit, with an assumed planetary orbital period of three days (T. Barclay et al. 2025). Within each 24-hour visit, out-of-transit data are grouped into two 11-hour windows: a pre-transit bin and a post-transit bin, excluding data within hr of transit center. This procedure yields 20 out-of-transit epochs per stellar scenario across eight scenarios, for a combined set of 160 binned datasets. Each dataset thus consists of one VISDA broadband point and one NIRDA spectrum corresponding to an 11-hour out-of-transit interval, along with the underlying injected stellar parameters and spot filling factors. In this work, we take these binned VISDA and NIRDA datasets as the input to our extended retrieval framework.
Methods I: Stellar Retrievals
Baseline Model
To simulate the effects of stellar model–data mismatch, we generate and retrieve the stellar spectra using different PHOENIX model grids. The simulated Pandora observations described in § 2 are generated with the PHOENIX ACES grid (T.-O. Husser et al. 2013), while the retrievals in this work use the PHOENIX NewEra grid [29]. As a control, we also retrieve the same simulated observations with the PHOENIX ACES grid used to generate them, so that no model–data mismatch is present; these retrievals are used only for the model comparison in § 6.3. Both grids are 1D local thermodynamic equilibrium (LTE) stellar atmosphere models with similar parameter coverage, but they differ primarily in their opacity inputs and model updates [29]. Because molecular opacities dominate the spectra of cool K- and M-dwarfs, the largest ACES-NewEra discrepancies are expected at low effective temperatures. This setup provides a controlled proxy for the real observational case in which the molecular complexity of cool photospheres and magnetically active regions is not perfectly captured by the adopted stellar atmosphere model.
Figure 2 demonstrates how this ACES-NewEra mismatch can propagate into a stellar-contamination correction. We generate an uncontaminated transmission spectrum representative of a Pandora target using POSEIDON (R. J. MacDonald & N. Madhusudhan 2017; R. J. MacDonald 2023), setting a water abundance of over the spectral range and resolution of Pandora’s NIRDA detector ( to , ). We inject a stellar contamination instance representative of a Pandora target using the PHOENIX ACES stellar library, following the standard two-component contamination prescription (B. V. Rackham et al. 2018). We then attempt to recover the uncontaminated transmission spectrum by correcting for stellar contamination using either the correct PHOENIX ACES grid or the mismatched PHOENIX NewEra grid at the same physical parameters. When the correction uses the correct ACES grid, the uncontaminated transmission spectrum is fully recovered; however, when the correction uses the mismatched NewEra grid, wavelength-dependent residuals persist, and the discrepancy grows toward cooler stellar temperatures. For temperatures below K, the discrepancies can exceed 100 ppm, suggesting that this discrepancy can fundamentally limit the accuracy of contamination corrections. We therefore first define the deterministic stellar-contamination model used as the baseline for comparison.

Figure 2. Effect of ACES-NewEra stellar model mismatch on contamination-correction accuracy. The left panel shows simulated water-bearing transmission spectra after correcting for stellar contamination using either the correct PHOENIX ACES grid or the mismatched PHOENIX NewEra grid. The true uncontaminated spectrum (black dashed) is shown alongside the corrected spectra for each temperature pair. The right panel shows the residuals between the corrected and true transmission spectra. The dark gray shaded regions indicate 100 ppm uncertainty, a conservative representation of JWST instrumental precision [17]. At , Pandora is expected to reach precisions of ppm for bright targets (), but for fainter targets (), the uncertainty is expected to be ppm (Y. Rotman et al. 2026), which is shaded in light gray.
The baseline stellar contamination model follows the two-component prescription given in Equation (1). The disk-integrated stellar spectrum is modeled as a linear combination of a quiescent photosphere spectrum and a cool spot spectrum, weighted by the spot covering fraction. For both the non-GP and GP-aided retrievals, we model the spot-covering fraction time series sinusoidally as
where is the mean covering fraction, is the modulation semi-amplitude, is the stellar rotation period, and is the phase. We intentionally adopt this simplified prescription, matching the functional form used to generate the simulated dataset, to isolate the wavelength-domain model–data mismatch problem without adding another layer of time-domain model flexibility. Future extensions are discussed in § 6.4.

Figure 1. We simulate out-of-transit Pandora VISDA and NIRDA observations of representative targets as inputs to our retrieval analyses. Here, we show the M-dwarf, fast-rotator, giant-spot scenario. Each epoch consists of one VISDA broadband photometric point and one NIRDA spectrum, binned over an 11-hour pre- or post-transit interval. For each of the eight stellar scenarios, the simulated dataset contains 10 24-hour visits, corresponding to 20 out-of-transit epochs, with colors indicating time of observation.
This sinusoidal form highlights an identifiability limitation of the two-component mixture model. Substituting Equation (2) into Equation (1) shows that the time-dependent disk-integrated spectrum can be written as
where
The observations therefore constrain the mean composite spectrum and the modulation spectrum directly, while the individual component spectra and spot covering fractions are inferred quantities.
The model is parameterized by the photosphere temperature , the temperature contrast , the spot covering fraction , and the stellar radius . Priors for all physical model parameters are summarized in Table 2. We enforce and adopt small, nonzero lower bounds on the mean spot covering fraction and its modulation amplitude to preserve the two-component, time-variable model. would correspond to no spotted component, and would correspond to no rotationally modulated mixture. These bounds do not affect the simulated scenarios considered, as the smallest true values are and . We note that the instantaneous filling factor can still reach .
| Parameter | Prior | Bounds |
| Physical Parameters | ||
| (K), K-dwarf scenarios | 3000, 5000 | |
| (K), M-dwarf scenarios | 2300, 4300 | |
| (K), K-dwarf scenarios | ||
| (K), M-dwarf scenarios | ||
| 0.001, 0.85 | ||
| (rad) | ||
| (d) | 1, 50 | |
| (), K-dwarf scenarios | 0.6, 0.9 | |
| (), M-dwarf scenarios | 0.25, 0.5 | |
| GP Hyperparameters | ||
| () | ||
| () |
Table 2. Prior distributions for all retrieval parameters. The physical-parameter priors define the deterministic stellar model used to construct the GP mean functions. The resulting physical parameters are not interpreted as final stellar constraints because they may be biased by stellar model–data mismatch. The same physical-parameter priors are used for the non-GP and GP-aided retrievals. The GP hyperparameter priors apply independently to both the photosphere and spot GPs. Notes. denotes a uniform prior and denotes a normal prior with mean and standard deviation , truncated to the listed bounds. The spot covering fraction is parameterized as , and the amplitude prior upper bound is set such that remains within .
The model is evaluated on the combined VISDA+NIRDA data: the 701 NIRDA spectral bins and a single VISDA broadband point. For NIRDA, the component surface fluxes are passed through the NIRDA instrument response and binned to the detector wavelength grid with pandora-sat (C. Hedges et al. [30]). For VISDA, the surface flux of each component is integrated over the full VISDA sensitivity curve (0.4–0.7 m) and converted to a band-averaged flux density, also with pandora-sat, consistent with how the simulated observations were generated.
To verify that our simulated model–model mismatch is representative of real model–data mismatch, we compare against empirical observations of TRAPPIST-1, a cool (2566 K) 0.09 M-dwarf (C. Piaulet-Ghorayeb et al. 2025). From two JWST/NIRISS/SOSS observations of TRAPPIST-1 b, the out-of-transit data do not match PHOENIX ACES and SPHINX models evaluated at literature values (O. Lim et al. 2023). Both PHOENIX ACES and SPHINX are 1D LTE stellar atmosphere grids, though SPHINX is specifically designed for cooler M-dwarfs (2000–4000 K) and incorporates updated molecular opacities relevant at these temperatures (A. R. Iyer et al. 2023). The out-of-transit stellar spectral mismatch is approximately 10–20% RMS across the NIRISS/SOSS wavelength range of 0.6–2.8 m, with the optical (0.6–1.1 m) dominating at 20–25%. This stellar model infidelity propagates into the transmission spectrum, resulting in an estimated model-driven uncertainty of 1800 ppm at native pixel resolution (O. Lim et al. 2023). Similarly, two NIRISS/SOSS observations of TRAPPIST-1 c show that the overall quality of out-of-transit observations fit with PHOENIX ACES models are poor, with , and are especially poor under 1.1 m (M. Radica et al. 2025). IRTF/SpeX comparisons for mid-to-late M-dwarfs including TRAPPIST-1 also show structured model–data residuals at the 10–20% level, with the largest discrepancies occurring at shorter wavelengths, especially below 0.75 m (A. R. Iyer et al. 2026). These shorter-wavelength regions are particularly sensitive to molecular opacity from FeH and TiO/VO, cloud opacity, convective treatment, and photospheric heterogeneity, all of which remain challenging to capture in 1D stellar atmosphere models.
Our ACES versus NewEra model–model mismatch at 3000 K shows a similar pattern of 5–8% RMS over the full range, with the optical dominating at 10–15%. The TRAPPIST-1 spectra show the largest discrepancies with the models in the 1.0–1.1 m region ([15] (O. Lim et al. 2023)), which we also observe in our model comparisons (Figure 2). Similar discrepancies have been observed for the K-dwarf HAT-P-11, where PHOENIX NewEra models fit near-infrared spectra but struggle to reproduce optical observations (P. Niraula et al. 2026). These observations motivate our controlled test of how GP-aided retrievals can mitigate stellar-model inaccuracies, although model–data discrepancies may differ in magnitude and structure.
GP-aided Model
To account for the wavelength-dependent mismatch between the stellar models and the simulated observations, we introduce two GP components into the stellar contamination model: one associated with the photosphere spectrum and one associated with the spot spectrum. The GP-aided model uses the same two-component stellar contamination model and sinusoidal spot covering model described in § 3.1 but allows the component spectra to deviate from the adopted stellar grid. The changing spot covering fraction across epochs provides leverage to constrain these latent component spectra, but the identifiability limitation described in § 3.1 remains: the data constrain the composite spectra more directly than the individual photosphere spectrum, spot spectrum, and spot covering fractions.
The deterministic non-GP retrieval strictly follows the stellar grids as exact models, which strongly constrains the photosphere and spot components but can bias the inferred spectra and filling factors when the grids are inaccurate. The GP-aided retrieval instead treats the stellar grids as a physically motivated mean function and allows wavelength-correlated deviations from it. This added flexibility reduces model-driven bias when the stellar grid is inaccurate, but relaxing the grid constraint also makes the latent components more dependent on the chosen models and priors. The GP-corrected spectra should therefore be interpreted as data-constrained latent components rather than fully model-independent measurements of the true stellar components.
Since the data are fit with the incorrect deterministic stellar model, the resulting baseline physical parameters are expected to be biased and are not interpreted as stellar constraints. We write our model as a joint Gaussian distribution over the component spectra and the observed data, and we use the corresponding conditional distribution to infer the GP-corrected photosphere and spot spectra.
For each out-of-transit epoch , we write the spectrum observed by Pandora as
where is the observed VISDA+NIRDA data at epoch , is the spot covering fraction at epoch , is the GP-corrected photosphere spectrum, is the GP-corrected spot spectrum, and is the measurement noise at epoch . Each spectrum is evaluated on the combined VISDA+NIRDA wavelength grid. Each VISDA flux value is band-averaged, obtained by integrating the model spectrum over the VISDA throughput. The GP VISDA correction is therefore also averaged over the VISDA throughput, such that each GP contributes a single additive correction to the band-averaged VISDA flux. This correction is shared across epochs and correlated with the NIRDA corrections through the kernel.
The component spectra are modeled as Gaussian processes about deterministic stellar mean spectra,
where and are the deterministic photosphere and spot mean spectra, and and are the corresponding GP covariance matrices. We assume the photosphere and spot GP deviations are independent and discuss this simplifying assumption in § 6.4. The GP is intended to represent imperfectly modeled opacity structure, which may manifest as narrow molecular-opacity structures rather than smooth continuum offsets. Therefore, we adopt a Matérn-1/2, or exponential, covariance kernel over the combined VISDA+NIRDA wavelength grid for both components. This kernel produces continuous but nondifferentiable functions, making it less smooth than commonly used squared-exponential or higher order Matérn kernels. The GP-aided model therefore introduces four spectral GP hyperparameters: the photosphere GP variance amplitude and correlation length scale , and the spot GP variance amplitude and correlation length scale . The length-scale priors span from the spacing between adjacent wavelength points to the full combined VISDA+NIRDA wavelength range. The amplitude priors are informed by the residuals of the deterministic non-GP retrievals across all scenarios: the range is chosen to broadly cover the residual amplitudes of every scenario, so the same priors are adopted across scenarios. The mean functions and depend on the parameters of the deterministic photosphere and spot models described in § 3.1, which are inferred simultaneously with the GP hyperparameters. All priors are summarized in Table 2.
The deterministic mean model for epoch is
Assuming independence between the photosphere GP, the spot GP, and the measurement noise, the covariance between the spectra observed at epochs and is
where is the measurement-noise covariance matrix for epoch . The first term describes the covariance from the shared photosphere GP, the second term describes covariance from the shared spot GP, and the final term accounts for independent measurement noise.
The GP-aided stellar model can thus be written as the joint Gaussian distribution over the photosphere spectrum , spot spectrum , and observed spectra :
where is the stacked observed Pandora data from Equation (6), is the corresponding stacked deterministic mean model from Equation (9), and is the full data covariance matrix from Equation (10). The cross-covariance matrices between the component spectra and the stacked data are
Equation (11) defines the full GP-aided stellar model used in our retrievals.
Applying the standard conditional Gaussian identity gives the posterior distribution of the component spectra conditioned on the Pandora data,
where , , , and
We sample from Equation (14) to obtain posterior samples of the GP-corrected photosphere and spot spectra. For computational efficiency, the marginalized GP likelihood is evaluated using the Woodbury identity and the matrix determinant lemma, avoiding direct inversion of the full stacked data covariance matrix ((C. E. Rasmussen & C. K. I. Williams 2006)).
We run the non-GP retrieval and the GP-aided retrieval on all eight scenarios in the simulated Pandora dataset described in § 2, using the full set of 20 out-of-transit epochs for each scenario. Stellar retrievals are performed with the nested sampling package UltraNest ([11]) using its ReactiveNestedSampler with a slice step sampler ( steps per iteration).
Methods II: Atmospheric Retrievals
To assess how the inferred stellar spectra propagate into atmospheric inferences, we generate a simulated planetary transmission spectrum, inject stellar contamination corresponding to each simulated Pandora stellar scenario, and compare atmospheric retrievals that marginalize over the contamination-factor posteriors inferred from the non-GP and GP-aided stellar retrievals.
Simulating Transmission Spectra
Using POSEIDON ((R. J. MacDonald & N. Madhusudhan 2017; R. J. MacDonald 2023)), we model the simulated transmission spectrum after the gas giant WASP-69 b, a representative Pandora target ([26]) with water features and stellar contamination effects ((S. Khalafinejad et al. 2021; D. J. M. Petit dit de la Roche et al. 2024)). Table 3 summarizes the parameters used. The atmosphere is modeled as an H-He-dominated atmosphere with HO as the only trace absorber. The pressure-temperature profile is assumed to be isothermal, spanning to 100 bar, and the atmosphere is taken to be cloud-free. We compute the transmission spectrum over the Pandora/NIRDA wavelength range (0.9–1.6 m) at a resolving power of . We then bin this spectrum onto 58 logarithmically spaced bins at spanning 0.9 to 1.6 m, comparable to NIRDA’s resolving power. This simplified atmospheric setup is chosen to produce a controlled
| Parameter | Value |
| Stellar Parameters | |
| Stellar radius, | |
| Stellar effective temperature, | |
| Stellar surface gravity, (cgs) | |
| Stellar metallicity, [Fe/H] | |
| Apparent magnitude, | |
| Planetary Parameters | |
| Planetary radius, | |
| Planetary mass, | |
| Equilibrium temperature, | |
| Atmospheric Parameters | |
| HO volume mixing ratio, | |
| Pressure range | – bar |
| Number of atmospheric layers, | |
| Reference pressure, | bar |
| Radius at reference pressure, |
Table 3. Parameters used to generate the uncontaminated WASP-69 b transmission spectrum with POSEIDON.
water-bearing transmission spectrum rather than to provide a complete atmospheric model of WASP-69 b.
Injecting Stellar Contamination
We inject stellar contamination into the uncontaminated planetary spectrum. Following B. V. Rackham et al. (2018), the contamination factor is defined as
where and are the photosphere and spot surface flux spectra, and is the spot covering fraction at the time of transit. For the non-GP retrieval, and are the PHOENIX NewEra photosphere and spot spectra evaluated at each posterior sample. For the GP-aided retrieval, they are the GP-corrected component spectra and from Equation (6). In both cases, is the posterior spot-covering-fraction model evaluated at the transit epoch.
This factor represents the multiplicative bias imposed on transmission spectra by unocculted stellar surface heterogeneities. We consider only unocculted spots and assume that any spot-crossing events are either absent or have been identified and masked before constructing the transmission spectra. Because varies with time as the star rotates, each transit has a different contamination factor.
We compute the true contamination factor using the PHOENIX ACES photosphere and spot spectra and the true spot covering fraction at each transit epoch from the simulated dataset. The contaminated transmission spectrum is then
where is the uncontaminated planetary spectrum and is a Gaussian noise realization drawn from the expected single-transit NIRDA precision, simulated with pandora-sat (C. Hedges et al. [30]) for a WASP-69 b-like system at . The per-bin uncertainties range from 520 to 960 ppm (median 630 ppm) and are assumed uncorrelated between bins. We draw an independent noise realization for each of the 10 transits in each scenario. The non-GP and GP-aided atmospheric retrievals are applied to the same noisy spectra so that differences between them are not caused by different noise draws.
Although the injected planetary spectrum is based on WASP-69 b, which has a K K-dwarf host star, we apply stellar contamination factors from each of the eight simulated scenarios described in § 2. This therefore does not model WASP-69 b’s specific host star in each case, but rather uses a representative water-bearing gas-giant transmission spectrum to test how different stellar activity scenarios affect the contamination correction and atmospheric retrieval. We apply this procedure to each of the 10 transits in each of the eight stellar scenarios, producing contaminated transmission spectra that span the range of stellar activity levels expected for Pandora targets.
Atmospheric Retrievals
To determine how stellar-model treatment propagates into atmospheric inference, we perform two atmospheric retrievals for each 10-transit scenario. In one retrieval, we use the contamination-factor posterior from the non-GP stellar retrieval; in the other, we use the contamination-factor posterior from the GP-aided stellar retrieval. We treat the stellar contamination factor as a nuisance quantity constrained by the stellar retrieval and marginalize over it in the atmospheric retrieval likelihood. We use a simplified atmospheric setup to isolate the effect of our stellar-contamination corrections on inferred water abundance rather than to provide a complete atmospheric analysis.
From each stellar retrieval, we draw 1000 equally-weighted posterior samples produced by UltraNest, resampled in proportion to their nested-sampling posterior weights. Each draw gives a photosphere spectrum, a spot spectrum, and a spot-covering-fraction time series, from which we compute from Equation (18) at each of the 10 transits. Each transit spectrum contains 58 wavelength bins, so each contamination-factor draw has elements. This representation preserves the wavelength-to-wavelength and epoch-to-epoch correlations in the contamination factor learned by the stellar retrieval.
Directly sampling all 580 elements of the contamination factor as independent nuisance parameters would be impractical and would discard the encoded correlation structure. We therefore represent the contamination posterior in a reduced basis. We compute the empirical mean contamination vector, , from the 1000 stored draws and perform a singular value decomposition of the centered contamination-factor draws. We then write a contamination realization as
where are the principal-component vectors and are the corresponding amplitudes sampled jointly with the atmospheric parameters. The prior on each coefficient is defined empirically from the stellar posterior. We project the stored contamination-factor draws onto each principal component and use the resulting empirical distribution as the prior on .
We choose the number of components using a signal-to-noise criterion. For each principal component, we estimate the size of the change in the modeled transmission spectrum produced by a shift along that component relative to the observational uncertainties and retain components with . After projecting the stored contamination-factor draws onto the retained components, we compute the covariance of the residual contamination draws, . This describes the remaining contamination uncertainty, including its correlations across wavelength and across transits.
We stack the 10 contaminated transmission spectra into a single vector, , and define the stellar-contaminated model as , where denotes element-wise multiplication. We write the log-likelihood as
is the difference between the observed spectra and contaminated model spectra, and are the observational uncertainties. The second term in propagates the residual contamination into transit-depth space, since affects the transit model multiplicatively.
For all scenarios, only the leading principal component satisfies the SNR criterion, so we adopt in all atmospheric retrievals. We further validate this by running atmospheric retrievals with , 2, 3, and 5 for a representative scenario and find consistent retrieved atmospheric posteriors. These tests are shown in Figure 3.

Figure 3. Test of the number of retained principal components of the stellar contamination factor for the M-dwarf fast-rotator giant-spot scenario. Left: signal-to-noise values for the first five contamination principal components. Only the leading component exceeds the adopted threshold. Right: atmospheric retrieval posteriors obtained when retaining , 2, 3, and 5 principal components. The posteriors are insensitive to the number of retained components, further validating our choice of .
Through this reduced-basis representation, the atmospheric retrieval samples both the atmospheric parameters and the stellar-contamination nuisance parameter. The reported atmospheric posteriors are marginalized over the contamination parameter, and therefore incorporate the stellar-contamination uncertainty propagated from the stellar retrieval.
We use POSEIDON (R. J. MacDonald & N. Madhusudhan 2017; R. J. MacDonald 2023) with dynesty’s Dynamic Nested Sampler (J. S. Speagle 2020), using 500 live points. The priors used in the atmospheric retrievals are summarized in Table 4. We use the same atmospheric retrieval setup with both the non-GP and GP-aided contamination factor posteriors.
| Parameter | Lower Bound | Upper Bound | Prior Type |
| Atmospheric temperature [K] | 500 | 1500 | Uniform |
| Log HO volume mixing ratio | Uniform | ||
| Log reference pressure [bar] | Uniform |
Table 4. Atmospheric retrieval parameters and prior bounds.
We assume an --dominated atmosphere with (O. L. Polyansky et al. 2018) as the only trace absorber. The atmosphere is cloud-free and haze-free, with an isothermal pressure-temperature profile. The He abundance is fixed to its solar value relative to , such that . The choice to retrieve the reference radius or pressure does not meaningfully impact the retrieved precision on the molecular abundances (L. Welbanks & N. Madhusudhan 2019). Pandora targets are transiting planets with precise radius measurements from prior observations, so we fix the planetary reference radius to the input planetary radius listed in Table 3 and retrieve the reference pressure . The remaining stellar and planetary parameters are also fixed to the values used to generate the input spectrum, listed in Table 3. The free atmospheric parameters are thus the temperature , the volume mixing ratio , and the reference pressure . Model spectra are computed from 0.7–1.8 at a constant resolving power of and binned to the wavelength grid of the Pandora NIRDA transmission spectrum.
Results
We fit the simulated out-of-transit stellar spectra for each scenario using both the deterministic non-GP stellar retrieval described in § 3.1 and the GP-aided stellar retrieval described in § 3.2. In § 5.1, we present detailed results for one representative scenario. In § 5.2, we present the contamination-corrected transmission spectra and atmospheric retrieval results for the same example scenario. Finally, in § 5.3, we summarize the retrieval performance across all eight simulated Pandora scenarios.
Example Scenario: M-dwarf fast rotator with giant spots
We first present detailed results for the M-dwarf fast-rotator giant-spot (MFG) scenario. The cool M-dwarf temperatures produce the largest spectral mismatch between the PHOENIX ACES and PHOENIX NewEra grids, while the changing spot covering fraction across epochs helps separate the photosphere and spot contributions.
Figure 4 compares the retrieved disk-integrated spectra from the non-GP and GP-aided retrievals for three representative out-of-transit epochs spanning low, intermediate, and high spot covering fractions. The non-GP retrieval leaves wavelength-dependent residuals, especially toward the shorter wavelengths of the NIRDA band, whereas the GP-aided retrieval reduces these wavelength-dependent residuals.

Figure 4. Comparison between the non-GP and GP-aided retrievals for the simulated MFG scenario. Three representative out-of-transit epochs are shown, spanning low, intermediate, and high spot covering fractions. Model uncertainties are shaded in the residual panels. In the NIRDA bandpass, model uncertainties are approximately two orders of magnitude smaller than the plotted scale and are therefore difficult to see.
Figure 5 shows the corresponding inferred latent photosphere spectrum, spot spectrum, and spot covering fraction for the same scenario. The non-GP retrieval returns stellar components with residuals inconsistent with zero, while the GP-aided retrieval again brings the residuals closer to zero.

Figure 5. Retrieved latent stellar components for the simulated MFG scenario. Left: photosphere spectrum and residuals. Middle: spot spectrum and residuals. Right: spot covering fraction over time and residuals.
Figure 6 shows the corresponding posteriors of the spot-covering-fraction parameters. Both retrievals recover the rotation period and phase, which are largely insensitive to the adopted spectral templates. The GP-aided retrieval yields and posteriors closer to the injected truth, with inflated uncertainties that reflect the stellar-model mismatch.

Figure 6. Posteriors of the spot-covering-fraction parameters for the MFG scenario. Blue and orange show the GP-aided and non-GP retrievals, respectively; black lines mark the injected values.
The GP-aided component spectra do not perfectly reproduce the true input spectra at all wavelengths, reflecting the finite information content of the observations, as the component spectra must be inferred through their changing linear combinations rather than being observed independently.
Propagation into Atmospheric Inferences
We propagate the stellar retrieval results into the atmospheric retrievals as described in § 4 to assess how stellar model treatment affects inferred atmospheric properties. We first present results for the same MFG example, then summarize performance across all scenarios in § 5.3.
Figure 7 shows the median corrected transmission spectrum for this scenario. Because the spot covering fraction in the MFG scenario only spans 0.000–0.013 (Table 1), the stellar contamination is low, and the contaminated transmission spectrum lies close to the injected one. The differences between the non-GP and GP-corrected spectra reflect the effects of the stellar model mismatch. The GP-aided correction reduces the bias and propagates a stellar-model uncertainty.

Figure 7. Corrected transmission spectra for the MFG scenario. The top panel compares the true planetary spectrum, the contaminated spectrum, and the median corrected spectra from the non-GP and GP-aided contamination factor posteriors. Shaded regions show the 16th–84th percentile range propagated from the stellar retrievals; the non-GP range is too narrow to be seen. The middle panel shows the bias of the median corrected spectrum relative to the true spectrum. The bottom shows the width of the corrected spectrum, defined as half the 16th–84th percentile range.
Figure 8 shows the atmospheric retrieval posteriors for this scenario. The GP-aided correction yields posteriors more consistent with the injected truth.

Figure 8. Atmospheric retrieval posteriors for the MFG scenario. Blue and orange show the GP-aided and non-GP cases, respectively; black lines mark the injected atmospheric parameters.
Performance across the full simulated sample
We compare the performance of the non-GP and GP-aided retrievals across all eight simulated Pandora scenarios, summarized in Figure 9. The GP-aided retrieval consistently improves the composite spectrum recovery, but this spectrum-level improvement does not guarantee a lower RMSE for every retrieved stellar component and atmospheric parameter. In Figure 11, we separate each metric into its bias and posterior width, and extend the atmospheric comparison from the water abundance to all three retrieved atmospheric parameters: , the atmospheric temperature , and the reference pressure .

Figure 9. Comparison between the non-GP and GP-aided retrievals across all eight simulated Pandora scenarios, with the K-dwarf scenarios on the left and the M-dwarf scenarios on the right. From top to bottom: RMSE of the recovered composite spectra, photosphere spectra, and spot spectra (in flux units); RMSE of the inferred spot covering fraction (in absolute percentage points) and corrected transmission spectrum (in percent of transit depth); and the distance of the retrieved from truth, normalized by the posterior half-width, defined as , to accommodate non-Gaussian posteriors. The GP RMSE values for some cases are too small to be visible on these scales compared with the non-GP cases. Scenarios where the GP-aided retrieval yields a higher RMSE than the non-GP case are indicated with white hatching.

Figure 11. Bias and posterior width of the non-GP and GP-aided retrievals across all eight simulated Pandora scenarios, expanded from Figure 9. The left two columns show the K-dwarf scenarios and the right two columns show the M-dwarf scenarios. Within each pair, the first column shows the mean absolute bias, , and the second shows the mean posterior half-width, . From top to bottom: the recovered composite, photosphere, and spot spectra (in flux units, averaged over wavelength); the inferred spot covering fraction (in absolute percentage points, averaged over the 20 epochs); the corrected transmission spectrum (in percent of the transit depth averaged over wavelength); and the retrieved water abundance (in dex), temperature (in K), and reference pressure (in dex). The non-GP half-widths for the photosphere spectrum, spot spectrum, spot covering fraction, and corrected transmission spectrum are too small to be visible on these scales compared with the GP-aided half-widths. Scenarios where the GP-aided bias exceeds the non-GP bias are indicated with white hatching.
We also test the case in which the retrieval uses the correct underlying stellar grid, repeating both GPaided and non-GP retrievals using PHOENIX ACES, the same grid used to generate the simulated data. We present the difference in Bayesian evidence as for all scenarios with and without model mismatch in Table 5.
Bayesian model comparison between GP and non-GP stellar retrievals. , where positive values favor the GP model. Uncertainties are the nested-sampling uncertainties on and , added in quadrature. The magnitude of the Bayesian evidence scales with the number of data points; each scenario has 20 time bins 702 spectral bins = 14040 points. Left column: retrievals with model–data mismatch (PHOENIX ACES data retrieved with PHOENIX NewEra). Right column: retrievals without model–data mismatch (PHOENIX ACES data retrieved with PHOENIX ACES).
| Scenario | ||
| With mismatch | Without mismatch | |
| KSS | ||
| KFS | ||
| KSG | ||
| KFG | ||
| MSS | ||
| MFS | ||
| MSG | ||
| MFG |
Table 5.
Discussion
Improving stellar and atmospheric retrievals
The GP-aided framework consistently yields a higher Bayesian evidence in the face of model mismatch (Table 5) and improves the recovered composite spectra across all scenarios (Figure 9). The non-GP retrieval is limited to the adopted PHOENIX NewEra grid and therefore cannot fully reproduce the PHOENIX ACES generated data when the two grids differ. The GP-aided retrieval absorbs the wavelength-dependent residuals into the latent component spectra, reducing biases in the recovered composite stellar spectra.
The recovery of individual stellar components is not always improved with the GP-aided retrieval, as they are less directly constrained by observations. As shown
in § 3.1, under the adopted sinusoidal filling-factor model, observations constrain the mean composite spectrum and rotational modulation more directly than the individual photosphere spectrum, spot spectrum, and spot covering fractions, allowing for degenerate component solutions. Disentangling the photosphere and spot spectra also relies on sufficient variation in the spot covering fraction, since the spot spectrum is constrained mainly through the rotational modulation it produces. In our simulated Pandora observations, with 1% peak-to-peak VISDA variability, the spot contributes little to the observed flux, which limits how well the GP can identify the spot model–data mismatch. Figure 10 presents the photosphere and spot GP corrections for the MFG scenario. We show two cases: the simulated MFG observations used throughout this work, with 1% peak-to-peak VISDA variability, and the original MFG dataset from B. V. Rackham et al. (2026), available on Zenodo5, which has a larger spot covering-fraction range (0.0006–0.08) and approximately 6% peak-to-peak VISDA variability.

Figure 10. GP spectral contributions to the photosphere (top) and spot (bottom) components in the MFG scenario, in percent of the injected PHOENIX ACES component spectrum. Purple curves show the GP correction for the MFG scenario in our synthetic dataset, which has 1% peak-to-peak VISDA variability. Pink shows the GP corrections for the original MFG dataset from B. V. Rackham et al. (2026), with roughly 6% peak-to-peak VISDA variability. Colored curves and bands show the median and 16th–84th percentile regions. Black dashed curves and gray bands show the difference between the injected spectrum and the PHOENIX NewEra mean spectrum evaluated at the retrieved stellar parameters, which is the correction that would recover the injected spectrum exactly.
With 1% VISDA variability, the photosphere GP correction recovers the main wavelength structure of the photosphere mismatch, while the spot GP correction stays close to zero and does not reproduce the spot mismatch. The spot covering fraction in this scenario is only 0.0001–0.013 (Table 1), so the spot spectrum contributes little of the observed flux. With 6% variability, the stronger spot signal allows the spot GP correction to follow the wavelength structure of the spot mismatch, while the photosphere correction is largely unchanged. The ability of the GP to effectively capture the spot mismatch therefore depends on the amplitude of the spot-driven variability.
A weakly constrained spot GP does not necessarily lead to a worse retrieved spot spectrum. The non-GP retrieval can absorb the photosphere mismatch only by shifting the stellar parameters, and the spot parameters can absorb remaining mismatch. The non-GP retrievals therefore lock into tightly constrained but biased solutions. In the GP-aided retrieval, the photosphere GP absorbs the photosphere mismatch, which can also pull the spot spectrum toward the truth. In most scenarios, the GP-aided retrieval recovers a more accurate photosphere spectrum, spot spectrum, and spot covering fraction compared to the non-GP retrieval (Figure 9).
The contamination factor used to correct the transmission spectrum depends explicitly on the inferred photosphere spectrum (Equation (18)). In the KSG scenario, the GP-aided retrieval yields a higher RMSE on the retrieved photosphere spectrum, which translates to a higher RMSE on the corrected transmission spectrum and retrieved water abundance, highlighting how this intrinsic degeneracy between stellar components can affect retrieved atmospheric properties. However, performance in stellar retrievals does not directly translate to performance in atmospheric retrievals due to degeneracies between atmospheric parameters: the retrieved abundance, atmospheric temperature, and reference pressure can combine degenerately to reproduce changes in the offset and wavelength-dependent shape of the spectrum (e.g. (K. Heng & D. Kitzmann 2017; L. Welbanks & N. Madhusudhan 2019)). In the KFG scenario, the GP-aided retrieval yields a larger distance from truth on the retrieved water abundance, despite lower RMSE on the retrieved photosphere spectrum, while in the KSS scenario, the GP-aided retrieval yields a smaller distance from truth on the retrieved water abundance, despite higher RMSE on the retrieved photosphere spectrum.
Across all M-dwarf scenarios, the GP-aided corrections yields a consistent improvement over the non-GP corrections, as the ACES-NewEra mismatch is larger for the M-dwarf scenarios compared to the K-dwarf scenarios. The GP-aided approach is therefore most valuable when stellar model mismatch is large enough to limit deterministic contamination corrections.
Figure 11 shows the bias-variance decomposition of Figure 9. Because the non-GP stellar retrieval has no explicit model-discrepancy term, it under-propagates the uncertainty in the stellar models. The GP-aided retrieval instead marginalizes over wavelength-correlated stellar-model uncertainty, which reduces the bias at the cost of a larger but more realistic variance. The GP-aided framework therefore improves inferences by replacing overconfident and potentially biased constraints with broader but less biased posteriors. We note that the retrieved water abundance under the KSG and MSG scenarios and the retrieved reference pressure under the KSG scenario have higher variance under the non-GP correction. These broader posteriors do not reflect prop-
agated stellar uncertainty; they arise because the biased contamination correction forces the atmospheric model toward the edge of the temperature prior and inflates the degeneracy among atmospheric parameters.
Inferring the source of model–data mismatch
While GPs offer empirically-learned corrections rather than physics-driven corrections, their inferred wavelength structure can still provide insight into the missing physics that drive the mismatch, as shown in Figure 10. For our simulated dataset with 1% peak-to-peak VISDA variability, the photosphere GP component recovers the main wavelength structure of the underlying model mismatch, and the spot GP component can recover the wavelength structure of the mismatch when the spot contribution is increased.
The vertical offsets of the GP contributions reflect the degeneracy discussed in § 6.1. Deterministic stellar parameters are inferred simultaneously with the GP hyperparameters, so changes in , , and can absorb some of the same wavelength-dependent structure captured by the GP. This is especially relevant near molecular bandheads, where opacity differences between model grids and temperature or spot-filling-factor changes can produce similar spectral structure.
Nonetheless, the structure of the GP contribution can follow that of the mismatch, particularly below , where the ACES-NewEra discrepancy is largest. This wavelength region is dominated by FeH and TiO opacity, molecules whose line lists differ between the two grids: NewEra adopts updated ExoMol data for TiO (L. K. McKemmish et al. 2020) and FeH (M. Dulick et al. [16]; A. Burrows et al. [13]; P. F. Bernath [8]), whereas ACES relies on earlier molecular databases (T.-O. Husser et al. 2013).
The GP corrections can therefore identify spectral regions where the stellar models are least adequate, but only for components that contribute enough of the observed flux to be constrained. Unlike direct residual inspection, the GP model quantifies the amplitude and wavelength scale of the discrepancy and infers the level of correlated model-error structure supported by the data given the observational uncertainties. In this way, the GP-aided framework can serve both as a tool for marginalizing over stellar-model systematics and as a guide to where stellar models, such as their molecular line lists, most need improvement.
When to use the GP-aided framework
For a real observation, the true extent of model–data mismatch is unknown a priori. Therefore, it is important to establish a metric to determine when GP components are warranted. Table 5 demonstrates that Bayesian model comparison can serve as this guideline, as Bayesian evidence rewards goodness of fit while penalizing model complexity. Thus, the GP-aided model is penalized unless the improvement in the likelihood is sufficient to justify the added complexity.
When the retrieval grid matches the grid used to generate the data, the GP-aided retrieval effectively reduces to the non-GP retrieval. The posterior of the photosphere GP amplitude collapses onto its lower prior bound, and its length scale becomes uninformative, since a correlation length has no effect on the likelihood once the GP amplitude is negligible. The spot GP hyperparameters remain uninformative because the spot contributes only a small fraction of the total flux (§ 6.1). With the GP terms suppressed, the GP-aided fit performs comparably to the non-GP fit, and the resulting values are consistent with zero within their uncertainties (Table 5). In contrast, when the retrieval grid differs from the generating grid, the photosphere tosphere GP amplitude is constrained above the lower prior bound, and reaches in favor of the GP-aided model.
For real observations, it is therefore important to compare both non-GP and GP-aided retrievals to determine whether the GP corrections are justified. A large positive along with a GP amplitude constrained away from its lower prior bound indicates that the adopted stellar grid does not adequately capture the observed spectra and that the GP-aided framework should be used for contamination correction. Conversely, a negative or near-zero suggests that the deterministic stellar model is sufficient and the added GP flexibility is unwarranted.
Additional diagnostics should be used as complementary checks, including posterior predictive checks, cross-validation tests, and inspection of wavelength-correlated residuals. Additionally, a positive indicates only that the more flexible model describes the data better; it does not by itself identify the physical origin of the discrepancy, which could also arise from instrumental systematics or additional surface components. These possibilities should therefore be considered before the GP components are interpreted as a correction to the stellar atmosphere models alone.
Future extensions
The GP-aided stellar-contamination retrieval framework presented here is designed to test whether Pandora’s time-variable spectra can empirically correct wavelength-dependent stellar model mismatch. To isolate this problem, we make simplifying assumptions about the origin of the stellar-model mismatch, the time evolution of the spot covering fraction, and the complexity of the stellar surface. We summarize these in Table 6 and highlight future extensions that can be implemented.
| Simplifying assumption | Justification | Future extension |
| We adopt a revised PHOENIX ACES-generated dataset based on B. V. Rackham et al. (2026), with roughly 1% VISDA variability, as truth and run retrievals with PHOENIX NewEra as a proxy for real model–data mismatch. | This provides a controlled test in which the true component spectra and spot covering fractions are known, allowing us to quantify the GP-aided framework performance. Additionally, the simulated model–model mismatch mimics real model–data mismatch behavior. | Rebuild the simulated dataset with different stellar model grids and test different grids during retrieval to characterize GP performance across a broader range of mismatch. |
| The spot covering fraction is assumed to follow a stable sinusoid. Spot sizes, temperatures, and patterns do not evolve over the observing baseline, and the retrieval adopts the same sinusoidal functional form used to generate the data. | This isolates the impact of the wavelength-domain stellar spectral mismatch without introducing additional uncertainty from a complex time-domain variability model. | Incorporate more flexible and realistic time-domain models for stellar variability and spot evolution, such as quasi-periodic GPs or physically motivated stellar variability models to prevent biasing inferred stellar components from a biased temporal model. |
| The simulated visits for each scenario are evenly distributed over approximately 30 days and are assumed to provide sufficient phase coverage of the stellar activity cycle. | This provides a controlled sampling of different spot covering fractions and maximizes the information available to disentangle the latent photosphere and spot spectra. | Assess how realistic Pandora scheduling, including uneven sampling and aliasing with the stellar rotation period, affects recovery of the latent stellar components. |
| The stellar surface is modeled with only two components: a quiet photosphere and cool spots. | This provides a controlled test of whether Pandora’s time-variable observations can disentangle two latent spectral components. | Extend the framework to include additional stellar components, such as faculae, plages, multiple spot-temperature populations, or continuous temperature distributions. |
| The planet is assumed to transit an immaculate photosphere. | This isolates the effect of wavelength-domain stellar-model mismatch and matches the standard unocculted-spot contamination prescription used for the atmospheric retrieval tests. | Extend the framework to account for heterogeneous transit chords, including spot- and facula-crossing events (e.g., [18]), and the dependence of stellar contamination on active-region latitude and planetary impact parameter (e.g., [27]). |
| Photosphere and spot GP corrections are assumed to be independent, though inaccurate molecular opacities could produce correlated structure in both component spectra. | This keeps the covariance structure tractable. | Use a shared latent GP component to model wavelength-dependent stellar-model discrepancies that are correlated between the photosphere and spot spectra. |
Table 6. Summary of simplifying assumptions adopted in the GP-aided stellar retrieval framework, their justification in this work, and possible future extensions.
Despite these limitations, this work provides a framework for using GPs to disentangle time-varying spectroscopic observations and empirically infer stellar-contamination corrections. The framework presented here is modular: the stellar grids are used as the GP mean functions, the time-domain model is used for the filling factors, and the number of stellar surface components can be changed. Therefore, the limitations presented in Table 6 can be addressed independently and incorporated directly into the existing retrieval framework.
Conclusion
In this work, we present a GP-aided framework that leverages Pandora’s long-baseline observations to empirically learn the stellar spectra needed for stellar-contamination corrections. Rather than treating stellar atmosphere grids as exact spectral templates, we use them as physically motivated mean functions and allow the data to learn wavelength-dependent deviations from those models through GPs. One GP describes deviations from the photosphere model, while a second GP describes deviations from the spot model. This allows the retrieval to absorb model–data mismatch while retaining the physical structure of a two-component stellar-contamination model.
Our framework directly propagates the empirically learned stellar model into the atmospheric retrieval, allowing the atmospheric inference to marginalize over the stellar-contamination uncertainty, including wavelength-correlated uncertainty from imperfect stellar models. This differs from conventional corrections that rely on deterministic and potentially biased stellar models, which can yield biased atmospheric constraints.
We test this framework using simulated Pandora observations for eight representative K- and M-dwarf stellar activity scenarios. Across the full simulated sample, the GP-aided retrieval consistently improves the recovery of the disk-integrated composite stellar spectra relative to the deterministic non-GP retrieval. This spectrum-level improvement can reduce model-driven biases in inferred atmospheric properties, although it does not guarantee improved recovery of atmospheric parameters. Each observation directly constrains the composite spectrum, but the photosphere spectrum, spot spectrum, and spot covering fraction must be inferred, and degeneracies among these components can bias the corrected transmission spectrum. Additionally, degeneracies among , , and HO abundance, together with sensitivity to wavelength-dependent residual structure, can cause small differences in the corrected spectra to be absorbed by different combinations of atmospheric parameters. The GP-induced benefits are most apparent for the M-dwarf scenarios, where the model–data mismatch between stellar grids is largest.
These results demonstrate that our GP-aided spectral disentangling method is a promising approach for leveraging time-variable observations to empirically learn the stellar spectra required for contamination corrections, though future extensions that broaden the tested stellar-model mismatch, relax the simplified time-domain and scheduling assumptions, and include additional stellar surface components will further improve the framework’s applicability. More broadly, similar GP-aided approaches can be applied to future transmission-spectroscopy datasets from missions such as Ariel (G. Tiñetti et al. 2018) and Nautilus (D. Apai et al. [3]), where stellar contamination will remain a key systematic in the atmospheric characterization of planets orbiting active stars.
Acknowledgments
We thank the anonymous referee for their insightful comments, which have greatly improved the manuscript. This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344. The document number is LLNL-JRNL-20203944. Z.K. and P.M. were supported by the LLNL Space Science Institute and the LLNL Academic Engagement Office. Pandora is supported by NASA’s Astrophysics Pioneers Program. This material is based upon work partly supported by the National Aeronautics and Space Administration under Agreement No. 80NSSC21K0593 for the program “Alien Earths.” The results reported herein benefited from collaborations and/or information exchange within NASA’s Nexus for Exoplanet System Science (NExSS) research coordination network sponsored by NASA’s Science Mission Directorate. T.O.F. would like to acknowledge support from the NASA Postdoctoral Program by an appointment at the NASA Goddard Space Flight Center, administered by Oak Ridge Associated Universities under contract with NASA. B.J.H. is supported by an appointment to the NASA Postdoctoral Program at NASA Goddard Space Flight Center, administered by Oak Ridge Associated Universities under contract with NASA (ORAU-80HQTR21CA005).
Software: NumPy ([28]), AstroPy (The Astropy Collaboration et al. 2022), Matplotlib (J. D. Hunter 2007), corner [22], MultiNest [20] via PyMultiNest [12], dynesty (J. S. Speagle 2020), UltraNest [9, 10], POSEIDON (R. J. MacDonald & N. Madhusudhan 2017; R. J. MacDonald 2023), pandora-sat and pandora-sim [30], speclib (B. V. Rackham & J. de Wit 2024; B. V. Rackham 2026)
Bias and Variance of Retrievals
References
- [1]Allart, R., Carteret, Y., Bourrier, V., et al. 2025, A&A, 700, A7, doi: 10.1051/0004-6361/202452525DOI
- [2]Allen, N. H., Espinoza, N., Boehm, V. A., et al. 2026, AJ, 171, 105, doi: 10.3847/1538-3881/ae28cbDOI
- [3]Apai, D., Milster, T. D., Kim, D. W., et al. 2019, AJ, 158, 83, doi: 10.3847/1538-3881/ab2631DOI
- [6]Beatty, T. G., Welbanks, L., Schlawin, E., et al. 2024, ApJL, 970, L10, doi: 10.3847/2041-8213/ad55e9DOI
- [7]Berardo, D., de Wit, J., & Rackham, B. V. 2024, ApJL, 961, L18, doi: 10.3847/2041-8213/ad1b5bDOI
- [8]Bernath, P. F. 2020, JQSRT, 240, 106687, doi: 10.1016/j.jqsrt.2019.106687DOI
- [9]Buchner, J. 2016, Statistics and Computing, 26, 383, doi: 10.1007/s11222-014-9512-y
- [10]Buchner, J. 2019, PASP, 131, 108005, doi: 10.1088/1538-3873/aae7fcDOI
- [11]Buchner, J. 2021, The Journal of Open Source Software, 6, 3001, doi: 10.21105/joss.03001
- [12]Buchner, J., Georgakakis, A., Nandra, K., et al. 2014, A&A, 564, A125, doi: 10.1051/0004-6361/201322971DOI
- [13]Burrows, A., Dulick, M., Bauschlicher, Jr., C. W., et al. 2005, ApJ, 624, 988, doi: 10.1086/429366DOI
- [14]Czekala, I., Mandel, K. S., Andrews, S. M., et al. 2017, ApJ, 840, 49, doi: 10.3847/1538-4357/aaa6ab
- [15]Davoudi, F., Rackham, B. V., Gillon, M., et al. 2024, ApJL, 970, L4, doi: 10.3847/2041-8213/ad5c6cDOI
- [16]Dulick, M., Bauschlicher, Jr., C. W., Burrows, A., et al. 2003, ApJ, 594, 651, doi: 10.1086/376791DOI
- [17]Espinoza, N., & Perrin, M. 2026, Highlights from Exoplanet Observations by the James Webb Space Telescope (Cham: Springer Nature Switzerland), 1–49, doi: 10.1007/978-3-319-30648-3_216-1DOI
- [18]Espinoza, N., Rackham, B. V., Jordán, A., et al. 2019, MNRAS, 482, 2065, doi: 10.1093/mnras/sty2691DOI
- [19]Espinoza, N., Allen, N. H., Glidden, A., et al. 2025, ApJL, 990, L52, doi: 10.3847/2041-8213/adf42eDOI
- [20]Feroz, F., Hobson, M. P., & Bridges, M. 2009, MNRAS, 398, 1601, doi: 10.1111/j.1365-2966.2009.14548.xDOI
- [21]Foote, T. O., Quintana, E. V., Dotson, J. L., et al. 2026, in Space Telescopes and Instrumentation 2026: Optical, Infrared, and Millimeter Wave, ed. L. E. Coyle, S. Matsuura, & M. D. Perrin, Vol. 14145, International Society for Optics and Photonics (SPIE), 1414506, doi: 10.1117/12.3103034
- [22]Foreman-Mackey, D. 2016, JOSS, 1, 24, doi: 10.21105/joss.00024
- [23]Freytag, B., Allard, F., Ludwig, H.-G., Homeier, D., & Steffen, M. 2010, A&A, 513, A19, doi: 10.1051/0004-6361/200913354DOI
- [24]Garcia, L., Rackham, B., & Panwar, V. 2025, JOSS, 10, 8305, doi: 10.21105/joss.08305DOI
- [25]Garcia, L. J., Moran, S. E., Rackham, B. V., et al. 2022, A&A, 665, A19, doi: 10.1051/0004-6361/2021242603
- [26]Gilbert, E. A., Quintana, E. V., Dotson, J. L., et al. 2026, in Space Telescopes and Instrumentation 2026: Optical, Infrared, and Millimeter Wave, ed. L. E. Coyle, S. Matsuura, & M. D. Perrin, Vol. 14145, International Society of Optics and Photonics (SPIE), 1414507, doi: 10.1117/12.3104260
- [27]Glidden, A., Shapiro, A. I., Seager, S., et al. 2026, ApJL, 1008, L48, doi: 10.3847/2041-8213/ae9b0aDOI
- [28]Harris, C. R., Millman, K. J., van der Walt, S. J., et al. 2020, Nature, 585, 357, doi: 10.1038/s41586-020-2649-2DOI
- [29]Hauschildt, P. H., Barman, T., Baron, E., Aufdenberg, J. P., & Schweitzer, A. 2025, A&A, 698, A47, doi: 10.1051/0004-6361/202554171DOI
- [30]Hedges, C., Holcomb, R. J., Hord, B., et al. 2024, in Society of Photo-Optical Instrumentation Engineers (SPIE) Conference Series, Vol. 13101, Software and Cyberinfrastructure for Astronomy VIII, ed. J. Ibsen & G. Chiozzi, 131010F, doi: 10.1117/12.3203026