Normalizing Flows

x = fθM ∘ ⋯ ∘ fθ1(z),   z ∼ 𝒩(0, I)
Data
Layer
Number of layers M
Layer by layer
Validation NLL (nats)
−(1/n) Σi log pθ(x(i))
data x ∼ pdata
learned density pθ(x)
NLL vs. M
Click a legend entry to show or hide it.
Training, inference, sampling
Normalizing flowVAE
Trainingmaxθ Σi [ log pZ(fθ−1(x(i))) + log |det ∂fθ−1/∂x| ]  (exact)maxθ,φ ELBO = 𝔼Q[log p(x | z; θ)] − DKL(Q(z | x) ‖ p(z))  (lower bound)
Inference x → zz = fθ−1(x)  (exact, same network)Q(z | x)  (approximate, encoder)
Sampling z → xz ∼ 𝒩(0, I),  x = fθ(z)z ∼ 𝒩(0, I),  decode g(z; θ)
Dimension of zsame as xusually smaller