An approximate distribution is a parameterized probability distribution designed to resemble a target distribution when direct sampling or likelihood evaluation is impractical. In variational inference, an optimized stochastic process generates samples from this approximation. section 5.2.3 section 2.2.5
The approximation becomes an operational component of inference:
- A guide function produces samples from the approximate distribution, while its parameters are adjusted with gradient-based optimization. section 2.2.5
- Training shifts the approximation toward the target by minimizing their difference, commonly through KL divergence and the ELBO objective. section 5.2.3
- In stochastic variational inference, randomly selected data batches reduce memory use and support larger datasets. section 5.2.3
Latent-image inference with a VAE
An encoder defines Q(Z|X, is-handwritten, digit), the approximate distribution over latent Z for an image and its observed attributes. Sampling Z from this distribution lets the decoder parameterize the image distribution. In Pyro, the encoder serves as the guide, and SVI combines it with Trace_ELBO for training. section 5.2.3


