Abstract
Suppose we are given access to $n$ independent samples from a distribution $\mu$ and we wish to output one of them with the goal of making the output distributed as close as possible to a target distribution $\nu$. In this work, we show that the optimal total variation distance as a function of $n$ is given by $\tilde\Theta(\frac{D}{f’(n)})$ over the class of all pairs $\nu, \mu$ with a bounded $f$-divergence $D_f(\nu\|\mu) \leq D$. Previously, this question was studied only for the case when the Radon-Nikodym derivative of $\nu$ with respect to $\mu$ is uniformly bounded. We then consider an application in the field of smoothed online learning, where we show that recent results on the minimax regret and the regret of oracle-efficient algorithms still hold even under relaxed constraints on the adversary (to have bounded $f$-divergence, as opposed to bounded Radon-Nikodym derivative). Finally, we also study the efficacy of importance sampling for mean estimates uniform over a function class and compare importance sampling with rejection sampling.
Introduction
Rejection sampling is a cornerstone of probabilistic modeling and statistical computation. Traditionally, the theoretical guarantees for rejection sampling have relied on a restrictive assumption: the existence of a hard upper bound $M$ on the likelihood ratio (the Radon-Nikodym derivative) between the target distribution $\nu$ and the base distribution $\mu$. In many modern, high-dimensional settings—such as those involving Gaussian noise—this ratio can be infinite or grow exponentially, rendering exact rejection sampling impossible.
In this paper, Adam Block and Yury Polyanskiy (MIT) relax this constraint. They investigate approximate rejection sampling, where the goal is to produce a sample that is $\epsilon$-close to the target in Total Variation (TV) distance, assuming only that the $f$-divergence between the distributions is bounded. This shift from hard ratios to "soft" $f$-divergences provides a more robust framework for both sampling theory and its applications in online learning.
Approximate Rejection Sampling and Sample Complexity
The core problem addressed is as follows: given $n$ i.i.d. samples from $\mu$, how close can we get to $\nu$ in TV distance? The authors establish that the optimal TV distance scales as $\tilde{\Theta}(D/f'(n))$, where $D$ is the bound on the $f$-divergence $D_f(\nu\|\mu)$.
The Optimality of Von Neumann’s Algorithm
A significant finding of this work is that Von Neumann’s classic 1951 rejection sampling algorithm is essentially optimal when properly tuned. The authors analyze a modified version of the algorithm that "clips" the target distribution, effectively ignoring rare regions where the likelihood ratio is excessively high. This allows the sampler to succeed with high probability using a finite number of samples, even when the global likelihood ratio is unbounded.
Information-Theoretic Bounds
To prove the tightness of their results, the authors employ information-theoretic tools, specifically the $E_\gamma$ divergence (commonly used in channel coding). By constructing "worst-case" distribution pairs, they demonstrate that the sample complexity is fundamentally limited by the growth of the derivative $f'$.
- KL Divergence: If the constraint is based on KL divergence, the required samples scale as $n \approx \exp(D/\epsilon)$.
- $\chi^2$ Divergence: If the constraint is based on $\chi^2$ divergence, the complexity improves to $n \approx D/\epsilon$.
Applications to Smoothed Online Learning
The paper extends these sampling insights to the field of smoothed online learning. In standard smoothed analysis, an adversary is constrained to choose contexts such that their distribution is "smooth" relative to a base measure (usually defined by a hard bound on the Radon-Nikodym derivative).
By applying their rejection sampling bounds and a novel coupling technique, the authors show that this "smoothness" requirement can be significantly relaxed. They prove that sublinear regret is achievable even when the adversary is only constrained by a bounded $f$-divergence.
Key Learning Results
- Renyi-Smoothed Adversaries: For adversaries constrained by Renyi divergence, oracle-efficient algorithms can achieve regret rates of $O(T^{\frac{2\lambda}{2\lambda-1}})$. This recovers standard results as the smoothing parameter $\lambda \to \infty$.
- FTPL Improvements: The authors improve the regret scaling for the "Follow the Perturbed Leader" (FTPL) algorithm to $\sigma^{-1/4}$ (where $\sigma$ represents smoothness), addressing an open question regarding its efficiency in certain contexts.
Conclusion and Future Directions
This research bridges the gap between sampling theory and online learning by providing a unified framework based on $f$-divergences. While the work establishes tight bounds for many scenarios, it also highlights areas for future exploration, such as the relatively slow regret rates (logarithmic in $T$) for KL-divergence smoothing. Additionally, extending oracle-efficient proper algorithms to weaker divergences remains a technical challenge. Nonetheless, the results demonstrate that approximate rejection sampling is a powerful tool for making machine learning algorithms more robust to complex, real-world noise distributions.
Summary updated