Term
reparameterization trick
Meaning
A way to write a latent random variable \( z \sim q_\phi(z|x) \) as a deterministic function \( z=g_\phi(\epsilon,x) \) of an auxiliary noise variable \( \epsilon \) with a fixed, independent distribution \( p(\epsilon) \). This makes expectations under \( q_\phi \) into Monte Carlo averages that can be differentiated with respect to \( \phi \). The paper groups the constructions into inverse CDF, location-scale, and composition approaches.
How papers use it 9 papers
Auto-Encoding Variational Bayes
Use Used to make the SGVB estimator differentiable with respect to the variational parameters. For a univariate Gaussian, \( z=\mu+\sigma\epsilon \) with \( \epsilon \sim N(0,1) \) is the example given. In the variational auto-encoder the posterior sample is written as \( \mu+\sigma\odot\epsilon \) with \( \epsilon \sim N(0,I) \), where \( \odot \) is the element-wise product. The paper notes that for distributions where all three approaches fail, approximate inverse CDFs can still be used.
Generating Sentences from a Continuous Space
Use Lets the paper's VAE draw latent codes from the diagonal Gaussian posterior and prior while still optimizing the model by stochastic gradient descent. Each gradient step uses a single sample to estimate the reconstruction cost.
Meaning A technique for training models with sampled latent variables, in which a draw from a parametric distribution is written as a deterministic function of its parameters and independent noise. Gradients can then flow through the sampling step.
Soft Actor-Critic Algorithms and Applications
Use Used to compute the policy gradient: the action is written as a transformation of noise, with the policy written implicitly through that transformation. The paper states that this gives a lower-variance estimator than the likelihood ratio gradient and extends the DDPG-style policy gradient to any tractable stochastic policy.
Meaning A way of writing a sampled action as a deterministic function of the state and an input noise vector, so that gradients can flow through the sample. This makes it possible to differentiate the policy objective through the Q-function instead of using a likelihood ratio estimator.
Categorical Reparameterization with Gumbel-Softmax
Use Serves as the basis of the Gumbel-Softmax estimator, which replaces the discrete sample with a differentiable function of the logits and Gumbel noise. The paper also notes its use for Gaussian latent variables in variational autoencoders.
Meaning A technique that expresses a random variable as a deterministic function of its parameters and an independent noise variable. This makes path-wise gradients with respect to the parameters computable by ordinary backpropagation.
Tutorial on Variational Autoencoders
Use Used to train the VAE encoder. Instead of sampling z directly from Q(z|X), the paper samples epsilon from N(0, I) and computes z as the encoder mean plus the square root of the covariance times epsilon, so that backpropagation can compute the gradient of the training objective. The paper notes that the trick requires the sampling to come from a fixed noise source with a function that is continuous in X, which rules out discrete latent distributions.
Meaning A technique for making sampling differentiable: a random variable with parameters computed by a network is written as a deterministic, continuous function of those parameters and an independent noise variable. Gradients can then flow through the function, while the randomness is moved to an input that does not depend on the model parameters.
Variational Graph Auto-Encoders
Use Used to train VGAE, which samples its latent variables from the per-node Gaussian distributions. Training is carried out with full-batch gradient descent.
Meaning A technique for gradient-based training of models with sampled latent variables. The sample is written as a deterministic function of the distribution parameters and independent noise, so that gradients can pass through the sampling step.
Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor
Use Applied to the policy by writing the action as \(a_t = f_\phi(\epsilon_t; s_t)\), where \(\epsilon_t\) is noise drawn from a fixed distribution such as a spherical Gaussian. This lets the policy objective be differentiated through the neural-network Q-function, giving the policy gradient in the form used by the paper.
Meaning A way of writing a random variable as a deterministic function of its distribution parameters and a fixed noise variable, so that gradients can pass through the sample. It lowers the variance of gradient estimates compared with the likelihood ratio estimator.
The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables
Use Presented as the reason that continuous latent variables can be optimized efficiently with automatic differentiation. The paper notes that discrete random variables lack such reparameterizations, which motivates the Concrete distribution as a continuous relaxation that supplies one for discrete nodes.
Meaning A way of writing a random sample as a deterministic, differentiable function of parameters and a random variable with a fixed distribution. Because the randomness no longer depends on the parameters, gradients of an expectation can be computed by ordinary differentiation through the function.
Unsupervised Image-to-Image Translation Networks
Use Used to train the variational autoencoders in each domain. The latent code is written as the encoder's mean output plus Gaussian noise drawn from a standard normal with identity covariance, so the sampling step can be differentiated and the VAEs can be trained by back-propagation.
Meaning A technique for drawing a random sample from a parameterized distribution in a form that allows gradients to flow through it. The sample is written as a deterministic, differentiable function of the distribution's parameters and an independent noise variable, so the sampling step does not block back-propagation.