WorksPhysics and Astronomy
NEXONN: Advancing the NEXOTRANS Exoplanet Atmospheric Retrieval Framework with Transformer-Based Neural Posterior Estimation for JWST Transmission Spectroscopy of WASP-39b
Abstract
The James Webb Space Telescope is delivering unprecedented constraints on exoplanet atmospheres, but computationally intensive Bayesian retrievals challenge the transition from individual planets to population-level studies of planetary formation and evolution. We introduce NEXONN, a transformer-conditioned normalizing-flow framework within NEXOTRANS that enables rapid atmospheric posterior estimation with uncertainty quantification. Incorporating PandExo-based JWST noise, we benchmark NEXONN against PyMultiNest using simulated spectra and JWST observations of WASP-39 b (0.6-12 microns). For simulated MIRI/LRS data, eight posteriors achieve a mean overlap of 80.32%. Retrievals of combined NIRISS, NIRSpec, and MIRI observations yield consistent atmospheric properties. For the full dataset, NEXONN infers C/O = 0.82 (+0.01/-0.02) and [M/H] = 1.13 (+0.04/-0.04), compared with PyMultiNest values of 0.80 (+0.03/-0.01) and 1.19 (+0.05/-0.03). Divergence metrics, Wasserstein distances, posterior overlaps, and coverage tests assess posterior fidelity and uncertainty calibration, revealing parameter-dependent differences. Once trained, NEXONN performs posterior inference within seconds, enabling scalable population studies of exoplanet atmospheric composition, formation, and evolution.
Introduction
The discovery of more than 6000 confirmed exoplanets1, enabled by major space-based surveys such as the Kepler Space Telescope and the Transiting Exoplanet Survey Satellite (TESS), has revealed a remarkable diversity of planetary systems (see, e.g., Seager & Deming 2010; Cloutier 2026, for reviews). These worlds span a broad parameter space in mass, radius, equilibrium temperature, orbital architecture, and host-star properties, encompassing planetary
Corresponding author: Liton Majumdar
[email protected], [email protected]
classes from ultra-hot Jupiters to temperate sub-Neptunes and rocky super-Earths (see, e.g., Madhusudhan 2019; Fortney 2024; Puranavakara et al. 2025; Valencia et al. 2025, for reviews). The growing diversity of known exoplanets has increasingly motivated efforts to understand the physical and chemical processes that shape their formation and evolution. Atmospheric characterization is central to these efforts, providing an observational pathway to constrain planetary composition, thermal structure, and evolutionary history. For example, the atmospheric carbon-to-oxygen ratio (C/O) can provide insights into a planet’s formation environment relative to major ice lines in the protoplanetary disk and its subsequent migration history [35, 10] (He et al. 2026). Atmospheric composition also reflects the interplay of thermochemical equilibrium, disequi librium chemistry, and photochemical processes [55, 19], while, for terrestrial planets, it may additionally carry signatures of surface and interior processes [30, 49]. Inferring these physical and chemical properties from observations requires atmospheric retrieval techniques that couple spectroscopic data with radiative-transfer models (Madhusudhan 2018). Transmission spectroscopy probes the atmospheric limb during primary transit, enabling constraints on molecular abundances and cloud and haze properties [51], whereas secondary-eclipse emission spectroscopy probes the planetary dayside, providing constraints on atmospheric composition and the pressure–temperature structure, including features such as thermal inversions [31]. These observational techniques therefore form the basis for translating exoplanet spectra into constraints on atmospheric physics and chemistry.
While early observations with the Hubble Space Telescope (HST) and Spitzer Space Telescope laid the foundation for exoplanet atmospheric characterization (see Madhusudhan (2019) for a comprehensive review), the advent of the James Webb Space Telescope (JWST) has substantially advanced the field through its unprecedented sensitivity and broad wavelength coverage, extending from approximately 0.6 to 28 m [17]. JWST observations now provide increasingly detailed constraints on atmospheric composition, pressure–temperature structures, clouds and aerosols, elemental abundance ratios, and disequilibrium chemistry across a diverse range of planets, from hot Jupiters to sub-Neptunes and super-Earths (see, e.g., [14, 26], for recent reviews). The growing JWST archive, together with future observations from the Atmospheric Remote-sensing Infrared Exoplanet Large-survey (ARIEL) mission, will facilitate comparative atmospheric studies across increasingly diverse planetary samples [5]. These advances highlight the need for accurate and computationally scalable atmospheric retrieval frameworks.
Atmospheric retrievals combine forward models of planetary spectra [12, 34, 40, 1, 8] with Bayesian inference, commonly employing Markov Chain Monte Carlo (MCMC) or nested-sampling methods [54, 20, 21, 52, 24]. However, conventional Bayesian retrievals often require numerous forward-model evaluations and substantial computational resources, making their repeated application to large planetary samples challenging. This motivates faster inference methods that preserve access to posterior probability distributions.
Machine learning (ML) offers a promising approach to accelerating atmospheric retrievals, with simulation-based inference (SBI) providing a framework for learning statistical relationships between simulated data and atmospheric parameters [9]. Previous ML-based approaches to exoplanet atmospheric retrievals include random forests [39, 41], deep neural networks [63, 53, 7, 3], and surrogate models [25] (Umlu et al. 2023). More recently, neural posterior estimation (NPE), including approaches based on normalizing flow (NF) models, has gained increasing attention as a strategy for directly approximating atmospheric posterior distributions [59, 62, 2, 18, 33, 12]. Unlike conventional Bayesian sampling methods, amortized NPE learns conditional posterior distributions from simulated spectra, enabling rapid inference for new observations after training. However, its reliability depends on how well the training simulations represent the atmospheric parameter space, forward-model physics, and observational noise characteristics. Robust and scalable SBI-based retrievals therefore require diverse training spectra and realistic instrumental uncertainties.
Motivated by these requirements, we introduce the NEXOTRANS Neural Network (NEXONN), an SBI framework that combines transformer-conditioned normalizing flows (TcNF) [44], realistic JWST noise simulations, and the physical flexibility of NEXOTRANS. The transformer uses self-attention to encode correlations across the input spectrum and conditions the NF, which learns the multidimensional posterior distribution of atmospheric parameters. NEXONN incorporates PandExo-based noise realizations during training to represent wavelength-dependent uncertainties and specific JWST instrumental configurations, while its integration with NEXOTRANS [12] enables training spectra to span different atmospheric chemistry, pressure–temperature, and cloud prescriptions. This represents a substantial extension of the previous ML implementation in NEXOTRANS, which used a stacking regressor combining random forests, k-nearest neighbors, and gradient boosting for parameter estimation. In contrast, NEXONN performs multidimensional NPE with associated uncertainty quantification. Thus, the key advance of NEXONN is the integration of probabilistic NPE, instrument-aware JWST noise modeling, and physically diverse forward modeling within a unified framework for rapid and scalable atmospheric retrievals.
In this work, we validate NEXONN using both simulated spectra with known atmospheric parameters and real JWST observations, benchmarking its posterior distributions against PyMultiNest retrievals performed within the same NEXOTRANS framework. We apply the method to the JWST MIRI/LRS transmission spectrum of WASP-39 b (5–12 m) and subsequently to its combined NIRISS/SOSS+NIRSpec/PRISM+MIRI/LRS spectrum spanning approximately 0.6–12 m. We quantitatively compare the resulting posterior distributions and evaluate the statistical calibration of the inferred uncertainties, testing whether amortized neural inference can recover the principal constraints of conventional Bayesian retrievals while reducing subsequent inference to timescales of seconds. The remainder of this paper is organized as follows. Sections 2.1 and 2.2 describe the NF and transformer components of NEXONN, respectively. Section 2.3 presents the architecture, training procedure, and retrieval setup. Section 3 presents the results, while Section 4 discusses the implications, limitations, and future development of the framework.
NEXONN: A Machine-Learning Retrieval Framework within NEXOTRANS
Atmospheric retrieval is an inverse problem commonly formulated within a Bayesian framework, in which the posterior distribution of the atmospheric parameters, , is inferred from an observed spectrum, , and its associated uncertainties. According to Bayes’ theorem,
where is the posterior distribution of the atmospheric parameters, is the prior distribution, is the likelihood, and is the Bayesian evidence.
The Bayesian evidence in Equation (1) is obtained by marginalizing the likelihood over the prior distribution,
Evaluating posterior distributions can become computationally expensive for high-dimensional atmospheric models, particularly when the parameter space contains strong degeneracies and complex posterior structures. As the number of retrieved parameters increases, conventional Bayesian sampling methods may require substantially more forward-model evaluations to adequately explore the parameter space and estimate posterior distributions and Bayesian evidence.
Machine-learning approaches provide an alternative strategy by amortizing the computational cost over a training phase. Once trained, NPE can rapidly infer posterior distributions for new observations without repeating the sampling procedure required by conventional Bayesian retrievals. In this work, we introduce NEXONN, a simulation-based inference framework within NEXOTRANS [12] that employs TCNF for atmospheric posterior estimation. Figure 1 illustrates the integration of NEXONN within the broader NEXOTRANS framework. The following subsections describe the theoretical foundations, architecture, training procedure, and retrieval setup of NEXONN.

