Abstract
Normalizing flows (NFs) are powerful generative models that transform simple priors into complex distributions via invertible mappings. However, they are fundamentally restricted by the topology of the prior, often leading to numerical instability and "mass leakage" when modeling data with disconnected components or holes. We discuss Continuously Indexed Flows (CIFs), which relax these constraints by indexing bijections with a continuous variable. This hybrid approach between NFs and Variational Autoencoders (VAEs) allows for more flexible density estimation, achieving state-of-the-art results on tabular and image benchmarks with significantly shallower networks.
The Topological Challenge in Normalizing Flows
Normalizing flows rely on homeomorphisms—continuous, invertible mappings—to transform a simple prior (typically a Gaussian) into a target data distribution. A core limitation of this approach is that homeomorphisms preserve topology. If the target data distribution resides on a manifold with a different topology than the prior—such as a ring (with a hole) or a checkerboard (with disconnected components)—a single bijection cannot perfectly represent the target.
To approximate such distributions, the mapping must become extremely "stretched," causing the bi-Lipschitz constant to tend toward infinity. In practice, this leads to numerical instability and "leaked" probability mass in regions where the data density should be zero.
Continuously Indexed Flows (CIFs)
To address these topological restrictions, the authors propose Continuously Indexed Flows (CIFs). Instead of a single global bijection $X = f(Z)$, CIFs introduce a continuous index variable $U$. The generative process is defined as:
- Sample $Z$ from a prior $P_Z$.
- Sample an index $U$ from a conditional distribution $P_{U|Z}$.
- Generate the data point via a bijection $F(Z; U)$ that depends on the index.
By marginalizing over $U$, the model effectively becomes an infinite mixture of bijections. This added flexibility allows the model to "reroute" probability mass, effectively cleaning up the errors that a single bijection would otherwise be forced to make.
Because marginalizing over a continuous $U$ makes the exact likelihood intractable, CIFs utilize a variational approach. An inference network $q(U|X)$ is trained alongside the generative model to optimize an Evidence Lower Bound (ELBO), making CIFs a structural hybrid of NFs and VAEs.
Experimental Results
The CIF framework was evaluated across synthetic 2D data, tabular benchmarks (UCI), and image datasets (MNIST, CIFAR-10).
- Efficiency and Depth: A key finding was that architectural flexibility via continuous indexing is more effective than increasing depth. A 10-layer CIF-ResFlow outperformed a 100-layer standard ResFlow, demonstrating that CIFs can achieve superior results with much shallower networks.
- Tabular Benchmarks: CIF-ResFlows achieved state-of-the-art performance on four out of five standard UCI tabular datasets, outperforming established models like Masked Autoregressive Flows (MAFs) and Neural Spline Flows (NSFs).
- Image Modeling: On CIFAR-10, CIF-ResFlow achieved a test bits-per-dimension of 3.334, surpassing the 3.422 achieved by a significantly larger "Big" ResFlow baseline.
Conclusion
Continuously Indexed Flows provide a robust solution to the topological limitations of standard normalizing flows. By incorporating a continuous index variable, CIFs can model complex, multi-modal distributions without the numerical instability associated with high bi-Lipschitz constants. While they sacrifice exact likelihood for a variational approximation, the gains in efficiency and modeling accuracy make them a compelling choice for high-dimensional generative tasks.
Summary updated