arXiv(opens in a new tab)astro-ph.IMSep 2026

Manuscript Offprint

arXiv:2609.07833

Neural Posterior Estimation for Tomographic Weak Lensing Mass Mapping

Tim White, Shreyas Chandrashekaran, Camille Avestruz, Jeffrey Regier, the LSST Dark Energy Science Collaboration

ABSTRACT

Weak gravitational lensing shear and convergence trace the distribution of baryonic and dark matter across space, making them a powerful probe of cosmic structure. Inferring shear and convergence from images is a challenging inverse problem. The prevailing approach to this task estimates shear from weighted averages of galaxy ellipticities, calibrates these estimates to account for systematic biases, and transforms them to reconstruct convergence, a multistage procedure that requires substantial computational resources and meticulous handling of statistical uncertainties. As an alternative, we propose a probabilistic approach to field-level weak lensing inference in which we train a deep neural network to directly map a multiband image to a variational distribution over the underlying tomographic shear and convergence fields. This neural posterior estimation (NPE) procedure implicitly marginalizes over nuisance variables in the cosmological forward model and does not require evaluating the likelihood function. It is also amortized, so it enables rapid posterior inference for astronomical surveys once the neural network is trained. When evaluated on synthetic images from the LSST-DESC DC2 Simulated Sky Survey, NPE produces well-calibrated variational distributions for shear and convergence that are consistent with the ground truth. We describe how maps sampled from these variational distributions could be used in a subsequent simulation-based inference procedure to approximate the posterior distribution over cosmological parameters.

Keywords: Observational cosmology (1146) — Weak gravitational lensing (1797) — Astronomy image processing (2306) — Convolutional neural networks (1938) — Astrostatistics techniques (1886) — Bayesian statistics (1900)

1. INTRODUCTION

Light from distant galaxies is deflected by matter along the telescope's line of sight, which modifies their observed shapes and brightnesses in astronomical images. This phenomenon is known as weak gravitational lensing. Weak lensing is characterized by shear, which describes anisotropic distortion, and convergence, which describes isotropic magnification. These quantities trace the projected distribution of matter across space, making weak lensing a powerful probe of the Universe's large-scale structure (M. Bartelmann & P. Schneider 2001; M. Kilbinger 2015; S. Dodelson 2017; J. Prat & D. Bacon 2026).

The next generation of astronomical surveys, including the Rubin Observatory's Legacy Survey of Space and Time (LSST) (Ž. Ivezić et al. 2019), the Euclid Space

Telescope (R. Laureijs et al. 2011), and the Nancy Grace Roman Space Telescope (O. Dore et al. 2019), will image billions of galaxies across thousands of square degrees of the night sky. These Stage IV surveys offer an opportunity to constrain cosmological parameters with unprecedented precision based on measurements of weak gravitational lensing (R. Mandelbaum et al. 2018). To take full advantage of the opportunity, shear and convergence estimation algorithms must efficiently process petabytes of image data, limit information loss, and quantify the uncertainty of their estimates.

Current approaches to weak lensing inference follow a multistage pipeline. First, images are processed to perform object detection, deblending, and measurement. Next, shear is estimated from galaxy ellipticities, typically using self-calibrating methods that estimate the

WHITE ET AL.

shear response through artificial shearing (Metadetection; E. S. Sheldon et al. (2023)) or analytical modeling (AnaCal; X. Li et al. (2024)). Convergence is then reconstructed from shear estimates, either through direct inversion methods (N. Kaiser & G. Squires 1993) or probabilistic reconstruction techniques (M. D. Schneider et al. 2017; N. Jeffrey et al. 2021; B. Remy et al. 2023; J. J. Whitney et al. 2025; Leterme, H. et al. 2026). Finally, cosmological parameters are inferred from summary statistics of the shear and convergence fields, such as two-point correlation functions (T. M. Abbott et al. 2022; J. Prat et al. 2023) or higher-order statistics (M. Gatti et al. 2022; N. Jeffrey et al. 2024; T. L. Makinen et al. 2025).

Each stage of this pipeline requires careful propagation of statistical uncertainties, and information about the underlying shear and convergence fields is typically lost when images are compressed, first to galaxy catalogs and then to summary statistics. Recent work has shown that field-level inference, which uses the full convergence maps rather than summary statistics, can yield tighter constraints on cosmological parameters (D. Sharma et al. 2024; Lanzieri, Denise et al. 2025; S. S. Boruah & E. Rozo 2024; P. Fiedorowicz et al. 2022; A. J. Zhou et al. 2024).

Several works have explored Bayesian inference of shear and convergence from images (L. Miller et al. 2007; G. M. Bernstein & R. Armstrong 2014; M. D. Schneider et al. 2015; G. M. Bernstein et al. 2016; A. Heavens et al. 2018; G. Congedo et al. 2024; G. Sallaberry et al. 2025). Many of these works posit a forward model of lensed galaxy fields and use Markov chain Monte Carlo to generate posterior samples under this model. This approach requires repeated evaluation of a likelihood function over all latent variables in the forward model, including the intrinsic properties of the imaged galaxies and the parameters of spatially varying backgrounds and point spread functions. While these methods provide principled uncertainty quantification, the computational cost of repeated likelihood evaluation makes their application to modern surveys challenging.

As an alternative, we propose to infer shear and convergence maps from multiband coadded images using neural posterior estimation (NPE), a type of simulation-based inference. This procedure involves training a neural network to map an image to a variational distribution over lensing maps for several redshift bins. NPE is amortized — once the neural network has been trained, it can estimate shear and convergence in a single forward pass.

Our approach differs from existing methods in several respects. The network maps images directly to the

underlying lensing fields without first compressing the image pixels into galaxy catalogs. Additionally, NPE is likelihood-free, unlike MCMC-based methods. Finally, NPE targets the posterior distribution over tomographic lensing maps, unlike neural-network-based point estimators of shear (M. Tewes et al. 2019; D. Ribli et al. 2019; Z. Zhang et al. 2024).

In this work, we investigate the feasibility of NPE as a field-level weak lensing inference method by applying it to the LSST Dark Energy Science Collaboration's DC2 Simulated Sky Survey (B. Abolfathi et al. 2021a,b). The DC2 lensing maps, object catalogs, and coadded images can be viewed as samples from an implicit probabilistic model (Section 2). We formulate the NPE objective and describe our choice of variational family and neural network architecture (Section 3). We train the network on images covering a contiguous DC2 subregion (Section 4) and evaluate its accuracy and calibration on a different subregion (Section 5).

In NPE, the network is trained exclusively on simulated images; we discuss strategies for mitigating potential simulator misspecification, which would enable the trained network to be applied to real astronomical surveys (Section 6). Additionally, we outline how conditional flow matching could be used to fit more flexible posterior approximations. Finally, we describe how mass maps sampled from our fitted variational distributions could be passed to a subsequent neural simulation-based inference procedure that approximates the posterior distribution over Λ\LambdaCDM model parameters. When connected, the two procedures would constitute an end-to-end probabilistic pipeline from images to cosmological parameters.

References (68)