Figure 1. Overview of the NEXOTRANS framework (Deka et al. [12]), showing the forward-modeling component (green box), existing retrieval methods (purple box), and the NEXONN framework introduced in this work (gray box). The forward model generates transmission spectra by solving the radiative-transfer equation for specified atmospheric properties, including chemical composition, pressure–temperature structure, and cloud prescriptions. The existing retrieval module includes Bayesian sampling methods such as PyMultiNest and UltraNest, together with the machine-learning-based Stacking Regressor, which combines Random Forest, Gradient Boosting, and K-Nearest Neighbors. NEXONN extends this framework using TcNF to perform probabilistic posterior estimation of atmospheric parameters.
Normalizing Flows
NF [42] have emerged as powerful tools for density estimation within the paradigm of SBI. NFs model complex probability distributions by transforming a simple base distribution, typically a Gaussian, through a sequence of invertible, bijective, and differentiable transformations. This makes them well suited to exoplanet atmospheric retrievals, where the goal is to infer potentially complex and correlated posterior distributions rather than only point estimates. Several recent atmospheric retrieval frameworks have demonstrated the potential of SBI and flow-based approaches for efficient posterior estimation [59, 62, 2, 18, 33]. In the context of exoplanet atmospheric retrievals, Vasist et al. [59] applied NF within a variational inference framework, while more recent work by Gebhard et al. [18] explored continuous normalizing flows (CNF).
For a CNF, the posterior density is governed by the change-of-variables formula,
where represents the atmospheric parameters, such as temperature, molecular abundances, and aerosol properties, and denotes the conditioning variable, here the observed JWST spectrum. The flow maps the target distribution to a simple base distribution, typically a multivariate Gaussian , with . Equivalently, the generative direction maps the latent variable to the atmospheric parameters through a sequence of invertible transformations, . Because the transformation is bijective, . The determinant of the Jacobian accounts for the local change in probability density induced by the transformation. The flow is trained by minimizing the negative log-likelihood,
A major computational consideration in NF models is the efficient evaluation of the Jacobian determinant. Autoregressive constructions address this by imposing a triangular Jacobian structure, allowing the determinant to be evaluated efficiently. Several NF architectures have been developed, including inverse autoregressive flows (IAFs) [28], neural autoregressive flows (NAFs) [27], and block neural autoregressive flows (BNAFs) (De Cao et al. [11]. In NEXONN, we adopt a transformer-based neural autoregressive flow (T-NAF), following Patacchiola et al. [44], in which a transformer attention mechanism (Vaswani et al. [60]) provides the conditioning information for the autoregressive flow.
Transformer-conditioned Normalizing Flows
Transformers (Vaswani et al. [60]) are widely used architectures in natural-language processing, computer vision, and other machine-learning applications. Their key component is the attention mechanism, which enables the model to learn relationships among elements of an input sequence. In a simplified representation, the output at layer can be written as
where is the attention matrix, is the input representation from the preceding layer, and denotes the transformer layer index. Further mathematical details of the attention mechanism are provided by Turner [56].
NEXONN combines a transformer with an autoregressive NF to model the multidimensional posterior distribution of
exoplanet atmospheric parameters. The architecture is illustrated in Figure 2. The transformer receives two distinct sets of tokens. The first represents the spectrum, with each spectral element encoded by three quantities: wavelength (), transit depth (), and its uncertainty (). No attention mask is applied to the spectral tokens, allowing each spectral element to attend to all others and enabling the model to capture correlations across the spectrum. The second set represents the atmospheric parameters, , each encoded as a 128-dimensional embedding. A causal, lower-triangular mask is applied to the parameter tokens so that each parameter can attend only to itself and preceding parameters. The parameter representation then queries the unmasked spectral representation through cross-attention, providing the spectral conditioning required for autoregressive posterior estimation. The current NEXONN implementation uses six stacked flow layers. Each layer applies an element-wise affine transformation to the atmospheric parameters, with the scale and shift functions conditioned by the transformer. For the th parameter, the forward and inverse affine transformations are

Figure 2. Schematic representation of the NEXONN training framework. Synthetic spectra, x, are generated using NEXOTRANS [12], with PandExo-based noise realizations incorporated during training to represent wavelength-dependent observational uncertainties. The resulting spectra are processed by the transformer, which provides the conditioning representation for the NF. The flow learns the invertible transformation between the atmospheric parameter space and the latent distribution. Training is performed by minimizing the NF negative log-likelihood given in Equation (4).
where and are the scale and shift functions, respectively, conditioned on the preceding atmospheric parameters . The atmospheric parameter vector is thus mapped autoregressively to the latent variable , with both having dimensionality . This autoregressive construction results in a triangular Jacobian. For the transformation in Equation (6), the Jacobian takes the form
Consequently, the determinant required for density evaluation is obtained directly from the diagonal elements,
More flexible transformations can be used in place of affine transformations, including cumulative distribution function (CDF)-based transformations [42, 27], shared-CDF transformations [11], and spline transformations [13].
Architecture, Training Procedure, and Retrieval Setup in NEXONN
As discussed in § 2.2, NEXONN is a retrieval framework within NEXOTRANS that employs TcNF to model the posterior distributions of atmospheric parameters. Building on this architecture, the following subsections describe the generation of synthetic training spectra, the implementation of observational noise, the training and optimization procedure, and the visualization of posterior predictions with NEXONN.
Synthetic Spectra Generation
Model-dependent atmospheric characterization requires a forward model to generate synthetic spectra across the relevant physical and chemical parameter space. For this purpose, NEXONN uses the NEXOTRANS forward-modeling framework; a detailed description of its transmission-spectrum calculations is provided by Deka et al. [12]. NEXOTRANS incorporates four chemistry prescriptions: free, equilibrium, hybrid equilibrium, and equilibrium offset, with equilibrium abundances obtained from the NEXOCHEM grid [12].
The framework also includes multiple cloud prescriptions, such as uniform and patchy-gray clouds, and pressure–temperature (P–T) profiles, including isothermal and Madhusudhan–Seager profiles [38]. A broad range of chemical species can be included, such as Na, K, HO, CO, CO, HS, SO, CH, and HCN, together with aerosol species such as MgSiO and ZnS. The model also includes collision-induced absorption (CIA) cross sections for H–H and H–He pairs, which contribute to the continuum opacity, as described in detail by Deka et al. [12].
Generating robust training data requires sampling a sufficiently broad atmospheric parameter space so that the model can learn the underlying physical and spectral relationships. Synthetic spectra are first computed at high spectral resolution and subsequently binned to the resolution appropriate for the observations. Because real observations contain wavelength-dependent uncertainties in the measured transit depths, realistic noise realizations must also be incorporated into the training spectra. The implementation of observational noise in NEXONN is described in the following subsection.
PandExo-Based Noise Implementation for JWST Spectra
To incorporate realistic observational uncertainties into the synthetic spectra, NEXONN uses the PandExo noise simulator ([4]), which is specifically designed to simulate observations with JWST instruments. The use of PandExo-based noise allows the training spectra to account for wavelength-dependent instrumental and observational uncertainties. The total variance can be represented schematically as
where represents the photon-noise contribution associated with the stellar flux, represents background contributions, and represent detector read noise and dark-current noise, respectively, and denotes an additional systematic noise-floor contribution when included in the adopted noise model. The resulting noise profile is wavelength dependent and is influenced by both the instrumental response and the spectral energy distribution of the host star.
The uncertainty in the wavelength-dependent transit depth, , can be estimated by propagating the uncertainties associated with the in-transit and out-of-transit flux measurements. Assuming comparable uncertainties for the individual in-transit and out-of-transit measurements, the variance can be written schematically as
where is the out-of-transit stellar flux, and and denote the numbers of integrations obtained in and out of transit, respectively. For other observing facilities or missions, alternative instrument-specific noise models can be incorporated into the NEXONN framework.
Training and Inference
For each retrieval experiment, we independently generated a training dataset of two million synthetic spectra using the NEXOTRANS forward model, as described in § 2.3.1. For the MIRI/LRS benchmark, spectra were generated over the 5–12 m wavelength range using an eight-parameter atmospheric model that includes an isothermal pressure–temperature (P–T) profile, haze, and patchy-gray clouds. For the full JWST retrieval, we considered the combined wavelength coverage of NIRISS/SOSS (0.6–2.8 m), NIRSpec/PRISM (0.5–5 m), and MIRI/LRS (5–12 m). This configuration uses a 15-parameter hybrid equilibrium chemistry model that includes the species HO, CO, CO, SO, Na, and K, together with the aerosol species MgSiO and ZnS, a uniform cloud prescription, and a Madhusudhan–Seager P–T profile. Unlike the standard equilibrium chemistry model, where chemical abundances are determined by thermochemical equilibrium, the hybrid equilibrium model offers greater flexibility by allowing selected species, such as SO, to deviate from equilibrium, thereby accounting for disequilibrium processes. Further details of the implementation are provided in Deka et al. [12]. PandExo-based noise realizations were incorporated into the synthetic spectra before training. The adopted parameter ranges are provided in Table 1 and Table 2 for the MIRI/LRS experiments and in Table 3 for the full JWST retrieval.
| Parameter | True Value | Training Range* | PyMultiNest | NEXONN | KL Divergence | JS Divergence | Std. Wasserstein Distance | Overlap (%) |
| -2.55 | 0.16 | 0.07 | 0.37 | 80.32 | ||||
| 832.68 | 0.81 | 0.21 | 0.96 | 54.69 | ||||
| -1.00 | 0.15 | 0.07 | 0.44 | 85.06 | ||||
| -1.54 | 0.70 | 0.26 | 0.56 | 50.16 | ||||
| -3.63 | 0.01 | 0.00 | 0.07 | 94.92 | ||||
| -2.03 | 0.01 | 0.01 | 0.12 | 93.61 | ||||
| 0.20 | 0.01 | 0.00 | 0.07 | 93.46 | ||||
| 0.14 | 0.03 | 0.01 | 0.21 | 90.32 |
Table 1. Comparative overview on the retrieved parameters using PyMultiNest and NEXONN for simulated spectrum. The model considers a patchy-gray cloud, isothermal P-T profile and Free chemistry.
| Parameter | Training Range* | PyMultiNest | NEXONN | KL Divergence | JS Divergence | Std. Wasserstein Distance | Overlap (%) |
| 0.13 | 0.05 | 0.25 | 81.11 | ||||
| 0.08 | 0.03 | 0.15 | 87.03 | ||||
| 1.67 | 0.14 | 0.48 | 71.97 | ||||
| 1.52 | 0.09 | 0.47 | 79.41 | ||||
| 0.41 | 0.17 | 0.61 | 70.68 | ||||
| 0.19 | 0.09 | 0.27 | 79.87 | ||||
| 0.67 | 0.11 | 0.37 | 77.73 | ||||
| 0.06 | 0.02 | 0.30 | 89.02 |
Table 2. Comparative overview on the retrieved parameters using PyMultiNest and NEXONN for WASP-39 b, JWST MIRI (5–12µm range). The model considers a patchy-gray cloud, isothermal P-T profile and Free chemistry.
| Parameter | Training range* | PyMultiNest | NEXONN | KL Divergence | JS Divergence | Std. Wasserstein Distance | Overlap (%) |
| 1.98 | 0.52 | 1.08 | 31.78 | ||||
| 0.52 | 0.17 | 0.74 | 54.85 | ||||
| 0.53 | 0.18 | 0.80 | 54.09 | ||||
| 0.24 | 0.08 | 0.51 | 68.32 | ||||
| 0.06 | 0.02 | 0.31 | 84.94 | ||||
| 0.80 | 0.28 | 0.96 | 43.50 | ||||
| 0.11 | 0.04 | 0.28 | 78.85 | ||||
| 0.34 | 0.12 | 0.78 | 64.10 | ||||
| 0.24 | 0.09 | 0.82 | 69.77 | ||||
| 0.01 | 0.00 | 0.10 | 93.06 | ||||
| 0.69 | 0.25 | 0.88 | 48.48 | ||||
| C/O | 0.25 | 0.09 | 0.53 | 69.02 | |||
| [M/H] | 1.29 | 0.30 | 1.19 | 47.45 | |||
| hc | 0.62 | 0.19 | 1.07 | 55.83 | |||
| 0.26 | 0.10 | 0.63 | 68.02 | ||||
| – | – | – | – | – | |||
| – | – | – | – | – | |||
| – | – | – | – | – |
Table 3. The Table below summarizes the comparative retrieval results of global wavelength coverage of JWST observations for WASP-39 b using PyMultiNest and NEXONN with PandExo noise obtained for the Hybrid Equilibrium chemistry model.
We performed hyperparameter optimization for the TcNF architecture. The explored ranges included 4–12 flow layers, 4–8 attention heads, 40–200 training epochs, learning rates between and , and batch sizes between 64 and 256. The optimal configuration depends on the size of the training dataset and the dimensionality and complexity of the parameter space. For the two-million-spectrum training datasets, we trained the models for 100 epochs and selected the configuration that minimized the validation loss. The adopted architecture uses six flow layers, four attention heads, a batch size of 128, and a learning rate of . The model employs the Gaussian Error Linear Unit (GELU) activation function ([23]) within its multilayer perceptron (MLP) layers, the AdamW optimizer ([32]), and a ReduceLROnPlateau scheduler for adaptive learning-rate control.
The objective of NEXONN is to learn the conditional posterior distribution by optimizing the parameters of the TcNF. For the affine transformations described in Equations (6) and (7), the transformer provides the conditioning information used to determine the scale, , and shift, , functions of the flow. During inference, samples are drawn from the base distribution and transformed through the inverse flow, conditioned on the observed spectrum , to generate samples from the learned posterior . These samples are then used to construct the marginalized and joint posterior distributions, which are visualized using corner plots. The widths and shapes of the resulting posterior distributions characterize the uncertainties inferred by the trained model under the adopted forward model, training distribution, and observational noise model.
Statistical Assessment of Retrieved Posteriors
To quantitatively assess the agreement between the posterior distributions obtained with NEXONN and PyMultiNest, we employ several complementary statistical measures, including the Kullback–Leibler (KL) divergence, Jensen–Shannon (JS) divergence and standardized Wasserstein distance (SWD), and posterior overlap (). These metrics are evaluated separately for the one-dimensional marginalized posterior distribution of each retrieved parameter. Together, they characterize different aspects of posterior agreement, including information divergence, overall distributional similarity, geometric displacement of probability mass, and shared probability mass.
For the KL divergence, we treat the PyMultiNest posterior as the reference distribution, P, and the corresponding NEXONN posterior as Q. The KL divergence measures the information loss incurred when Q is used to approximate P and is defined as
where and denote the corresponding marginalized probability density functions and denotes the retrieved parameter under consideration. To avoid numerical singularities when and , we apply a small numerical threshold of to both probability densities before evaluating the KL divergence. Since the KL divergence is generally asymmetric,
we additionally compute the symmetric JS divergence,
where
is the mixture distribution of P and Q. The JS divergence remains finite even when one distribution vanishes where the other is nonzero, since the mixture distribution is positive wherever either distribution is positive.
The Wasserstein distance (WD) provides a complementary geometric measure of the difference between two distributions by quantifying the minimum transport cost required to transform one probability distribution into the other. The WD of order is defined as
where denotes the set of all joint distributions with marginals P and Q, and and denote samples from the respective marginalized posterior distributions. Since WD depends on the scale and units of the retrieved parameters, direct comparisons across different parameters may be misleading. To address this limitation, we use the standardized WD. For each parameter, we calculate the mean and standard deviation of the combined posterior samples and then perform z-score normalization before calculating WD. This provides a dimensionless measure that enables more meaningful comparisons across different parameters.
The posterior overlap provides an additional measure of similarity by quantifying the common probability mass shared by the two marginalized posterior distributions.
The values reported in this work are expressed as percentages, .
The metrics emphasize different properties of posterior agreement and should therefore be interpreted jointly. The KL divergence satisfies , with only when the two distributions are identical almost everywhere. Smaller values indicate greater similarity relative to the chosen reference distribution, while larger values indicate greater differences in the probability density assigned by the two posteriors. The JS divergence provides a symmetric measure of overall distributional difference, with smaller values indicating greater similarity between the distributions. The standardized Wasserstein distance (SWD) measures the geometric displacement of probability mass relative to the combined posterior spread and is sensitive to differences in the locations and shapes of the distributions, with smaller SWD values indicating greater posterior similarity. Finally, larger posterior-overlap values indicate a greater fraction of shared probability mass. Consequently, similar median parameter estimates do not necessarily imply similar posterior distributions, and the combined use of these metrics provides a more complete assessment of posterior agreement than comparison of central values alone. The statistical quantities reported in this work were calculated from the marginalized posterior distributions using the relevant routines available in SciPy.
In addition to these posterior-comparison metrics, we independently assess whether the credible regions inferred by NEXONN are statistically calibrated using coverage tests. Following Lemos et al. [29]; ); Vasist et al. [59], we evaluate the empirical coverage probability using repeated realizations of simulated spectra with known ground truths. For each realization, we construct the marginalized posterior distribution of each parameter and check whether its true value lies within the corresponding credible interval at a nominal credible level of , where represents the fraction of posterior probability outside the interval. For a well-calibrated posterior, a credible interval containing a fraction of the posterior probability should contain the true parameter value in the same fraction of realizations. Thus, the empirical coverage probability should follow the ideal one-to-one relation,
corresponding to a slope of . Empirical coverage below the nominal credible level indicates an overconfident posterior, for which the credible regions are too narrow, whereas coverage above the nominal credible level indicates a conservative posterior, for which the credible regions are broader than required for exact calibration. We additionally calculate the coefficient of determination, , to quantify how closely the empirical coverage follows the fitted calibration relation. Values of close to unity indicate that the empirical coverage is well described by the fitted relation, while the slope provides the primary diagnostic of whether the inferred credible regions are calibrated, overconfident, or conservative.
Validation and Results
In this section, we present the retrieval results obtained using the NEXONN framework. We first validate NEXONN using a simulated spectrum with known atmospheric parameters. We then apply the framework to the JWST MIRI/LRS transmission spectrum of WASP-39 b spanning 5–12 m, followed by a retrieval using the combined NIRISS/SOSS, NIRSpec/PRISM, and MIRI/LRS observations spanning approximately 0.6–12 m. In each case, the resulting NEXONN posterior distributions are compared against those obtained with PyMultiNest within the NEXOTRANS framework.
Benchmarking NEXONN against PyMultiNest Using a Simulated Spectrum with Known Atmospheric Parameters
We first validate NEXONN by retrieving the known atmospheric parameters of a simulated spectrum. The spectrum was generated using the NEXOTRANS forward model with the atmospheric configuration described in § 2.3.3 over the JWST MIRI/LRS wavelength range. PandExo-based noise was subsequently incorporated using the observational configuration adopted for WASP-39 b. The resulting simulated spectrum was then retrieved independently using both NEXONN and PyMultiNest.
Figure 3 compares the transmission spectra corresponding to the NEXONN and PyMultiNest retrievals with the simulated observations. Both retrievals reproduce the simulated spectrum across the MIRI/LRS wavelength range and recover the principal spectral features within the observational uncertainties. The NEXONN and PyMultiNest median spectra closely follow one another, and their uncertainty envelopes show substantial agreement across the wavelength range. This indicates that both retrieval methods provide comparably good fits to the simulated observations in spectral space. Spectral agreement alone, however, does not establish agreement of the underlying atmospheric posteriors because different combinations of atmospheric parameters can produce similar transmission spectra. We therefore assess the marginalized and joint posterior distributions in Figure 4 and quantify their agreement using the statistical measures reported in Table 1.

