Abstract
We present a new, fully generative model for constructing astronomical catalogs from optical telescope image sets. Each pixel intensity is treated as a random variable with parameters that depend on the latent properties of stars and galaxies. These latent properties are themselves modeled as random. We compare two procedures for posterior inference. One procedure is based on Markov chain Monte Carlo (MCMC) while the other is based on variational inference (VI). The MCMC procedure excels at quantifying uncertainty, while the VI procedure is 1000 times faster. On a supercomputer, the VI procedure efficiently uses 665,000 CPU cores to construct an astronomical catalog from 50 terabytes of images in 14.6 minutes, demonstrating the scaling characteristics necessary to construct catalogs for upcoming astronomical surveys.
Introduction
Astronomical catalogs are the foundational databases of modern cosmology, listing the properties of celestial objects like stars and galaxies. Traditionally, these catalogs are produced through complex, multi-stage heuristic pipelines. These pipelines typically estimate background noise, detect peaks, deblend overlapping sources, and finally measure shapes in a sequential manner. However, this approach suffers from compounding errors and lacks a rigorous statistical framework for uncertainty quantification, especially as surveys like the Large Synoptic Survey Telescope (LSST) prepare to observe billions of overlapping (blended) sources.
A Generative Model for the Sky
To address these challenges, we propose a fully generative Bayesian model. Instead of a sequence of heuristics, we treat the entire cataloging process as a single inference problem. We model the number of photons hitting each camera pixel as a Poisson-distributed random variable. The rate of this distribution is determined by the latent properties of the light sources, such as their position, flux, and morphology.
By modeling the sky generatively, "deblending" becomes a natural consequence of the mathematics: the expected intensity at any pixel is simply the sum of the contributions from all nearby sources.
Inference: MCMC vs. Variational Inference
Inferring the posterior distribution of these latent variables is computationally demanding. We compare two primary methods:
- Markov Chain Monte Carlo (MCMC): Utilizing Annealed Importance Sampling (AIS) for discrete source types and slice sampling for continuous parameters, MCMC provides high-fidelity uncertainty estimates. However, its computational cost makes it impractical for whole-sky surveys.
- Variational Inference (VI): We approximate the posterior with a simpler distribution and optimize it using a trust-region Newton’s method. While VI tends to underestimate uncertainty, it is approximately 1000 times faster than MCMC.
To achieve the necessary performance for modern datasets, the VI algorithm was implemented in Julia, a high-level language that allows for rapid development while achieving performance comparable to C on high-performance computing (HPC) systems.
Large-Scale Cataloging and Results
The performance of the proposed methods was evaluated using synthetic images, simulated GalSim images for deblending tests, and real SDSS data. Specifically, the "Stripe 82" region of SDSS provided a high-signal ground truth for validation.
The scalability of the VI approach was demonstrated on the Cori supercomputer using the full 50 terabyte SDSS dataset. The system utilized over 665,000 CPU cores (9,568 compute nodes) to produce a 21 GB catalog of 112 million light sources in just 14.6 minutes.
Key results include:
- Accuracy: Both MCMC and VI achieved high classification accuracy on real SDSS data. MCMC achieved an AUC of 0.991, while VI achieved 0.985.
- Efficiency: VI is approximately 1000x faster than MCMC, taking roughly 9 seconds per light source compared to hours for MCMC.
- Scaling: The implementation achieved over 1 PFLOP/s, proving that high-level languages like Julia can effectively harness supercomputing resources for massive astronomical datasets.
Conclusion and Future Work
While the VI method provides the speed necessary for petabyte-scale surveys, it currently underestimates posterior uncertainty. Future work will focus on improving these uncertainty bounds and extending the model to jointly infer the point-spread function and sky background. Additionally, moving beyond idealized elliptical galaxy models will be necessary to capture the complexity of real celestial objects.
Summary updated