Lifting Architectural Constraints of Injective Flows

Peter Sorrenson, Felix Draxler, Armand Rousselot, Sander Hummerich, L. L. Zimmerman, Ullrich Köthe

Abstract

Normalizing Flows explicitly maximize a full-dimensional likelihood on the training data. However, real data is typically only supported on a lower-dimensional manifold leading the model to expend significant compute on modeling noise. Injective Flows fix this by jointly learning a manifold and the distribution on it. So far, they have been limited by restrictive architectures and/or high computational cost. We lift both constraints by a new efficient estimator for the maximum likelihood loss, compatible with free-form bottleneck architectures. We further show that naively learning both the data manifold and the distribution on it can lead to divergent solutions, and use this insight to motivate a stable maximum likelihood training objective. We perform extensive experiments on toy, tabular and image data, demonstrating the competitive performance of the resulting model.

Introduction

Generative models like Normalizing Flows (NFs) are powerful because they allow for exact likelihood calculation. However, they often struggle with a fundamental reality: most high-dimensional data, such as images, actually lives on a much lower-dimensional "manifold." Traditional NFs require the latent space to have the same dimensionality as the data, which forces the model to expend significant computational effort modeling the empty space or noise around that manifold.

Injective Flows solve this by using a "bottleneck" (a smaller latent space) to specifically target these low-dimensional manifolds. However, they have historically been hampered by restrictive architectures and high computational costs. This paper introduces Free-Form Injective Flows (FIF), a generative model that learns a data manifold and its distribution without being restricted to specific neural network architectures.

Overview of the Free-Form Injective Flow (FIF) framework showing training (left) and sampling (right).

The Challenge: Curvature Pathology and Computational Cost

Most generative models face a trade-off. While Injective Flows address the dimensionality issue, they have faced two major hurdles:

  1. Restrictive Architectures: Previous models often required "coupling blocks" or other specific layers to keep the math tractable, limiting their expressivity.
  2. Computational Cost: Calculating the "change of variables" (the log-determinant term) required for maximum likelihood training usually involves slow, iterative algorithms like Conjugate Gradient.

Furthermore, the authors discovered a "curvature pathology": if you naively try to maximize likelihood in these bottleneck models, the model "cheats" by creating a manifold with extreme curvature to artificially concentrate data points, leading to unstable training and divergent solutions.

Methodology: Free-Form Injective Flows (FIF)

The authors propose three major innovations to create FIF:

  • Unconstrained Architectures: Unlike previous flows, FIF can use any standard autoencoder architecture (like a ResNet or a simple MLP). There are no requirements for "invertible" layers.
  • The Single-Step Estimator: Instead of using slow iterative methods to estimate the log-determinant gradient, they use the Jacobian of the encoder as a proxy for the inverse Jacobian of the decoder. This allows the gradient to be computed in a single pass, making training significantly faster.
  • Off-Manifold Evaluation: To fix the curvature pathology, the authors evaluate the volume change (the Jacobian) at the original data point $x$ (off-manifold) rather than at the reconstructed point $\hat{x}$ (on-manifold). This simple change provides a "centering" force that keeps the manifold from becoming spuriously wiggly.
Comparison of naive vs. corrected gradient computation, illustrating how off-manifold evaluation prevents the curvature pathology.

Key Results

The authors evaluated FIF across tabular data and image benchmarks (MNIST, CIFAR-10, CelebA). Key findings include:

  • Speed: FIF is significantly faster than previous "Rectangular Flows," showing training speedups between 1.5x and 6.1x on tabular datasets.
  • Image Quality: On the CelebA dataset, FIF achieved a Fréchet Inception Distance (FID) of 37.4, significantly outperforming previous injective flow state-of-the-art models like Trumpet (47.7) and DNF (52.7).
  • Benchmark Performance: In the Pythae benchmark, FIF achieved the best FID score on CelebA using a ResNet architecture, proving that it is competitive with the entire field of generative autoencoders.

Conclusion

By replacing slow iterative calculations with a clever single-step estimator and fixing the curvature pathology that causes training to diverge, Free-Form Injective Flows provide a faster, more flexible approach to manifold-based generative modeling. While the model currently assumes a Gaussian latent space, future work could explore more complex latent distributions to further improve performance on high-resolution datasets.

Summary updated

Abstract

Normalizing Flows explicitly maximize a full-dimensional likelihood on the training data. However, real data is typically only supported on a lower-dimensional manifold leading the model to expend significant compute on modeling noise. Injective Flows fix this by jointly learning a manifold and the distribution on it. So far, they have been limited by restrictive architectures and/or high computational cost. We lift both constraints by a new efficient estimator for the maximum likelihood loss, compatible with free-form bottleneck architectures. We further show that naively learning both the data manifold and the distribution on it can lead to divergent solutions, and use this insight to motivate a stable maximum likelihood training objective. We perform extensive experiments on toy, tabular and image data, demonstrating the competitive performance of the resulting model.
BibTeX
@inproceedings{sorrenson2024lifting,
  author = {Peter Sorrenson and Felix Draxler and Armand Rousselot and Sander Hummerich and L. L. Zimmerman and Ullrich Köthe},
  title = {{Lifting Architectural Constraints of Injective Flows}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=kBNIx4Biq4},
}
Figure