[Paper Review] Scalable Discrete Sampling as a Multi-Armed Bandit Problem
This paper proposes a novel approach to scalable discrete sampling in large-scale Bayesian inference by modeling the problem as a Multi-Armed Bandit (MAB) with a finite reward population, using the Gumbel-Max trick to enable efficient subsampling. The authors introduce three algorithms—Racing-Normal, adaptive lil’UCB, and Racing-Threshold—offering theoretical guarantees on approximation error and achieving up to 3x speedup over exact sampling with negligible bias in real-world tasks.
Drawing a sample from a discrete distribution is one of the building components for Monte Carlo methods. Like other sampling algorithms, discrete sampling suffers from the high computational burden in large-scale inference problems. We study the problem of sampling a discrete random variable with a high degree of dependency that is typical in large-scale Bayesian inference and graphical models, and propose an efficient approximate solution with a subsampling approach. We make a novel connection between the discrete sampling and Multi-Armed Bandits problems with a finite reward population and provide three algorithms with theoretical guarantees. Empirical evaluations show the robustness and efficiency of the approximate algorithms in both synthetic and real-world large-scale problems.
Motivation & Objective
- Address the computational bottleneck in discrete sampling when variables exhibit high statistical dependency across many data points or potential functions.
- Overcome the high computational cost of exact sampling in large-scale graphical models and Bayesian inference where the number of contributing factors $N$ is large.
- Develop an approximate sampling framework that maintains low bias while achieving significant speedup through subsampling, particularly in settings with large $N$.
- Establish a theoretical connection between discrete sampling and Multi-Armed Bandits with finite reward populations, enabling new algorithmic design principles.
- Provide a unified framework that generalizes and improves upon existing subsampling-based MCMC methods like approximate Metropolis-Hastings and slice sampling.
Proposed method
- Reformulate discrete sampling from a distribution $p(X=x) \propto \tilde{p}(X=x) = f_0(x) \prod_{n=1}^N f_n(x)$ as a Multi-Armed Bandit (MAB) problem using the Gumbel-Max trick.
- Model each possible value $x \in \mathcal{X}$ as an arm in a finite-armed MAB, where the expected reward corresponds to the log-probability $\log \tilde{p}(x)$.
- Apply the Racing algorithm to sequentially sample and compare arms (values) with high probability of being optimal, using subsampled estimates of $\tilde{p}(x)$.
- Introduce Racing-Normal, a variant that uses normal approximation to the sum of i.i.d. random variables to accelerate convergence and reduce sample complexity.
- Design adaptive lil’UCB and Racing-Threshold as alternative strategies to balance exploration and exploitation with theoretical bounds on error and sample usage.
- Ensure theoretical guarantees on approximation error and sample complexity, with an upper bound of $N|\mathcal{X}|$ on the number of required evaluations.
Experimental results
Research questions
- RQ1Can discrete sampling in high-dependency models be efficiently approximated using a Multi-Armed Bandit framework?
- RQ2How can subsampling be used to reduce computational cost in discrete sampling while maintaining low bias and strong theoretical guarantees?
- RQ3What is the performance trade-off between speed and accuracy in approximate discrete sampling, and how can it be optimized?
- RQ4Can the MAB framework be adapted to finite reward populations to improve sampling efficiency in large-scale inference?
- RQ5How do the proposed algorithms compare empirically to exact sampling and existing approximate MCMC methods in real-world Bayesian inference tasks?
Key findings
- The Racing-Normal algorithm achieves up to 3x speedup over exact Gibbs sampling in the author coreference problem, with no noticeable bias in clustering performance.
- Sub Gibbs sampling reduced the number of factor evaluations by approximately 5x near convergence compared to exact Gibbs, while maintaining similar F-1 scores.
- In synthetic experiments, the Racing-Normal algorithm achieved a 2x higher effective sample size than the baseline Sub algorithm after burn-in, with a relative error of $2 \times 10^{-3}$.
- The empirical error rate in the coreference task was $0.046$, below the target $\delta = 0.05$, indicating strong control of approximation error.
- The Racing algorithm framework unifies subsampling-based MCMC methods, including approximate Metropolis-Hastings and slice sampling, with improved robustness.
- Adaptive lil’UCB showed better sample complexity scaling with respect to the number of arms $D$, though it underperformed Racing-Normal in practice.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.