NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Ensemble of Bayesian Neural Networks for Exoplanetary Atmospheric Retrieval

Adam D. Cobb, Michael D. Himes, Frank Soboczenski, Simone Zorzan, Molly D. O'Beirne, Atilim Günes Baydin, Yarin Gal, Shawn D. Domagal-Goldman, Giada N. Arney, Daniel AngerhausenarXiv 2019 · DOI

Abstract

Machine learning is now used in many areas of astrophysics, from detecting exoplanets in Kepler transit signals to removing telescope systematics. Recent work demonstrated the potential of using machine learning algorithms for atmospheric retrieval by implementing a random forest to perform retrievals in seconds that are consistent with the traditional, computationally-expensive nested-sampling retrieval method. We expand upon their approach by presenting a new machine learning model, plan-net, based on an ensemble of Bayesian neural networks that yields more accurate inferences than the random forest for the same data set of synthetic transmission spectra. We demonstrate that an ensemble provides greater accuracy and more robust uncertainties than a single model. In addition to being the first to use Bayesian neural networks for atmospheric retrieval, we also introduce a new loss function for Bayesian neural networks that learns correlations between the model outputs. Importantly, we show that designing machine learning models to explicitly incorporate domain-specific knowledge both improves performance and provides additional insight by inferring the covariance of the retrieved atmospheric parameters. We apply plan-net to the Hubble Space Telescope Wide Field Camera 3 transmission spectrum for WASP-12b and retrieve an isothermal temperature and water abundance consistent with the literature.

Introduction

When an exoplanet transits its host star, its atmosphere absorbs specific wavelengths of light, creating a "transmission spectrum." Astronomers use these spectra to infer atmospheric composition, temperature, and cloud properties—a process known as atmospheric retrieval. Traditionally, this inverse problem is solved using Bayesian sampling techniques like Markov chain Monte Carlo (MCMC) or nested sampling. While accurate, these methods are computationally intensive, often requiring hundreds of CPU hours per planet.

Recent efforts to accelerate this process using machine learning, such as Random Forests, have reduced retrieval times to seconds. However, these models often struggle with robust uncertainty quantification and fail to capture physical correlations between atmospheric parameters, such as the degeneracy between temperature and cloud opacity.

Methodology: The plan-net Architecture

To address these challenges, we introduce plan-net, an ensemble of Bayesian Neural Networks (BNNs). Unlike standard neural networks that provide point estimates, BNNs offer probability distributions over their outputs. We utilize Monte Carlo (MC) dropout—a variational inference technique—to approximate the Bayesian posterior by dropping random weights during both training and inference.

The plan-net architecture processes spectra through concrete dropout layers to output the mean and Cholesky decomposition of the precision matrix, enabling the inference of correlated atmospheric parameters.

A key innovation in plan-net is its custom loss function. Instead of minimizing mean squared error, the model minimizes the negative log-likelihood of a multivariate normal distribution. The network is designed to output a mean vector $\boldsymbol{\mu}_t$ and a lower triangular matrix $\mathbf{L}_t$ (the Cholesky decomposition of a precision matrix). This architecture explicitly forces the model to learn the covariance between different atmospheric parameters, incorporating domain-specific physical knowledge into the learning process. We further stabilize these predictions by using an ensemble of five such BNNs.

Results and Discussion

We evaluated plan-net using a benchmark dataset of 100,000 synthetic Hubble Space Telescope (HST) Wide Field Camera 3 (WFC3) transmission spectra. The model outperformed the Random Forest baseline, achieving a higher mean $R^2$ score of 0.673 compared to 0.651.

Comparison of posterior distributions for (a) Random Forest, (b) a single plan-net model, and (c) the plan-net Ensemble. The ensemble approach yields more robust and less overconfident uncertainty estimates.

Beyond raw accuracy, plan-net demonstrates superior uncertainty quantification. As shown in the comparison of posterior distributions, the Random Forest model frequently produces narrow, overconfident distributions that may miss the true parameter values. In contrast, the plan-net ensemble appropriately widens its distributions when the data is less constraining, reflecting a more realistic assessment of uncertainty.

The computational efficiency is significant: a full 5-model ensemble prediction takes approximately 1.5 seconds, orders of magnitude faster than traditional sampling. When applied to real-world data for WASP-12b, plan-net retrieved a temperature and water abundance highly consistent with established literature (e.g., Kreidberg et al. 2015), while correctly identifying low abundances for HCN and NH3.

Conclusion

plan-net represents a significant step forward in applying machine learning to exoplanetary science. By leveraging BNNs and a physics-informed loss function, the model provides fast, reliable retrievals with robust uncertainty estimates. While traditional sampling remains the gold standard for final publication-ready bounds, plan-net serves as an invaluable triage tool, capable of providing near-instant insights into atmospheric compositions. Future work will extend this approach to higher-resolution spectra and a broader range of planetary parameters.

Summary updated

BibTeX
@misc{cobb2019ensemble,
  author = {Adam D. Cobb and Michael D. Himes and Frank Soboczenski and Simone Zorzan and Molly D. O'Beirne and Atilim Günes Baydin and Yarin Gal and Shawn D. Domagal-Goldman and Giada N. Arney and Daniel Angerhausen},
  title = {{An Ensemble of Bayesian Neural Networks for Exoplanetary Atmospheric Retrieval}},
  year = {2019},
  eprint = {1905.10659},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.10659},
}
Figure