Figure 3. Comparison of the transmission spectra corresponding to the PyMultiNest (purple) and NEXONN (orange) retrievals for the simulated JWST MIRI/LRS experiment. The simulated observations were generated using the NEXOTRANS forward model with PandExo-based noise. Both retrievals are performed on the same simulated dataset with known input atmospheric parameters.

Figure 4. Comparison of the posterior distributions retrieved with PyMultiNest (green) and NEXONN (purple) for the simulated spectrum generated using the NEXOTRANS forward model with PandExo-based noise. The black markers indicate the true values of the atmospheric parameters used to generate the simulated spectrum.
Figure 4 presents the posterior distributions, while Table 1 summarizes the known input values, retrieved constraints, and statistical agreement between the one-dimensional marginalized NEXONN and PyMultiNest posteriors for all eight atmospheric parameters. The comparison provides two complementary tests. First, because the generating parameters are known, it tests whether the retrievals remain consistent with the underlying atmospheric state. Second, the KL divergence, JS divergence, SWD, and posterior overlap quantify how closely NEXONN reproduces the corresponding PyMultiNest marginalized posterior distributions. Importantly, close agreement between the two retrieval methods does not necessarily imply that an individual parameter is tightly constrained by the spectrum.
For the logarithmic reference pressure, , the two methods yield consistent posterior constraints, with , , an SWD of 0.37, and a posterior overlap of 80.32%. The known input value, , lies within the 68% credible intervals of both retrievals. In contrast, the isothermal temperature, , shows greater differences between the marginalized posteriors, with an overlap of 54.69%, , , and an SWD of 0.96. The posterior medians differ appreciably, with NEXONN yielding 992.78 K compared with 796.56 K from PyMultiNest. Nevertheless, the known input temperature, K, lies within the 68% credible intervals inferred by both methods. This illustrates that recovering the known input value within the inferred uncertainties does not necessarily imply close agreement between the posterior distributions.
For , NEXONN yields compared with from PyMultiNest, with , , an SWD of 0.44, and a posterior overlap of 85.06%. This indicates reasonably good agreement between the marginalized water-abundance posteriors. In contrast, shows lower posterior agreement, with , , an SWD of 0.56, and a posterior overlap of 50.16%. The known input abundance, , lies outside the reported 68% credible interval of the NEXONN retrieval, which yields , while the PyMultiNest estimate of places the generating value at the lower boundary of its reported 68% interval. The NEXONN posterior is also concentrated closer to the upper limit of the adopted abundance range, suggesting that posterior approximation near parameter boundaries warrants further investigation. These results indicate that the agreement between the TcNF approximation and the PyMultiNest posterior is parameter dependent, even for the controlled simulated-spectrum experiment. The known input abundances provide an independent reference for assessing the retrieval constraints, although agreement with the generating values should be distinguished from agreement between the inferred posterior distributions.
A different behavior is seen for the cloud and haze parameters, and this provides an important test of the probabilistic nature of NEXONN. The marginalized posteriors for , , , and are broad, indicating that these parameters are only weakly constrained by the simulated MIRI/LRS spectrum. Nevertheless, NEXONN closely reproduces the corresponding PyMultiNest posteriors. The posterior overlaps are 94.92%, 93.61%, 93.46%, and 90.32% for , , , and , respectively. Their KL divergences are 0.01, 0.01, 0.01, and 0.03, while the corresponding JS divergences are 0.00, 0.01, 0.00, and 0.01 at the precision reported in Table 1. The corresponding SWD values are 0.07, 0.12, 0.07, and 0.21, respectively. The consistently high posterior overlaps and small divergences indicate that NEXONN closely reproduces the broad PyMultiNest posteriors for these weakly constrained parameters. However, high posterior overlap should not be interpreted as precise recovery of the cloud and haze properties. Instead, it demonstrates that the TcNF can reproduce the limited information content of the simulated spectrum by retaining broad posterior uncertainties.
Figure 4 provides an additional view of this behavior. The marginalized distributions show the parameter-dependent agreement quantified in Table 1, while the two-dimensional projections provide a qualitative comparison of the inferred parameter correlations and degeneracies, although the degree of agreement varies among parameter pairs. Because the statistical quantities in Table 1 are calculated from one-dimensional marginalized posteriors, the corner plot provides a complementary visual assessment of whether NEXONN also preserves the principal correlations present in the PyMultiNest solution. The qualitative correspondence between some of the two-dimensional contours suggests that the TcNF captures aspects of the parameter correlations present in the PyMultiNest solution. However, the one-dimensional comparison metrics do not provide a quantitative validation of the full multidimensional posterior structure.
Taken together, the simulated-spectrum experiment provides a controlled benchmark at three complementary levels. First, Figure 3 shows that NEXONN and PyMultiNest recover closely matching spectral solutions. Second, the known input parameters provide an independent reference for assessing the retrieved atmospheric constraints. Third,
the KL divergence, JS divergence, SWD, and posterior-overlap statistics reveal parameter-dependent agreement between the marginalized posterior distributions. While the cloud and haze parameters show consistently high posterior overlaps, appreciable differences are found for and . These results show that NEXONN can reproduce broad posterior distributions for weakly constrained cloud and haze parameters while recovering spectral solutions consistent with the simulated observations. However, the appreciable posterior discrepancies for and demonstrate that accurate spectral reconstruction does not guarantee accurate posterior estimation for every atmospheric parameter. The experiment therefore provides a useful in-distribution benchmark of the TcNF framework while identifying specific limitations that motivate further improvements in posterior approximation and multidimensional validation.
Applying NEXONN to the JWST MIRI/LRS Retrieval of WASP-39 b
We now apply NEXONN to the JWST MIRI/LRS transmission spectrum of WASP-39 b spanning 5–12 m. The spectrum was obtained from the NASA Exoplanet Archive atmospheric spectroscopy table2 and corresponds to the Powell et al. [46] reduction performed using the Eureka! pipeline. We benchmark the NEXONN retrieval against the PyMultiNest retrieval presented by Deka et al. [12], adopting the same best-fit atmospheric model for the MIRI/LRS wavelength range, which yielded a reduced of 1.15. The model assumes Free Chemistry, an isothermal pressure–temperature (P–T) profile, haze, and patchy-gray clouds. The isothermal temperature, logarithmic abundances of HO and SO, and the cloud and haze parameters are treated as free parameters.
Unlike the simulated-spectrum experiment in Section 3.1, the atmospheric parameters underlying the observed WASP-39 b spectrum are not known. The present experiment therefore tests whether NEXONN can reproduce the posterior constraints obtained with the conventional PyMultiNest retrieval when applied to real JWST observations. Because both methods employ the same atmospheric forward model and parameter ranges, this comparison primarily assesses the agreement between their inferred posterior distributions under the adopted modelling assumptions, rather than establishing the accuracy of the atmospheric model itself. The statistical quantities in Table 2 compare the one-dimensional marginalized posterior distributions parameter by parameter, while Figure 6 provides a complementary view of the joint posterior structure.

