Abstract
Strong-lensing images provide a wealth of information both about the magnified source and about the dark matter distribution in the lens. Precision analyses of these images can be used to constrain the nature of dark matter. However, this requires high-fidelity image reconstructions and careful treatment of the uncertainties of both lens mass distribution and source light, which are typically difficult to quantify. In anticipation of future high-resolution datasets, in this work we leverage a range of recent developments in machine learning to develop a new Bayesian strong-lensing image analysis pipeline. Its highlights are: (A) a fast, GPU-enabled, end-to-end differentiable strong-lensing image simulator; (B) a new, statistically principled source model based on a computationally highly efficient approximation to Gaussian processes that also takes into account pixellation; and (C) a scalable variational inference framework that enables simultaneously deriving posteriors for tens of thousands of lens and source parameters and optimising hyperparameters via stochastic gradient descent.
Introduction
Strong gravitational lensing occurs when the gravitational field of a massive foreground object, such as a galaxy, distorts the light from a more distant background source. These distortions result in arcs or "Einstein rings" that serve as sensitive probes of the dark matter (DM) distribution within the lens. Analyzing these systems requires simultaneously solving for the lens's mass distribution and the source's intrinsic light profile.
As we move into an era of high-resolution observations from facilities like the James Webb Space Telescope (JWST) and the upcoming Extremely Large Telescope (ELT), existing analysis methods face significant challenges. Parametric source models are often too simple to capture galactic complexity, while non-parametric pixellated models can be computationally prohibitive and difficult to integrate into a rigorous Bayesian framework.
A Scalable Bayesian Pipeline
To address these challenges, we present a new analysis pipeline built on three technical pillars: differentiable physics, approximate Gaussian Processes (GPs), and variational inference.
Differentiable Physics and Variational Inference
The entire lensing process is implemented in a GPU-accelerated, end-to-end differentiable framework. This allows for the use of stochastic gradient descent (SGD) to optimize tens of thousands of parameters simultaneously. Rather than relying on slow Markov Chain Monte Carlo (MCMC) sampling, we employ Variational Inference (VI). VI frames the Bayesian inference problem as an optimization task, seeking a proposal distribution that minimizes the divergence from the true posterior.
Source Modeling with Gaussian Processes
Gaussian Processes are ideal for non-parametric modeling due to their ability to handle spatial correlations and provide principled uncertainty estimates. To overcome the $O(N^3)$ scaling of standard GPs, we utilize a computationally efficient approximation. A key innovation is the treatment of pixellation: as image pixels are projected back to the source plane, they become distorted. Our model accounts for this through a "windowing" technique that ensures the source reconstruction remains consistent with the underlying continuous GP.
Evaluation and Results
The pipeline was tested using high-resolution mock observations of complex galaxies, including Hoag’s Object and various interacting spiral galaxies.
- Computational Efficiency: The pipeline achieves initial fits in approximately 10 minutes on a single GPU, with full convergence in a few hours—a significant speedup over traditional CPU-based methods.
- Reconstruction Fidelity: Residuals are consistently reduced to the level of observational noise. The model successfully "un-lenses" complex morphologies, recovering fine details that were distorted by the lens.
- Parameter Accuracy: Lens parameters, such as the Einstein radius, are recovered with high precision, demonstrating the robustness of the joint lens-source inference.
Conclusion and Future Outlook
This framework provides a fast, statistically rigorous method for analyzing strong-lensing images. While currently optimized for smooth lens models, the scalability and speed of this pipeline make it an ideal tool for generating large-scale training data for simulation-based inference. Our future work will focus on applying this pipeline to detect dark matter substructure, such as subhaloes, which provide critical tests for different dark matter models.
Summary updated