Skip to main content
QUICK REVIEW

[Paper Review] Normalizing flows for random fields in cosmology

Adam Rouhiainen, Utkarsh Giri|arXiv (Cornell University)|May 25, 2021
Gaussian Processes and Bayesian InferenceComputer Science24 references8 citations
TL;DR

This paper proposes using normalizing flows to model cosmological random fields—such as matter distributions and CMB lensing potentials—directly at the field level, rather than via summary statistics. By training flows on correlated Gaussian priors derived from physical power spectra, the method achieves sub-percent accuracy in power spectrum and bispectrum estimation, demonstrating strong potential for non-Gaussian prior modeling and field-level variational inference in cosmology.

ABSTRACT

Normalizing flows are a powerful tool to create flexible probability distributions with a wide range of potential applications in cosmology. Here we are studying normalizing flows which represent cosmological observables at field level, rather than at the level of summary statistics such as the power spectrum. We evaluate the performance of different normalizing flows for both density estimation and sampling of near-Gaussian random fields, and check the quality of samples with different statistics such as power spectrum and bispectrum estimators. We explore aspects of these flows that are specific to cosmology, such as flowing from a physical prior distribution and evaluating the density estimation results in the analytically tractable correlated Gaussian case.

Motivation & Objective

  • To assess the performance of normalizing flows in modeling near-Gaussian cosmological random fields at the field level, rather than through summary statistics like the power spectrum.
  • To evaluate whether normalizing flows can accurately represent the probability density functions (PDFs) of cosmological fields, including non-Gaussian features such as those in N-body simulations.
  • To investigate the impact of using physically motivated, correlated Gaussian priors instead of independent standard Gaussians on flow training and sample quality.
  • To test the utility of normalizing flows for downstream cosmological inference tasks, such as field-level variational inference and likelihood-free inference.
  • To compare different flow architectures—specifically real NVP and Glow—on their convergence speed and sample fidelity in cosmological applications.

Proposed method

  • The study employs normalizing flows that transform a base distribution (initially a correlated Gaussian field with a cosmologically motivated power spectrum) into a complex target distribution via a series of invertible, differentiable transformations.
  • The flow is constructed as a composition of K invertible transformations $ T = T_K \circ \cdots \circ T_1 $, each with tractable Jacobian determinants, enabling exact density evaluation and efficient sampling.
  • The key equation for density evaluation is $ p_x(\mathbf{x}) = p_u(\mathbf{u}) \cdot |\det J_T(\mathbf{u})|^{-1} $, where $ \mathbf{x} = T(\mathbf{u}) $, and the log-Jacobian determinant is computed as a sum over individual transformation steps.
  • The base distribution is a correlated Gaussian field with a power spectrum matching the target cosmological field (e.g., from N-body simulations), improving sample quality over independent Gaussian priors.
  • The flows are trained on 2D projections of 3D N-body simulation data (128×128 pixel maps from 125 $h^{-1}$ Mpc³ volumes), with training performed using maximum likelihood estimation.
  • Performance is evaluated using statistical metrics including the power spectrum, bispectrum, and log-probability density, with comparisons to both the prior and the true data distribution.

Experimental results

Research questions

  • RQ1Can normalizing flows accurately model the full probability density of cosmological random fields, such as matter distributions, at the field level?
  • RQ2How does using a physically motivated, correlated Gaussian prior compare to an independent standard Gaussian prior in terms of flow performance and sample quality?
  • RQ3To what extent can normalizing flows reproduce the power spectrum and bispectrum of cosmological fields, especially in the non-Gaussian regime of N-body simulations?
  • RQ4How do different flow architectures (e.g., real NVP vs. Glow) compare in convergence speed and sample fidelity when modeling cosmological fields?
  • RQ5Can normalizing flows be used effectively for field-level variational inference in cosmology, such as in CMB lensing or kinetic Sunyaev-Zeldovich tomography?

Key findings

  • Normalizing flows trained on correlated Gaussian priors achieve power spectrum accuracy within a few percent of the true N-body simulation data, with deviations below 1% in log-P for the most accurate models.
  • The bispectrum of samples generated by the trained flow matches the target N-body bispectrum to within a few percent, indicating accurate modeling of non-Gaussian three-point statistics.
  • Density evaluation in the analytically tractable correlated Gaussian case achieves percent-level accuracy in log-probability, confirming the flow’s ability to represent exact PDFs.
  • The Glow flow architecture converges faster and produces higher-quality samples than real NVP when applied to N-body simulation data, suggesting architectural improvements are beneficial for complex cosmological fields.
  • Using a correlated Gaussian prior significantly improves sample quality and learning efficiency compared to independent standard Gaussians, highlighting the importance of physical priors in cosmological flow modeling.
  • The results demonstrate strong potential for normalizing flows in field-level inference tasks, such as non-Gaussian prior modeling for CMB lensing or kinetic Sunyaev-Zeldovich tomography, and in variational inference frameworks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.