Simulation-Efficient Cosmological Inference with Multi-Fidelity SBI

Leander Thiele, Adrian E. Bayer, Naoya TakeishiarXiv 2025 · DOI

Abstract

High-fidelity cosmological simulations are computationally expensive, often limiting the accuracy of Simulation-Based Inference (SBI). We propose a multi-fidelity approach that leverages feature matching and knowledge distillation to "boost" a small set of expensive simulations with a large set of cheap, approximate ones. This method significantly improves posterior quality on a tight computational budget, outperforming standard transfer learning techniques.

Introduction

In cosmology, inferring fundamental parameters—such as dark matter density or the Hubble constant—from observed data is a central challenge. Because the likelihood of the universe given these parameters is often mathematically intractable, researchers turn to Simulation-Based Inference (SBI). SBI relies on thousands of simulations to learn the mapping between parameters and observables.

However, a significant bottleneck exists: accurate "high-fidelity" simulations (e.g., N-body simulations) are incredibly slow and computationally demanding. Conversely, "low-fidelity" simulations are fast and approximate, capturing general physical trends but lacking fine-grained detail. While standard transfer learning (pre-training on cheap data and fine-tuning on expensive data) offers some relief, it fails to fully exploit the structural relationship between different fidelity levels.

Multi-Fidelity Architecture

The proposed method introduces a multi-fidelity architecture for Neural Posterior Estimation (NPE) that actively utilizes low-fidelity data throughout the training process.

The multi-fidelity SBI architecture involves pre-training on low-fidelity data followed by a joint training phase using feature matching and response distillation.

The training process consists of two primary stages:

  1. Pre-training: A "teacher" model is trained on a large dataset of low-fidelity simulations ($D_2$).
  2. Multi-Fidelity Training: A "student" model is trained on a small high-fidelity dataset ($D_1$) using a composite loss function with three key components: standard NPE loss, feature matching via a transfer network ($r_\psi$), and response distillation from the teacher model.

This architecture is flexible, allowing for "shape mismatch" where low-fidelity and high-fidelity data have different dimensions or summary statistics, as long as they describe the same underlying physics.

Experimental Evaluation

The method was evaluated on three tasks: a cosmology task using the Quijote (high-fidelity) and FastPM (low-fidelity) suites, a synthetic GAUSSIAN task, and the SLCP (Simple Likelihood Complex Posterior) benchmark.

Performance comparison across NLTP, C2ST, and MMD metrics shows the proposed method consistently outperforming baselines, especially at low high-fidelity sample sizes.

Key Results

The multi-fidelity approach consistently outperformed both "high-fidelity only" baselines and standard "weight initialization" (transfer learning) across several key metrics:

  • Posterior Accuracy: The method produced posteriors significantly closer to the ground truth, even with as few as 100 high-fidelity simulations.
  • Statistical Metrics: Improvements were observed in NLTP (Negative Log-Target Probability), C2ST (Classifier 2-Sample Test), and MMD (Maximum Mean Discrepancy), indicating higher fidelity in the predicted distributions.
  • Robustness: Gains were most notable in complex, multimodal inference scenarios where standard methods often struggle.

Discussion and Future Work

A key insight is that stochastic mapping between fidelities accounts for the inherent noise in approximations. Unlike passive transfer learning, this "active" approach uses low-fidelity data to regularize the high-fidelity model continuously.

Current limitations include a preference for paired data (simulations starting from the same initial conditions) and the use of heuristic loss functions for stability. Future research will explore scaling this to multiple fidelity levels and extending the framework to Neural Ratio Estimation (NRE).

Summary updated

BibTeX
@misc{thiele2025simulation,
  author = {Leander Thiele and Adrian E. Bayer and Naoya Takeishi},
  title = {{Simulation-Efficient Cosmological Inference with Multi-Fidelity SBI}},
  year = {2025},
  eprint = {2507.00514},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.00514},
}
Figure