swyft
swyft is the official implementation of Truncated Marginal Neural Ratio Estimation, a hyper-efficient, simulation-based inference technique for complex data and expensive simulators.
Cite this software
Description
-
Estimates likelihood-to-evidence ratios for arbitrary marginal posteriors; they typically require fewer simulations than the corresponding joint.
-
Performs targeted inference by prior truncation, combining simulation efficiency with empirical testability.
-
seamlessly reuses simulations drawn from previous analyses, even with different priors.
-
integrates dask and zarr to make complex simulation easy.
swyft is designed to solve the Bayesian inverse problem when the user has access to a simulator that stochastically maps parameters to observational data. In scientific settings, a cost-benefit analysis often favors approximating the posterior marginality; swyft provides this functionality. The package additionally implements our prior truncation technique, routines to empirically test results by estimating the expected coverage, and a dask simulator manager with zarr storage to simplify use with complex simulators.
Participating organisations
Reference papers
Mentions
- 1.Author(s): Mattia Emma, Gregory AshtonPublished in Physical Review D by American Physical Society (APS) in 202610.1103/f5df-cxyg
- 2.Author(s): Philippa S. Cole, James Alvey, Lorenzo Speri, Christoph Weniger, Uddipta Bhardwaj, Davide Gerosa, Gianfranco BertonePublished in 202610.1103/4cd3-wfjr
- 3.Author(s): Oleg Savchenko, Guillermo Franco Abellán, Florian List, Noemi Anau Montel, Christoph WenigerPublished in 202610.1093/mnras/stag977
- 4.Author(s): Christopher Eckner, Noemi Anau Montel, Florian List, Francesca Calore, Christoph WenigerPublished in 202510.1103/p4gf-d2zt
- 5.Author(s): David Cerdeño, Martin de los Rios, Andres D. PerezPublished in 202510.1088/1475-7516/2025/01/038
- 6.Author(s): Yves Kini, Anna L Watts, Tuomo Salmi, Anna Bilous, Serena Vinciguerra, Sebastien Guillot, David R Ballantyne, Erik Kuulkers, Slavko Bogdanov, Valery SuleimanovPublished in Monthly Notices of the Royal Astronomical Society by Oxford University Press (OUP) in 2025, page: 46-5710.1093/mnras/staf908
- 7.Author(s): Q. Decant, A. Dimitriou, L. Lopez-Honorez, B. ZaldivarPublished in 202510.1088/1475-7516/2025/07/004
- 8.Author(s): Andrew Zammit-Mangion, Matthew Sainsbury-Dale, Raphaël HuserPublished in Annual Review of Statistics and Its Application by Annual Reviews in 2025, page: 311-33510.1146/annurev-statistics-112723-034123
- 9.Author(s): James Alvey, Uddipta Bhardwaj, Valerie Domcke, Mauro Pieroni, Christoph WenigerPublished in Physical Review D by American Physical Society (APS) in 202510.1103/physrevd.111.102006
- 10.Author(s): Kierthika Chathirathas, Torben Ferber, Felix Kahlhoefer, Alessandro MorandiniPublished in 202510.1140/epjc/s10052-025-13795-w
- 11.Author(s): Androniki Dimitriou, Daniel G. Figueroa, Bryan ZaldívarPublished in 202410.1088/1475-7516/2024/09/032
- 12.Author(s): Joanna Berteaud, Christopher Eckner, Francesca Calore, Maïca Clavel, Daryl HaggardPublished in 202410.3847/1538-4357/ad6b1e
- 13.Author(s): James Alvey, Uddipta Bhardwaj, Valerie Domcke, Mauro Pieroni, Christoph WenigerPublished in 202410.1103/physrevd.109.083008
- 14.Author(s): Michael R. B. Matesic, Jason F. Rowe, John H. Livingston, Shishir Dholakia, Daniel Jontof-Hutter, Jack J. LissauerPublished in The Astronomical Journal by American Astronomical Society in 2024, page: 6810.3847/1538-3881/ad0fe9
- 15.Author(s): Matthew Ho, Deaglan J. Bartlett, Nicolas Chartier, Carolina Cuesta-Lazaro, Simon Ding, Axel Lapel, Pablo Lemos, Christopher C. Lovell, T. Lucas Makinen, Chirag Modi, Viraj Pandya, Shivam Pandey, Lucia A. Perez, Benjamin Wandelt, Greg L. BryanPublished in 202410.33232/001c.120559
- 16.Author(s): Bradley Greig, David Prelogović, Yuxiang Qin, Yuan-Sen Ting, Andrei MesingerPublished in 202410.1093/mnras/stae1984
- 17.Author(s): Alessandro Morandini, Torben Ferber, Felix KahlhoeferPublished in 202410.1140/epjc/s10052-024-12557-4
- 18.Author(s): Bradley Greig, David Prelogović, Jordan Mirocha, Yuxiang Qin, Yuan-Sen Ting, Andrei MesingerPublished in 202410.1093/mnras/stae1983
- 19.Author(s): Adam Coogan, Noemi Anau Montel, Konstantin Karchev, Meiert W Grootes, Francesco Nattino, Christoph WenigerPublished in 202310.1093/mnras/stad2925
- 20.Author(s): Samuel Gagnon-Hartman, John Ruan, Daryl HaggardPublished in Monthly Notices of the Royal Astronomical Society by Oxford University Press (OUP) in 2023, page: 1-1310.1093/mnras/stad069
- 21.Author(s): Anchal Saxena, Alex Cole, Simon Gazagnes, P Daniel Meerburg, Christoph Weniger, Samuel J WittePublished in 202310.1093/mnras/stad2659
- 22.Author(s): Marco Crisostomi, Kallol Dey, Enrico Barausse, Roberto TrottaPublished in Physical Review D by American Physical Society (APS) in 202310.1103/physrevd.108.044029
- 23.Author(s): James Alvey, Mathis Gerdes, Christoph WenigerPublished in 202310.1093/mnras/stad2458
- 24.Author(s): A. Amerio, A. Cuoco, N. FornengoPublished in Journal of Cosmology and Astroparticle Physics by IOP Publishing in 2023, page: 02910.1088/1475-7516/2023/09/029
- 25.Author(s): Uddipta Bhardwaj, James Alvey, Benjamin Kurt Miller, Samaya Nissanke, Christoph WenigerPublished in 202310.1103/physrevd.108.042004
- 26.Author(s): Matteo Biagetti, Juan Calles, Lina Castiblanco, Alex Cole, Jorge NoreñaPublished in 202210.1088/1475-7516/2022/10/002
- 27.Author(s): Alex Cole, Benjamin K. Miller, Samuel J. Witte, Maxwell X. Cai, Meiert W. Grootes, Francesco Nattino, Christoph WenigerPublished in Journal of Cosmology and Astroparticle Physics by IOP Publishing in 2022, page: 00410.1088/1475-7516/2022/09/004
Contributors
Contact person
Benjamin Kurt Miller
Related projects
DarkGenerators
Interpretable large scale deep generative models for Dark Matter searches