Skip to content
DraconiticResearch
Search Sources API
203,203 studies31 sourcesUpdated 3 min ago
PreprintCC BY 4.0arXiv

Merlin: Fast and flexible 3x2pt cosmology with simulation-based inference

Abstract

We present Merlin, a simulation-based inference (SBI) pipeline to perform cosmological analyses of 3x2pt summary statistics: cosmic shear, galaxy clustering and the cross-correlation power spectra. Our approach combines Marginal Neural Ratio Estimation (MNRE) with 3x2pt angular power spectra predictions from the cloelib library, although the pipeline is readily extensible to other cosmology libraries. We demonstrate this pipeline on a realistic setting representative of a Stage-IV photometric survey, with a 50-dimensional parameter space describing cosmology and a wide range of systematic effects. We find posteriors that are in excellent agreement with the nested sampler Nautilus, while reducing the number of required CPU-hours by two orders of magnitude. Because the generation of training data and the training of inference networks are decoupled processes, a single simulation bank can be reused to perform inference under different analysis choices, further improving the simulator-efficiency. We illustrate this flexibility by applying scale cuts, varying the survey area, and removing cosmic shear from the data vector (2x2pt), all at zero extra model evaluations, whereas sampling-based methods need costly re-runs for each case. The Merlin code is publicly available on GitHub.

Related

  1. Field-level weak lensing cosmology with $60$ simulations using multifidelity simulation-based inference
    Alex A. Saoulis, Kiyam Lin, Niall Jeffrey +5
    arXivPreprintCC BY 4.0Full textCosmologyarXiv
  2. Benchmarking Exact, GP-Emulated, and Simulation-Based Inference for Late-Time Cosmology
    Sai Swagat Mishra
    arXivPreprintCC BY 4.0Full textCosmologyGravitation & general relativityarXiv
  3. FPCA-Enhanced Simulation-Based Inference for Robust Type Ia Supernova Cosmology
    Moonzarin Reza, Lifan Wang
    arXivPreprintCC BY 4.0Full textCosmologyInstrumentation & methodsarXiv
  4. 2Flow2SN: Dusty Supernova Cosmology with Photometric Redshifts and Contamination using Neural Simulation-Based Inference
    Benjamin M. Boyd, Maximilian Autenrieth, Kaisey S. Mandel +4
    arXivPreprintCC BY 4.0Full textCosmologyStatisticsarXiv
  5. A space of inference spaces in the space sciences - parametric Bayesian inference in astronomy, cosmology and particle physics
    Johannes Buchner
    arXivPreprintCC BY-NC-ND 4.0Full textInstrumentation & methodsStatisticsarXiv
BibTeX
@misc{wernersson2026merlin,
  title = {{Merlin: Fast and flexible 3x2pt cosmology with simulation-based inference}},
  author = {Alexandra Wernersson and Guillermo Franco-Abellán and Guadalupe Cañas-Herrera},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.24946},
  eprint = {2609.24946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.24946},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Merlin: Fast and flexible 3x2pt cosmology with simulation-based inference
AU  - Alexandra Wernersson
AU  - Guillermo Franco-Abellán
AU  - Guadalupe Cañas-Herrera
PY  - 2026
DA  - 2026/09/21
PB  - arXiv
DO  - 10.48550/arxiv.2609.24946
UR  - https://arxiv.org/abs/2609.24946
AB  - We present Merlin, a simulation-based inference (SBI) pipeline to perform cosmological analyses of 3x2pt summary statistics: cosmic shear, galaxy clustering and the cross-correlation power spectra. Our approach combines Marginal Neural Ratio Estimation (MNRE) with 3x2pt angular power spectra predictions from the cloelib library, although the pipeline is readily extensible to other cosmology libraries. We demonstrate this pipeline on a realistic setting representative of a Stage-IV photometric survey, with a 50-dimensional parameter space describing cosmology and a wide range of systematic effects. We find posteriors that are in excellent agreement with the nested sampler Nautilus, while reducing the number of required CPU-hours by two orders of magnitude. Because the generation of training data and the training of inference networks are decoupled processes, a single simulation bank can be reused to perform inference under different analysis choices, further improving the simulator-efficiency. We illustrate this flexibility by applying scale cuts, varying the survey area, and removing cosmic shear from the data vector (2x2pt), all at zero extra model evaluations, whereas sampling-based methods need costly re-runs for each case. The Merlin code is publicly available on GitHub.
ER  -