PolytopeWalk: Sparse MCMC Sampling over Polytopes

Benny Sun, Yuansi Chen
12/9/2024
stat.COcs.LGstat.ML

No official code found. Best implementation: ethz-randomwalk/polytopewalk (18 stars, MIT, last commit 2025-07-25).

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 $\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 $K_2 = \{x \in \mathbb{R}^d \ | \ Ax = b, x \succeq_k 0\}$. This implementation maintains sparsity in $A$, ensuring scalability to high dimensional settings $(d > 10^5)$. We demonstrate the improved sampling efficiency and per-iteration cost on both Netlib datasets and structured polytopes. $\textsf{PolytopeWalk}$ is available at github.com/ethz-randomwalk/polytopewalk with documentation at polytopewalk.readthedocs.io .

View on arXivView PDF

Code Implementations(1)

MIT

PolytopeWalk: fast sparse and dense random walks on polytope, with C++ backend and Python interface

182C++, TeXMay 17, 20241 years agoMIT

Similar Papers

Cite this paper

@article{sun2024polytopewalk,
  title  = {PolytopeWalk: Sparse MCMC Sampling over Polytopes},
  author = {Benny Sun and Yuansi Chen},
  year   = {2024},
  eprint = {2412.06629},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.06629v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.06629.svg)](https://codeofpaper.com/paper/2412.06629)

Discussion