Learn Before
Activity (Process)

Backpropagation Through Gaussian Sampling

To differentiate through Gaussian sampling, first draw z sim mathcal{N}(0,1) and then compute y=μ+σzy=\mu+\sigma z, which produces a sample with mean μ\mu and variance σ2\sigma^2. Once zz has been sampled, this mapping is deterministic, so a computational graph can treat zz as an additional input and backpropagate through yy to the inputs or parameters of the sampling operation.

Image 0

0

1

Updated 2026-08-12

Tags

Data Science

Related