Convergence of Continuous Normalizing Flows for Learning Probability Distributions

Yuan Gao, Jian Huang, Yuling Jiao, Shurong ZhengarXiv 2024 · DOI

Introduction

Continuous Normalizing Flows (CNFs) and Diffusion Models have achieved remarkable empirical success in generative modeling, powering applications from high-resolution image synthesis to complex biological modeling. However, the theoretical understanding of their statistical efficiency—specifically, how much data is required to achieve a target level of accuracy—has historically lagged behind their practical implementation. This paper provides a rigorous theoretical foundation for CNFs trained via Flow Matching, establishing the first non-asymptotic error bounds in the Wasserstein-2 ($W_2$) distance.

The Problem of Statistical Efficiency

While CNFs are known to work well, analyzing their convergence is mathematically challenging because they rely on solving Ordinary Differential Equations (ODEs). To prove that a learned model converges to the true target distribution, researchers must account for three distinct sources of error:

  1. Estimation Error: The error introduced by learning the velocity field (the vector field guiding data transformation) from a finite dataset of $n$ samples.
  2. Discretization Error: The bias introduced when the continuous-time ODE is solved using numerical methods, such as the Euler method, which involve discrete time steps.
  3. Early Stopping Error: In many CNF formulations, particularly those using linear interpolation, the velocity field becomes mathematically singular (explosive) as it approaches the target distribution ($t=1$). Practitioners typically stop the integration at $1 - \underline{t}$ to maintain stability, which introduces a specific approximation bias.

Methodology: Flow Matching and ReLU Networks

The authors focus on Simulation-free CNFs trained through Flow Matching. Unlike traditional CNF training, which requires solving an ODE at every iteration, Flow Matching utilizes a regression-based objective to learn the velocity field directly.

To approximate this field, the study employs deep neural networks with Rectified Linear Unit (ReLU) activations. A key technical contribution of the paper is the development of new approximation bounds that strictly control the Lipschitz constant (smoothness) of the neural network. By ensuring the learned velocity field remains well-behaved, the authors guarantee that the resulting ODE trajectories do not become chaotic, a prerequisite for stable distribution learning.

Theoretical Insights

Deriving Regularity

Most existing theoretical works assume that the velocity field is smooth. This paper instead derives the regularity of the velocity field based on the properties of the target distribution (e.g., bounded support or log-concavity). This makes the theory more robust and applicable to real-world distributions.

Handling the $t=1$ Singularity

The analysis explicitly addresses the singularity at the end of the interpolation interval. For linear interpolation, the velocity field's Lipschitz constant explodes at a rate of $O((1-t)^{-2})$. The authors demonstrate how to optimally choose the early stopping parameter $\underline{t}$ to balance this singularity against the approximation error of the network.

Main Results

The primary contribution of the paper is a non-asymptotic upper bound on the expected $W_2$ distance between the true distribution $\nu$ and the estimated distribution $\hat{ u}$:

$$\mathbb{E} W_2(\hat{ u}, \nu) = \tilde{O}(n^{-\frac{1}{d+5}})$$

(Note: $\tilde{O}$ denotes the bound hides polylogarithmic factors.)

While this convergence rate is slower than the minimax optimal rate for simple density estimation ($O(n^{-1/d})$), it represents a significant milestone. It is the first result to account for the entire generative pipeline—from training on finite data to the final numerical integration of the ODE.

Limitations and Future Directions

Despite the breakthrough, the authors identify several areas for further exploration:

  • The Curse of Dimensionality: The $1/d$ term in the exponent indicates that the data requirement grows exponentially with dimensionality. Future research may investigate if assuming data lies on a low-dimensional manifold can mitigate this effect.
  • Interpolation Variants: The current analysis is tailored to linear interpolation; other stochastic interpolation methods used in diffusion models may yield different convergence characteristics.
  • Lower Bounds: It remains an open question whether the $O(n^{-1/(d+5)})$ rate is the fundamental limit for CNFs or if a tighter analysis could reach the $O(n^{-1/d})$ threshold.

Summary updated

BibTeX
@misc{gao2024convergence,
  author = {Yuan Gao and Jian Huang and Yuling Jiao and Shurong Zheng},
  title = {{Convergence of Continuous Normalizing Flows for Learning Probability Distributions}},
  year = {2024},
  eprint = {2404.00551},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.00551},
}
Figure