Joint inference of mass-maps and cosmology with diffusion models


Benjamin Remy
Advancing Field-level and Simulation-based Inference for Cosmology,
Perimeter Institute for Theoretical Physics, June 2026
with Chihway Chang and Rebecca Willett
Weak lensing for cosmology


Credit: Jessie Muir adapted by Justine Zeghal


Shear
Convergence
How to optimally infer cosmology from observing ?
How to reconstruct with a non-linear model?
Weak lensing mass-mapping as an inverse problem
N-body +
ray-tracing
(e.g. TNG, Gower Street)
Forward model
Inference (inverse problem)
Running N-body simulations, we
implicitly sample from the joint distribution
Likelihood-free inference uses simulations to learn
the implicit distributions
(posterior, likelihood, likelihood ratio)
Full field inference


Full field inference x Likelihood-free inference (LFI)
Field reconstruction
Cosmological inference



Targets
Targets
Posterior sampling with diffusion models (Remy et al. 2023)
LFI for weak lensing full field
LFI for weak lensing full field
How can we combine them in a joint inference framework ?
Text

A diffusion model learns to reverse the noising process, by learning
the prior score function

U-net architecture, well suited for 2D, 3D fields
But not for inferring cosmological parameters...

Tweedy formula
Posterior inference with diffusion model

A diffusion model learns to reverse the noising process, by learning
the posterior score function

U-net architecture, well suited for 2D, 3D fields
But not for inferring cosmological parameters...

Tweedy formula
Posterior inference with diffusion model


We need to model to design a denoiser architecture
to learn the score function.
We learn the joint denoiser




Learning the joint distribution
And now have the joint score function to run a diffusion model




Learning the joint distribution
We need to model to design a denoiser architecture
to learn the score function.
We learn the joint denoiser
And now have the joint score function to run a diffusion model
Learning the joint distribution






Mocked weak lensing maps
with sbi_lens
128x128x5 maps, spanning
10x10 deg²
LSST Y10-like survey setting

Results
Learning the joint distribution
Results

A fast and differentiable (JAX) log-normal mass maps simulator
sbi-lens

Learning the joint distribution
Results

Learning the joint distribution
Results

Learning the joint distribution
Results

Learning the joint distribution
Results

Learning the joint distribution
Results

Learning the joint distribution
Results

Cosmology marginal
TARP coverage test (Lemos et al. 2023)


MIRA calibration score (Sharief, Zeghal, et al. 2026)
on the joint distribution, where 2/3 is optimal
Results
We built a generative model of mass-maps and cosmology, that we can condition on observation to get the joint posterior distribution
Paper out this week!
Thank you!
This approach could be extended for inference, or to build efficient proposal, of initial condition and cosmology
Happy to chat about this!
Takeaways
PI-field-level
By Benjamin REMY
PI-field-level
- 23
