Generative Diffusion Priors for 3D Mapping of the Dark Universe

Brandon Zhao, Diana Scognamiglio, Olivier Doré, Katherine L. BoumanCVPR 2026

TL;DR

Reconstructing the three-dimensional distribution of dark matter from weak gravitational lensing observations is a notoriously difficult, ill-posed inverse problem. This paper introduces Conicus3D, a new simulation-derived dataset, alongside a novel redshift-conditional diffusion posterior sampling framework. By combining a data-driven generative prior with a differentiable physical forward model, the authors achieve state-of-the-art accuracy in mapping the cosmic web while providing well-calibrated uncertainty estimates.

What Problem Does This Paper Address?

Dark matter makes up the vast majority of matter in the universe, driving the formation of the "cosmic web"—the intricate network of clusters, filaments, and voids that shapes galaxy distribution. Because dark matter does not emit or absorb light, cosmologists must map it indirectly using weak gravitational lensing (WL): measuring the subtle, coherent shape distortions of distant background galaxies caused by the gravitational pull of intervening mass.

Reconstructing this mass distribution in 3D is highly ill-posed. We observe the universe from a single line of sight, galaxy shape measurements are dominated by intrinsic "shape noise," and galaxy distances (redshifts) are highly uncertain. Traditional methods like the analytic Wiener filter tend to over-smooth the field, wiping out sharp, non-Gaussian filamentary structures. Conversely, recent deep learning approaches often fail to provide exact Bayesian posterior samples, making rigorous uncertainty quantification impossible.

Methods

The authors propose a plug-and-play diffusion framework that elegantly marries a deep generative model with exact physical constraints:

  1. Redshift-Conditional Diffusion Prior: Modeling a full 3D volumetric field with diffusion models is computationally prohibitive. To make this tractable, the authors factorize the 3D "lightcone" into a sequence of 2D lens planes at increasing comoving distances (redshifts). They train a standard 2D DDPM U-Net conditioned on redshift ($z$) to learn the non-Gaussian statistical structures of dark matter across cosmic time.
  2. Modified Posterior Sampling: They adapt the Decoupled Annealing Posterior Sampling (DAPS) framework to combine this learned prior with a differentiable physical forward model of weak lensing.
  3. Fourier-Space Covariance: Standard DAPS assumes independent pixel noise during its reverse optimization steps, which ignores spatial correlations. To respect cosmological principles of translation invariance and isotropy, the authors introduce a physically informed covariance matrix diagonalized in Fourier space using the empirical matter power spectrum ($P(k)$).
Figure 1. Lightcone structure and redshift-conditional diffusion model. Left: The large-scale matter distribution is represented as a 3D lightcone, built from a sequence of lens planes slicing the dark matter density field at increasing comoving distance (redshift). Right: Each lens plane is modeled with a redshift-conditional 2D diffusion prior that learns the statistics of simulated overdensity maps at that redshift. During generation, we start from Gaussian noise on each plane, append one-hot redshift encodings, and denoise with a U-Net score model to obtain a coherent 3D lightcone. This redshift-conditioned factorization enables efficient generation of realistic volumetric dark matter fields consistent with lightcone geometry.

Datasets

The paper introduces Conicus3D, a first-of-its-kind dataset tailored for 3D weak lensing mass mapping, derived from the state-of-the-art AbacusSummit N-body simulations:

  • 20,000 In-Distribution Lightcones: Generated under a fiducial cosmology.
  • 800 Out-of-Distribution (OOD) Lightcones: Produced under alternative cosmological parameters (e.g., massless neutrinos) to rigorously test model generalization.
  • Mock Galaxy Catalogs: Modeled precisely after the footprint, source density, shape noise, and photometric redshift errors of the real James Webb Space Telescope (JWST) COSMOS-Web survey.

Key Insights and Ideas

  • Dimension Reduction via Redshift Factorization: Treating the 3D space as independent 2D slices conditioned on redshift simplifies the generative task. Crucially, full 3D line-of-sight coherence is still recovered during inference because the physical forward model couples these slices together.
  • Physics-Informed Denoising Noise: Injecting the matter power spectrum into the diffusion sampler’s covariance matrix prevents the model from generating unphysical high-frequency artifacts, ensuring the generated structures look like a real universe.
  • Robustness to Cosmology Mismatch: Even when the prior is trained on a specific "fiducial" cosmology, the physics-based likelihood guidance is strong enough to overcome prior bias. If the true universe has a higher power spectrum (e.g., the OOD setup), the posterior samples adapt and correctly recover the higher-amplitude structures.

Key Results

The method was evaluated against the analytical Wiener filter and a recent Neural Ensemble baseline using mock JWST observations:

  • Superior Spatial Fidelity: The diffusion-based posterior mean accurately recovered sharp cluster peaks and filamentary structures that baselines either over-smoothed or smeared along the line of sight.
  • Quantitative Performance: Our approach consistently achieved higher Pearson cross-correlation coefficients ($\text{\rho}$) across both 2D projections and full 3D volumes. For instance, in the primary test volume, the method achieved a 3D blurred correlation of 0.83, outperforming Neural Ensembles (0.79) and the Wiener filter (0.71).
Qualitative 2D mass reconstruction results compared to baselines
  • Realistic Sample Statistics: Unlike traditional point estimates that damp high-frequency power under high noise, individual samples from this diffusion model perfectly preserved the true small-scale angular power spectrum ($C_\ell^\kappa$).
  • Excellent Uncertainty Calibration: The voxel-level standard deviation across generated posterior samples tightly correlated with the actual mean absolute error against the ground truth, providing a mathematically sound foundation for downstream cosmological inference.

Limitations and Future Work

  • Independent Prior Assumption: The generative prior treats different redshift lens planes as statistically independent. While the forward model couples them during inference, incorporating explicit lightcone-wide correlations directly into the prior could further improve radial accuracy.
  • Sensitivity Analysis: Future work is required to systematically evaluate how sensitive the reconstructions are to variations in the underlying N-body simulation codes and a broader grid of cosmological parameters.

Summary updated

BibTeX
@inproceedings{zhao2026generative,
  author = {Brandon Zhao and Diana Scognamiglio and Olivier Doré and Katherine L. Bouman},
  title = {{Generative Diffusion Priors for 3D Mapping of the Dark Universe}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=TattNl2pfl},
}
Figure