Monte Carlo Techniques for Addressing Large Errors and Missing Data in Simulation-based Inference

Bingjie Wang, Joel Leja, Ashley Villar, Joshua S. SpeaglearXiv 2022 · DOI

Abstract

Simulation-based Inference (SBI) offers a significant speedup over traditional parameter inference methods in astronomy, but it often struggles with out-of-distribution (OOD) noise and missing data. This paper presents a Monte Carlo (MC) based extension for SBI that maintains a 400x speedup over traditional methods like nested sampling while matching their accuracy. By integrating MC techniques into an Amortized Neural Posterior Estimation (ANPE) framework, the authors demonstrate a robust methodology for analyzing the billions of galaxies expected from upcoming large-scale surveys.

Introduction

As astronomy enters the "big data" era, upcoming projects like the Vera C. Rubin Observatory are set to observe billions of galaxies. Inferring physical properties—such as mass, age, and star formation rate—from the light of these galaxies is a monumental computational challenge. Traditional "gold-standard" tools, including Markov Chain Monte Carlo (MCMC) and nested sampling, typically require about 10 hours to fit a single galaxy. Scaling this to billions of galaxies is computationally infeasible.

Simulation-based Inference (SBI) has emerged as a promising alternative, capable of performing fits in approximately one second. However, standard SBI models are "brittle"; they generally require observed data to closely match the training distribution. In real-world scenarios, telescope conditions fluctuate, noise levels vary (OOD noise), and surveys may miss specific wavelength bands. Naive SBI often fails under these conditions, producing confident but incorrect results.

Methodology

The researchers propose a complete SBI-based methodology designed to handle real-world irregularities using Monte Carlo (MC) techniques.

Overview of the SBI methodology handling OOD noise and missing data.

The core of the model utilizes Amortized Neural Posterior Estimation (ANPE) with Masked Autoregressive Flows (MAF). This normalizing flow learns to map observed photometry directly to a probability distribution of physical parameters.

To address out-of-distribution measurement errors, the authors employ MC integration. When an observation exhibits noise levels unseen during training, 100 samples are drawn from a Gaussian distribution centered on the observed value. Each sample is processed through the SBI model, and the resulting posteriors are averaged to produce a robust estimate.

For missing data, such as a missing wavelength band, the methodology incorporates a nearest-neighbor search within the training set. By identifying similar galaxies, the system uses Kernel Density Estimation (KDE) to "fill in" the missing information before passing the augmented samples through the SBI model.

Datasets

The model was trained on approximately 2 million simulated Spectral Energy Distributions (SEDs) generated using the Prospector code, simulating seven bandpasses for the James Webb Space Telescope (JWST). A validation set of 200 held-out examples was used to compare the new method against "ground truth" results from traditional nested sampling. The parameter space follows a mock catalog specifically designed for JWST surveys.

Key Results

The MC-enhanced SBI approach achieves a significant balance between speed and reliability. While the MC loop increases the processing time from ~1 second to ~1.5 minutes per object, it remains approximately 400x faster than traditional nested sampling (~10 hours).

Performance metrics comparing the MC-enhanced SBI against nested sampling and naive SBI.

The generated posteriors show excellent agreement with nested sampling, successfully recovering true physical parameters even when noise is inflated by 5x or data is missing. Crucially, the authors demonstrate that naive SBI can be dangerous; when faced with OOD noise, standard models often yield narrow, shifted posteriors that are confidently wrong. The MC approach effectively marginalizes over these uncertainties.

Conclusion and Future Work

This methodology makes the analysis of billion-galaxy surveys computationally tractable. However, some limitations remain. The missing data technique is dependent on the training set's priors; if the training data is not representative, the nearest-neighbor fill-in may introduce bias. Additionally, sparse training data could lead to multi-modal posteriors being poorly represented. Future work will explore how runtime scales with increasing complexity and a higher number of missing or noisy bands.

Summary updated

BibTeX
@misc{wang2022monte,
  author = {Bingjie Wang and Joel Leja and Ashley Villar and Joshua S. Speagle},
  title = {{Monte Carlo Techniques for Addressing Large Errors and Missing Data in Simulation-based Inference}},
  year = {2022},
  eprint = {2211.03747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.03747},
}
Figure