Posterior samples of source galaxies in strong gravitational lenses with score-based priors

Alexandre Adam, Adam Coogan, Nikolay Malkin, Ronan Legin, Laurence Perreault Levasseur, Yashar Hezaveh, Yoshua BengioarXiv 2022 · DOI

Abstract

Strong gravitational lensing provides a unique window into the distant universe, but reconstructing the original source galaxy from distorted observations is a challenging, underconstrained inverse problem. We present a method using score-based generative models—specifically diffusion models—to serve as a powerful prior for galaxy morphology. This approach allows for the generation of posterior samples that capture complex, non-parametric features while providing robust uncertainty quantification.

Introduction

Strong gravitational lensing occurs when the gravitational field of a massive foreground object bends light from a distant background galaxy, creating arcs or Einstein rings. To study these background sources, astronomers must "de-lens" the images. Traditionally, this has relied on simple mathematical priors, such as assuming smoothness or using parametric models like Sérsic profiles. However, real galaxies exhibit intricate structures—clumps, spiral arms, and dust lanes—that these simple priors fail to capture, often resulting in reconstructions that are either overly smoothed or plagued by artifacts.

Methodology

The proposed framework utilizes score-based modeling to encode a high-fidelity prior of galaxy morphologies.

Score-Based Priors

The model is trained to learn the "score function"—the gradient of the log-density of the data distribution ($\nabla_x \log p(x)$). By training on the PROBES dataset, which contains over 2,000 high-resolution images of real galaxies, the model learns the complex textures and structures inherent in astronomical objects.

Posterior Sampling

Reconstruction is framed as sampling from the posterior distribution $p(x|y)$, where $y$ is the observed lensed image. This is achieved by combining the learned prior score with a likelihood score derived from the physics of the lens. The authors employ a reverse-time Stochastic Differential Equation (SDE) solver to evolve initial noise into a sample consistent with both the observation and the galaxy prior. A key innovation is the use of a convolved likelihood approximation, which maintains mathematical consistency across varying noise levels during the diffusion process without requiring computationally expensive matrix inversions.

Results and Analysis

The method demonstrates high fidelity in reconstructing complex source galaxies, matching observed data down to the noise level.

Posterior sampling results showing ground truth, individual samples, mean reconstruction, dispersion (uncertainty), and residuals.

Uncertainty Quantification

A significant advantage of this sampling-based approach is the ability to quantify uncertainty. By generating hundreds of independent posterior samples, the researchers can produce dispersion maps ($\sigma$). These maps reveal that uncertainty is non-uniform; it is typically lower in regions of high magnification (near "caustics"), where the lens provides the most information, and higher where the data is more ambiguous.

The Prior-Likelihood Balance

To test the robustness and behavior of the prior, the authors conducted an "out-of-distribution" experiment using a synthetic source galaxy shaped like the number "7."

Out-of-distribution test using a '7'-shaped galaxy. As noise ($\sigma_N$) increases, the prior increasingly dominates the likelihood, smoothing the '7' into more galaxy-like features.

As shown in the figure, the reconstruction depends heavily on the signal-to-noise ratio. At low noise levels, the physical evidence (likelihood) dominates, and the "7" is clearly reconstructed. As noise increases, the score-based prior exerts more influence, gradually "hallucinating" galaxy-like features and smoothing the "7" into a shape more consistent with the training data.

Discussion and Future Work

While the method is computationally intensive—requiring thousands of SDE solver steps—it is highly parallelizable. The team demonstrated the generation of 320 independent samples in under an hour using 80 GPUs.

Current limitations include the assumption of a fixed, known lens mass distribution. Future iterations aim to jointly infer both the source galaxy and the lens parameters. Additionally, extending the model to multiband (multi-wavelength) data could further constrain the reconstructions and provide deeper astrophysical insights.

Summary updated

BibTeX
@misc{adam2022posterior,
  author = {Alexandre Adam and Adam Coogan and Nikolay Malkin and Ronan Legin and Laurence Perreault Levasseur and Yashar Hezaveh and Yoshua Bengio},
  title = {{Posterior samples of source galaxies in strong gravitational lenses with score-based priors}},
  year = {2022},
  eprint = {2211.03812},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.03812},
}
Figure