Amortization gap 2026-11-05
The amortization gap measures how much evidence lower bound is lost by using the distribution returned by amortized inference instead of the best distribution available for that observation in the same variational family. Hold the generative parameters fixed. Write for the evidence lower bound and suppose the optimum is attained. For the shared rule ,The remaining variational approximation gap is , so the total loss isThus a restrictive recognition network or incomplete training can leave an amortization gap even when the variational family can represent the exact posterior distribution.[ref]
Inference Suboptimality in Variational Autoencoders by Chris Cremer and others. Table1, summary of gap terms; introductory definition of the optimal approximation within its family
For an original example, stipulate for equally weighted observations and . The variational family represents both posterior distributions exactly when fitted separately, so . Restrict the shared rule to : it can adjust the intercept but its slope is fixed at one. The Kullback-Leibler divergence between these unit-variance normal distributions is . Averaging the amortization gap over the two observations givesThe best shared intercept still loses nat on average. A current rule with loses one nat: half a nat can be removed by training this rule better, while the remaining half requires changing its fixed-slope restriction. This separates the variational family's expressive power from the shared mapping's capacity and current training state.
In a numerical comparison, a locally improved per-observation distribution need not be the global optimum . Its improvement supplies a lower bound on the true amortization gap; failing to find an improvement does not establish a zero gap. Comparisons must keep both and fixed.
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]
Stochastic Backpropagation and Approximate Inference in Deep Generative Models by Danilo Jimenez Rezende and others. §4, recognition model and joint optimization
A scalar Gaussian model gives an exact example. Let and . Completing the square givesThe 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 hasThis 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]
Stochastic Backpropagation and Approximate Inference in Deep Generative Models by Danilo Jimenez Rezende and others. Title page; §§2 and4, generative and recognition models
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 lossIts 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.
David Duvenaud 2026-11-05
David Duvenaud coauthored the 2018 study of inference suboptimality with Chris Cremer and Xuechen Li. Their analysis distinguishes distribution-family limitations from a shared inference rule's shortcomings.[ref]
Inference Suboptimality in Variational Autoencoders by Chris Cremer and others. Title-page byline; Table1 and §3.1
An original diagnostic example makes that distinction numerical. Fix the generative model and one observation. Suppose its exact log evidence is , the globally best evidence lower bound within a chosen family is , and a recognition network returns a distribution with bound . The variational approximation gap is nat; the amortization gap is nat. They sum to the total -nat inference deficit.
These stipulated exact values isolate the diagnostic, rather than reproducing experimental measurements. Improving only the shared rule could recover at most nat within that family. Comparing a different generative model would change the target posterior distribution and would no longer isolate the same gap. This is a contribution of the joint paper; its byline does not specify individual responsibility for each derivation.
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]
Stochastic Backpropagation and Approximate Inference in Deep Generative Models by Danilo Jimenez Rezende and others. §2, visible-layer distribution and generative transformations
For a concrete binary example, suppose a decoder specifies two conditionally independent Bernoulli distributions with probabilities and . ThenIf 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]
Auto-Encoding Variational Bayes by Diederik P. Kingma and Max Welling. Appendix C.1–C.2, Bernoulli and Gaussian observation models
Generation draws a latent value from the prior and then draws from the decoder's conditional law. Averaging over latent values givesConditional 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.
Variational autoencoder 2026-11-05
A variational autoencoder is a generative model with a latent variable and a learned approximation to its posterior distribution given an observation . Write the model as . A recognition network, implemented as a neural network, produces the parameters of ; a generative decoder specifies . Using one recognition rule across observations is amortized inference, rather than solving a fresh independent optimization problem for every input.[ref]
Auto-Encoding Variational Bayes by Diederik P. Kingma and Max Welling. §2.1–2.3, generative and recognition models; Introduction, neural-network recognition model
Training maximizes an evidence lower bound, often writtenThe first term scores reconstruction under the declared likelihood; the second compares the inferred latent law with the prior. The identityproves that it is a lower bound, since Kullback-Leibler divergence is nonnegative. It becomes tight when the recognition law equals the model posterior, under the usual density/support conditions.[ref]
For a one-dimensional Gaussian example, let the prior be and the recognition law be . Substituting their log densities and using givesAt , , this is . The value is a penalty for this particular latent law, not the whole training loss. Gaussian reparameterization writes with fixed-law standard-normal noise so that gradients can pass through the sampled latent value. After training, generation instead draws from the prior and then the generative decoder; it need not start from an observed input.