Revealing the 3D Cosmic Web through Gravitationally Constrained Neural Fields

Brandon Zhao, Aviad Levis, Liam Connor, Pratul P. Srinivasan, Katherine L. Bouman

Abstract

Weak gravitational lensing is the slight distortion of galaxy shapes caused primarily by the gravitational effects of dark matter in the universe. In our work, we seek to invert the weak lensing signal from 2D telescope images to reconstruct a 3D map of the universe's dark matter field. While inversion typically yields a 2D projection of the dark matter field, accurate 3D maps of the dark matter distribution are essential for localizing structures of interest and testing theories of our universe. However, 3D inversion poses significant challenges. First, unlike standard 3D reconstruction that relies on multiple viewpoints, in this case, images are only observed from a single viewpoint. This challenge can be partially addressed by observing how galaxy emitters throughout the volume are lensed. However, this leads to the second challenge: the shapes and exact locations of unlensed galaxies are unknown, and can only be estimated with a very large degree of uncertainty. This introduces an overwhelming amount of noise which nearly drowns out the lensing signal completely. Previous approaches tackle this by imposing strong assumptions about the structures in the volume. We instead propose a methodology using a gravitationally-constrained neural field to flexibly model the continuous matter distribution. We take an analysis-by-synthesis approach, optimizing the weights of the neural network through a fully differentiable physical forward model to reproduce the lensing signal present in image measurements. We showcase our method on simulations, including realistic simulated measurements of dark matter distributions that mimic data from upcoming telescope surveys. Our results show that our method can not only outperform previous methods, but importantly is also able to recover potentially surprising dark matter structures.

Introduction: The Challenge of 3D Dark Matter Mapping

Most of the matter in our universe is dark matter—it doesn't emit light, so we can't see it directly. However, we can detect it through weak gravitational lensing: as light from distant galaxies travels toward Earth, the gravity of intervening dark matter slightly warps the galaxies' shapes.

Comparison of exaggerated and realistic gravitational lensing effects on galaxy shapes.

The challenge is that we usually only see this effect in 2D "shear maps." Reconstructing a 3D map of this "Cosmic Web" is an incredibly difficult inverse problem for two reasons:

  1. Single Viewpoint: We are looking at the volume from only one spot (Earth), making it a form of "single-view tomography."
  2. Overwhelming Noise: We don't know the original, "unlensed" shape of distant galaxies. This "shape noise" is often 10 to 100 times stronger than the actual lensing signal we’re trying to measure.

Traditional methods, like the Wiener filter, rely on strong assumptions that the matter distribution follows a simple Gaussian pattern. However, the real universe contains complex, non-Gaussian filaments and clusters that these methods tend to smear out.

Methodology: Gravitationally Constrained Neural Fields

We propose representing the 3D matter density as a continuous function parameterized by a neural network (a Multi-Layer Perceptron), known as a Neural Field. This approach avoids the limitations of discrete voxel grids and leverages the implicit priors of neural networks.

Analysis-by-Synthesis

The system starts with a random 3D density field. It then uses a differentiable physical forward model to calculate what the 2D lensing signal would look like if that density were real. By comparing this "synthetic" signal to actual telescope observations, the system uses gradient descent to update the neural network's weights until the 3D model matches the data.

Robustness and Detail

To handle the inherent uncertainty, we train an ensemble of 100 independent neural fields and take the median. This provides a robust reconstruction and a way to quantify uncertainty. Additionally, Fourier-based positional encoding allows the network to capture different spatial frequencies, balancing smooth large-scale structures with sharp local details.

Experiments and Results

The study validated the approach using simulated data from JaxPM, a differentiable N-body solver, and mock surveys mimicking the upcoming Roman Space Telescope.

Uncertainty in galaxy shape estimation: traditional weak lensing (green) vs. kinematic weak lensing (red).

A key advancement is the use of kinematic weak lensing, which utilizes spectral data to better estimate a galaxy's original shape, significantly reducing shape noise. As shown in the figure above, kinematic data provides a much tighter constraint on the intrinsic ellipticity compared to traditional methods.

Key Results

The neural field method consistently outperformed the industry-standard Wiener filter:

  • Accuracy: In kinematic lensing simulations, the neural field achieved a normalized cross-correlation (CC) of 0.60, compared to 0.39 for the Wiener filter.
  • Visual Fidelity: Qualitative results show sharper reconstructions with significantly less "radial smearing" (blurring along the distance axis).
  • Robustness: Even in high-noise "traditional" lensing scenarios, the method maintained a higher correlation with the ground truth (0.52 vs 0.34).

Discussion and Future Directions

While promising, the method has computational hurdles, as training an ensemble of 100 neural networks is expensive. Future work will focus on solving for cosmological constants simultaneously and accounting for real-world "systematics" like atmospheric interference. Nevertheless, the ability to recover non-Gaussian structures marks a significant step forward in mapping the invisible architecture of our universe.

Summary updated

Abstract

Weak gravitational lensing is the slight distortion of galaxy shapes caused primarily by the gravitational effects of dark matter in the universe. In our work, we seek to invert the weak lensing signal from 2D telescope images to reconstruct a 3D map of the universe's dark matter field. While inversion typically yields a 2D projection of the dark matter field, accurate 3D maps of the dark matter distribution are essential for localizing structures of interest and testing theories of our universe. However, 3D inversion poses significant challenges. First, unlike standard 3D reconstruction that relies on multiple viewpoints, in this case, images are only observed from a single viewpoint. This challenge can be partially addressed by observing how galaxy emitters throughout the volume are lensed. However, this leads to the second challenge: the shapes and exact locations of unlensed galaxies are unknown, and can only be estimated with a very large degree of uncertainty. This introduces an overwhelming amount of noise which nearly drowns out the lensing signal completely. Previous approaches tackle this by imposing strong assumptions about the structures in the volume. We instead propose a methodology using a gravitationally-constrained neural field to flexibly model the continuous matter distribution. We take an analysis-by-synthesis approach, optimizing the weights of the neural network through a fully differentiable physical forward model to reproduce the lensing signal present in image measurements. We showcase our method on simulations, including realistic simulated measurements of dark matter distributions that mimic data from upcoming telescope surveys. Our results show that our method can not only outperform previous methods, but importantly is also able to recover potentially surprising dark matter structures.
BibTeX
@inproceedings{zhao2025revealing,
  author = {Brandon Zhao and Aviad Levis and Liam Connor and Pratul P. Srinivasan and Katherine L. Bouman},
  title = {{Revealing the 3D Cosmic Web through Gravitationally Constrained Neural Fields}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Ax0i933gtp},
}
Figure