Figure 6. The figure shows the corner plots comparing the posterior distributions retrieved using PyMultiNest (blue), NEXONN with PandExo noise (purple) for JWST MIRI (5 - 12m) observed spectrum of WASP-39 b, reduced using Eureka! pipeline [46].
The reference pressure and atmospheric temperature show relatively strong agreement between the two retrieval methods. For , NEXONN yields compared with from PyMultiNest. The corresponding statistical measures are , , a SWD of 0.25, and a posterior overlap of 81.11%. For , the inferred values are K and K for NEXONN and PyMultiNest, respectively. The posterior overlap increases to 87.03%, with , and an SWD of 0.15. Together, these statistics indicate that the two methods infer similar reference-pressure and temperature constraints from the MIRI/LRS spectrum. The relatively small differences in their posterior medians, together with the high overlaps and low divergence measures, indicate that these parameters are among those for which the TcNF most closely approximates the corresponding PyMultiNest marginalized posteriors in this experiment.
The molecular abundances provide a more instructive example of the distinction between agreement in central constraints and agreement in the detailed posterior density. NEXONN retrieves compared with from PyMultiNest. Although these abundance constraints overlap substantially, the corresponding statistics are , , a SWD of 0.48, and a posterior overlap of 71.97%. Similarly, for , NEXONN yields compared with from PyMultiNest, with , , an SWD of 0.47, and a posterior overlap of 79.41%. The relatively small differences in the median abundances, 0.13 dex for HO and 0.11 dex for SO, indicate that the two retrievals yield broadly consistent central abundance estimates. However, the larger KL divergences demonstrate that agreement in the central estimates does not extend uniformly to the full marginalized posterior densities. Because KL divergence is asymmetric and sensitive to regions where the reference posterior assigns probability density that is relatively underrepresented by the approximating distribution, these larger values may arise from differences in posterior tails, widths, or detailed shapes. The smaller JS divergences and substantial posterior overlaps indicate that the distributions nevertheless share appreciable probability mass. These results therefore reveal parameter-dependent limitations in the TcNF posterior approximation rather than establishing that either retrieval provides a uniquely correct atmospheric solution.
The cloud and haze parameters are generally more weakly constrained and show varying degrees of posterior agreement. The haze-amplitude parameter, , has the lowest posterior overlap among the eight retrieved parameters, 70.68%, with , , and an SWD of 0.61. The corresponding marginalized posteriors are broad, with PyMultiNest yielding and NEXONN yield-
ing . The difference of 2.00 dex between the posterior medians is appreciable, and Figure 6 indicates that NEXONN assigns comparatively less probability density to the higher haze-amplitude region represented in the PyMultiNest posterior. Thus, despite the broad uncertainties, the agreement for is limited, particularly in the relative weighting of different regions of parameter space. The haze-slope parameter, , is similarly broad, but shows somewhat greater posterior agreement, with an overlap of 79.87%, , , and an SWD of 0.27. These broad posterior distributions indicate limited constraining power on the detailed haze properties within the MIRI/LRS wavelength range. Nevertheless, the differences in posterior location and shape demonstrate that reproducing broad uncertainties alone is insufficient to establish accurate posterior approximation. The comparison therefore tests whether NEXONN reproduces both the extent and the probability-density structure of the weakly constrained haze posteriors, rather than whether these parameters are precisely determined by the observations.
For the cloud-top pressure, , the two retrievals yield broad distributions with a posterior overlap of 77.73%, together with , , and an SWD of 0.37. The posterior medians also differ, with NEXONN yielding compared with from PyMultiNest. Although both distributions remain broad, these differences indicate that the two methods do not assign identical probability densities across the allowed cloud-pressure range. In contrast, the cloud-fraction parameter, , shows the strongest posterior agreement among the eight MIRI/LRS parameters. NEXONN yields compared with from PyMultiNest, with , , an SWD of 0.30, and an overlap of 89.02%. The contrast among the aerosol parameters illustrates that the quality of posterior reproduction is parameter dependent even within the same retrieval and atmospheric model.
Figure 5 compares the transmission spectra corresponding to the PyMultiNest and NEXONN retrievals. Both median spectra reproduce the observed MIRI/LRS transmission spectrum and closely follow one another across the molecular features associated with and . This agreement in spectral space demonstrates that the atmospheric solutions inferred by the two approaches provide comparably good descriptions of the observed spectrum. As in the simulated experiment, however, spectral agreement alone does not imply identical posterior distributions because atmospheric degeneracies can allow different combinations of parameters to produce similar spectra. In particular, the limited wavelength coverage and the interplay among molecular abundances, atmospheric temperature, reference pressure, and aerosol properties can permit different atmospheric parameter combinations to yield similar transmission spectra. The statistical comparisons in Table 2 therefore provide an essential complementary assessment of the inferred atmospheric constraints.

