[Paper Review] Learning to Draw Samples with Amortized Stein Variational Gradient Descent
This paper introduces amortized Stein variational gradient descent (aSVGD), a method to train stochastic neural networks to generate samples from complex target distributions using only unnormalized density evaluations and gradient queries. By iteratively adjusting network parameters along Stein variational gradients, the approach enables efficient, black-box sampling without requiring explicit density computation of the inference network, significantly improving sample quality in variational autoencoders and enabling adaptive MCMC hyperparameter learning.
We propose a simple algorithm to train stochastic neural networks to draw samples from given target distributions for probabilistic inference. Our method is based on iteratively adjusting the neural network parameters so that the output changes along a Stein variational gradient direction (Liu & Wang, 2016) that maximally decreases the KL divergence with the target distribution. Our method works for any target distribution specified by their unnormalized density function, and can train any black-box architectures that are differentiable in terms of the parameters we want to adapt. We demonstrate our method with a number of applications, including variational autoencoder (VAE) with expressive encoders to model complex latent space structures, and hyper-parameter learning of MCMC samplers that allows Bayesian inference to adaptively improve itself when seeing more data.
Motivation & Objective
- To develop a general-purpose, differentiable method for training stochastic neural networks to draw samples from arbitrary target distributions specified only by their unnormalized density.
- To address the limitations of traditional variational inference and MCMC by enabling end-to-end, amortized learning of sampling policies without requiring explicit density computation of the inference network.
- To enable efficient, scalable, and adaptive probabilistic inference in settings with repeated sampling demands, such as online learning, personalized prediction, and latent variable modeling.
- To demonstrate the method's effectiveness in learning expressive latent representations and multi-modal posteriors in variational autoencoders and missing data imputation.
Proposed method
- Proposes amortized SVGD (aSVGD), a projective gradient-like algorithm that optimizes neural network parameters by following the Stein variational gradient direction to minimize KL divergence with the target distribution.
- Uses a set of particles (samples) to approximate the functional gradient in Stein variational gradient descent, enabling nonparametric optimization without parametric assumptions on the proposal distribution.
- Leverages the reparameterization trick and Monte Carlo gradient estimation to backpropagate through the stochastic neural network, even when the output density is intractable.
- Applies the method to train expressive encoders in VAEs by introducing multiplicative Bernoulli dropout noise, enabling multi-modal posterior approximation.
- Employs Hamiltonian annealed importance sampling (HAIS) for unbiased log-likelihood estimation and effective sample size (ESS) evaluation in experiments.
- Treats the inference network as a black-box differentiable simulator, requiring only access to input samples and parameter gradients, not the explicit density of the output distribution.
Experimental results
Research questions
- RQ1Can we train stochastic neural networks to generate high-quality samples from complex, unnormalized target distributions without requiring explicit density computation of the inference network?
- RQ2How can we enable amortized, end-to-end learning of sampling policies that generalize across distributions with similar structures?
- RQ3Can aSVGD improve posterior approximation in variational autoencoders by enabling multi-modal latent representations through structured noise?
- RQ4Does aSVGD enable adaptive hyperparameter learning in MCMC samplers by allowing the inference network to improve itself with more data?
Key findings
- ESteinVAE-f achieved a test negative log-likelihood of 88.85 nats on binarized MNIST, outperforming VAE-f (90.32 nats), demonstrating improved generative quality.
- ESteinVAE-CNN achieved a test NLL of 84.31 nats, slightly better than VAE-CNN (84.68 nats) and EVAE-CNN (84.43 nats), with higher effective sample size (86.57 vs. 85.50).
- In missing data imputation, ESteinVAE-CNN achieved 84% accuracy and entropy of 0.501, outperforming EVAE-CNN (82%, 0.382) and VAE-CNN (83%, 0.340), indicating more diverse and accurate reconstructions.
- Visual results show ESteinVAE-CNN generates diverse reconstructions under ambiguity, while VAE-CNN and EVAE-CNN tend to collapse into local modes due to overly confident, diagonal-covariance posteriors.
- The method enables adaptive MCMC hyperparameter learning by allowing the neural sampler to improve itself with increasing data, supporting self-improving Bayesian inference.
- The effective sample sizes of HAIS estimates were comparable across methods, confirming that the NLL differences are not due to estimation bias but reflect genuine improvements in model quality.
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.