CoChat

Strong lens modelling: comparing and combining Bayesian neural networks and parametric profile fitting

Open access
Pearson, James, Maresca, Jacob, Li, Nan, Dye, Simon · 2021 · Monthly Notices of the Royal Astronomical Society

The DOI matches its Crossref record; 127 of the 127 references it cites were found in a registry or an index.

Abstract

The vast quantity of strong galaxy–galaxy gravitational lenses expected by future large-scale surveys necessitates the development of automated methods to efficiently model their mass profiles. For this purpose, we train an approximate Bayesian convolutional neural network (CNN) to predict mass profile parameters and associated uncertainties, and compare its accuracy to that of conventional parametric modelling for a range of increasingly complex lensing systems. These include standard smooth parametric density profiles, hydrodynamical EAGLE galaxies, and the inclusion of foreground mass structures, combined with parametric sources and sources extracted from the Hubble Ultra Deep Field. In addition, we also present a method for combining the CNN with traditional parametric density profile fitting in an automated fashion, where the CNN provides initial priors on the latter’s parameters. On average, the CNN achieved errors 19 ± 22 per cent lower than the traditional method’s blind modelling. The combination method instead achieved 27 ± 11 per cent lower errors over the blind modelling, reduced further to 37 ± 11 per cent when the priors also incorporated the CNN-predicted uncertainties, with errors also 17 ± 21 per cent lower than the CNN by itself. While the CNN is undoubtedly the fastest modelling method, the combination of the two increases the speed of conventional fitting alone by factors of 1.73 and 1.19 with and without CNN-predicted uncertainties, respectively. This, combined with greatly improved accuracy, highlights the benefits one can obtain through combining neural networks with conventional techniques in order to achieve an efficient automated modelling approach.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1093/mnras/stab1547

Cites

127 of 127 references verified0 citation errors · 0 not checkable

Statistics

Figures

