Abstract
Traditional atmospheric retrieval of exoplanets is computationally intensive, often requiring days of supercomputer time. While Machine Learning (ML) approaches like Neural Posterior Estimation (NPE) offer speed through amortization, they struggle with reliability, rigidity to noise levels, and model comparison. We introduce Flow Matching Posterior Estimation (FMPE), a framework that combines Continuous Normalizing Flows with Importance Sampling and noise-level conditioning. FMPE is 3x faster to train than previous state-of-the-art methods, provides a built-in reliability check, and handles varying instrument noise without retraining.
Introduction
Atmospheric retrieval is the "inverse problem" of determining an exoplanet's chemical composition, temperature, and cloud properties from its observed spectrum. While Bayesian methods like Nested Sampling are accurate, their computational cost is a significant bottleneck. Amortized ML methods promise near-instant inference but face hurdles regarding "black box" behavior, fixed noise assumptions, and the inability to easily calculate Bayesian evidence.
Methods
The proposed framework rests on three technical pillars:
1. Flow Matching Posterior Estimation (FMPE)
Standard NPE typically employs Discrete Normalizing Flows (DNF), which use a sequence of discrete transformations. In contrast, FMPE utilizes Continuous Normalizing Flows (CNF). It learns a vector field that defines a continuous "flow" from a simple base distribution to the complex target posterior. This approach allows for more flexible neural architectures and significantly faster training convergence.
2. Importance Sampling (IS)
To ensure reliability, the ML model's output is treated as a proposal distribution for Importance Sampling. Samples are reweighted using the actual physical likelihood function, correcting minor ML errors and providing a sampling efficiency metric ($\epsilon$). A low efficiency serves as a diagnostic flag for model failure.
3. Noise-Level Conditioning
The neural network is conditioned on the assumed instrument noise level ($\sigma$). By including $\sigma$ as an additional input, a single model can perform retrievals across a wide range of signal-to-noise ratios, removing the need for retraining when instrument parameters change.
Experimental Setup
The framework was evaluated using a simulated dataset of the gas giant HR8799 e.
- Simulator: Emission spectra were generated using
petitRADTRANS. - Data: A library of 33.5 million spectra was used for training.
- Parameters: The model retrieves 16 atmospheric parameters, including chemical abundances (C/O ratio, metallicity), cloud properties, and temperature profiles.
- Benchmarks: Results were compared against traditional nested sampling codes
nautilusandMultiNest.
Key Results and Insights
- Training Efficiency: FMPE converged in 55 hours on an NVIDIA H100, a 3x speedup over the 163 hours required for standard NPE.
- Reliability Diagnostics: The sampling efficiency $\epsilon$ proved to be a robust indicator of model reliability. When tested with incorrect noise levels, $\epsilon$ dropped significantly, successfully identifying the mismatch.
- Bayesian Evidence: By utilizing IS, the authors successfully estimated the Bayesian evidence ($\log Z$), enabling rigorous model selection—a feature typically missing in amortized ML methods.
- Accuracy and Robustness: FMPE-IS results matched "ground truth" nested sampling results. The noise-conditional model remained accurate across noise levels from $\sigma = 0.1$ to $0.4$.
Conclusion
FMPE-IS bridges the gap between the speed of machine learning and the rigor of traditional Bayesian inference. By providing faster training, adaptive noise handling, and built-in reliability checks, this framework is well-positioned for the next generation of exoplanet observations. Future work will focus on handling correlated noise and testing performance on real-world "out-of-distribution" data.
Code available at: github.com/timothygebhard/fm4ar
Summary updated