Abstract
Normalizing flows provide an elegant approach to generative modeling that allows for efficient sampling and exact density evaluation of unknown data distributions. However, current techniques have significant limitations in their expressivity when the data distribution is supported on a low-dimensional manifold or has a non-trivial topology. We introduce a novel statistical framework for learning a mixture of local normalizing flows as "chart maps" over the data manifold. Our framework augments the expressivity of recent approaches while preserving the signature property of normalizing flows, that they admit exact density evaluation. We learn a suitable atlas of charts for the data manifold via a vector quantized auto-encoder (VQ-AE) and the distributions over them using a conditional flow. We validate experimentally that our probabilistic framework enables existing approaches to better model data distributions over complex manifolds.
Introduction
Normalizing flows (NFs) have emerged as a powerful class of generative models, uniquely capable of providing both efficient sampling and exact, tractable density estimation. By learning a diffeomorphism—a smooth, bijective mapping—between a simple latent distribution (such as a Gaussian) and a complex data distribution, NFs transform noise into structured data.
However, standard NFs face a fundamental "topological" bottleneck. Because a diffeomorphism is continuous and invertible, it must preserve the topology of the space it transforms. This creates significant issues when the target data distribution resides on a manifold with "holes" (like a torus), consists of disconnected components, or exists as a low-dimensional manifold embedded in a high-dimensional space. In such cases, a single global flow cannot mathematically map a simple Gaussian blob to the target geometry without "tearing" the mapping or introducing numerical instabilities. VQ-Flows addresses these limitations by decomposing the global modeling problem into a collection of local tasks.
Methodology: An Atlas of Local Flows
The VQ-Flows framework treats the data manifold as an atlas of charts, a concept derived from differential geometry. Rather than forcing a single global transformation, the model learns to partition the data space and apply specialized local transformations.
1. Manifold Partitioning via VQ-AE
The model first employs a Vector Quantized Auto-Encoder (VQ-AE) to learn a set of discrete "codebook" vectors. These vectors act as quantized centers that lie on or near the data manifold. By assigning data points to their nearest codebook vector, the VQ-AE effectively partitions the complex data space into a series of overlapping local regions, or "charts."
2. Local Normalizing Flows
Instead of a single global flow, VQ-Flows utilizes a family of flows conditioned on the quantized centers. Each local flow is responsible only for modeling the distribution within its specific chart. Because these charts are locally Euclidean (or "flat"), the topological restrictions that plague global flows are bypassed. This allows the model to represent complex global topologies through a collection of simpler local mappings.
3. Dimensionality Raising and Conformal Embeddings
To address the "manifold hypothesis"—where data dimension $D$ is higher than the intrinsic manifold dimension $d$—the framework incorporates conformal embeddings. These specific transformations allow the model to raise dimensions while maintaining a tractable Jacobian determinant, ensuring that exact density calculation remains possible even when mapping between spaces of different dimensions.
4. Probabilistic Mixture
The final model is formulated as a mixture of these local flows. The authors provide a rigorous statistical framework to ensure that even with overlapping charts, the exact probability density of any data point can be calculated by summing the contributions from the relevant local flows. This preserves the "signature" advantage of normalizing flows: exact, non-approximate density evaluation.
Experimental Evaluation
The researchers evaluated VQ-Flows against standard flow architectures (such as RealNVP and MAF) across two distinct categories of data.
Toy 3D Manifolds
The model was tested on ten complex geometries designed to challenge topological limits, including the Helix, Knotted, Interlocked-Circles, and Twisted-Eight. These shapes are notoriously difficult for standard flows due to their intricate loops and holes. In nearly every case, VQ-augmented versions of standard flows significantly outperformed their base counterparts. For instance, on the Helix dataset, VQ-RealNVP achieved a log-likelihood of -1.66 nats, a substantial improvement over the base RealNVP's -3.37 nats.
High-Dimensional Data
To test scalability, the researchers applied VQ-Flows to the MNIST dataset of handwritten digits (784 dimensions). VQ-Flows achieved lower (better) FID scores faster than standard flows. This suggests that the manifold-partitioning approach provides a useful inductive bias even in high-dimensional image spaces, where the data is assumed to lie on a lower-dimensional manifold.
Discussion and Key Insights
The primary innovation of VQ-Flows is the decoupling of manifold partitioning from density estimation. By using a VQ-AE to handle the discrete task of partitioning the space and a conditional flow to handle the continuous task of density modeling, the framework avoids the training instabilities often found in previous mixture-of-flow models.
Qualitatively, VQ-Flows produces higher-quality samples that remain strictly on the data manifold. Standard flows often "leak" probability mass into empty regions of the space between manifold segments, whereas the localized nature of VQ-Flows constrains the generative process more effectively.
Limitations and Future Work
A current limitation involves the behavior of local flows during inference. While a local flow is trained on samples from a specific chart, there is no explicit constraint preventing it from generating samples outside that chart's boundaries during sampling. This can lead to a slight underestimation of the total density. Future research aims to implement explicit boundary constraints to further tighten the probabilistic model and to scale the approach to more complex natural image datasets.
Summary updated