Pixellated Posterior Sampling of Point Spread Functions in Astronomical Images
Connor Stone, Ronan Legin, Alexandre Adam, Nikolay Malkin, Gabriel Missael Barco, Laurence Perreaul-Levasseur, Yashar Hezaveh
TL;DR
This paper tackles the problem of precise PSF characterization in astronomical images, where the effective PSF varies across time, position, and wavelength. It introduces a pixel-level Bayesian framework that combines a Gaussian likelihood with a score-based diffusion prior trained on HST ePSF templates to sample the posterior distribution $P(M|D)$ over high-resolution PSFs. The key contributions are a flexible prior for PSF morphology via diffusion models, an iterative posterior-sampling scheme yielding 32 samples per cutout, and a pragmatic interpolation method to propagate PSF uncertainty across the detector. The results show residuals consistent with noise and substantial reduction of flux biases, enabling uncertainty-aware measurements in weak lensing, astrometry, and high-contrast imaging.
Abstract
We introduce a novel framework for upsampled Point Spread Function (PSF) modeling using pixel-level Bayesian inference. Accurate PSF characterization is critical for precision measurements in many fields including: weak lensing, astrometry, and photometry. Our method defines the posterior distribution of the pixelized PSF model through the combination of an analytic Gaussian likelihood and a highly expressive generative diffusion model prior, trained on a library of HST ePSF templates. Compared to traditional methods (parametric Moffat, ePSF template-based, and regularized likelihood), we demonstrate that our PSF models achieve orders of magnitude higher likelihood and residuals consistent with noise, all while remaining visually realistic. Further, the method applies even for faint and heavily masked point sources, merely producing a broader posterior. By recovering a realistic, pixel-level posterior distribution, our technique enables the first meaningful propagation of detailed PSF morphological uncertainty in downstream analysis. An implementation of our posterior sampling procedure is available on GitHub.
