Papers
Topics
Authors
Recent
Search
2000 character limit reached

Partial Rejection Sampling (PRS)

Updated 22 April 2026
  • Partial Rejection Sampling (PRS) is a framework for generating perfect samples from a product distribution conditioned on complex, hard constraints.
  • It improves efficiency by resampling only the local subsets of variables that violate constraints, overcoming the infeasibility of classical rejection sampling.
  • PRS extends to continuous state spaces and statistical physics models, enabling parallelizable algorithms with strong theoretical guarantees.

Partial Rejection Sampling (PRS) is a probabilistic algorithmic framework for generating perfect (i.e., exactly drawn) samples from a product distribution conditioned on a collection of “hard” constraints (“bad-event” exclusions). Unlike classical rejection sampling, which is typically infeasible for rare events due to global rejection probabilities, PRS strategically resamples only local subsets of the variables responsible for constraint violations, yielding vastly improved efficiency in many settings. PRS is closely related to algorithmic versions of the Lovász Local Lemma (LLL), notably the Moser–Tardos resampling procedure, but with the extra requirement that the output follows the correct conditioned distribution (Jerrum, 2021).

1. Formal Framework and Algorithmic Description

Let X=(X1,,Xn)X = (X_1, \ldots, X_n) be random variables, each XiX_i taking values in a finite domain DiD_i according to a prescribed marginal, inducing the product measure DD. A set of mm constraints (or “clauses”) {ϕk}k=1m\{\phi_k\}_{k=1}^m act as “bad events,” each depending on a subset of variables (ϕk){1,,n}(\phi_k) \subset \{1,\dots,n\}. The global “acceptance” event is Φ(X)=k=1mϕk(X)\Phi(X) = \bigwedge_{k=1}^m \phi_k(X), and the target is the distribution DΦD_\Phi, i.e., DD conditioned on XiX_i0.

A key scenario is the extremal instance: whenever two clauses share a variable, they cannot both be violated. In this case, the PRS loop is as follows:

  1. Sample XiX_i1 from XiX_i2.
  2. While XiX_i3 does not hold:
    • Select a violated clause XiX_i4.
    • Resample the variables in XiX_i5 according to their product marginal.
  3. Return XiX_i6.

On each step, only the minimal local set needed to resolve the current violation is resampled, not the full variable set (Jerrum, 2021).

2. Theoretical Guarantees and Complexity

For extremal instances:

  • Correctness: The PRS output is distributed exactly as XiX_i7 upon termination.
  • Almost sure termination: For any satisfiable XiX_i8, the algorithm halts with probability 1.
  • Expected resampling counts: The expected number of times each clause is resampled can be expressed in terms of the probabilities XiX_i9 and the dependency structure, via inclusion–exclusion formulas.
  • Expected iterations: The expected number of iterations of the while-loop is at most

DiD_i0

Polynomial expected runtime is established for archetypal combinatorial objects, including sink-free orientations, uniform spanning trees (via cycle-popping), root-connected subgraphs, and bicircular matroids, typically by bounding the expected number of iterations through combinatorial injection or bijection arguments (Jerrum, 2021).

3. Extensions to Continuous State Spaces and Gibbs Point Processes

PRS generalizes to continuous spaces and infinite-state systems under suitable measurability and locality conditions:

  • Hard disks and hard spheres models: In the continuous setting, PRS samples from point processes conditioned on geometric exclusion (e.g., no two points closer than DiD_i1). Here, the “bad events” correspond to pairs within forbidden distance; the resampling region is the union of DiD_i2-balls around violated points. Under sufficiently low intensities, PRS terminates in DiD_i3 rounds with total cost DiD_i4 (Guo et al., 2018).
  • Gibbs point processes: For pairwise interaction models with finite interaction range, PRS operates on a decomposition of the space into cells. Bad events are pairs of cells with “conflicting” configurations (assessed via auxiliary uniform variables), and only the necessary cells are refreshed per resampling step. The sampling procedure achieves expected DiD_i5 wall-clock time and is naturally parallelizable (Moka et al., 2019).

For the hard disks model in DiD_i6, Wellens introduced a refinement in area-union analysis leveraging the "spreading apart" geometric fact (Bollobás; Bezdek–Connelly), which states that the area of a union of disks increases under uniform radial expansion of centers. This yields a provable increase in the maximum density threshold for PRS's guaranteed geometric convergence from DiD_i7 to DiD_i8, representing an ∼11% improvement (Wellens, 2018).

