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, thenThe 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]
Variational Inference with Normalizing Flows by Danilo Jimenez Rezende and Shakir Mohamed. §3, equations5–7, invertible transformations and composition
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 satisfiesAt , 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 givesGenerating 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
There are currently no matching articles.