Skip to content
OpenTrain AIFor AI Companies

The future of cosmological likelihood-based inference: accelerated high-dimensional parameter estimation and model comparison

Davide Piras, Alicja Polanska, Alessio Spurio Mancini, Matthew A. Price, Jason D. McEwenPublished May 21, 2024
arXiv PDF DOI
Researcher verdict
Starting point
Use as implementation starting point
Benchmark evidence
Missing
Not verified yet
Time to first repro
A few hours
Fast first run
Risk flags
0
None detected

Abstract

Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.

We advocate for a new paradigm of cosmological likelihood-based inference, leveraging recent developments in machine learning and its underlying technology, to accelerate Bayesian inference in high-dimensional settings. Specifically, we combine (i) emulation, where a machine learning model is trained to mimic cosmological observables, e.g. CosmoPower-JAX; (ii) differentiable and probabilistic programming, e.g. JAX and NumPyro, respectively; (iii) scalable Markov chain Monte Carlo (MCMC) sampling techniques that exploit gradients, e.g. Hamiltonian Monte Carlo; and (iv) decoupled and scalable Bayesian model selection techniques that compute the Bayesian evidence purely from posterior samples, e.g. the learned harmonic mean implemented in harmonic. This paradigm allows us to carry out a complete Bayesian analysis, including both parameter estimation and model selection, in a fraction of the time of traditional approaches. First, we demonstrate the application of this paradigm on a simulated cosmic shear analysis for a Stage IV survey in 37- and 39-dimensional parameter spaces, comparing $Λ$CDM and a dynamical dark energy model ($w_0w_a$CDM). We recover posterior contours and evidence estimates that are in excellent agreement with those computed by the traditional nested sampling approach while reducing the computational cost from 8 months on 48 CPU cores to 2 days on 12 GPUs. Second, we consider a joint analysis between three simulated next-generation surveys, each performing a 3x2pt analysis, resulting in 157- and 159-dimensional parameter spaces. Standard nested sampling techniques are simply unlikely to be feasible in this high-dimensional setting, requiring a projected 12 years of compute time on 48 CPU cores; on the other hand, the proposed approach only requires 8 days of compute time on 24 GPUs. All packages used in our analyses are publicly available.

Results and benchmarks

Freshness tier: cold
We advocate for a new paradigm of cosmological likelihood-based inference, leveraging recent developments in machine learning and its underlying technology, to accelerate Bayesian inference in high-dimensional settings.

Implementation

Best maintained implementation now

Recommended
Confidence: High
Reproducibility: Strong

Machine learning assisted marginal likelihood (Bayesian evidence) estimation for Bayesian model selection

87 stars · 13 forks · Last push Mar 18, 2026 · GPL-3.0 license

  • License
  • CI
  • Dependencies
  • Docker

Official implementation from Papers with Code · Repository link is mentioned in the paper metadata · Partial overlap with paper title keywords

Why this implementation
Confidence: high

astro-informatics/harmonic is the strongest maintained implementation based on ranking signals. CI workflows are present. License is declared (GPL-3.0).

Open astro-informatics/harmonic
Reproduction risks
  • No repository-level red flags were detected, but paper-specific preprocessing and hyperparameter details may still be under-specified.
  • Selected astro-informatics/harmonic as the strongest maintained implementation for new work.
  • Includes CI workflow signals.
  • Includes dependency/environment manifest signals.
  • Repository activity is within the last 24 months.

Compare implementation paths

Compare maintenance quality, reproducibility coverage, and evidence confidence before choosing a reproduction baseline.

Maintenance
Recently updated
Confidence
High
Reproducibility
Strong
Stars
87
Last push
Mar 18, 2026 (160d)

Official implementation from Papers with Code · Repository link is mentioned in the paper metadata

  • No Docker setup
Maintenance
Stale
Confidence
High
Reproducibility
Strong
Stars
83
Last push
Dec 21, 2024 (612d)

Official implementation from Papers with Code · Repository link is mentioned in the paper metadata

  • No push in 12+ months
  • No Docker setup
Maintenance
Stale risk
Confidence
High
Reproducibility
Moderate
Stars
49
Last push
Nov 27, 2025 (271d)

Official implementation from Papers with Code · Repository link is mentioned in the paper metadata

  • No CI pipeline detected
  • No tagged releases
  • No Docker setup

Reproduction readiness

Time to first repro: hours
Last checked: Aug 19, 2026

Ready to run

Ready to reproduce

  • Clone astro-informatics/harmonic and install dependencies from pyproject.toml.
  • CI pipeline detected, so automated tests are in place.
  • Last updated 160 days ago.
Open astro-informatics/harmonic

Hardware requirements

  • We recover posterior contours and evidence estimates that are in excellent agreement with those computed by the traditional nested sampling approach while reducing the computationa
  • Standard nested sampling techniques are simply unlikely to be feasible in this high-dimensional setting, requiring a projected 12 years of compute time on 48 CPU cores; on the othe

Quick start

git clone https://github.com/astro-informatics/harmonic.git
pip install -e .

Repositories and ecosystem

Official

  • dpiras/cosmopower-jax
    Confidence: High

    Differentiable cosmological emulators: the JAX version of CosmoPower

    49 stars · 5 forks · Last push Nov 27, 2025 · GPL-3.0 license

Community

No additional community repositories detected yet.

Hugging Face artifacts

No direct paper-linked artifacts were found. Showing strongest curated related artifacts for faster exploration.

Models

No trustworthy models matches right now.

Search models on Hugging Face

Datasets

Curated Related

Spaces

No trustworthy spaces matches right now.

Search spaces on Hugging Face

Research context

13

Citations

0

References

Tasks

Inference, Estimation, Econometrics, Maximum likelihood, Computer science, Estimation theory, Statistics, Physical Sciences

Methods

None detected

Domains

Statistical physics, Mathematics, Applied Mathematics

Evaluation and human feedback data

Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in HFEPX
Explore similar papers

Jump to Paper2Code search queries derived from this paper's research context.

Data includes links from Papers with Code ( CC-BY-SA-4.0 ).