[Paper Review] Stein Neural Sampler
This paper proposes two deep generative samplers—KSD-NS and Fisher-NS—that use neural networks to learn a transformation from a simple reference distribution to a complex, unnormalized target distribution. By minimizing kernelized Stein discrepancy and Fisher divergence, the methods achieve high-quality sample generation with theoretical guarantees and improved stability over traditional MCMC and variational methods.
We propose two novel samplers to generate high-quality samples from a given (un-normalized) probability density. Motivated by the success of generative adversarial networks, we construct our samplers using deep neural networks that transform a reference distribution to the target distribution. Training schemes are developed to minimize two variations of the Stein discrepancy, which is designed to work with un-normalized densities. Once trained, our samplers are able to generate samples instantaneously. We show that the proposed methods are theoretically sound and experience fewer convergence issues compared with traditional sampling approaches according to our empirical studies.
Motivation & Objective
- To develop a scalable, high-capacity sampling method that bypasses the limitations of traditional MCMC and variational inference for unnormalized target densities.
- To leverage the expressive power of deep neural networks to model complex, non-linear transformations from a simple reference distribution to the target distribution.
- To design a training objective based on Stein discrepancy that works directly with unnormalized densities and enables stable, sample-efficient learning.
- To improve sampling stability and convergence compared to existing methods like HMC, SVGD, and GAN-based approaches, especially in high-dimensional and multimodal settings.
Proposed method
- Uses a deep neural network to parameterize a deterministic transformation from a standard reference distribution (e.g., Gaussian) to the target distribution.
- Employs kernelized Stein discrepancy (KSD) as the training objective, which operates on unnormalized densities and allows closed-form optimization over a reproducing kernel Hilbert space (RKHS).
- Proposes Fisher-NS as an extension that generalizes the discriminative function space from RKHS to L² space, enabling better convergence properties under Fisher divergence.
- Trains the generator via gradient descent to minimize the discrepancy between generated samples and the target distribution, using score function information from the unnormalized density.
- Leverages the GAN-like training paradigm, where the generator learns to produce samples that are indistinguishable from the target distribution under the Stein discrepancy metric.
- Uses the score function $ S_q(x) = \nabla_x \log q(x) $, which avoids the need for the normalizing constant, making the method applicable to unnormalized posterior distributions.
Experimental results
Research questions
- RQ1Can a deep neural network be effectively trained to learn a deterministic transformation from a simple reference distribution to a complex, unnormalized target distribution?
- RQ2Does minimizing Stein discrepancy via neural networks lead to more stable and accurate sampling than traditional MCMC or variational inference?
- RQ3How does extending the discriminative function space from RKHS to $ L^2 $ space affect the convergence and sample quality of the neural sampler?
- RQ4Can the proposed method effectively explore multimodal distributions and avoid mode collapse or local traps common in GANs and SVGD?
- RQ5How do the proposed samplers perform on real-world, high-dimensional data compared to established baselines like SGLD, DSVI, and SVGD?
Key findings
- KSD-NS achieves stable training with theoretical guarantees due to the use of the unit ball in RKHS, and exhibits lower variance across replications in Bayesian logistic regression on the Covertype dataset.
- Fisher-NS achieves higher average test accuracy (76.22%) on the Covertype dataset compared to KSD-NS (76.17%), SGLD (75.09%), and DSVI (73.46%), demonstrating superior performance in high-dimensional settings.
- On a 2D multimodal Gaussian mixture with 8 well-separated modes, the proposed samplers successfully explore all modes without mode dropping, outperforming SVGD, Stein GAN, and HMC.
- In toy examples with unimodal and multimodal mixtures, the generated samples closely match the target distribution’s local and global structures, as shown by visual evolution across training iterations.
- The samplers generate independent samples instantly after training via forward passes, avoiding the sequential dependency of MCMC and enabling efficient inference on large-scale data.
- Empirical results show that both KSD-NS and Fisher-NS are more robust to initialization and converge faster than traditional sampling methods, especially in high-dimensional and complex posterior distributions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.