A normalizing flow constructs a probability distribution by passing a simple reference random variable through invertible differentiable transformations. The change of variables formula supplies its probability density function: if and is a diffeomorphism between equal-dimensional spaces, then
The Jacobian determinant accounts for local expansion or contraction of volume. Composing several transformations gives a flexible distribution while retaining a computable density, useful for a richer approximate posterior distribution in variational inference.[ref]
For an original nonlinear example, let have the standard normal distribution with density , and set . Since and tends to opposite infinities at the two ends of the real line, every output has exactly one preimage. Its probability density function satisfies
At , the output is and . The factor reflects how strongly the transformation stretches nearby inputs. Integrating after the substitution cancels this factor against , leaving total probability one.
For , the chain rule gives
Generating transformed samples alone does not evaluate their probability density function; evaluating the determinant factors is essential. The single-preimage formula also requires invertibility: the map folds two real inputs together, so it cannot be substituted into this formula unchanged.

Articles by others on the same topic (0)

There are currently no matching articles.