Figure 5. Comparison of the retrieved JWST MIRI/LRS transmission spectra of WASP-39 b using PyMultiNest (orange) and NEXONN (purple). The observations are based on the Powell et al. [46] reduction performed with the Eureka! pipeline. The retrieval model assumes Free Chemistry, an isothermal pressure–temperature (P–T) profile, haze, and patchy-gray clouds. The 28 observed spectral points are shown in black. The lower panel shows the residuals relative to the observed transit depths.
The corresponding marginalized and joint posterior distributions are compared in Figure 6. The figure visually confirms the parameter-dependent behavior quantified in Table 2: parameters such as and show relatively strong posterior agreement, whereas the molecular abundances and several aerosol parameters show more noticeable differences in posterior width or detailed probability-density structure. The differences are particularly apparent for the
haze-amplitude parameter, where the NEXONN posterior underrepresents part of the higher-amplitude region sampled by PyMultiNest. The two-dimensional projections provide a qualitative comparison of the parameter correlations and degeneracies, although the degree of correspondence varies among parameter pairs. Because the statistical measures reported in Table 2 are calculated from one-dimensional marginalized posteriors, Figure 6 provides a complementary qualitative assessment of the multidimensional posterior structure. However, visual similarity between selected two-dimensional projections does not establish agreement of the complete eight-dimensional joint posterior, and the marginalized comparison metrics should not be interpreted as a quantitative validation of the full parameter-correlation structure. Taken together, the MIRI/LRS retrieval provides a complementary real-observation benchmark of NEXONN beyond the controlled simulated-spectrum experiment. Posterior overlaps range from 70.68% to 89.02%, indicating substantial but parameter-dependent agreement with PyMultiNest. The logarithmic reference pressure, isothermal temperature, and cloud fraction show relatively strong agreement, whereas the larger KL divergences for and reveal differences in the detailed marginalized posterior densities despite broadly consistent central abundance estimates. The haze-amplitude and cloud-pressure posteriors show additional differences in their locations, widths, or probability-density structures, demonstrating that weakly constrained parameters can remain challenging for neural posterior approximation. Both retrieval approaches nevertheless provide similar spectral solutions under the adopted atmospheric model. These results establish that NEXONN can recover several principal atmospheric constraints obtained with PyMultiNest for the observed WASP-39 b MIRI/LRS spectrum, while also identifying parameter-specific discrepancies that require further investigation. Because the true atmospheric parameters are unknown and real observations may contain effects not represented in the training simulations, this comparison does not independently establish the accuracy or calibration of the inferred atmospheric posteriors. The statistical calibration of the NEXONN credible regions is therefore assessed separately using simulated spectra with known generating parameters through the coverage analysis discussed in § 4.1.1.
Applying NEXONN to the Full JWST Wavelength Coverage of WASP-39 b
To demonstrate the performance of NEXONN in a broad-wavelength retrieval, we use the combined JWST transmission spectrum of WASP-39 b spanning –. The dataset comprises observations from multiple JWST instruments covering complementary wavelength regimes. We include the NIRISS/SOSS observations spanning – from Feinstein et al. [15], reduced using the Supreme-SPOON pipeline. We also incorporate the NIRSpec/PRISM observations from Rustamkulov et al. [48], which provide wavelength coverage from to and were reduced using the FIREFLy pipeline. In this work, however, we use only the – region because the shorter-wavelength channels were reported to be affected by saturation (Rustamkulov et al. [48]). Finally, we include the MIRI/LRS observations spanning – from Powell et al. [46], reduced using the Eureka! pipeline. Together, these datasets provide continuous broad-wavelength coverage from the optical to the mid-infrared and probe a wide range of molecular and aerosol signatures.
The retrieval analysis adopts the best-fit atmospheric model identified by Deka et al. [12], corresponding to the model with the lowest reduced , namely the Hybrid Equilibrium Chemistry model. We benchmark the NEXONN results against the corresponding PyMultiNest retrieval. The forward model employs the Hybrid Equilibrium Chemistry framework, the Madhusudhan–Seager pressure–temperature (P–T) parameterization, and a uniform cloud and aerosol prescription. Within the Hybrid Equilibrium Chemistry framework, the abundances of , Na, and K are treated as free parameters and are therefore not constrained by the equilibrium-chemistry grid in NEXOCHEM. In contrast, the abundances of , , CO, and are determined under chemical-equilibrium constraints. The retrieved parameter constraints and their quantitative comparison with the corresponding PyMultiNest results are summarized in Table 3.
The full-JWST retrieval represents a substantially more demanding test of NEXONN than the MIRI/LRS experiments because the atmospheric model contains 15 retrieved parameters describing the reference pressure, P–T structure, chemical composition, metallicity, C/O ratio, and clouds and aerosols. The statistical quantities in Table 3 compare the one-dimensional marginalized posterior distributions parameter by parameter, while Figure 8 provides a complementary view of the multidimensional posterior structure. The increased dimensionality introduces additional parameter correlations and degeneracies, making accurate posterior approximation more challenging. However, dimensionality alone cannot explain the observed differences between the retrieval methods, because observational information content, posterior geometry, and the relationship between the real observations and the simulated training distribution may also influence the results. The comparison therefore tests not only whether NEXONN recovers similar central atmospheric constraints, but also how closely it reproduces the widths and probability-density structures of the corresponding PyMultiNest posteriors.

Figure 8. Comparison of the posterior distributions obtained with PyMultiNest (blue) and NEXONN (purple) for the full JWST transmission spectrum of WASP-39 b spanning 0.6–12 µm.
The transmission spectra corresponding to the retrieved median parameter values are shown in Figure 7. Across the full wavelength range, the spectrum generated from the NEXONN retrieval closely follows the PyMultiNest result, with residuals of order . This close correspondence indicates that both methods identify atmospheric parameter combinations that reproduce similar transmission spectra under the adopted forward model. As in the MIRI/LRS experiment, however, agreement in spectral space does not necessarily imply identical marginalized posterior distributions because correlated combinations of atmospheric parameters can produce similar spectra. In particular, the additional wavelength coverage can constrain combinations of molecular abundances, temperature structure, and aerosol properties without uniquely determining every individual model parameter. The parameter-by-parameter statistical assessment in Table 3 therefore provides an important complementary test.

Figure 7. Comparison of the retrieved transmission spectra of WASP-39 b over the full JWST wavelength range of 0.6–12 µm using PyMultiNest (yellow) and NEXONN (purple). The NEXONN model was trained using PandExo-based noise realizations. The retrieval adopts the Hybrid Equilibrium Chemistry model together with a uniform cloud and aerosol prescription.
The principal bulk-composition parameters show different degrees of agreement between their central estimates and marginalized posterior distributions. NEXONN retrieves
a C/O ratio of compared with from PyMultiNest. The corresponding statistics are , , an SWD of 0.53, and a posterior overlap of 69.02%. Thus, the central C/O estimates are similar, although the posterior overlap and distance statistics indicate differences in the marginalized probability distributions. For the global metallicity, NEXONN yields [M/H] = compared with from PyMultiNest. Despite a difference of only 0.06 dex between their medians, the metallicity posterior shows lower agreement, with , , an SWD of 1.19, and an overlap of 47.45%. The two methods therefore infer broadly similar metallicity scales but assign appreciably different posterior probabilities within the corresponding parameter region. This distinction is important because agreement in the inferred atmospheric enrichment does not establish equivalent uncertainties or posterior calibration.
The free chemical abundances show similarly parameter-dependent behavior. The strongest agreement is obtained for , for which NEXONN gives compared with from PyMultiNest. All four statistical diagnostics indicate close posterior agreement, with , at the reported precision, an SWD of 0.10, and a posterior overlap of 93.06%. The Na abundance shows intermediate agreement, with a posterior overlap of 69.77%, , , and an SWD of 0.82. In contrast, yields median abundances of from NEXONN and from PyMultiNest, but a lower posterior overlap of 48.48%, together with , , and an SWD of 0.88. The 0.12 dex difference between the median SO abundances is accompanied by appreciable differences in posterior width and location. In particular, the NEXONN marginalized posterior is more concentrated than the corresponding PyMultiNest distribution according to the reported credible intervals. Thus, the chemical retrieval illustrates three distinct regimes: close posterior agreement for K, intermediate agreement for Na,
and substantial posterior discrepancies for despite relatively similar central abundance estimates.
The aerosol parameters also show parameter-dependent agreement. For , the posterior overlap is 78.85%, with , , and an SWD of 0.28. The posterior has an overlap of 64.10%, with , , and an SWD of 0.78. The uniform-cloud parameter, , yields nearly identical central values, and for NEXONN and PyMultiNest, respectively. Nevertheless, its posterior overlap is only 55.83%, with , , and an SWD of 1.07. The relatively low overlap and large standardized distance, despite the small difference between the median cloud parameters, indicate that the detailed posterior distributions are not reproduced equally well. This again illustrates that proximity of the median values does not necessarily imply identical posterior widths or detailed probability-density structures.
The reference pressure provides the clearest example of this distinction. NEXONN retrieves compared with from PyMultiNest. Although the central values differ by only 0.05 dex, the posterior overlap is 31.78%, the lowest among the 15 retrieved parameters. The corresponding and are the largest divergence values reported in Table 3, while the SWD is 1.08. The reported 68% credible intervals also show limited overlap, with NEXONN spanning approximately and PyMultiNest spanning . These results reveal greater differences in the concentration and distribution of posterior probability despite the proximity of the medians. The reference-pressure result therefore demonstrates particularly clearly why comparison of median values or a single posterior-distance statistic alone is insufficient for validating a posterior estimator.
tic alone is insufficient for validating a posterior estimator. Because the reference pressure is correlated with the atmospheric opacity, composition, and thermal structure in transmission-spectrum retrievals, differences in its posterior distribution may also be associated with differences in the inferred parameter correlations. However, the one-dimensional statistics alone cannot establish the origin of these discrepancies.
The parameters describing the Madhusudhan–Seager P–T profile show varying degrees of marginalized posterior agreement. The overlap is 54.85% for , 54.09% for , 68.32% for , 84.94% for , and 43.50% for . The corresponding JS divergences are 0.17, 0.18, 0.08, 0.02, and 0.28, respectively. The associated SWD values are 0.74, 0.80, 0.51, 0.31, and 0.96. Thus, is reproduced particularly well, whereas and the two parameters show more noticeable differences in their marginalized posterior structures. The temperature normalization, , is broadly consistent between the two methods, with NEXONN yielding K compared with K from PyMultiNest. The corresponding posterior overlap is 68.02%, with , , and an SWD of 0.63. The different posterior constraints on the profile parameters indicate that the TcNF does not reproduce every aspect of the marginalized thermal-structure posterior, even when the characteristic temperature scales are similar.
Figure 9 compares the P–T profiles resulting from these correlated profile parameters. Despite the parameter-dependent differences in their individual marginalized posteriors, the resulting atmospheric thermal structures are broadly consistent between the two retrieval methods. This illustrates an important property of the P–T parameterization: different combinations of correlated profile parameters can produce similar temperature structures over the pressure range probed by the transmission spectrum. Consequently, differences among individual – parameters should be interpreted together with the resulting – profile rather than in isolation. The agreement between the plotted thermal structures therefore provides a complementary physical comparison, but does not by itself establish that the two methods recover identical posterior uncertainties in temperature as a function of pressure. Such a conclusion would require a direct comparison of posterior predictive – distributions obtained from the full joint posterior samples.

Figure 9. Retrieved pressure–temperature (P–T) profiles for the full JWST transmission spectrum of WASP-39 b using the Hybrid Equilibrium Chemistry model. The PyMultiNest and NEXONN results are shown in yellow and purple, respectively.
The derived elemental abundance ratios provide an additional consistency check on the broader chemical solution. These quantities are calculated from the retrieved atmospheric composition at a reference pressure of bar and are not directly inferred as independent parameters by NEXONN. We obtain , , and from the NEXONN retrieval, compared with , , and , respectively, from the PyMultiNest retrieval. The differences between the corresponding central estimates are 0.06, 0.05, and 0.06 dex for O/H, C/H, and S/H, respectively. These results indicate broadly similar inferred elemental-enrichment patterns under the adopted chemical model. However, because the elemental ratios are derived from the retrieved atmospheric composition, their apparent agreement does not constitute an independent validation of the underlying posterior distributions.
The mass–metallicity relation is shown in Figure 10. The inferred atmospheric metallicity places WASP-39 b in an enriched regime relative to Solar System giant planets of comparable mass, with potential implications for its formation and evolutionary history [35]. In the present context, the important methodological result is that both inference approaches place WASP-39 b in a similar region of the mass–metallicity relation, even though the statistical comparison shows that the detailed [M/H] posterior densities are not identical. Consequently, the broad interpretation of an enriched atmosphere is shared by the two retrievals, whereas the precise metallicity constraint and its uncertainty remain dependent on the inferred posterior distribution and the adopted atmospheric model.

