---
title: Probabilistic Rejection Sampling
url: https://www.emergentmind.com/topics/probabilistic-rejection-sampling
type: topic
---

# Probabilistic Rejection Sampling

Probabilistic rejection sampling is a foundational class of Monte Carlo algorithms for generating exact independent samples from complex or intractable probability distributions by leveraging a tractable proposal distribution and a stochastic accept/reject criterion. The method applies broadly in discrete, continuous, and geometric probability settings, and underlies numerous theoretical results and practical algorithms in stochastic simulation, computational statistics, and machine learning.

## 1. The Rejection Sampling Principle

At its core, rejection sampling generates proposals $x$ from a tractable distribution $q(x)$ and accepts each proposal with probability proportional to the ratio of the (unnormalized) target density $f(x)$ to the scaled proposal $Mq(x)$, where $M$ is a known constant satisfying $f(x) \leq Mq(x)$ for all $x$. The protocol ensures that the distribution of accepted samples matches the target $f(x)/Z$ exactly, with $Z$ the normalizing constant. Explicitly, the acceptance probability is $\alpha(x) = f(x)/(M q(x))$, and the expected number of proposals per accepted sample is $M$ [1610.05683][2401.09696].

This principle extends seamlessly to discrete distributions: given $p_i$ as the probability weights and $q_i$ a proposal mass function, the acceptance rule is $U \le p_i / (M q_i)$ for $U \sim {\rm Uniform}[0,1]$ [2504.04267][2105.14166]. The method assumes only that $q$ is easy to sample from and to evaluate.

## 2. Information-Theoretic and Computational Aspects

Knuth and Yao's entropy theory of discrete nonuniform random variate generation characterizes the bit-complexity of exact samplers, showing that any perfect sampler requires at least $H(P)$ random bits per draw on average (where $H(P)$ is the target entropy), with known constructions achieving average bit-costs in $[H(P), H(P)+2)$ but often with exponential space requirements [2504.04267]. Practical algorithms, notably the ALDR (Amplified Loaded Dice Roller) family, achieve bit-costs in the entropy-optimal range $[H(P), H(P)+2)$ with only $O(n \log m)$ space and preprocessing for rational $m$-type $P$ [2504.04267].

For real-valued problems, the number of "randomness-revealing steps" (e.g., revealed bits) required for accept/reject decisions is a key metric. For monotone increasing densities on $[0,1]^n$, the expected number of bit queries needed to decide $U \le f(X)$ for $n$-variate samples ranges from $\Omega(n)$ to $O(n^2)$ in the worst case [2509.24290], setting structural lower and upper bounds for adaptive algorithms probing random variates bitwise.

## 3. Adaptive and Nonparametric Proposal Construction

Naive rejection sampling is often inefficient due to high rejection rates for poorly chosen proposals. Recent techniques focus on adaptive or learned proposals:

- **Nearest-Neighbor Adaptive Rejection Sampling (NNARS):** Constructs piecewise-constant nonparametric envelopes on the basis of accumulative sample histories. For Hölder-continuous $f$ on $[0,1]^d$, NNARS achieves minimax near-optimal global rejection rates $O((\log n)^{s/d}\, n^{-s/d})$ for $n$ total function evaluations, assuming only $s \le 1$ regularity and $f \ge c_f > 0$ [1810.09390].
- **Pliable Rejection Sampling (PRS):** Uses a kernel density estimate from a pilot sample and adds a "floor" uniform component to create a data-dependent proposal $g^*(x)$. Under smoothness assumptions, PRS ensures with high probability (over proposal construction) that all accepted samples are exactly i.i.d. from $f$, with explicit guarantees on the fraction of accepted samples as a function of the computational budget and regularity $s$ [2604.22385].
- **Gradient-Refined Rejection Sampling:** For differentiable $f$, fits a parameterized proposal (e.g., a truncated Gaussian mixture) and optimizes it directly toward minimizing the empirical sup-norm of $f(x)/g_\phi(x)$, updating adaptively to maximize acceptance and requiring no special analytic bounding [2310.00300].

