Introduction
Simulation-Based Inference (SBI) has become a cornerstone for scientific fields like cosmology and biology, where complex "forward models" (simulations) exist but explicit likelihood functions do not. SBI leverages neural networks to learn the relationship between parameters and simulated data. However, the process is often unstable; different architectures, initializations, or hyperparameters can lead to divergent, biased, or over-confident results. Practitioners are frequently left wondering which single model to trust.
The Challenge: Aggregating Imperfect Models
Rather than attempting to find a single "perfect" model, this research introduces a principled framework to aggregate multiple, imperfect posterior approximations. By treating various inference runs as an ensemble, the authors propose a "stacked" posterior that is more accurate and better calibrated than any individual component or a simple uniform average.
Methodology: À La Carte Stacking
The authors propose "À La Carte Stacking," a modular framework defined by a combination form and an objective function.
- Combination Forms: Models can be mixed via density mixtures (linear combinations of predicted densities), sample aggregation (pooling draws), or interval aggregation (combining confidence boundaries).
- Objective Functions: The stacking weights are optimized to minimize specific errors, such as the Log Score (KL divergence to truth), Rank Calibration (ensuring uniform rank histograms), or Interval Coverage.
A key innovation is Hybrid Stacking, which combines multiple objectives (e.g., log density and rank calibration) to ensure the resulting distribution is both accurate in shape and honest in its uncertainty estimates.
Key Results and Evaluation
The framework was evaluated on the SBI Benchmark (sbibm) and a high-stakes cosmology task, SimBIG, involving galaxy clustering and 14 physical parameters.
- Cosmology Performance: In the SimBIG task, stacking 1,000 neural posterior inferences improved the expected log density by 1.4 nats over the best individual model. It also significantly improved the uniformity of rank histograms, indicating superior calibration.
- Efficiency Gains: The authors found that stacking several "crude" models (trained for fewer epochs) often outperforms a single model trained for a long duration. This allows for massive parallelization, where many short jobs are run simultaneously and then stacked.
Insights and Future Work
The modularity of the "À La Carte" approach allows researchers to prioritize metrics most relevant to their field—whether that is the exact density shape or reliable error bars. While the current framework uses global weights, future work may explore local mixture weights that adapt based on specific input data. Despite potential computational overhead in generating simulation tables, the ability to "repair" model defects through stacking represents a significant step forward in making SBI more robust and reliable for scientific discovery.
Summary updated