NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Normalizing Flows: Introduction and Ideas

Ivan Kobyzev, Simon Prince, Marcus A. BrubakerarXiv 2019 · DOI

TL;DR

Normalizing Flows (NFs) are a powerful class of generative models that allow for exact and efficient density evaluation and sampling from complex data distributions. This paper provides a comprehensive introduction and review of the field, detailing various NF architectures, their underlying mathematical principles, and their applications in density estimation and variational inference.

What Problem Does This Paper Address?

Modeling complex probability distributions is a fundamental challenge in machine learning and statistics. Traditional generative models like GANs and VAEs often struggle with exact density evaluation and can suffer from training instabilities. Normalizing Flows offer a solution by constructing complex distributions from simple ones through a sequence of invertible and differentiable transformations, enabling both efficient sampling and exact likelihood computation. This paper aims to consolidate the rapidly growing literature on NFs, providing a structured overview of their development and current state.

Methods

The paper introduces Normalizing Flows as transformations of a simple probability distribution (e.g., a standard normal) into a more complex one using a sequence of invertible and differentiable mappings. The core idea relies on the change of variables formula, where the density of the transformed variable is computed by transforming the density of the original variable and multiplying by the absolute determinant of the Jacobian of the transformation.

The paper categorizes NF architectures into several key types:

  • Elementwise Flows: Apply a simple bijective function to each dimension independently.
  • Linear Flows: Use linear transformations (e.g., affine, triangular, permutation, orthogonal) to mix dimensions.
  • Planar and Radial Flows: Simpler flows with limited expressiveness and difficult inverses.
  • Coupling and Autoregressive Flows: The most widely used architectures. Coupling flows partition the input and transform one part conditioned on the other, while autoregressive flows generate outputs sequentially, conditioned on previous outputs. These are often built using "coupling functions" like affine, spline, or polynomial transformations.
  • Residual Flows: Based on residual networks, these can be viewed as discretizations of ordinary differential equations (ODEs).
  • ODE-based and SDE-based Flows (Continuous Flows): Model the transformation as a continuous dynamical system, either deterministic (ODE) or stochastic (SDE), offering a more flexible and potentially more expressive approach.

Datasets

The paper discusses performance on several standard datasets for evaluating density estimation models:

  • Tabular Datasets: POWER, GAS, HEPMASS, MINIBOONE, and BSDS300. These are described as relatively small and are used for unconditional density estimation.
  • Image Datasets: MNIST, CIFAR-10, ImageNet32, and ImageNet64. These are used for evaluating more complex density estimation tasks.

The paper references existing preprocessing methods for these datasets, such as dequantization with uniform noise. No new datasets or benchmarks are introduced in this survey.

Key Insights and Ideas

  • Tractability is Key: The defining feature of Normalizing Flows is their ability to provide exact and efficient density evaluation and sampling, a significant advantage over many other generative models.
  • Compositionality: Complex transformations can be built by composing simpler, invertible functions, allowing for a modular approach to designing powerful generative models.
  • Generative vs. Normalizing Direction: Flows can be viewed in two directions: the generative direction (sampling from a simple distribution to a complex one) and the normalizing direction (transforming a complex data distribution back to a simple one for density estimation). The choice of direction impacts computational efficiency for different tasks.
  • Universality: Certain classes of autoregressive flows have been proven to be universal approximators, meaning they can learn any target density to arbitrary precision given sufficient capacity.
  • Continuous Flows as a Promising Direction: ODE- and SDE-based flows offer a more continuous and potentially more expressive way to model transformations, with theoretical guarantees of representing a broader class of diffeomorphisms.

Key Results

The paper presents performance comparisons of various Normalizing Flow architectures on tabular and image datasets. While specific numerical results are detailed in Tables 3 and 5, the general trend indicates:

  • Universal flows (NAF, SOS, Splines) demonstrate relatively better performance on tabular datasets.
  • Flow++ is highlighted as the best-performing approach on image datasets at the time of writing, attributed to more expressive coupling layers and variational dequantization.
  • The paper emphasizes the trade-offs between different architectures in terms of expressiveness, invertibility, and computational efficiency.

Limitations and Future Work

  • Computational Cost: While NFs offer exact density evaluation, computing the Jacobian determinant can be computationally expensive, especially for high-dimensional data and complex architectures.
  • Invertibility Challenges: For some flow designs, computing the inverse can be difficult or impossible in closed form, impacting sampling efficiency.
  • Generalization to Non-Euclidean Spaces: Extending normalizing flows to manifolds and discrete distributions remains an active area of research.
  • Inductive Biases: The choice of base measure and the specific architecture of the diffeomorphisms (e.g., triangular vs. residual) introduce inductive biases that can affect learning.
  • Loss Functions: While KL-divergence (or maximum likelihood) is standard, exploring other loss functions like Wasserstein distance could broaden the applicability of NFs.
  • Practical Applications: Despite theoretical advancements, some methods (e.g., Langevin flows) have not yet found widespread practical application.

The authors identify several promising future directions, including developing more efficient architectures, exploring alternative loss functions, and extending NFs to more complex data structures like manifolds and discrete spaces.

Summary updated

BibTeX
@misc{kobyzev2019normalizing,
  author = {Ivan Kobyzev and Simon Prince and Marcus A. Brubaker},
  title = {{Normalizing Flows: Introduction and Ideas}},
  year = {2019},
  eprint = {1908.09257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.09257},
}
Figure