4. Applications and Algorithmic Innovations

Partial Rejection Sampling has been pivotal in perfect sampling for several combinatorial and statistical physics models:

  • Combinatorial structures: Uniform generation of sink-free orientations, spanning trees (cycle-popping), root-connected subgraphs (cluster-popping), and bicircular matroids, through efficient CNF-type encodings of the forbidden set and exploitation of extremality or quasi-extremality (Jerrum, 2021).
  • Graph colorings: Direct application of classical PRS fails for uniform DiD_i9-colorings of graphs due to global propagation of bad events. Recent work employs a "soft coloring" relaxation: auxiliary continuous variables induce passive states that prevent runaway resampling, and a hybrid decomposition recursively reduces the problem size. This hybrid variant achieves complexity DD0 (with DD1 the number of relaxation levels), and empirical evidence suggests DD2, leading to conjectured linear time for general graphs (Moka et al., 5 Apr 2026).
  • Gibbs and area-interaction processes: PRS has enabled perfect samples for pairwise- and area-interacting configurations, delivering parallel algorithms that outperform previous methods for moderate and high-dimensional regimes (Moka et al., 2019).

5. PRS Versus Classical Rejection Methods

Classical rejection sampling attempts to sample DD3 from DD4 until the global predicate DD5 is satisfied, which has expected cost DD6. For typical applications, DD7 can be exponentially small in problem size, rendering classical methods intractable. By contrast, PRS resamples only the local variables implicated in constraint violations. If the local violation probabilities are only polynomially small and dependencies are localized, PRS achieves exponential speedup over the naïve method (Jerrum, 2021).

Softening the constraints (e.g., via auxiliary variables or partial relaxations) further enhances efficiency by capping the size of resampling sets even in dense or globally connected instances. Adaptive schemes such as soft-coloring PRS for graph colorings exemplify these advances (Moka et al., 5 Apr 2026).

6. Connections to the Moser–Tardos Algorithm and the Lovász Local Lemma

PRS can be viewed as an algorithmic extension of the Moser–Tardos resampling procedure under the Lovász Local Lemma (LLL), but with a crucial distinction: while Moser–Tardos guarantees the discovery of some feasible assignment under LLL conditions, PRS ensures the resulting output is also a perfect sample from the target conditioned measure. Achieving the correct output distribution necessitates technical considerations such as order independence, local commutativity (the "diamond property"), and the "resampling table" argument for correctness (Jerrum, 2021).

Extensions covering quasi-extremal and lopsided dependency cases, Shearer-region criteria, and strongly-mixing regimes broaden the applicability of PRS to a range of constraint families. Continuous models and spin systems are likewise encompassed by suitable adaptation of the “bad event” framework and localized resampling logic (Jerrum, 2021, Guo et al., 2018).

7. Variants, Implementation, and Further Directions

  • Partial Rejection Control (PRC): In sequential Monte Carlo contexts, the PRC variant rejects only moves with low incremental importance weights, reducing the variance of particle weights and improving practical performance in likelihood-free and ABC settings (Peters et al., 2008).
  • Soft constraints and auxiliary variables: For non-extremal or globally connected dependencies, softening constraints enables scalable PRS applications, e.g., soft-coloring for sampling uniform graph colorings (Moka et al., 5 Apr 2026).
  • Parallelizability: Cell-wise and local resampling independence render PRS highly amenable to parallel implementation, in contrast to inherently sequential approaches like coupling-from-the-past (CFTP) (Moka et al., 2019, Moka et al., 5 Apr 2026).
  • Open problems: Raising the density/intensity threshold in geometric sampling, extending geometric facts to higher dimensions or varying radii, and further reducing the resampling set size in general constraint systems are active topics. The empirical observation that the requisite number of softening levels in hybrid PRS for colorings remains bounded warrants theoretical explanation (Wellens, 2018, Moka et al., 5 Apr 2026).

In summary, Partial Rejection Sampling constitutes a general, rigorously analyzable, and adaptable framework for uniform and perfect random generation in discrete and continuous spaces, especially where naive resampling is prohibitive and local constraint structure can be exploited (Jerrum, 2021, Guo et al., 2018, Moka et al., 2019, Moka et al., 5 Apr 2026, Peters et al., 2008, Wellens, 2018).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Partial Rejection Sampling (PRS).