Speculate: Our Sirocco Emulator

_images/Speculate_logo5.png

Overview

Speculate is our sythetic spectral library and emulator tool that allows for the rapid approximate inference of Sirocco parameters for an observation.

Sirocco is a Monte-Carlo radiative transfer code, and while it is well-suited to forward-modelling the spectra of accretion disc winds, running it inside a parameter-inference loop is prohibitively expensive. Speculate was built to bridge this gap: it replaces the expensive Sirocco forward model with a fast surrogate, so that observed spectra can be fit to Sirocco’s underlying outflow parameters in a fraction of the time. The result is approximate — the surrogate is only as good as the grid and the emulator trained on it — but it is fast enough to make MLE and MCMC inference of Sirocco parameters practical and point the user to the correct region of sirocco parameter space for more detailed forward-modelling.

Note: All spectra used for publications should be generated by the full Sirocco code, not the surrogate.

Tools

Speculate is distributed as a marimo notebook suite. The individual tools are documented in full on the Speculate wiki; at a high level they are:

  • Model Downloader — fetches Sirocco spectral grids and pre-trained emulator models from HuggingFace.

  • Grid Inspector — browses raw Sirocco spectra from a grid and can overlay your observations.

  • Training Tool — trains PCA + Gaussian-process emulators on a Sirocco grid.

  • Inference Tool — fits a trained GP emulator to an observed spectrum via MLE and MCMC.

  • Quick Fit — trains or loads a lightweight neural-network or grid interpolation surrogate and fits by \(\chi^2\) for fast quick-look results.

  • Benchmark Suite — runs Tier 1 / 2 / 3 reports characterising emulator quality (grid reconstruction, parameter recovery, and observational spectra).

A reduced subset of these tools (Grid Inspector and Quick Fit) is also available online through the hosted HuggingFace Space, while the full workflow — including training and MCMC inference — requires a local install.

Synthetic Libraries

The Sirocco grids and pre-trained emulators that Speculate consumes are hosted under the Sirocco-rt HuggingFace organisation. The currently published synthetic libraries are:

Full Grids:

Test Grids:

Pre-trained emulators are published alongside these grids as the speculate_cv_emulators and speculate_agn_emulators model collection.

Further Reading