8000 GitHub - hsimonfroy/benchmark-field-level: Benchmarking field-level cosmological inference from galaxy surveys.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hsimonfroy/benchmark-field-level

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benchmark Field-Level Inference

arXiv License Open in Colab

Overview

This repository accompanies the JCAP-submitted paper Benchmarking field-level cosmological inference from galaxy surveys.

Field-level inference is a powerful approach that allows maximum information extraction from cosmological surveys (e.g. galaxy surveys) by modeling the entire observed field rather than just its summary statistics. This project provides a benchmark suite to evaluate different preconditioning strategies and high-dimensional sampling methods, and to compare their performance on an idealized but standardized galaxy clustering model.

Install

For standard installation of the package and its dependencies, use:

pip install git+https://github.com/hsimonfroy/benchmark-field-level.git

For development purposes, install in editable mode:

pip install -e git+https://github.com/hsimonfroy/benchmark-field-level.git#egg=flbench

This package relies on JAX for GPU-accelerated computations. Please note that its installation is left to the user. Follow the official JAX installation guide to set it up for your specific hardware.

Model

The benchmarked galaxy clustering model is fast (jit-compiled and GPU accelerated) and differentiable. It includes:

  • Linear matter field generation
  • Structure formation, selected among
    • Linear growth
    • Lagrangian Perturbation Theory (1LPT or 2LPT) displacement
    • Particle Mesh (PM) N-body displacement, with BullFrog or FastPM solvers
  • Redshift-Space Distortions (RSD)
  • Second order Lagrangian galaxy bias
  • Observational Noise
model

The model also includes different preconditioning strategies for the linear matter field:

  • Prior-preconditioning in real space
  • Prior-preconditioning in Fourier space
  • Static posterior-preconditioning assuming a Kaiser model
  • Dynamic posterior-preconditioning assuming a Kaiser model

Inference

Interfaced MCMC samplers include:

  • Hamiltonian Monte Carlo (HMC)
  • No-U-Turn Sampler (NUTS)
  • NUTS within Gibbs (NUTSwG)
  • Metropolis-Adjusted Microcanonical Sampler (MAMS, i.e. adjusted MCHMC)
  • MicroCanonical Langevin Monte Carlo (MCLMC, unadjusted)
sampler_triangle

The cosmology $(\Omega_m, \sigma_8)$ and bias parameters $(b_1, b_2, b_{s^2}, b_{\nabla^2})$ are sampled jointly with the ($\geq 10^6$-dimensional) initial linear matter field $\delta_L$. From these samples, the universe history can be reconstructed, including the evolved galaxy density field $\delta_g$.

chains

Examples

The examples/ directory contains Jupyter notebooks that demonstrate how to use the benchmark tools:

  1. infer_model.ipynb
    Open in Colab

    • Experimental setup:
      • Instantiate a field-level cosmological model
      • Generate observation and condition the model on it
    • Perform field-level inference:
      • Warmup phase only inferring the field with MCLMC sampler
      • Warmup phase inferring all parameters jointly with any implemented sampler
  2. sample_analysis.ipynb
    Open in Colab

    • Assess convergence:
      • Chain diagnostics
      • Inspection at the field-level
    • Quantify performance

About

Benchmarking field-level cosmological inference from galaxy surveys.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0