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): Gert Kluge, Giacomo D'Amico, Julia Isabel Djuvsland, Heidi SandakerPublished in Proceedings of The European Physical Society Conference on High Energy Physics — PoS(EPS-HEP2023) by Sissa Medialab in 2024, page: 14110.22323/1.449.0141
- 2.Author(s): Uddipta BhardwajPublished in Proceedings of The European Physical Society Conference on High Energy Physics — PoS(EPS-HEP2023) by Sissa Medialab in 2023, page: 06610.22323/1.449.0066
- 1.Author(s): David Cerdeño, Martin de los Rios, Andres D. PerezPublished in Journal of Cosmology and Astroparticle Physics by IOP Publishing in 2025, page: 03810.1088/1475-7516/2025/01/038
- 2.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 202510.1093/mnras/staf908
- 3.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
- 4.Author(s): Kierthika Chathirathas, Torben Ferber, Felix Kahlhoefer, Alessandro MorandiniPublished in The European Physical Journal C by Springer Science and Business Media LLC in 202510.1140/epjc/s10052-025-13795-w
- 5.Author(s): Q. Decant, A. Dimitriou, L. Lopez-Honorez, B. ZaldivarPublished in Journal of Cosmology and Astroparticle Physics by IOP Publishing in 2025, page: 00410.1088/1475-7516/2025/07/004
- 6.Author(s): Androniki Dimitriou, Daniel G. Figueroa, Bryan ZaldívarPublished in Journal of Cosmology and Astroparticle Physics by IOP Publishing in 2024, page: 03210.1088/1475-7516/2024/09/032
- 7.Author(s): Joanna Berteaud, Christopher Eckner, Francesca Calore, Maïca Clavel, Daryl HaggardPublished in The Astrophysical Journal by American Astronomical Society in 2024, page: 14410.3847/1538-4357/ad6b1e
- 8.Author(s): James Alvey, Uddipta Bhardwaj, Valerie Domcke, Mauro Pieroni, Christoph WenigerPublished in Physical Review D by American Physical Society (APS) in 202410.1103/physrevd.109.083008
- 9.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
- 10.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 The Open Journal of Astrophysics by Maynooth University in 202410.33232/001c.120559
- 11.Author(s): Bradley Greig, David Prelogović, Yuxiang Qin, Yuan-Sen Ting, Andrei MesingerPublished in Monthly Notices of the Royal Astronomical Society by Oxford University Press (OUP) in 2024, page: 2530-254510.1093/mnras/stae1984
- 12.Author(s): Alessandro Morandini, Torben Ferber, Felix KahlhoeferPublished in The European Physical Journal C by Springer Science and Business Media LLC in 202410.1140/epjc/s10052-024-12557-4
- 13.Author(s): Bradley Greig, David Prelogović, Jordan Mirocha, Yuxiang Qin, Yuan-Sen Ting, Andrei MesingerPublished in Monthly Notices of the Royal Astronomical Society by Oxford University Press (OUP) in 2024, page: 2502-252910.1093/mnras/stae1983
- 14.Author(s): Adam Coogan, Noemi Anau Montel, Konstantin Karchev, Meiert W Grootes, Francesco Nattino, Christoph WenigerPublished in Monthly Notices of the Royal Astronomical Society by Oxford University Press (OUP) in 2023, page: 66-7810.1093/mnras/stad2925
- 15.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
- 16.Author(s): Anchal Saxena, Alex Cole, Simon Gazagnes, P Daniel Meerburg, Christoph Weniger, Samuel J WittePublished in Monthly Notices of the Royal Astronomical Society by Oxford University Press (OUP) in 2023, page: 6097-611110.1093/mnras/stad2659
- 17.Author(s): James Alvey, Mathis Gerdes, Christoph WenigerPublished in Monthly Notices of the Royal Astronomical Society by Oxford University Press (OUP) in 2023, page: 3662-368110.1093/mnras/stad2458
- 18.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
- 19.Author(s): Uddipta Bhardwaj, James Alvey, Benjamin Kurt Miller, Samaya Nissanke, Christoph WenigerPublished in Physical Review D by American Physical Society (APS) in 202310.1103/physrevd.108.042004
- 20.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
- 21.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
- 22.Author(s): Matteo Biagetti, Juan Calles, Lina Castiblanco, Alex Cole, Jorge NoreñaPublished in Journal of Cosmology and Astroparticle Physics by IOP Publishing in 2022, page: 00210.1088/1475-7516/2022/10/002
Contributors
Contact person
Related projects
DarkGenerators
Interpretable large scale deep generative models for Dark Matter searches