Reparametrization Trick
https://lilianweng.github.io/posts/2018-08-12-vae/#reparameterization-trick
In Variational Autoencoders (VAEs), we want to backpropagate through a sampling step. To make this possible, we reparameterize the random variable :
Instead of sampling directly, we do:
- This makes a deterministic function of , , and a random variable , which allows gradients to flow through and during training.