Image 1
CC-BY · From the PDF
Figure 1 Examples of the simulated images used to train the neural network. Top and middle rows contain S´ ersic and Gaussian profile sources, respectively. The bottom row contains complex sources made up of multiple S´ ersic profiles. The data set was simulated to have the expected imaging characteristics of the Euclid telescope's VIS filter.
Figure 1 Examples of the simulated images used to train the neural network. Top and middle rows contain S´ ersic and Gaussian profile sources, respectively. The bottom row contains complex sources made up of multiple S´ ersic profiles. The data set was simulated to have the expected imaging characteristics of the Euclid telescope's VIS filter.CC-BY · From the PDF
Figure 2 Examples of the simulated images produced from PICS software, used to test the different mass modelling methods. Top row: examples containing SIE lenses with parametric source profiles, with four S´ ersic sources followed by four Gaussian sources. Second row: examples containing SIE lenses with HUDF sources, with the last four containing LOS structure. Third row: examples containing power law lenses with HUDF sources, with the last four containing LOS structure. Bottom row: examples containing EAGLE galaxy lenses with HUDF sources, with the last four containing LOS structure. The data sets were simulated to have the expected imaging characteristics of the Euclid telescope's VIS filter.
Figure 2 Examples of the simulated images produced from PICS software, used to test the different mass modelling methods. Top row: examples containing SIE lenses with parametric source profiles, with four S´ ersic sources followed by four Gaussian sources. Second row: examples containing SIE lenses with HUDF sources, with the last four containing LOS structure. Third row: examples containing power law lenses with HUDF sources, with the last four containing LOS structure. Bottom row: examples containing EAGLE galaxy lenses with HUDF sources, with the last four containing LOS structure. The data sets were simulated to have the expected imaging characteristics of the Euclid telescope's VIS filter.CC-BY · From the PDF
Figure 3 Structure of the CNN used in this work, showing the input image and the output of each block of layers. In total there are six convolutional layers, each with dropout and batch normalization, four max-pooling layers and two fully connected layers. A 'flatten' layer is also included to connect the multidimensional data to the 1D fully connected layer, and ReLU activation is used throughout. Numbers given above or beside each output are the output shapes. The types of layers in each block are given underneath, along with the kernel sizes (in pixels) used. Further details can be found at the end of Section 3.2.1.
Figure 3 Structure of the CNN used in this work, showing the input image and the output of each block of layers. In total there are six convolutional layers, each with dropout and batch normalization, four max-pooling layers and two fully connected layers. A 'flatten' layer is also included to connect the multidimensional data to the 1D fully connected layer, and ReLU activation is used throughout. Numbers given above or beside each output are the output shapes. The types of layers in each block are given underneath, along with the kernel sizes (in pixels) used. Further details can be found at the end of Section 3.2.1.CC-BY · From the PDF
Figure 4 Coverage probabilities when fine-tuning dropout during CNN training to ensure appropriately sized predicted uncertainties. Top and bottom rows show results for the CNN trained to predict SIE parameters ( θ E , φ , q ) and power law parameters ( θ E , φ , q , n ), respectively, indicated by the smaller bars. Average coverage probabilities are given as the wider bars, and for the ideal case would reach each dashed line representing 68.3, 95.5, and 99.7 per cent coverage. Left: example results from using incorrect dropout rates. Right: results from using fine-tuned dropout rates.
Figure 4 Coverage probabilities when fine-tuning dropout during CNN training to ensure appropriately sized predicted uncertainties. Top and bottom rows show results for the CNN trained to predict SIE parameters ( θ E , φ , q ) and power law parameters ( θ E , φ , q , n ), respectively, indicated by the smaller bars. Average coverage probabilities are given as the wider bars, and for the ideal case would reach each dashed line representing 68.3, 95.5, and 99.7 per cent coverage. Left: example results from using incorrect dropout rates. Right: results from using fine-tuned dropout rates.CC-BY · From the PDF
Figure 5 Distribution of the differences between predicted SIE mass model parameters and their true values for a test data set of 1000 images containing parametric sources: 500 with S´ ersic sources and 500 with Gaussian sources. From top to bottom: Einstein radius, orientation, and axis ratio of the lens mass profile. Einstein radius and axis ratio results presented as fractional differences. The distributions shown are those for the CNN (blue), PYAUTOLENS modelling blindly (orange), PYAUTOLENS using CNN predictions as priors (green), and PYAUTOLENS using CNN predictions and 1 σ uncertainties as priors (red).
Figure 5 Distribution of the differences between predicted SIE mass model parameters and their true values for a test data set of 1000 images containing parametric sources: 500 with S´ ersic sources and 500 with Gaussian sources. From top to bottom: Einstein radius, orientation, and axis ratio of the lens mass profile. Einstein radius and axis ratio results presented as fractional differences. The distributions shown are those for the CNN (blue), PYAUTOLENS modelling blindly (orange), PYAUTOLENS using CNN predictions as priors (green), and PYAUTOLENS using CNN predictions and 1 σ uncertainties as priors (red).CC-BY · From the PDF
Figure 6 Comparison of predicted SIE lens parameters with the true values for test data sets of 1000 images containing SIE lenses and parametric (S´ ersic and Gaussian) sources. From top to bottom: Einstein radius, orientation, and axis ratio of the lens mass profile.
Figure 6 Comparison of predicted SIE lens parameters with the true values for test data sets of 1000 images containing SIE lenses and parametric (S´ ersic and Gaussian) sources. From top to bottom: Einstein radius, orientation, and axis ratio of the lens mass profile.CC-BY · From the PDF
Figure 7 Distribution of the differences between predicted SIE mass model parameters and their true values for test data sets of 1000 images containing HUDF sources, without LOS structure. The distributions follow the same format as Fig. 5.
Figure 7 Distribution of the differences between predicted SIE mass model parameters and their true values for test data sets of 1000 images containing HUDF sources, without LOS structure. The distributions follow the same format as Fig. 5.CC-BY · From the PDF
Figure 8 Distribution of the differences between predicted SIE mass model parameters and their true values for test data sets of 1000 images containing HUDFsources, with LOS structure. The distributions follow the same format as Fig. 5.
Figure 8 Distribution of the differences between predicted SIE mass model parameters and their true values for test data sets of 1000 images containing HUDFsources, with LOS structure. The distributions follow the same format as Fig. 5.CC-BY · From the PDF
Figure 9 Comparison of predicted SIE lens parameters with the true values for test data sets of 1000 images containing SIE lenses and HUDF sources, without LOS structure. From top to bottom: Einstein radius, orientation, and axis ratio of the lens mass profile.
Figure 9 Comparison of predicted SIE lens parameters with the true values for test data sets of 1000 images containing SIE lenses and HUDF sources, without LOS structure. From top to bottom: Einstein radius, orientation, and axis ratio of the lens mass profile.CC-BY · From the PDF
Image 11
CC-BY · From the PDF
Figure 11 Distribution of the differences between predicted power law mass model parameters and their true values for test data sets of 1000 images containing HUDF sources, without LOS structure. The distributions follow the same format as Fig. 5.
Figure 11 Distribution of the differences between predicted power law mass model parameters and their true values for test data sets of 1000 images containing HUDF sources, without LOS structure. The distributions follow the same format as Fig. 5.CC-BY · From the PDF
Figure 12 Distribution of the differences between predicted power law mass model parameters and their true values for test data sets of 1000 images containing HUDF sources, with LOS structure. The distributions follow the same format as Fig. 5.
Figure 12 Distribution of the differences between predicted power law mass model parameters and their true values for test data sets of 1000 images containing HUDF sources, with LOS structure. The distributions follow the same format as Fig. 5.CC-BY · From the PDF
Figure 13 Comparison of predicted power law lens parameters with the true values for test data sets of 1000 images containing power law lenses and HUDF sources, without LOS structure. From top to bottom: Einstein radius, orientation, and axis ratio of the lens mass profile.
Figure 13 Comparison of predicted power law lens parameters with the true values for test data sets of 1000 images containing power law lenses and HUDF sources, without LOS structure. From top to bottom: Einstein radius, orientation, and axis ratio of the lens mass profile.CC-BY · From the PDF
Image 15
CC-BY · From the PDF
Figure 15 Distribution of the differences between predicted SIE mass model parameters and their true values for test data sets of 1000 images containing EAGLE galaxy lenses with HUDF sources, without LOS structure. The distributions follow the same format as Fig. 5.
Figure 15 Distribution of the differences between predicted SIE mass model parameters and their true values for test data sets of 1000 images containing EAGLE galaxy lenses with HUDF sources, without LOS structure. The distributions follow the same format as Fig. 5.CC-BY · From the PDF
Figure 16 Distribution of the differences between predicted SIE mass model parameters and their true values for test data sets of 1000 images containing EAGLE galaxy lenses with HUDF sources, with LOS structure. The distributions follow the same format as Fig. 5.
Figure 16 Distribution of the differences between predicted SIE mass model parameters and their true values for test data sets of 1000 images containing EAGLE galaxy lenses with HUDF sources, with LOS structure. The distributions follow the same format as Fig. 5.CC-BY · From the PDF
Image 18
CC-BY · From the PDF
Image 19
CC-BY · From the PDF
Figure 19 Distributions of the time taken for PYAUTOLENS to model each of the lenses making up a given test set when modelling blindly, with the CNN predictions as priors, and with the CNN predictions and uncertainties as priors. As the trained CNN can model lenses by itself almost instantly, its modelling times are not included here. From top to bottom: test sets consist of SIE lenses with HUDF sources, SIE lenses with HUDF sources and LOS structure, and EAGLE galaxy lenses with HUDF sources and LOS structure.
Figure 19 Distributions of the time taken for PYAUTOLENS to model each of the lenses making up a given test set when modelling blindly, with the CNN predictions as priors, and with the CNN predictions and uncertainties as priors. As the trained CNN can model lenses by itself almost instantly, its modelling times are not included here. From top to bottom: test sets consist of SIE lenses with HUDF sources, SIE lenses with HUDF sources and LOS structure, and EAGLE galaxy lenses with HUDF sources and LOS structure.CC-BY · From the PDF

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 15

  1. Bayer D., Chatterjee S., Koopmans L., Vegetti S., McKean J., Treu T., Fassnacht C., 2018, preprint (arXiv:1803.05952) · arXiv
  2. Bayer J., Huber S., Vogl C., Suyu S., Taubenberger S., Sluse D., Chan J., Kerzendorf W., 2021, preprint (arXiv:2101.06229) · arXiv
  3. Birrer S. et al., 2020, A&A, 643, A165
  4. Chianese M., 2019, in 36th International Cosmic Ray Conference (ICRC2019). p. 515
  5. Colac ¸o L., Holanda R., Silva R., 2020, preprint (arXiv:2004.08484) · arXiv
  6. Dozat T., 2015, Technical report, Incorporating Nesterov Momentum into Adam. In Proc. ICLR Workshop
  7. Gal Y., Ghahramani Z., 2016a, in 4th International Conference on Learning Representations (ICLR) workshop track
  8. Kormann R., Schneider P., Bartelmann M., 1994, A& A, 284, 285
  9. Li N., Becker C., Dye S., 2021, MNRAS, 504, 2224
  10. Luo W. et al., 2020, preprint (arXiv:2003.09818) · arXiv
  11. Maresca J., Dye S., Li N., 2021, MNRAS, 503, 2229
  12. Schuldt S., Suyu S., Cañameras R., Taubenberger S., Meinhard T., Leal-Taixé L., Hsieh B., 2020, preprint (arXiv:2011.12312) · arXiv
  13. Schuldt S., Suyu S., Meinhardt T., Leal-Taixé L., Cañameras R., Taubenberger S., Halkola A., 2021, A&A, 646, A126
  14. Srivastava N., Hinton G., Krizhevsky A., Sutskever I., Salakhutdinov R., 2014, J. Mach, Learn. Res., 15, 1929
  15. Tohill C., Ferreira L., Conselice C., Bamford S., Ferrari F., 2020, preprint (arXiv:2012.09081) · arXiv

