Diffusion-HMC: Parameter Inference with Diffusion-model-driven Hamiltonian Monte Carlo
Nayantara Mudur, Carolina Cuesta-Lazaro, Douglas P. Finkbeiner
TL;DR
Diffusion-HMC tackles cosmological parameter inference by training a conditional diffusion model to emulate cold dark matter density fields as a function of $(\Omega_m, \sigma_8)$ and by using the model’s conditional variational lower bound as an approximate likelihood for Hamiltonian Monte Carlo sampling of the posterior. The approach yields field-level emulation that reproduces key statistics, and, when combined with HMC, produces tighter, more robust constraints than a power-spectrum baseline, with demonstrated resilience to uncorrelated noise. The authors explore the information content across diffusion timesteps, show potential speed-accuracy tradeoffs with timesteps, and discuss robustness strategies, including truncation and priors, while releasing code for broader use. This work advances diffusion-model priors as a versatile tool for both generating cosmological fields and performing principled, robust inference on cosmological parameters at the field level.
Abstract
Diffusion generative models have excelled at diverse image generation and reconstruction tasks across fields. A less explored avenue is their application to discriminative tasks involving regression or classification problems. The cornerstone of modern cosmology is the ability to generate predictions for observed astrophysical fields from theory and constrain physical models from observations using these predictions. This work uses a single diffusion generative model to address these interlinked objectives -- as a surrogate model or emulator for cold dark matter density fields conditional on input cosmological parameters, and as a parameter inference model that solves the inverse problem of constraining the cosmological parameters of an input field. The model is able to emulate fields with summary statistics consistent with those of the simulated target distribution. We then leverage the approximate likelihood of the diffusion generative model to derive tight constraints on cosmology by using the Hamiltonian Monte Carlo method to sample the posterior on cosmological parameters for a given test image. Finally, we demonstrate that this parameter inference approach is more robust to small perturbations of noise to the field than baseline parameter inference networks.
