Gaussian reparameterization represents a random variable with a normal distribution using a location, a scale and parameter-independent noise:Here has the standard normal distribution. The resulting has expected value and variance . The probability distribution is unchanged; the representation separates the random draw from the adjustable parameters. This makes reparameterization gradients available for differentiable expectations, including the Gaussian approximate posterior in a variational autoencoder.[ref]
Stochastic Backpropagation and Approximate Inference in Deep Generative Models by Danilo Jimenez Rezende and others. §3.2, Gaussian location-scale transformation and equation(10)
For a complete example, fix and considerHolding the same noise value fixed while differentiating givesAt , , the particular noise draw gives and derivative estimate , while the true derivative is . An individual sample need not equal the derivative; the equality is in expected value.
Parameterizing a positive scale as also gives . One can differentiate through the deterministic transformation while leaving the noise law fixed. For a general integrand, exchanging derivative and expectation still requires justified differentiation under the integral sign; the representation alone is not a proof of that exchange. Reusing noise when parameters change also connects the construction to common random numbers.
Consider the explicitly specified objectiveand estimate its derivative by a symmetric finite difference with step . The choice of shared or independent noise changes the estimator's variance even though both use correct normal distributions at the two parameter values.
With common random numbers, the same appears on both sides:Thus and , independent of . Cancellation removes the noisy square term. For this quadratic, the symmetric difference has no truncation bias in exact arithmetic.
For independent standard normals , instead useIf , expand . The standard-normal moments , and giveAdding the two independent square variances and dividing by yieldsBoth estimators have the correct expected value , but the independent-noise variance diverges as tends to zero. At and , the variances are and . An average of independent replicate estimators divides each variance by .
This is a complete calculation for the stated quadratic, not a universal dominance theorem. At , and , the independent variance is , below the shared value . The covariance principle in common random numbers explains why coupling needs a specified objective and comparison. Very small steps in floating-point evaluation also introduce cancellation concerns that this exact-arithmetic model does not include.
Articles by others on the same topic
There are currently no matching articles.