Cosmological Field Emulation and Parameter Inference with Diffusion Models

Nayantara Mudur, Carolina Cuesta-Lázaro, Douglas P. FinkbeinerarXiv 2023 · DOI

Introduction

In modern cosmology, understanding the fundamental parameters of our universe—such as the total matter density ($\Omega_m$) and the amplitude of fluctuations ($\sigma_8$)—requires comparing observed data with massive N-body simulations. These simulations model the evolution of the cosmic web, but their high computational cost makes it impossible to run them for every conceivable parameter combination. This creates a critical need for fast "emulators" that can generate mock universes and robust "inference" tools that can extract parameters from complex density fields.

This paper explores the application of Denoising Diffusion Probabilistic Models (DDPMs) to these tasks. By leveraging the generative power of diffusion models, the authors demonstrate a unified framework for both high-fidelity field emulation and accurate parameter estimation.

Methodology

The core of the approach is a DDPM conditioned on cosmological parameters. The model learns to reverse a forward diffusion process that gradually transforms structured density fields into Gaussian noise.

Architectural Innovations

To adapt standard diffusion models for physical simulations, the authors implemented several key modifications:

  • Circular Convolutions: Standard computer vision models often fail at the edges of a box. By using circular convolutions in the U-Net architecture, the model respects the periodic boundary conditions inherent in cosmological simulations.
  • Parameter Conditioning: A Multi-Layer Perceptron (MLP) injects the target parameters ($\Omega_m, \sigma_8$) into the ResNet blocks of the U-Net, allowing the model to generate fields tailored to specific physical settings.
  • VLB-based Inference: Rather than training a separate regressor, the authors utilize the model's internal Variational Lower Bound (VLB). By evaluating the model's denoising error across a range of parameters for a given field, they can identify the parameters that maximize the likelihood of that field.

High-Fidelity Emulation

The model was trained on the CAMELS Multifield Dataset (CMD), specifically 2D slices of Cold Dark Matter (CDM) density fields from the IllustrisTNG suite. The results show that the diffusion model captures the complex, non-linear structures of the cosmic web with remarkable accuracy.

Comparison of true and generated power spectra across different cosmological parameters. The model achieves a reduced chi-squared of 1.30, nearing the theoretical limit of 1.27 set by cosmic variance.

As shown in the figure above, the generated power spectra ($k^2 P(k)$) closely match the ground truth across various scales. The model successfully captures the subtle modulations in the power spectrum caused by changing physical parameters, achieving a performance level nearly indistinguishable from the inherent statistical noise (cosmic variance) of the simulations themselves.

Parameter Inference

A significant advantage of this diffusion-based approach is its ability to perform parameter inference without explicit supervised training for that task. By treating the diffusion model as a proxy for the likelihood of a density field, the authors achieved tight constraints on cosmological parameters.

Predicted vs. True values for the matter density parameter $\Omega_m$. The tight correlation demonstrates the model's high precision in parameter recovery.

The inference results for $\Omega_m$ are particularly robust, showing a high degree of precision. The model correctly identifies that $\Omega_m$ influences the power spectrum across all scales, whereas $\sigma_8$ primarily impacts larger scales. This sensitivity allows the diffusion model to outperform or match specialized inference networks while remaining a more general-purpose generative tool.

Conclusion and Future Work

This work demonstrates that diffusion models are not just for image generation but are powerful tools for scientific discovery in cosmology. They provide a path toward bypassing expensive simulations while capturing non-linear information that standard statistics often miss.

Future research will focus on addressing current limitations, such as the slight bias in pixel density histograms and the slow sampling speed characteristic of iterative denoising. Expanding the model to handle 3D volumes and incorporating "baryonic effects" (the physics of gas and stars) will be essential steps toward applying this technology to real-world observational data from upcoming galaxy surveys.

Summary updated

BibTeX
@misc{mudur2023cosmological,
  author = {Nayantara Mudur and Carolina Cuesta-Lázaro and Douglas P. Finkbeiner},
  title = {{Cosmological Field Emulation and Parameter Inference with Diffusion Models}},
  year = {2023},
  eprint = {2312.07534},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.07534},
}
Figure