English

PolytopeWalk: Sparse MCMC Sampling over Polytopes

Computation 2024-12-10 v1 Machine Learning Machine Learning

Abstract

High dimensional sampling is an important computational tool in statistics and other computational disciplines, with applications ranging from Bayesian statistical uncertainty quantification, metabolic modeling in systems biology to volume computation. We present PolytopeWalk\textsf{PolytopeWalk}, a new scalable Python library designed for uniform sampling over polytopes. The library provides an end-to-end solution, which includes preprocessing algorithms such as facial reduction and initialization methods. Six state-of-the-art MCMC algorithms on polytopes are implemented, including the Dikin, Vaidya, and John Walk. Additionally, we introduce novel sparse constrained formulations of these algorithms, enabling efficient sampling from sparse polytopes of the form K2={xRd  Ax=b,xk0}K_2 = \{x \in \mathbb{R}^d \ | \ Ax = b, x \succeq_k 0\}. This implementation maintains sparsity in AA, ensuring scalability to high dimensional settings (d>105)(d > 10^5). We demonstrate the improved sampling efficiency and per-iteration cost on both Netlib datasets and structured polytopes. PolytopeWalk\textsf{PolytopeWalk} is available at github.com/ethz-randomwalk/polytopewalk with documentation at polytopewalk.readthedocs.io .

Keywords

Cite

@article{arxiv.2412.06629,
  title  = {PolytopeWalk: Sparse MCMC Sampling over Polytopes},
  author = {Benny Sun and Yuansi Chen},
  journal= {arXiv preprint arXiv:2412.06629},
  year   = {2024}
}

Comments

17 pages

R2 v1 2026-06-28T20:28:06.298Z