Home Knowledge Base Normalizing Flows

Normalizing Flows are the generative model family that learns an invertible transformation between a simple base distribution (e.g., standard Gaussian) and a complex target distribution (e.g., natural images) — where the invertibility enables exact likelihood computation via the change-of-variables formula, and the transformation is composed of learnable invertible layers (coupling layers, autoregressive transforms, continuous flows) that progressively reshape the simple distribution into the complex data distribution.

Mathematical Foundation

If z ~ p_z(z) is the base distribution and x = f(z) is the invertible transformation, the data distribution is: p_x(x) = p_z(f⁻¹(x)) × |det(∂f⁻¹/∂x)|

The Jacobian determinant accounts for how the transformation stretches or compresses probability density. For the transformation to be practical: 1. f must be invertible (bijective). 2. The Jacobian determinant must be efficient to compute (not O(D³) for D-dimensional data).

Coupling Layer Architectures

RealNVP / Glow:

Autoregressive Flows (MAF, IAF):

Continuous Normalizing Flows (CNF)

Instead of discrete invertible layers, define a continuous ODE: dz/dt = f_θ(z(t), t)

The time-evolution from t=0 (noise) to t=1 (data) defines the transformation. The log-determinant of the Jacobian is computed via the trace of the Jacobian (Hutchinson's trace estimator) integrated over time. Solved with adaptive ODE solvers (Neural ODE).

Flow Matching (Lipman et al., 2023)

A simplified, simulation-free training method for CNFs:

Advantages vs. Other Generative Models

PropertyFlowGANVAEDiffusion
Exact LikelihoodYesNoLower boundYes (via ODE)
Stable TrainingYesUnstableYesYes
Sample QualityGoodBestModerateBest
Latent SpaceStructured (invertible)EntangledStructuredN/A

Normalizing Flows are the mathematically principled generative model that provides exact density computation through invertible transformations — and through flow matching, have become a practical, efficient alternative to diffusion models for high-quality generation.

normalizing flow generativeinvertible neural networkflow matching generativereal nvp coupling layercontinuous normalizing flow

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.