Amortized inference 2026-11-05
Amortized inference learns one shared rule that maps observations to approximate posterior distributions, spreading the work of fitting that rule across many inputs. Instead of separately optimizing variational parameters for every observation , a recognition network returns the parameters of . The shared parameters are learned across data; evaluating the rule for a new input is then a different operation from fitting it.[ref]
A scalar Gaussian model gives an exact example. Let and . Completing the square gives
The shared rule , with , and fixed variance , represents the exact posterior for every real . Evaluating replaces a separate optimization for each observation in this stipulated model. It does not imply that every nonlinear latent-variable model has an exact rule this simple.
Sharing can introduce an additional restriction even when the chosen distribution family is adequate. For observations and , the exact posterior means are and . The Gaussian family can represent each exactly when is fitted separately. If the shared rule is constrained to output one constant mean for both inputs, its best equal-weight choice is . Each case then has
This original example isolates an amortization gap: the loss from restricting how observation-specific variational parameters are produced, rather than an inability of the per-observation Gaussian family to express the target. The shared mapping's capacity and its training therefore matter alongside the family of probability distributions.
Daan Wierstra 2026-11-05
Daan Wierstra coauthored the 2014 work on stochastic backpropagation with Danilo Jimenez Rezende and Shakir Mohamed. The primary paper identifies all three with Google DeepMind in London. Their method jointly trains a generative model and a recognition network representing an approximate posterior.[ref]
An original scalar example isolates the shared inference-map parameter. For inputs , take a Gaussian sample , where has a standard normal distribution. The same controls both conditional means. Define the chosen toy loss
Its derivative is , so at the gradient is . Holding a noise draw fixed permits the chain rule to pass through to the shared parameter, rather than optimizing a separate free mean for every input.
The paper's actual objective is a variational bound, not this squared-error illustration. Its Gaussian reparameterization provides a computable reparameterization gradient through random variables.[ref] The example explains one ingredient of that collaborative contribution without assigning the complete method to one coauthor.
Danilo Jimenez Rezende 2026-11-05
Danilo Jimenez Rezende coauthored the 2014 stochastic-backpropagation work with Shakir Mohamed and Daan Wierstra, developing trainable generative and approximate-inference models.[ref] With Shakir Mohamed, he subsequently developed normalizing flows for richer approximations in variational inference.[ref]
An original one-dimensional transformation illustrates the density accounting. Let have standard normal distribution and take . Sampling is straightforward, but its density must also account for the stretching of length:
At , this is . The factor comes from the absolute derivative of the inverse affine map. Omitting it would give a density integrating to instead of .
The example is only an affine Gaussian transformation; it does not claim that every nonlinear transformation preserves a Gaussian family. A normalizing flow composes suitable invertible transformations while tracking the corresponding density changes. This connects an efficient sampling procedure to the density evaluation needed in a variational objective, rather than treating the generated samples alone as a complete inference method.
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]
For a complete example, fix and consider
Holding the same noise value fixed while differentiating gives
At , , 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.
Generative decoder 2026-11-05
A generative decoder maps a latent variable to the parameters of a conditional observation probability distribution, commonly written . In a variational autoencoder, a neural network can supply those parameters. The conditional law, including its observation noise and support, is part of the model; the decoder need not return one deterministic reconstructed observation.[ref]
For a concrete binary example, suppose a decoder specifies two conditionally independent Bernoulli distributions with probabilities and . Then
If a chosen latent value gives , the conditional probability of is , and its negative log likelihood is approximately . The vector is a vector of probabilities, not itself a binary sample. A model for continuous observations would need a different conditional distribution.[ref]
Generation draws a latent value from the prior and then draws from the decoder's conditional law. Averaging over latent values gives
Conditional independence of output components at fixed need not imply independence after this marginalization, because the same latent variable can influence several components. The recognition network runs in the other direction for inference; it is not an algebraic inverse of the generative decoder.
Shakir Mohamed 2026-11-05
Shakir Mohamed coauthored the 2014 stochastic-backpropagation paper with Danilo Jimenez Rezende and Daan Wierstra. It develops gradient computations through stochastic variables for joint learning of generative and approximate-inference models.[ref] He also coauthored the 2015 work on normalizing flows with Danilo Jimenez Rezende, constructing flexible approximate posterior distributions through invertible transformations.[ref]
An original smooth example shows why a reparameterization gradient is a computational object. Let with standard-normal , and choose . The exact expectation and derivative are
Differentiating a sampled value while holding its noise fixed gives . At , a chosen draw yields gradient , while the exact expectation gradient is . Averaging the sampled gradients over the stated noise distribution recovers the expectation gradient in this smooth bounded example.
That calculation depends on the distribution and differentiability assumptions. It does not make a single random derivative equal to the derivative of an expectation, nor does it by itself establish an analogous rule for a discontinuous sampling map. The cited contributions concern explicit probabilistic models and estimators, not an unrestricted license to differentiate through any random procedure.