Novel Matrix Hit and Run for Sampling Polytopes and Its GPU Implementation

Mario Vazquez Corte, Luis V. Montiel
4/14/2021
cs.CGcs.MScs.PF

Official code: uumami/mhar (22 stars, Jupyter Notebook, last commit 2024-02-15).

Abstract

We propose and analyze a new Markov Chain Monte Carlo algorithm that generates a uniform sample over full and non-full dimensional polytopes. This algorithm, termed "Matrix Hit and Run" (MHAR), is a modification of the Hit and Run framework.

Show full abstract

For the regime $n^{1+\frac{1}{3}} \ll m$, MHAR has a lower asymptotic cost per sample in terms of soft-O notation ($\SO$) than do existing sampling algorithms after a \textit{warm start}. MHAR is designed to take advantage of matrix multiplication routines that require less computational and memory resources. Our tests show this implementation to be substantially faster than the \textit{hitandrun} R package, especially for higher dimensions. Finally, we provide a python library based on Pytorch and a Colab notebook with the implementation ready for deployment in architectures with GPU or just CPU.

View on arXivView PDF

Code Implementations(1)

uumami/mharOfficial100%

mhar

224Jupyter Notebook, PythonSep 29, 20192 years ago

Similar Papers

Cite this paper

@article{corte2021novel,
  title  = {Novel Matrix Hit and Run for Sampling Polytopes and Its GPU Implementation},
  author = {Mario Vazquez Corte and Luis V. Montiel},
  year   = {2021},
  eprint = {2104.07097},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.07097}
}

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/2104.07097.svg)](https://codeofpaper.com/paper/2104.07097)

Discussion