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 202610.1103/f5df-cxyg
- 2.Author(s): Huifang Lyu, James Alvey, Noemi Anau Montel, Mauro Pieroni, Christoph WenigerPublished in 202610.1088/2632-2153/ae51e1
- 3.Author(s): Philippa S. Cole, James Alvey, Lorenzo Speri, Christoph Weniger, Uddipta Bhardwaj, Davide Gerosa, Gianfranco BertonePublished in 202610.1103/4cd3-wfjr
- 4.Author(s): Oleg Savchenko, Guillermo Franco Abellán, Florian List, Noemi Anau Montel, Christoph WenigerPublished in 202610.1093/mnras/stag977
- 5.Author(s): Anchal Saxena, P Daniel Meerburg, Guochao Sun, Tzu-Ching Chang, Lluís Mas-RibasPublished in 202610.1093/mnras/stag1972
- 6.Author(s): Christopher Eckner, Noemi Anau Montel, Florian List, Francesca Calore, Christoph WenigerPublished in Physical Review D by American Physical Society (APS) in 202510.1103/p4gf-d2zt
- 7.Author(s): David Cerdeño, Martin de los Rios, Andres D. PerezPublished in 202510.1088/1475-7516/2025/01/038
- 8.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
- 9.Author(s): James Alvey, Uddipta Bhardwaj, Valerie Domcke, Mauro Pieroni, Christoph WenigerPublished in 202510.1103/physrevd.111.102006
- 10.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
- 11.Author(s): Q. Decant, A. Dimitriou, L. Lopez-Honorez, B. ZaldivarPublished in 202510.1088/1475-7516/2025/07/004
- 12.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
- 13.Author(s): Joanna Berteaud, Christopher Eckner, Francesca Calore, Maïca Clavel, Daryl HaggardPublished in 202410.3847/1538-4357/ad6b1e
- 14.Author(s): James Alvey, Uddipta Bhardwaj, Valerie Domcke, Mauro Pieroni, Christoph WenigerPublished in 202410.1103/physrevd.109.083008
- 15.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
- 16.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
- 17.Author(s): Bradley Greig, David Prelogović, Yuxiang Qin, Yuan-Sen Ting, Andrei MesingerPublished in 202410.1093/mnras/stae1984
- 18.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
- 19.Author(s): Bradley Greig, David Prelogović, Jordan Mirocha, Yuxiang Qin, Yuan-Sen Ting, Andrei MesingerPublished in 202410.1093/mnras/stae1983
- 20.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
- 21.Author(s): Samuel Gagnon-Hartman, John Ruan, Daryl HaggardPublished in 202310.1093/mnras/stad069
- 22.Author(s): Marco Crisostomi, Kallol Dey, Enrico Barausse, Roberto TrottaPublished in 202310.1103/physrevd.108.044029
- 23.Author(s): Anchal Saxena, Alex Cole, Simon Gazagnes, P Daniel Meerburg, Christoph Weniger, Samuel J WittePublished in 202310.1093/mnras/stad2659
- 24.Author(s): James Alvey, Mathis Gerdes, Christoph WenigerPublished in 202310.1093/mnras/stad2458
- 25.Author(s): A. Amerio, A. Cuoco, N. FornengoPublished in 202310.1088/1475-7516/2023/09/029
- 26.Author(s): Uddipta Bhardwaj, James Alvey, Benjamin Kurt Miller, Samaya Nissanke, Christoph WenigerPublished in 202310.1103/physrevd.108.042004
- 27.Author(s): Matteo Biagetti, Juan Calles, Lina Castiblanco, Alex Cole, Jorge NoreñaPublished in 202210.1088/1475-7516/2022/10/002
- 28.Author(s): Konstantin Karchev, Roberto Trotta, Christoph WenigerPublished in 202210.1093/mnras/stac3785
- 29.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
- 1.Author(s): Savchenko, O.Published in 2026
- 2.Author(s): Amerio, AurelioPublished in 202610.48550/arxiv.2605.27499
- 3.Author(s): Kühmichel, Lars, Huang, Jerry M., Pratz, Valentin, Arruda, Jonas, Olischläger, Hans, Habermann, Daniel, Kucharsky, Simon, Elsemüller, Lasse, Mishra, Aayush, Bracher, Niels, Jedhoff, Svenja, Schmitt, Marvin, Bürkner, Paul-Christian, Radev, Stefan T.Published in 202610.48550/arxiv.2602.07098
- 4.Author(s): Calore, Francesca, Eckner, Christopher, Manconi, Silvia, Xotta, Francesco, Zaharijaš, GabrijelaPublished in 202610.48550/arxiv.2611.30416
- 5.Author(s): Dax, Maximilian, Heimel, Theo, Louppe, GillesPublished in 202610.48550/arxiv.2607.21702
- 6.Author(s): Deistler, Michael, Boelts, Jan, Steinbach, Peter, Moss, Guy, Moreau, Thomas, Gloeckler, Manuel, Rodrigues, Pedro L. C., Linhart, Julia, Lappalainen, Janne K., Miller, Benjamin Kurt, Gonçalves, Pedro J., Lueckmann, Jan-Matthis, Schröder, Cornelius, Macke, Jakob H.Published in 202510.48550/arxiv.2508.12939
- 7.Author(s): Bhattacharjee, Pooja, Eckner, Christopher, Zaharijas, Gabrijela, Kluge, Gert, D'Amico, GiacomoPublished in 202510.48550/arxiv.2509.20578
- 8.Author(s): Anau Montel, N.Published in 2024
- 9.Author(s): Chatziioannou, K., Dent, T., Fishbach, M., Ohme, F., Pürrer, M., Raymond, V., Veitch, J.Published in 202410.48550/arxiv.2409.02037
- 10.Author(s): Gert Kluge, Giacomo D'Amico, Julia Isabel Djuvsland, Heidi SandakerPublished in 202410.22323/1.449.0141
- 11.Author(s): Miller, B.K.Published in 2024
- 12.Author(s): Andrew Zammit-Mangion, Matthew Sainsbury-Dale, Raphaël HuserPublished in 202410.1146/annurev-statistics-112723-034123
- 13.Author(s): Savchenko, Oleg, List, Florian, Abellán, Guillermo Franco, Montel, Noemi Anau, Weniger, ChristophPublished in 202410.48550/arxiv.2410.15808
- 14.Author(s): Anchal Saxena, Alex Cole, Simon Gazagnes, P. Daniel Meerburg, Christoph Weniger, Samuel J. WittePublished by arXiv in 202310.48550/arxiv.2303.07339
- 15.Author(s): Lemos, Pablo, Coogan, Adam, Hezaveh, Yashar, Perreault-Levasseur, LaurencePublished in 202310.48550/arxiv.2302.03026
- 16.Author(s): Uddipta BhardwajPublished in 202310.22323/1.449.0066
- 17.Author(s): Alvey, James, Bhardwaj, Uddipta, Nissanke, Samaya, Weniger, ChristophPublished in 202310.48550/arxiv.2308.06318
Contributors
Contact person
Benjamin Kurt Miller
Related projects
DarkGenerators
Interpretable large scale deep generative models for Dark Matter searches