Importance Sampling (IS) is a fundamental tool in Bayesian inference, yet it faces a significant limitation: the requirement to know the probability density of the proposal distribution ($q(x)$). This often forces practitioners to use simple, tractable proposals that fail to capture the nuances of complex, high-dimensional target distributions ($p(x)$). While Markov Chain Monte Carlo (MCMC) can handle such complexity, it is often computationally expensive and slow to converge.
This paper introduces Stein Importance Weighting, a "black-box" method that assigns optimal weights to samples from any source—even when the proposal density is unknown. By leveraging the Kernelized Stein Discrepancy (KSD), the authors bridge the gap between flexible sample generation and accurate expectation estimation.
Methodology: Stein Importance Weighting
The core innovation lies in treating weight assignment as a convex optimization problem rather than a simple ratio calculation. The method proceeds through three key steps:
- Stein’s Identity: For a target distribution $p(x)$, there exists a class of functions whose expectation is zero. Crucially, this identity only requires the score function $\nabla \log p(x)$, bypassing the need for the normalization constant of $p(x)$.
- Kernelized Stein Discrepancy (KSD): By applying a kernel function to Stein’s identity, the authors derive a metric that quantifies the discrepancy between a weighted sample set and the target distribution.
- Quadratic Programming: Optimal weights are found by minimizing the KSD subject to non-negativity ($w_i \ge 0$) and normalization ($\sum w_i = 1$) constraints. This formulation results in a standard convex quadratic programming (QP) problem.
Because the algorithm only considers the samples' positions relative to the target $p(x)$, it is truly "black-box"—it does not require any information about the proposal mechanism.
Experimental Evaluation
The authors evaluated the method across several benchmarks, ranging from toy examples to high-dimensional problems and real-world datasets:
- Gaussian Mixture Model (GMM): A 2D distribution with 20 components to test handling of non-Gaussianity.
- High-Dimensional Gaussian: Testing scalability up to 100 dimensions.
- Bayesian Probit Regression: A simulated classification task with 10 features.
- Forest Covtype Dataset: A large-scale real-world dataset (54 features) used to refine samples from Stochastic Gradient Langevin Dynamics (SGLD).
Key Insights and Results
Robustness and Accuracy
Stein Importance Sampling consistently outperforms traditional methods. In GMM experiments, it achieved significantly lower Mean Squared Error (MSE) than uniform weighting or Kernel Density Estimation (KDE)-based importance sampling.
The "Paradox" of Less Information
A striking finding is that ignoring the proposal distribution $q(x)$ can actually lead to better results than using the exact density. The optimization process acts as a variance reduction technique, similar to a multiplicative control variate, providing more stable estimates.
High-Dimensional Stability
Unlike KDE-based methods, which degrade rapidly as dimensionality increases, Stein weights remain effective in high-dimensional spaces. The inclusion of non-negativity and self-normalization constraints provides critical stability compared to unconstrained methods like standard Control Functionals.
MCMC Refinement
The method proves particularly useful for correcting "short" MCMC chains. By reweighting samples that haven't fully converged, Stein Importance Sampling can provide consistent estimates, making approximate MCMC methods more viable for large-scale data.
Limitations and Future Directions
While promising, the method has some trade-offs:
- Computational Cost: Solving the QP has a complexity of $O(n^2)$ to $O(n^3)$, which may limit its use for extremely large sample sizes.
- Kernel Selection: Performance is sensitive to the choice of kernel and bandwidth. While heuristics like the "median trick" are used, more principled selection methods are needed.
- Theoretical Convergence: Although the paper demonstrates an $O(n^{-1/2})$ convergence rate, identifying broader conditions for "super-efficient" (faster than $1/\sqrt{n}$) rates remains an open research question.
Summary updated