For univariate log-concave targets, classical Adaptive Rejection Sampling (ARS) maintains a set of support points and builds a piecewise-linear exponential envelope; acceptance rates approach unity as more points are added [1509.07985], but computational cost per draw increases. Fixed-node "Cheap ARS" (CARS) versions balance acceptance and per-draw computational cost by fixing the number of nodes and swapping them adaptively [1509.07985].

## 4. Structured Proposal Schemes and Partition-Based Methods

For targets with partially structured or composite form, proposal construction via weighted mixtures or vertical partitioning yields efficient exact samplers:

- **Vertical Weighted Strips (VWS):** For targets $f(x) = g(x)w(x)$, with $g$ a tractable base density and $w(x)$ an arbitrary nonnegative weight, VWS partitions the domain, and on each strip constructs a local constant upper bound of $w(x)$, forming a finite mixture envelope $q(x)$. The rejection rate is controlled via an explicit upper bound involving these subregion majorants and minorants [2401.09696]; adaptive refinement focuses effort on regions making the largest contribution to non-tightness.
- **Self-Tuned VWS in Gibbs Samplers:** When applying VWS within large-scale Gibbs samplers (e.g., small area estimation applications), the proposal is gradually refined and strips with negligible contribution are removed, keeping computational complexity tractable and acceptance rates high (often $>$90%) even for non-logconcave or non-standard conditionals [2509.17155].

## 5. Specialized Methods: Geometric, Divide-and-Conquer, and Data-Augmentation

Rejecting sampling also underlies advances in geometrically structured problems and tractable simulation of complex models:

- **Curvature-Based Rejection Sampling (CURS):** On Riemannian manifolds, when the target is radially symmetric around a point ($f(x) = f(r(x))$), volume comparison theorems (e.g., Bishop-Gromov) deliver global comparison envelopes: the proposal is derived from a constant-curvature model $J_{K_1}(r)$, and the acceptance probability is exactly controlled by integrals of $| \det A(r,s) | / J_{K_1}(r)$ [2510.24537].
- **Probabilistic Divide and Conquer (PDC):** PDC algorithms improve classical rejection cost, sometimes from superlinear to constant, by factorizing the proposal and conditioning, recursively or non-recursively, on partial information about the sample [1110.3856]. In integer partition sampling, recursive PDC leverages self-similarity in generating functions and bit-peeling, yielding constant expected rejection cost, in contrast to naive rejection's polynomial growth.
- **Data Augmentation for Doubly-Intractable Posteriors:** When data-generation in a model involves rejection sampling, one can introduce the explicit latent variables corresponding to rejected proposals. This augmentation often simplifies the joint distribution and enables efficient MCMC for otherwise doubly-intractable posteriors by alternating between updating model parameters and regenerating rejected proposals via rerunning the rejection sampler [1406.6652].

## 6. Extensions: Universal Probabilistic Programming and Rejection in MCMC

In universal probabilistic programming systems, explicit rejection sampling loops inside user programs can cause variance pathologies for amortized importance-sampling estimators. Collapsing out rejection loops into collapsed weights, corrected by estimates of acceptance probabilities, yields unbiased and finite-variance estimators regardless of unbounded rejection-loop depths, as shown in amortized rejection-sampling estimators [1910.09056]. This approach is implemented in open-source platforms and enables rigorous, automated inference in programs with explicit user rejection loops.

Further, in Markov chain Monte Carlo (MCMC), locally optimal control of rejection rates can have dramatic algorithmic effects. In discrete-variable MCMC, controlling rejection rate via a one-parameter transition kernel provides exponential speedup in autocorrelation time, and the direct relationship between rejection probability and sampling efficiency is explicated and exploited [2208.03935].

---

The field of probabilistic rejection sampling continues to integrate advances from nonparametric density estimation, geometric analysis, computational theory, and adaptive MCMC, delivering both theoretical optimality (in minimax and entropy senses) and state-of-the-art practical performance across complex simulation and inference contexts. Each method brings provable guarantees under explicit regularity, smoothness, or combinatorial conditions, and the growing ecosystem of adaptive, partitioned, and learned-proposal strategies expands the applicability of rejection sampling for contemporary statistical and computational challenges.

Source: https://www.emergentmind.com/topics/probabilistic-rejection-sampling