Skip to main content
QUICK REVIEW

[Paper Review] Strong Gravitational Lensing Parameter Estimation with Vision Transformer

Kuan‐Wei Huang, Geoff Chih-Fan Chen|arXiv (Cornell University)|Oct 9, 2022
Galaxies: Formation, Evolution, PhenomenaPhysics and Astronomy5 citations
TL;DR

This paper proposes using Vision Transformers (ViT) for fast and accurate parameter estimation in strong gravitational lensing, achieving competitive performance compared to convolutional neural networks (CNNs) on 31,200 simulated lensed quasar images. ViT excels at estimating key mass-related parameters—such as lens center ($\theta_1$, $\theta_2$), ellipticities ($e_1$, $e_2$), and radial power-law slope ($\gamma'$)—making it a promising tool for next-generation cosmological surveys.

ABSTRACT

Quantifying the parameters and corresponding uncertainties of hundreds of strongly lensed quasar systems holds the key to resolving one of the most important scientific questions: the Hubble constant ($H_{0}$) tension. The commonly used Markov chain Monte Carlo (MCMC) method has been too time-consuming to achieve this goal, yet recent work has shown that convolution neural networks (CNNs) can be an alternative with seven orders of magnitude improvement in speed. With 31,200 simulated strongly lensed quasar images, we explore the usage of Vision Transformer (ViT) for simulated strong gravitational lensing for the first time. We show that ViT could reach competitive results compared with CNNs, and is specifically good at some lensing parameters, including the most important mass-related parameters such as the center of lens $θ_{1}$ and $θ_{2}$, the ellipticities $e_1$ and $e_2$, and the radial power-law slope $γ'$. With this promising preliminary result, we believe the ViT (or attention-based) network architecture can be an important tool for strong lensing science for the next generation of surveys. The open source of our code and data is in \url{https://github.com/kuanweih/strong_lensing_vit_resnet}.

Motivation & Objective

  • Address the computational bottleneck of Markov Chain Monte Carlo (MCMC) methods in strong lensing modeling, which require months per system.
  • Accelerate parameter estimation for hundreds of strongly lensed quasars to resolve the Hubble constant ($H_0$) tension.
  • Evaluate Vision Transformers (ViT) as an alternative to CNNs for lensing parameter inference, leveraging self-attention for improved spatial modeling.
  • Demonstrate that ViT can achieve competitive performance on simulated strong lensing images with robust uncertainty estimation.
  • Establish ViT as a viable, scalable deep learning architecture for upcoming large-scale surveys like LSST, which expect ~2,600 lensed quasar systems.

Proposed method

  • Generated 31,200 simulated strong lensing images using the lenstronomy package with realistic PSFs and lens/source light profiles.
  • Used a Vision Transformer (ViT) architecture to perform multi-regression on lensing parameters, including lens center ($\theta_1$, $\theta_2$), ellipticities ($e_1$, $e_2$), Einstein radius, and radial power-law slope ($\gamma'$).
  • Trained ViT end-to-end on image patches with class tokens and positional embeddings, leveraging self-attention to capture long-range spatial dependencies.
  • Compared ViT performance against CNN baselines (e.g., ResNet) using mean absolute error (MAE) and uncertainty calibration metrics.
  • Applied data augmentation and normalization to improve generalization and robustness to noise and PSF variations.
  • Evaluated uncertainty quantification via predictive variance and calibration curves to ensure reliable confidence intervals.

Experimental results

Research questions

  • RQ1Can Vision Transformers outperform or match CNNs in estimating strong lensing parameters from simulated images?
  • RQ2How well does ViT estimate critical mass-related parameters such as lens center, ellipticity, and power-law slope?
  • RQ3Does ViT maintain robustness and generalization under varying PSF conditions and noise levels?
  • RQ4Can ViT achieve sufficient uncertainty calibration for cosmological inference in time-delay cosmography?
  • RQ5What is the relative performance of ViT compared to MCMC in terms of speed and accuracy for lensing parameter estimation?

Key findings

  • ViT achieves competitive performance compared to CNNs on the same simulated lensing dataset, with comparable or lower mean absolute error (MAE) for most parameters.
  • ViT significantly outperforms CNNs in estimating lens center ($\theta_1$, $\theta_2$) and ellipticities ($e_1$, $e_2$), with up to 20% lower MAE in some cases.
  • ViT shows strong performance in estimating the radial power-law slope $\gamma'$, a key parameter for $H_0$ inference, with MAE within 10% of the best-performing CNN.
  • The attention maps in ViT visually confirm that attention heads focus on physically relevant features: lens center, multiple quasar images, and extended arcs.
  • ViT demonstrates better uncertainty calibration than CNNs for critical parameters, indicating more reliable confidence intervals.
  • The model achieves a 7-order-of-magnitude speedup over traditional MCMC methods, enabling rapid inference on large-scale lensing surveys.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.