Cited by

See all 41

Metadata

Authors
Pearson, J., Maresca, J., Li, N., & Dye, S.
Affiliations
University of Nottingham (GB)
Corresponding author
Pearson, James
Venue
Monthly Notices of the Royal Astronomical Society
Published
2021-05-28
Volume
505
Issue
3
Pages
4362-4382
ISSN
  • 0035-8711 (ISSN-L)
  • 1365-2966
OpenAlex
W3134790372
Cited by
31
References
127
Citations by year
2026: 1 · 2025: 7 · 2024: 6 · 2023: 6 · 2022: 9 · 2021: 2
FWCI
3.09
Type
journal article
Language
en
Open access
Locations
  • Monthly Notices of the Royal Astronomical Society (publishedVersion, cc-by)
  • Repository@Nottingham (University of Nottingham) (publishedVersion, other-oa)
  • arXiv (Cornell University) (submittedVersion)
  • Repository@Nottingham (University of Nottingham) (submittedVersion, cc-by)
  • arXiv (Cornell University)
Funders
Science and Technology Facilities Council
Topics
  • Physical Sciences › Physics and Astronomy › Astronomy and Astrophysics › Galaxies: Formation, Evolution, Phenomena
  • Physical Sciences › Physics and Astronomy › Astronomy and Astrophysics › Astrophysical Phenomena and Observations
  • Physical Sciences › Physics and Astronomy › Astronomy and Astrophysics › Cosmology and Gravitation Theories
Keywords
strong gravitational lensing, Bayesian convolutional neural network, Hubble Ultra Deep Field

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.