Efficient Bayesian analysis of kilonovae and GRB afterglows with fiesta

H. Koehn, T. Wouters, P. T. H. Pang, M. Bulla, H. Rose, H. Wichern, T. Dietrich · 2025

Read Efficient Bayesian analysis of kilonovae and GRB afterglows with fiesta by H. Koehn, T. Wouters, P. T. H. Pang, M. Bulla, H. Rose, H. Wichern, T. Dietrich (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-13807.txt.

Introduction

H. Koehn and co-authors put out a software package in 2025 that makes the study of cosmic explosions dramatically cheaper. When two neutron stars merge, the gamma-ray burst afterglow and the glowing kilonova that follow encode the merger's physics. From the equation of state of dense matter to the expansion of the universe. Extracting that information means Bayesian sampling over an actual model's settings, and each likelihood testing with a detailed model is costly enough to dominate the whole study.

Their package, fiesta, trains machine learning surrogates that imitate the state-of-the-art afterglow codes at a fraction of the cost, so samplers can afford the millions of tests they crave. Extensive surrogates are provided for the leading afterglow models named in the paper. And the method broadens to kilonova models as well, putting careful inference within reach of normal computing budgets.

Catalog record

CREATORH. Koehn, T. Wouters, P. T. H. Pang, M. Bulla, H. Rose, H. Wichern, T. Dietrich
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE79 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2507-13807

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Efficient Bayesian analysis of kilonovae and GRB afterglows with fiesta H. Koehn, T. Wouters, P. T. H. Pang, M. Bulla, H. Rose, H. Wichern, T. Dietrich Abstract Gamma-ray burst (GRB) afterglows and kilonovae (KNe) are electromagnetic transients that can accompany binary neutron star (BNS) mergers. Therefore, studying their emission processes is of general interest for constraining cosmological parameters or the behavior of ultra-dense matter. One common method to analyze electromagnetic data from BNS mergers is to sample a Bayesian posterior over the parameters of a physical model for the transient. However, sampling the posterior is computationally costly, and because of the many likelihood evaluations needed in this process, detailed models are too expensive to be used directly in inference. In the present article, we address this problem by introducing fiesta , a python package to train machine learning (ML) surrogates for GRB afterglow and kilonova models that can accelerate likelihood evaluations. Specifically, we introduce extensive ML surrogates for the state-of-the-art GRB afterglow models afterglowpy and pyblastafterglow , as well as a new surrogate for the KN emission as modeled by the possis code. Our surrogates enable evaluation of the lightcurve posterior within minutes. We also provide built-in posterior sampling capabilities in fiesta that rely on the flowMC package which scale efficiently to higher dimensions when adding up to tens of nuisance sampling parameters. Because of its use of the jax framework, fiesta also allows for GPU acceleration during both surrogate training and posterior sampling. We apply our framework to reanalyze AT2017gfo/GRB170817A and GRB211211A using our surrogates, thus employing the new pyblastafterglow model for the first time in Bayesian inference. 1 Introduction Gamma-ray bursts (GRBs) and kilonovae (KNe) are types of electromagnetic transients that can originate from a binary neutron star (BNS) merger, as confirmed most prominently by the observation of AT2017gfo ( Utsumi et al. 2017 ; Coulter et al. 2017 ; Andreoni et al. 2017 ; Shappee et al. 2017 ; Soares-Santos et al. 2017 ; Lipunov et al. 2017 ; Valenti et al. 2017 ; Díaz et al. 2017 ; Tanvir et al. 2017 ) , and GRB170817A ( Goldstein et al. 2017 ; Abbott et al. 2017b ; Savchenko et al. 2017 ) in the wake of the gravitational wave (GW) event GW170817 ( Abbott et al. 2017c ; Abbott et al. 2017d ) . Additionally, several GRBs have been associated with potential subsequent KNe ( Tanvir et al. 2013 ; Ascenzi et al. 2019 ; Troja et al. 2019b ; Rastinejad et al. 2022 ; Troja et al. 2018 ; Levan et al. 2024 ; Yang et al. 2023 ; Levan et al. 2023 ; Stratta et al. 2025 ) . To analyze these electromagnetic transients with Bayesian inference, a generative model is needed that links the source and observational parameters of the system (like ejecta masses, isotropic energy equivalent of the jet, observation angle) to the observed data. This model is then employed in a sampling procedure to obtain a posterior distribution. To model the KN emission, one has to determine the quasi-thermal radiation that is emitted by the BNS ejecta heated from the radioactive decay of the synthesized nuclei. This process has been investigated through various methods and approaches in the literature, see e.g. Kasen et al. 2017 ; Villar et al. 2017 ; Kawaguchi et al. 2018 ; Metzger 2020 ; Breschi et al. 2021 ; Wollaeger et al. 2021 ; Curtis et al. 2022 ; Nicholl et al. 2021 ; Bulla 2023 . The GRB prompt emission, on the other hand, takes place on the scales of seconds to minutes and is observed as bursts of highly energetic gamma and X-ray radiation. Its emission mechanism is largely uncertain, and thus the associated data are typically not taken into account for Bayesian inference of BNS mergers. However, the prompt emission is followed by an afterglow with broadband radiation spanning from the radio to the X-ray, which lasts on a timescale of minutes to years ( Miceli & Nava 2022 ) . Unlike the GRB prompt emission, the afterglow physics is comparatively well understood and can thus be used to infer properties of the jet and the progenitor. Specifically, the afterglow emission arises from the interaction of the GRB jet with the surrounding cold interstellar medium, and various afterglow models are available in the literature, e.g., in van Eerten et al. 2012 ; Ryan et al. 2015 ; Lamb et al. 2018 ; Ryan et al. 2020 ; Zhang et al. 2021 ; Pellouin & Daigne 2024 ; Wang et al. 2024 ; Nedora et al. 2024 ; Wang et al. 2025 . Such models have been successfully applied in joint Bayesian analysis of GW170817, its KN, and the GRB afterglow to place constraints on the equation of state (EOS) for neutron star (NS) matter ( Radice et al. 2018b ; Dietrich et al. 2020 ; Raaijmakers et al. 2021 ; Nicholl et al. 2021 ; Pang et al. 2023 ; Güven et al. 2020 ; Annala et al. 2022 ; Breschi et al. 2024 ; Koehn et al. 2025 ) or to determine the Hubble constant ( Abbott et al. 2017a ; Hotokezaka et al. 2019 ; Dietrich et al. 2020 ; Mukherjee et al. 2021 ; Wang & Giannios 2021 ; Gianfagna et al. 2024 ) . However, these joint multi-messenger inferences pose certain challenges, as exploring their high-dimensional parameter space is computationally expensive. Additionally, evaluating the likelihood at a given parameter point requires calculating the expected emission for these given parameters. Therefore, the direct, physical calculation of the emission on-the-fly is only viable with computationally cheap, semi-analytical models. However, even relatively efficient models can become prohibitive, when considering multi-messenger inferences of BNS mergers signals, where GW and electromagnetic signals are analyzed jointly and due to the increased dimensionality, many more likelihood evaluations are needed. Thus, if one wants to use a more expensive, involved model in Bayesian multi-messenger inference, one has to build accurate surrogate models, typically involving machine learning (ML) techniques, in order to evaluate the likelihood with sufficient speed. Furthermore, joint multi-messenger BNS inferences also provide motivation for the GPU compatible lightcurve surrogates, since the analysis of BNS GW data can be significantly accelerated through GPU hardware ( Wysocki et al. 2019 ; Wouters et al. 2024 ; Hu et al. 2025 ; Dax et al. 2025 ) . In the present article, we introduce fiesta , a jax -based python package for training ML surrogates of KN and GRB afterglow models and for the Bayesian analysis of photometric transient lightcurves. With fiesta , we provide extensive ML surrogates that effectively replace the costly evaluation of the physical base model, enabling rapid evaluation of the expected lightcurve given some parameter values. Specifically, we present surrogates that are built upon GRB afterglow models from the popular afterglowpy model ( Ryan et al. 2020 ) and the recently developed pyblastafterglow ( Nedora et al. 2024 ) . Additionally, we introduce a new KN surrogate based on the 3D Monte-Carlo radiation transport code possis ( Bulla 2019 ; Bulla 2023 ) . Contrary to many previous works, our surrogates are not trained on the integrated photometric flux in a specific bandpass, but

Read the complete text