Figure 10. Mass–metallicity relation showing the atmospheric metallicity inferred for WASP-39 b using PyMultiNest and NEXONN.
Figure 8 compares the joint and marginalized posterior distributions obtained with PyMultiNest and NEXONN. The figure visually reinforces the parameter-dependent behavior quantified in Table 3. Some parameters, most notably , show closely matching marginalized distributions, whereas parameters such as , , [M/H], and several – parameters show more noticeable differences in posterior width or detailed shape. The discrepancies in these comparatively concentrated posteriors are particularly relevant because relatively small changes in posterior location or width can produce substantial changes in their overlap and standardized distance. The two-dimensional projections provide a qualitative assessment of the inferred parameter correlations and degeneracies, but the degree of correspondence is not uniform across parameter pairs. Because the statistical measures in Table 3 are calculated from one-dimensional marginalized posteriors, Figure 8 should be viewed as a complementary visual assessment of the multidimensional posterior structure rather than as a quantitative validation of the full 15-dimensional joint distribution. A rigorous assessment of joint-posterior fidelity would additionally require multivariate diagnostics capable of testing the correlations and dependence structures represented by the TcNF.
Taken together, the full-JWST experiment demonstrates that the performance of NEXONN cannot be characterized by a single measure of posterior agreement. The framework recovers broadly similar central constraints for several physically important quantities, including C/O, metallicity, selected chemical abundances, and the characteristic thermal structure, while the statistical assessment reveals substantial parameter-to-parameter variation in the marginalized posterior distributions. Posterior overlaps range from 31.78% to 93.06%, with the lowest and highest overlaps corresponding to and , respectively. Although shows close agreement across all four statistical measures, the reference pressure, metallicity, abundance, and several – parameters show appreciable differences in posterior location, width, or probability-density structure. These discrepancies are particularly important because agreement in the reconstructed transmission spectrum or retrieved median parameters does not guarantee accurate approximation of the underlying Bayesian posterior. The full-JWST analysis therefore demonstrates the potential of NEXONN for rapid atmospheric inference while identifying important limitations in posterior fidelity for this higher-dimensional retrieval. The possible contributions of atmospheric degeneracies, finite training-set coverage, posterior complexity, and differences between simulated training spectra and real observations are discussed further in § 4. These mechanisms remain possible explanations rather than established causes of the observed discrepancies.
Discussion
The retrieval experiments presented above show that NEXONN can recover the principal atmospheric constraints obtained with conventional Bayesian sampling while reducing the cost of posterior inference after training. At the same time, the statistical comparisons demonstrate that agreement between neural and Bayesian inference is not uniform across all parameters and cannot be assessed from median values alone. In this section, we interpret these results in the context of posterior approximation, atmospheric degeneracies, statistical calibration, and the computational advantages and limitations of amortized inference.
Comparison of PyMultiNest and NEXONN Retrievals
The three retrieval experiments provide complementary tests of increasing complexity. The simulated MIRI/LRS experiment provides the most controlled validation because the generating atmospheric parameters are known and the inference problem is restricted to eight parameters. The observed MIRI/LRS retrieval then tests whether the trained neural posterior estimator remains consistent with conventional Bayesian inference when applied to real JWST data. Finally, the full-wavelength retrieval extends the comparison to a 15-dimensional atmospheric model containing a more complex thermal structure, equilibrium and free-chemistry parameters, and aerosol properties. Considered together, these experiments therefore probe the transition from controlled validation to increasingly realistic and degenerate atmospheric inference.
A central result of these comparisons is that similarity of retrieved median values does not necessarily imply similarity of the corresponding posterior distributions. This distinction becomes increasingly important as the retrieval dimensionality and parameter correlations increase. The KL and JS divergences, SWD, and posterior overlap probe complementary aspects of the marginalized posterior distributions and therefore reveal differences that would be hidden by a comparison of best-fit or median values alone. In particular, two posteriors can occupy nearby regions of parameter space while differing in their widths, asymmetries, tails, or concentration of probability density. Conversely, a high posterior overlap for a broad distribution does not imply that the underlying atmospheric parameter is tightly constrained by the data and vice versa.
The simulated-spectrum experiment illustrates the latter point particularly clearly. Several cloud and haze parameters remain weakly constrained by the adopted MIRI/LRS spectrum, yet NEXONN reproduces the broad PyMultiNest posteriors with high fidelity. This behavior is important for a neural posterior estimator: successful inference should reproduce not only well-constrained parameters but also the absence of information when the data do not strongly constrain a parameter. The agreement in these weakly informative dimensions therefore indicates that NEXONN is learning aspects of the posterior uncertainty structure rather than merely mapping spectra to point estimates.
For the observed WASP-39 b retrievals, the posterior agreement becomes more parameter dependent. The MIRI/LRS experiment shows that the two approaches can recover similar physical and chemical solutions even when the detailed probability density differs for individual parameters. This is especially relevant for molecular abundances, where the characteristic abundance constraints may agree while the posterior-comparison metrics indicate differences in posterior shape or density. In particular, Figure 6 shows differences in the posterior, where NEXONN assigns less probability to the larger values favored by PyMultiNest, while the and posteriors are more tightly constrained by NEXONN. The full-JWST retrieval strengthens this conclusion: several scientifically important quantities, including C/O, metallicity, elemental enrichment, and the atmospheric thermal structure, remain broadly consistent between the two inference approaches, while some individual marginalized posteriors show substantially lower overlap. In Figure 8, the differences are particularly noticeable for , , and the individual P–T profile parameters, highlighting that agreement in characteristic parameter values does not necessarily imply agreement in the full posterior distributions. Thus, for the relatively well-constrained WASP-39 b observations considered here, the two methods yield broadly consistent atmospheric interpretations despite noticeable differences in some marginalized posteriors. However, this agreement should not be generalized to less informative observations or more strongly degenerate retrieval problems, where such posterior differences could lead to substantially different atmospheric interpretations. A systematic assessment of NEXONN under these conditions is left for future work.
The P–T retrieval provides an instructive example of the role of parameter correlations. Individual parameters of the Madhusudhan–Seager profile need not show identical marginalized posteriors for the two inference methods, because multiple correlated combinations of these parameters can produce similar temperature structures over the pressures probed by transmission spectroscopy. The agreement of the resulting P–T profiles therefore carries different information from agreement of the individual parameter marginals. More generally, atmospheric retrieval parameters should not always be interpreted independently when the forward model admits strong covariances or degeneracies. Nevertheless, agreement between the derived P–T profiles does not eliminate differences between the underlying parameter posteriors, which remain relevant when assessing the accuracy of the neural posterior approximation.
The progression from the simulated experiment to the real JWST observations reveals an important limitation of the present approach. Although the simulated and observed MIRI/LRS retrievals involve the same eight parameters, NEXONN shows closer agreement with PyMultiNest for the simulated spectrum (Figure 4) than for the observed spectrum (Figure 6). This suggests that the differences cannot be attributed solely to increased retrieval dimensionality.
A plausible explanation is a mismatch between the training distribution and real observations. NEXONN is trained on synthetic spectra generated using an idealized one-dimensional atmospheric forward model and the adopted PandExo-based noise prescription. In contrast, real exoplanet atmospheres are three-dimensional and may show spatially varying temperatures, chemical abundances, and cloud properties. Furthermore, real JWST observations may contain instrumental systematics and noise characteristics not fully represented by the training simulations.
Consequently, even when the retrieved atmospheric parameters lie within the adopted training ranges, the observed spectra may differ from the distribution of spectra encountered during training. The application to real JWST observations may therefore constitute an out-of-distribution (OOD) inference problem, potentially contributing to the reduced posterior agreement with PyMultiNest.
Additional factors, including finite training-set coverage, parameter degeneracies, and increasingly complex posterior correlations, may also affect the accuracy of the neural posterior approximation, particularly for the 15-dimensional full-JWST retrieval. However, the present experiments do not isolate the relative contributions of these effects or establish whether atmospheric model inadequacies or differences in the observational noise prescription are responsible for the observed discrepancies.
These results highlight the importance of evaluating neural posterior estimators beyond the synthetic distributions used during training. While the present experiments demonstrate promising performance for WASP-39 b, agreement with conventional Bayesian retrievals on simulated spectra does not guarantee equivalent posterior agreement on real observations. Future work should therefore investigate the effects of training-set coverage, atmospheric model mismatch, realistic instrumental noise, and OOD behavior through controlled experiments, particularly before extending NEXONN to planets with lower-quality observations or substantially different atmospheric properties.
Posterior Uncertainties and Calibration
The use of PandExo-based noise realizations exposes NEXONN during training to wavelength-dependent uncertainty structures representative of the adopted JWST observing configurations. This differs from training on spectra perturbed by a wavelength-independent random-noise prescription and allows the observational information content to vary across wavelength in a manner that reflects the adopted instrumental setup. The present analysis does not, however, include an ablation experiment comparing different noise prescriptions; therefore, the posterior agreement reported here should be interpreted as demonstrating the performance of NEXONN under the adopted PandExo-based treatment rather than establishing that this treatment itself is responsible for the agreement with PyMultiNest. However, the adopted PandExo-based noise prescription remains an approximation of the observational uncertainties and may not fully capture instrumental systematics or correlated noise present in real JWST observations. Investigating more realistic noise prescriptions and their effects on posterior inference will be an important direction for future work with NEXONN.
The widths and shapes of the NEXONN posteriors represent uncertainty conditional on the adopted forward model, the training distribution, and the observational noise prescription. Parameters associated with distinctive spectral information can therefore yield concentrated posteriors, whereas weakly constrained or strongly degenerate parameters can remain broad. This behavior is important for a posterior estimator because the absence of strong spectral information should be represented as posterior uncertainty rather than as artificially precise parameter estimates. However, these uncertainties should not be interpreted as accounting for model inadequacy or systematic errors outside the assumptions represented in the training data and forward model.
Agreement with PyMultiNest and statistical calibration address two distinct questions. The posterior-comparison metrics quantify how closely NEXONN approximates a particular Bayesian reference posterior, whereas coverage tests whether the credible regions produced by NEXONN contain the known parameters at the expected frequency over repeated realizations. A neural posterior may therefore be statistically calibrated even when its marginalized posterior differs in detail from the PyMultiNest result for an individual spectrum. Conversely, close agreement with a Bayesian posterior for a single observation does not by itself demonstrate correct repeated-sampling calibration.
The coverage analysis in Figure 11 shows that the NEXONN credible regions show good aggregate calibration under the adopted simulation and noise assumptions. The model trained for the JWST MIRI/LRS retrieval yields a fitted coverage slope of with a coefficient of determination of , placing it very close to the ideal one-to-one calibration relation. For the full JWST model spanning the combined NIRISS/SOSS, NIRSpec/PRISM, and MIRI/LRS wavelength ranges, the fitted slope is with . The full-JWST model therefore shows a mild tendency toward conservative (underconfident) coverage, with empirical coverage exceeding the nominal credible levels on average over the fitted range. This suggests that the inferred credible regions are somewhat broader than required for exact calibration under the adopted simulation assumptions. The high values indicate that the empirical coverage is well described by the fitted relations, although they do not independently establish agreement with the ideal one-to-one relation. Importantly, these coverage curves represent averages across all retrieved parameters for 500 simulated test spectra. They therefore characterize aggregate calibration under the training simulation framework, rather than establishing exact calibration for every individual parameter or for real JWST observations. Parameter-resolved coverage tests and validation under more realistic observational conditions would provide useful extensions in future work.

