Abstract: We present a novel theoretical framework for understanding the expressive power of normalizing flows. Despite their prevalence in scientific applications, a comprehensive understanding of flows remains elusive due to their restricted architectures. Existing theorems fall short as they require the use of arbitrarily ill-conditioned neural networks, limiting practical applicability. We propose a distributional universality theorem for well-conditioned coupling-based normalizing flows such as RealNVP. In addition, we show that volume-preserving normalizing flows are not universal, what distribution they learn instead, and how to fix their expressivity. Our results support the general wisdom that affine and related couplings are expressive and in general outperform volume-preserving flows, bridging a gap between empirical results and theoretical understanding.
Introduction
Normalizing flows (NFs) are a powerful class of generative models that transform a simple base distribution (like a Gaussian) into a complex target distribution using a series of invertible mappings. While they are widely used in fields ranging from computer vision to high-energy physics, their theoretical "universality"—the guarantee that they can fit any distribution—has been on shaky ground.
Previous proofs of universality suffered from two major flaws: impracticality due to reliance on "ill-conditioned" neural networks (where weights must explode toward infinity), and architectural gaps where proofs only applied to volume-preserving flows or required augmented dimensions. This work bridges the gap between empirical success and theoretical understanding by providing a proof that uses realistic, well-behaved architectures.
Methods
The paper introduces a novel constructive proof for the universality of coupling-based flows. Instead of proving a single complex mapping exists, the authors show that a universal flow can be built by iteratively adding simple affine coupling blocks.
Key technical components include:
- The $\Delta_{affine}$ Metric: A new convergence metric measuring the maximum possible "loss improvement" a single additional layer can provide. The authors prove that if this metric reaches zero, the distribution must have converged to the target Gaussian.
- Greedy Construction: By choosing rotation and scaling parameters for each new layer to maximize this improvement, the total Kullback-Leibler (KL) divergence between the model and the target eventually vanishes.
- Volume-Preserving Analysis: Using Pinsker’s inequality, the authors demonstrate that volume-preserving flows cannot change the "mode structure" (the number of peaks) of a distribution.
Key Insights and Ideas
A central finding is the "Mode Constraint": volume-preserving flows are "incompressible," meaning they cannot easily reduce the density between two modes to zero. Consequently, they learn biased distributions that inherit the single-mode structure of the latent Gaussian, often leaving a "bridge" of high density between clusters.
Other key insights include:
- The Simple Fix: Volume-preserving flows can be made universal simply by adding a single one-dimensional non-volume-preserving layer (a global scaling).
- Well-Conditioned Sufficiency: Bi-Lipschitz (well-behaved) layers are sufficient for universality; infinite weights or exploding gradients are not required.
- Expressivity vs. Efficiency: While simple affine couplings are universal, more complex couplings like splines are more efficient, requiring fewer layers to achieve the same accuracy because they can reduce negentropy within a single block.
Key Results
The theoretical contributions are summarized in two main theorems:
- Theorem 4.2 (Negative Result): Volume-preserving flows are not universal approximators under KL divergence. They are mathematically incapable of reaching zero error on certain common distributions.
- Theorem 5.4 (Positive Result): Affine coupling-based flows (e.g., RealNVP) are universal distributional approximators.
Empirical validation on 2D datasets confirms these findings. As the number of coupling blocks increases, the KL divergence consistently decreases toward zero, following the path predicted by the greedy construction proof.
Limitations and Future Work
While the existence of a convergent sequence of layers is proven, the paper does not provide a complexity bound for high-dimensional problems. Additionally, the proof relies on a greedy layer-by-layer approach, whereas joint optimization is standard in practice. The authors conjecture that joint optimization is even more efficient, but a formal proof remains open. Finally, the proof assumes distributions have infinite support and finite moments, covering most practical but not all mathematical edge cases.
Summary updated