Skip to content

Uniform Race: Parameter-Free Approximate Rejection Sampling

Seiyun Shin, Juhyeong Pang, Kwang-Sung Jun

cs.LG

Abstract

Consider the approximate sampling problem: given NN independent samples from a proposal distribution μμ, the goal is to select one whose distribution is close to a target ππ specified only up to a normalizing constant. The seminal work of Block & Polyanskiy (2023) provides a total variation (TV) error bound for approximate rejection sampling (RS) as a function of the algorithm's acceptance threshold MM. The ideal threshold MM that minimizes the bound, however, depends on properties of (π,μ)(π, μ) that are typically unavailable from the observed sample. This raises a natural question: Can one attain the best RS guarantee without taking the best MM as input? We answer this question affirmatively by proposing a parameter-free sampling algorithm called uniform race (UR). UR computes a score for each sample yy that is the importance weight π(y)/μ(y)π(y)/μ(y) divided by an independent uniform random variable and then returns the one with the highest score. We prove that UR attains the best MM-tuned TV error bound for RS. That is, UR, without knowing the best MM, achieves the same performance guarantee as RS that takes the best MM as input. We also prove that UR has no larger TV error than the budget-calibrated version of the rejection sampler of Rohatgi et al. (2025) and sampling importance resampling (SIR). In particular, we identify instances where UR's error is exponentially smaller in NN than that of these two baselines. Furthermore, we establish conditions under which attaining this RS guarantee for every (π,μ)(π, μ) uniquely determines the selection probabilities as those of UR. Finally, test-time scaling experiments on LLM reasoning tasks corroborate the theoretical comparisons and demonstrate that UR remains competitive without requiring threshold selection.

Create a lesson

Metadata

Categories
cs.LG, stat.ML
Comments
51 pages, 5 figures