Interpreting deep learning models for weak lensing

José Manuel Zorrilla Matilla, M. Sharma, Daniel Hsu, Zoltán HaimanPhysical 2020 · DOI

Abstract

Deep neural networks (DNNs) are powerful algorithms that have been proven capable of extracting non-Gaussian information from weak lensing (WL) datasets. Understanding which features in the data determine the output of these nested, nonlinear algorithms is an important but challenging task. We analyze a DNN that has been found in previous work to accurately recover cosmological parameters in simulated maps of the WL convergence ($\kappa$). We derive constraints on the cosmological parameter pair $(\Omega_m, \sigma_8)$ from a combination of three commonly used WL statistics (power spectrum, lensing peaks, and Minkowski functionals), using ray-traced simulated $\kappa$ maps. We show that the network can improve the inferred parameter constraints relative to this combination by 20% even in the presence of realistic levels of shape noise. We apply a series of well-established saliency methods to interpret the DNN and find that the most relevant pixels are those with extreme $\kappa$ values. For noiseless maps, regions with negative $\kappa$ account for 69%--89% of the attribution of the DNN output. In the presence of shape noise, the attribution concentrates in high-convergence regions, with 36%--68% of the attribution in regions with $\kappa > 3\sigma_\kappa$.

Introduction

Weak Gravitational Lensing (WL)—the subtle distortion of distant galaxy images by intervening dark matter—is a cornerstone of modern cosmology for measuring the universe's matter density ($\Omega_m$) and the clumpiness of that matter ($\sigma_8$). Traditionally, these measurements rely on summary statistics like the power spectrum. However, the non-linear collapse of matter under gravity creates non-Gaussian structures, such as clusters and voids, which contain significant information that standard two-point statistics fail to capture. While Deep Learning models, specifically Convolutional Neural Networks (CNNs), have demonstrated superior performance in extracting this information, they often function as "black boxes." This study aims to interpret these models to identify the physical features driving their predictions.

Methodology

The study evaluates a CNN architecture comprising 18 convolutional layers and 6 average pooling layers, trained on simulated convergence ($\kappa$) maps. These maps were generated from N-body simulations across 101 different cosmologies, including both noiseless (idealized) and noisy variants that simulate intrinsic galaxy shape noise encountered by real telescopes.

To interpret the model's decision-making process, the authors employed several saliency methods, including Gradient-based techniques, Guided Backpropagation, Deconvolutional Networks (Deconvnet), and Layer-wise Relevance Propagation (LRP). A critical "model parameter randomization test" was used as a sanity check: saliency maps from the trained model were compared against those from a model with randomized weights. Methods that produced structured maps for randomized models were deemed unreliable "edge detectors" rather than true reflections of learned logic.

Results and Interpretation

The inclusion of DNN outputs significantly enhances cosmological constraints. When combined with a "super-statistic" consisting of the Power Spectrum (PS), Peak Counts (PC), and Minkowski Functionals ($V_0, V_1, V_2$), the DNN reduces the area of the credible contours for $(\Omega_m, \sigma_8)$ by approximately 20% in noisy datasets.

Figure 2: Cosmological constraints on $\Omega_m$ and $\sigma_8$ for noisy maps, comparing various statistics with and without DNN integration.

The interpretation of the DNN's logic revealed a fascinating shift in focus based on data quality. In noiseless maps, the network primarily utilizes information from under-dense "void" regions (negative $\kappa$), which account for 69–89% of the attribution. However, in the presence of realistic shape noise, the signal in voids is obscured, leading the DNN to pivot its attention toward over-dense "peaks" or clusters ($\kappa > 3\sigma_\kappa$), which then contribute 36–68% of the attribution.

The randomization tests were pivotal in selecting valid interpretation methods. As shown in the saliency analysis, only Gradient and Input $\times$ Gradient methods passed the sanity check, showing a clear loss of structure when model weights were randomized, whereas methods like Guided Backpropagation failed by remaining structured.

Figure 4: Comparison of saliency methods across trained and randomized models. Only methods that show a significant change upon randomization (like Gradient) are considered reliable.

Conclusion

Deep Learning models provide a measurable ~20% precision boost in cosmological parameter estimation by capturing non-Gaussian information. This study demonstrates that these models can be interpreted to reveal physical insights—specifically the importance of voids in high-fidelity data and peaks in noisy data. While current limitations include the use of single-redshift maps and simplified noise models, these findings pave the way for designing new, human-interpretable summary statistics for future large-scale surveys.

Summary updated

BibTeX
@inproceedings{matilla2020interpreting,
  author = {José Manuel Zorrilla Matilla and M. Sharma and Daniel Hsu and Zoltán Haiman},
  title = {{Interpreting deep learning models for weak lensing}},
  booktitle = {Physical},
  year = {2020},
  doi = {10.1103/physrevd.102.123506},
}
Figure