# Strong Gravitational Lensing Parameter Estimation with Vision Transformer

arXiv: https://arxiv.org/abs/2210.04143 · HTML: https://mlsanity.com/paper/2210.04143/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 14 of its 61 references that are in the map.
- First posted on arXiv 9 Oct 2022.

## Builds on (most cited first, 14 of 14)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Deep Residual Learning for Image Recognition](https://mlsanity.com/paper/1512.03385/) (2015)
- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale](https://mlsanity.com/paper/2010.11929/) (2020)
- [PyTorch: An Imperative Style, High-Performance Deep Learning Library](https://mlsanity.com/paper/1912.01703/) (2019)
- [Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning](https://mlsanity.com/paper/1506.02142/) (2015)
- [What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?](https://mlsanity.com/paper/1703.04977/) (2017)
- [Do Vision Transformers See Like Convolutional Neural Networks?](https://mlsanity.com/paper/2108.08810/) (2021)
- [Vision Transformers are Robust Learners](https://mlsanity.com/paper/2105.07581/) (2021)
- [Mining for Dark Matter Substructure: Inferring subhalo population properties from strong lenses with machine learning](https://mlsanity.com/paper/1909.02005/) (2019)
- [Hierarchical Inference With Bayesian Neural Networks: An Application to Strong Gravitational Lensing](https://mlsanity.com/paper/2010.13787/) (2020)
- [Extracting the Subhalo Mass Function from Strong Lens Images with Image Segmentation](https://mlsanity.com/paper/2009.06639/) (2020)
- [Large-Scale Gravitational Lens Modeling with Bayesian Neural Networks for Accurate and Precise Inference of the Hubble Constant](https://mlsanity.com/paper/2012.00042/) (2020)
- [Finding Strong Gravitational Lenses Through Self-Attention](https://mlsanity.com/paper/2110.09202/) (2021)

## Abstract (arXiv)

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 (H0) 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 e1 and e2, 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 urlhttps://github.com/kuanweih/stronglensingvitresnet.
