[Paper Review] Marginal Bayesian Statistics Using Masked Autoregressive Flows and Kernel Density Estimators with Examples in Cosmology
This paper proposes a computationally efficient method for combining Bayesian constraints from cosmological experiments by using masked autoregressive flows and kernel density estimators to create lossless, nuisance-free likelihoods. By estimating marginal posteriors in the cosmological parameter space and reusing evidences from full nested sampling, the approach achieves identical results to full-dimensional inference but up to 319× faster, demonstrated on Planck and DES data with consistent evidence and KL divergence values.
Cosmological experiments often employ Bayesian workflows to derive constraints on cosmological and astrophysical parameters from their data. It has been shown that these constraints can be combined across different probes such as Planck and the Dark Energy Survey and that this can be a valuable exercise to improve our understanding of the universe and quantify tension between multiple experiments. However, these experiments are typically plagued by differing systematics, instrumental effects and contaminating signals, which we collectively refer to as `nuisance' components, that have to be modelled alongside target signals of interest. This leads to high dimensional parameter spaces, especially when combining data sets, with > 20 dimensions of which only around 5 correspond to key physical quantities. We present a means by which to combine constraints from different data sets in a computationally efficient manner by generating rapid, reusable and reliable marginal probability density estimators, giving us access to nuisance-free likelihoods. This is possible through the unique combination of nested sampling, which gives us access to Bayesian evidences, and the marginal Bayesian statistics code MARGARINE. Our method is lossless in the signal parameters, resulting in the same posterior distributions as would be found from a full nested sampling run over all nuisance parameters, and typically quicker than evaluating full likelihoods. We demonstrate our approach by applying it to the combination of posteriors from the Dark Energy Survey and Planck.
Motivation & Objective
- To address the computational burden of combining high-dimensional cosmological posteriors from multiple experiments with differing nuisance parameters.
- To develop a method that preserves full information on cosmological parameters while discarding nuisance components.
- To enable efficient, reusable, and reliable marginal posterior density estimation for downstream model comparison and evidence calculation.
- To demonstrate that marginal density estimation via margarine, combined with precomputed evidences, yields identical results to full nested sampling over all parameters.
Proposed method
- The method uses the margarine code to train normalizing flows and kernel density estimators on marginal posterior samples of cosmological parameters, effectively compressing high-dimensional parameter spaces.
- It leverages precomputed Bayesian evidences from full nested sampling runs to avoid re-running expensive likelihood evaluations over nuisance parameters.
- The approach defines a nuisance-free likelihood by estimating the marginal posterior $\mathcal{P}(\theta)$ through density estimation on $\theta$ only, using samples from $\mathcal{P}(\theta,\alpha)$.
- It applies the Kullback-Leibler divergence to quantify differences between marginalized posteriors, enabling model comparison without full parameter space sampling.
- The method ensures lossless inference by preserving the exact marginal posterior and total evidence as in full nested sampling.
- It combines the margarine density estimators with the anesthetic code to compute joint evidences and KL divergences for combined data sets.
Experimental results
Research questions
- RQ1Can marginal posterior density estimation using normalizing flows and kernel density estimators preserve the full information content of cosmological parameters while discarding nuisance parameters?
- RQ2Is the combination of marginal posteriors from different experiments using density estimators equivalent to a full nested sampling run over all parameters?
- RQ3How much computational speedup can be achieved by reducing the dimensionality of the parameter space from 41 to 6 dimensions in cosmological inference?
- RQ4Can the method produce consistent Bayesian evidence and KL divergence values compared to established literature results for Planck and DES?
- RQ5Can this framework be generalized to create a reusable library of cosmological density estimators for future data combination?
Key findings
- The method achieves identical marginal posteriors and total Bayesian evidence as a full nested sampling run over all parameters, confirming lossless inference.
- The computational speedup is estimated at a factor of approximately 319× by reducing the dimensionality from 41 to 6 parameters, due to the cubic scaling of nested sampling with dimension.
- The joint Bayesian evidence and KL divergence computed using the marginal method are consistent with published results from Handley and Lemos (2019).
- The use of emulated likelihoods via margarine reduces the time per likelihood evaluation compared to analytical likelihoods, further accelerating the process.
- The approach enables efficient reuse of marginal density estimators for future data combinations, paving the way for a public library of cosmological density estimators.
- The method is robust and generalizable, with implications beyond cosmology for combining results from multiple experiments probing the same underlying physics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.