pipette
ESEspañol

Sequince: a modular sequential Monte Carlo toolkit

Michael J. Williams, Christian E. A. Chapman-Bird

PreprintCode available

In the authors' words

Sequential Monte Carlo (SMC) methods approximate sequences of probability distributions using populations of weighted samples and are widely applicable, including in Bayesian inference and particle filtering. We present sequince, a modular Python toolkit for constructing SMC algorithms from reusable and extensible components. The toolkit provides modular steps for weighting, resampling, mutation, transformation, and control operations that are composed to implement different algorithms. It also includes prebuilt samplers for tempered SMC, persistent sampling and nested sampling via SMC. Its core components follow the Python Array API standard, supporting NumPy, JAX, PyTorch, and CuPy, enabling analyses on CPUs or GPUs. Random-number control and checkpointing support reproducible scientific workflows. This paper describes sequince v0.1.0 and its design as reusable infrastructure for methodological research and application of SMC methods.

Main resultThe abstract does not state a limitation.

Appeared: Friday, October 30. arXiv. Preprint, not yet peer-reviewed.

Authors' comment: 7 pages. Describes sequince v0.1.0, available on PyPI. Code: https://github.com/sequince-dev/sequince. Documentation: https://sequince.readthedocs.io/. PyPI: https://pypi.org/project/sequince/