Figure 11. Coverage analysis of the posterior distributions, , inferred with NEXONN for the JWST MIRI/LRS retrieval and the full JWST retrieval combining NIRISS/SOSS, NIRSpec/PRISM, and MIRI/LRS. Each curve represents the average empirical coverage across all retrieved parameters for 500 test spectra. The curves are linearly fitted and compared with the ideal one-to-one calibration relation. The close agreement between the empirical and nominal credible levels indicates that the inferred posterior uncertainties are well calibrated.
The slightly more conservative behavior of the full-JWST model is qualitatively consistent with the increased complexity of the 15-dimensional inference problem, although the present analysis does not establish a causal connection. Higher dimensionality, stronger posterior correlations, and finite sampling of the training distribution could all contribute to broader inferred uncertainties. More extensive simulation-based calibration, including parameter-resolved and potentially joint-posterior diagnostics, will therefore be valuable as NEXONN is extended to more complex atmospheric models.
Computational Cost
The principal computational trade-off of NEXONN is the shift from repeated retrieval cost to an up-front training cost. For the full-JWST configuration considered here, training on synthetic spectra in the 15-dimensional parameter space at a spectral resolution of required approximately 36 hours on an NVIDIA L4 GPU. Once trained, however, posterior inference for an individual spectrum required only 8.14 s on the same GPU. The corresponding PyMultiNest retrieval required approximately 49 hours on 60 CPU cores, or about 2915 CPU-hours. Because these calculations use fundamentally different algorithms and hardware architectures, these wall times should not be interpreted as a direct hardware-normalized speed-up factor. Instead, the relevant advantage is the different scaling with the number of retrieval targets.
A conventional Bayesian retrieval incurs a new sampling cost for every spectrum, whereas the dominant training cost of an amortized neural posterior estimator is paid once. For a set of spectra that can be analyzed using the same trained model and that remain within its applicable training domain, the marginal computational cost per additional target is therefore very small. This distinction is particularly important for large homogeneous datasets, repeated analyses, injection-and-recovery experiments, and population-level atmospheric studies, where many posterior evaluations may be required.
The current training cost nevertheless remains substantial and motivates further optimization of the neural architecture and training strategy. More efficient attention implementations and improved simulation and training strategies may reduce this cost in future versions of NEXONN. Such developments should be evaluated not only in terms of training speed but also in terms of posterior fidelity, statistical calibration, memory requirements, and robustness across the training domain.
The scalability of amortized inference must also be considered together with its domain dependence. A trained NEXONN model cannot automatically be assumed to generalize to arbitrary wavelength coverage, noise properties, atmospheric parameterizations, or planets lying outside the training distribution. Changes to the forward model or observational configuration may require additional training or retraining. Consequently, the greatest computational advantage is expected when the up-front cost can be amortized over many spectra sharing a sufficiently similar inference problem. This regime is particularly relevant to population-level atmospheric studies and comparative exoplanetology, where consistently analyzing large samples within a common physical framework is central to identifying population-level trends.
Conclusion
In this work, we introduced NEXONN, a machine-learning retrieval framework within NEXOTRANS that combines a transformer-based conditioner with normalizing flows for amortized posterior estimation. We evaluated NEXONN through a sequence of increasingly complex retrieval experiments, benchmarking its posterior constraints against Bayesian retrievals performed with PyMultiNest. Together, these experiments assess the recovery of atmospheric constraints, the fidelity of the inferred posterior distributions, their statistical calibration, and the computational advantages of amortized inference. The comparison distinguishes agreement in retrieved atmospheric properties from agreement in posterior probability distributions, which is essential for assessing the reliability of neural posterior estimation. The main conclusions are summarized below:
(i) We first validated NEXONN using a simulated JWST MIRI/LRS transmission spectrum spanning 5–12 m, with PandExo-based noise incorporated into the synthetic spectrum. Because the input atmospheric parameters are known, this experiment provides a controlled validation of the retrieval framework. NEXONN successfully recovers atmospheric solutions consistent with the simulated spectrum and reproduces the principal characteristics of the corresponding PyMultiNest marginalized posterior distributions. The mean posterior overlap across the eight retrieved parameters is 80.32%, reaching 94.92% for , with particularly strong agreement for the cloud and haze parameters. Although some differences remain for and , the overall results demonstrate substantial consistency between the two retrieval approaches. Importantly, NEXONN also reproduces the broad posterior distributions of weakly constrained parameters, demonstrating its ability to capture atmospheric uncertainties and parameter degeneracies rather than providing only point estimates.
(ii) We next applied NEXONN to the observed JWST MIRI/LRS transmission spectrum of WASP-39 b spanning 5–12 m. The retrieval recovers the principal atmospheric constraints obtained with PyMultiNest, with substantial agreement across the marginalized posterior distributions. In particular, NEXONN retrieves and , compared with the PyMultiNest constraints of and , respectively. The corresponding posterior overlaps of 71.97% for and 79.41% for demonstrate substantial agreement in the inferred molecular abundances. The cloud and haze parameters also show broadly consistent posterior constraints, although some differences in their distributions remain, reflecting the parameter-dependent nature of posterior approximation. Overall, this real-data experiment demonstrates that NEXONN successfully reproduces the principal molecular and atmospheric constraints inferred from JWST observations, while providing a probabilistic characterization of the associated uncertainties.
(iii) We then extended NEXONN to the full JWST transmission spectrum of WASP-39 b, combining NIRISS/SOSS, NIRSpec/PRISM, and MIRI/LRS observations over approximately 0.6–12 m. Using the Hybrid Equilibrium Chemistry model, NEXONN yields a C/O ratio of and a global metallicity of [M/H] , compared with the corresponding PyMultiNest constraints of and [M/H] , respectively. The derived log-arithmetic elemental abundance ratios, , , and , are also consistent with those derived from the PyMultiNest retrieval. The retrieved P–T profiles also show broad agreement, demonstrating that both approaches recover similar atmospheric thermal structures despite differences in some of the individual P–T parameters. Although the detailed posterior distributions show parameter-dependent differences, including those associated with metallicity and reference pressure, the overall results demonstrate that NEXONN successfully recovers the principal chemical and thermal characteristics of WASP-39 b from the combined JWST observations. This agreement is particularly encouraging given the increased complexity of the 15-dimensional retrieval and highlights the potential of NEXONN for efficient atmospheric characterization using broad-wavelength JWST spectroscopy.
(iv) Across the simulated, MIRI/LRS, and full-JWST experiments, we quantified posterior agreement using complementary statistical measures, including KL divergence, JS divergence, standardized Wasserstein distance, and posterior overlap. These diagnostics demonstrate that agreement in median retrieved values does not necessarily imply agreement of the full marginalized posterior distributions. Some parameters show close agreement across all statistical measures, whereas others occupy similar regions of parameter space but differ in posterior width, asymmetry, or probability-density structure. The discrepancies become particularly evident in the full-JWST experiment, where several scientifically important parameters show relatively similar central estimates but different posterior overlaps and divergence statistics. Moreover, the one-dimensional metrics assess marginalized distributions and cannot, by themselves, establish agreement of the full multidimensional posterior or its parameter correlations. The statistical assessment therefore highlights the importance of evaluating neural posterior estimators using distribution-level diagnostics rather than central parameter estimates alone.
(v) Posterior fidelity with respect to PyMultiNest and statistical calibration were assessed as complementary but distinct properties. Simulation-based coverage tests indicate that the NEXONN credible regions show approximately nominal or mildly conservative aggregate coverage under the adopted forward-model and noise assumptions. The MIRI/LRS model yields a coverage slope of with , while the full-JWST model yields with . The former is close to the ideal calibration relation, whereas the latter indicates mildly conservative credible regions for the higher-dimensional retrieval. Because these coverage curves are averaged across the retrieved parameters, these results establish approximate aggregate calibration on the simulated test population rather than calibrated uncertainties for every individual parameter or real observation. In particular, the mildly conservative aggregate coverage of the full-JWST model does not contradict the narrower NEXONN posteriors observed for some parameters in the WASP-39 b retrieval, because the two diagnostics evaluate different properties. Parameter-resolved coverage tests and more extensive validation of the joint posterior will be necessary to establish the reliability of the inferred uncertainties across individual atmospheric parameters and observational conditions.
(vi) The PandExo-based noise prescription incorporates wavelength-dependent observational uncertainty structures representative of the adopted JWST observing configurations into the synthetic training spectra. NEXONN therefore learns posterior inference under an instrument-dependent noise treatment rather than a wavelength-independent random-noise prescription. The results presented here demonstrate the performance of the framework under this adopted noise model; quantifying the specific impact of the noise prescription itself will require dedicated comparisons between alternative training-noise treatments. Furthermore, the adopted noise prescription does not necessarily capture all instrumental systematics, correlated observational errors, or departures of real planetary atmospheres from the assumptions of the training forward model. Such differences may affect the transfer of the trained posterior estimator to real observations and warrant further investigation.
(vii) The transformer-conditioned normalizing flow architecture enables NEXONN to learn complex, multidimensional posterior distributions and capture correlations and degeneracies among atmospheric parameters, providing probabilistic constraints rather than only point estimates. This represents a substantial extension of the previous machine-learning implementation within NEXOTRANS, which employed a Stacker-Regressor combining Random Forest, Gradient Boosting, and K-Nearest Neighbors. By extending the framework from deterministic parameter estimation to amortized neural posterior estimation, NEXONN provides a flexible and computationally efficient approach to atmospheric retrieval with uncertainty quantification. Our comparisons of marginalized posterior distributions, together with qualitative assessments of parameter correlations, demonstrate the potential of this approach for increasingly complex atmospheric models. Future developments will focus on quantitative validation of multidimensional posterior structure and parameter-specific calibration, further strengthening the reliability and applicability of the framework.
(viii) Finally, NEXONN provides a substantial computational advantage through amortized inference. Training the full-JWST model on synthetic spectra requires hours on an NVIDIA L4 GPU. Once trained, posterior sampling for an individual spectrum requires only seconds on the same GPU. In comparison, the corresponding PyMultiNest retrieval requires hours on 60 CPU cores, corresponding to approximately 2915 CPU-hours. Because the neural-network and Bayesian calculations use different hardware and algorithms, these values should not be interpreted as a direct hardware-normalized speed-up factor. The principal computational advantage instead arises from amortization: the training cost is incurred once, after which posterior inference can be performed rapidly for additional spectra that remain within the parameter and observational domain represented by the training distribution. The up-front training cost, model-specific training requirements, and need to assess posterior reliability nevertheless remain important considerations when extending the framework to new atmospheric models or observational configurations. This scaling makes NEXONN particularly promising for large-sample atmospheric retrievals, repeated inference applications, population-level studies, and comparative exoplanetology in the JWST era.
Acknowledgments
We thank the anonymous referee for insightful comments and constructive suggestions that have significantly improved the scientific rigor, clarity, and overall quality of this manuscript. L.M. acknowledges funding support from the DAE through the NISER project RNI 4011. L.M. also gratefully acknowledges support from Breakthrough Listen at the University of Oxford through a sub-award at NISER under Agreement R82799/CN013, provided as part of a global collaboration under the Breakthrough Listen project funded by the Breakthrough Prize Foundation. The Open Access Fees for this article was fully funded by the One Nation One Subscription (ONOS) Initiative of Govt. of India (https://ror.org/036h6g940).
Facilities: JWST
Software: NEXOTRANS [12], PyTorch [43], PandExo [4], scikit-learn [45], SciPy [61].
References
- [1]Al-Refaie, A. F., Changeat, Q., Waldmann, I. P., & Tinetti, G. 2021, ApJ, 917, 37, doi: 10.3847/1538-4357/ac0252DOI
- [2]Ardévol Martínez, F., Min, M., Huppenkothen, D., Kamp, I., & Palmer, P. I. 2024, A&A, 681, L14, doi: 10.1051/0004-6361/202348367DOI
- [3]Ardévol Martínez, F., Min, M., Kamp, I., & Palmer, P. I. 2022, A&A, 662, A108, doi: 10.1051/0004-6361/202142976DOI
- [4]Batalha, N. E., Mandell, A., Pontoppidan, K., et al. 2017, PASP, 129, 064501, doi: 10.1088/1538-3873/aa65b0DOI
- [5]Changeat, Q., Lagage, P.-O., Tinetti, G., et al. 2025, arXiv e-prints, arXiv:2509.02657, doi: 10.48550/arXiv.2509.02657arxiv.org/abs/2509.02657
- [7]Cobb, A. D., Himes, M. D., Soboczenski, F., et al. 2019, AJ, 158, 33, doi: 10.3847/1538-3881/ab2390DOI
- [8]Constantinou, S., & Madhusudhan, N. 2024, MNRAS, 530, 3252, doi: 10.1093/mnras/stae633DOI
- [9]Cranmer, K., Brehmer, J., & Louppe, G. 2020, Proceedings of the National Academy of Science, 117, 30055, doi: 10.1073/pnas.1912789117DOI
- [10]Dash, S., Majumdar, L., Willacy, K., et al. 2022, ApJ, 932, 20, doi: 10.3847/1538-4357/ac67f0DOI
- [11]De Cao, N., Titov, I., & Aziz, W. 2019, arXiv e-prints, arXiv:1904.04676, doi: 10.48550/arXiv.1904.04676DOI
- [12]Deka, T., Khan, T. B., Dewan, S., et al. 2025, ApJ, 989, 50, doi: 10.3847/1538-4357/add33dDOI
- [13]Durkan, C., Bekasov, A., Murray, I., & Papamakarios, G. 2019, arXiv e-prints, arXiv:1906.04032, doi: 10.48550/arXiv.1906.04032DOI
- [14]Espinoza, N., & Perrin, M. D. 2025, arXiv preprint arXiv:2505.20520, doi: https://doi.org/10.48550/arXiv.2505.20520
- [15]Feinstein, A. D., Radica, M., Welbanks, L., et al. 2023, Nature, 614, 670, doi: 10.1038/s41586-022-05674-1DOI
- [17]Gardner, J. P., Mather, J. C., Abbott, R., et al. 2023, PASP, 135, 068001, doi: 10.1088/1538-3873/acd1b5DOI
- [18]Gebhard, T. D., Wildberger, J., Dax, M., et al. 2025, A&A, 693, A42, doi: 10.1051/0004-6361/202451861DOI
- [19]Ghosh, P., Mishra, S., Dey, S., et al. 2026, ApJ, 998, 221, doi: 10.3847/1538-4357/ae2d18DOI
- [20]Goodman, J., & Weare, J. 2010, Communications in Applied Mathematics and Computational Science, 5, 65, doi: 10.2140/camcos.2010.5.65DOI
- [21]Hastings, W. K. 1970, Biometrika, 57, 97, doi: 10.1093/biomet/57.1.97DOI
- [23]Hendrycks, D., & Gimpel, K. 2016, arXiv e-prints, arXiv:1606.08415, doi: 10.48550/arXiv.1606.08415
- [24]Higson, E., Handley, W., Hobson, M., & Lasenby, A. 2019, Statistics and Computing, 29, 891, doi: 10.1007/s11222-018-9844-0DOI
- [25]Himes, M. D., Harrington, J., Cobb, A. D., et al. 2022, The Planetary Science Journal, 3, 91, doi: 10.3847/PSJ/abe3fdDOI
- [26]Hinkley, S., & Sing, D. K. 2026, arXiv e-prints, arXiv:2608.05885, doi: 10.48550/arXiv.2608.05885DOI
- [27]Huang, C.-W., Krueger, D., Lacoste, A., & Courville, A. 2018, arXiv e-prints, arXiv:1804.00779, doi: 10.48550/arXiv.1804.00779DOI
- [28]Kingma, D. P., Salimans, T., Jozefowicz, R., et al. 2016, arXiv e-prints, arXiv:1606.04934, doi: 10.48550/arXiv.1606.04934DOI
- [29]Lemos, P., Coogan, A., Hezaveh, Y., & Perreault-Levasseur, L. 2023, 40th International Conference on Machine Learning, 202, 19256, doi: 10.48550/arXiv.2302.03026DOI
- [30]Lichtenberg, T., & Miguel, Y. 2024, arXiv preprint arXiv:2405.04057, doi: https://doi.org/10.48550/arXiv.2405.04057
- [31]Line, M. R., & Yung, Y. L. 2013, ApJ, 779, 3, doi: 10.1088/0004-637X/779/1/3DOI
- [32]Loshchilov, I., & Hutter, F. 2017, arXiv e-prints, arXiv:1711.05101, doi: 10.48550/arXiv.1711.05101DOI
- [33]Lueber, A., Karcher, K., Fischer, C., et al. 2025, ApJL, 984, L32, doi: 10.3847/2041-8213/adc7aaDOI
- [34]MacDonald, R. J., & Batalha, N. E. 2023, Research Notes of the American Astronomical Society, 7, 54, doi: 10.3847/2515-5172/acc46aDOI
- [35]Madhusudhan, N. 2012, ApJ, 758, 36, doi: 10.1088/0004-637X/758/1/36DOI
- [38]Madhusudhan, N., & Seager, S. 2009, ApJ, 707, 24, doi: 10.1088/0004-637X/707/1/24DOI
- [39]Márquez-Neila, P., Fisher, C., Sznitman, R., & Heng, K. 2018, Nature Astronomy, 2, 719, doi: 10.1038/s41550-018-0504-2
- [40]Mollière, P., Wardenier, J. P., van Boekel, R., et al. 2019, A&A, 627, A67, doi: 10.1051/0004-6361/201935470DOI
- [41]Nixon, M. C., & Madhusudhan, N. 2020, MNRAS, 496, 269, doi: 10.1093/mnras/staa1150DOI
- [42]Papamakarios, G., Nalisnick, E., Jimenez Rezende, D., Mohamed, S., & Lakshminarayanan, B. 2019, arXiv e-prints, arXiv:1912.02762, doi: 10.48550/arXiv.1912.02762DOI
- [43]Paszke, A., Gross, S., Massa, F., et al. 2019, in Advances in Neural Information Processing Systems, Vol. 32
- [44]Patacchiola, M., Shysheya, A., Hofmann, K., & Turner, R. E. 2024, arXiv e-prints, arXiv:2401.01855, doi: 10.48550/arXiv.2401.01855DOI
- [45]Pedregosa, F., Varouquaux, G., Gramfort, A., et al. 2011, Journal of Machine Learning Research, 12, 2825
- [46]Powell, D., Feinstein, A. D., Lee, E. K. H., et al. 2024, Nature, 626, 979, doi: 10.1038/s41586-024-07040-9DOI
- [48]Rustamkulov, Z., Sing, D. K., Mukherjee, S., et al. 2023, Nature, 614, 659, doi: 10.1038/s41586-022-05677-yDOI
- [49]Sahu, C. K., Majumdar, L., Mridha, S., & Krishna, H. 2025, The Astrophysical Journal, 981, 80, doi: 10.3847/1538-4357/adabbeDOI
- [51]Sing, D. K., Fortney, J. J., Nikolov, N., et al. 2016, Nature, 529, 59, doi: 10.1038/nature16068DOI
- [52]Skilling, J. 2006, Bayesian Analysis, 1, 833 , doi: 10.1214/06-BA127DOI
- [53]Soboczenski, F., Himes, M. D., O’Beirne, M. D., et al. 2018, arXiv e-prints, arXiv:1811.03390, doi: 10.48550/arXiv.1811.03390DOI
- [54]Trotta, R. 2008, Contemporary Physics, 49, 71, doi: 10.1080/00107510802066753DOI
- [55]Tsai, S.-M., Lee, E. K. H., Powell, D., et al. 2023, Nature, 617, 483, doi: 10.1038/s41586-023-05902-2DOI
- [56]Turner, R. E. 2023, arXiv e-prints, arXiv:2304.10557, doi: 10.48550/arXiv.2304.10557DOI
- [59]Vasist, M., Rozet, F., Absil, O., et al. 2023, A&A, 672, A147, doi: 10.1051/0004-6361/202245263DOI
- [60]Vaswani, A., Shazeer, N., Parmar, N., et al. 2017, arXiv e-prints, arXiv:1706.03762, doi: 10.48550/arXiv.1706.03762arxiv.org/abs/1706.03762
- [61]Virtanen, P., Gommers, R., Oliphant, T. E., et al. 2020, Nature Methods, 17, 261, doi: 10.1038/s41592-019-0686-2DOI
- [62]Yip, K. H., Changeat, Q., Al-Refaie, A., & Waldmann, I. P. 2024, ApJ, 961, 30, doi: 10.3847/1538-4357/ad063fDOI
- [63]Zingales, T., & Waldmann, I. P. 2018, AJ, 156, 268, doi: 10.3847/1538-3881/aae77cDOI