Lifting Architectural Constraints of Injective Flows

Peter Sorrenson, Felix Draxler, Armand Rousselot, Sander Hummerich, Lea Zimmermann, Ullrich Köthe

TL;DR

Generative models called "Injective Flows" learn to represent data on lower-dimensional manifolds, but they have traditionally been slow to train and architecturally restricted. This paper introduces Free-form Injective Flows (FIF), which uses a novel, efficient gradient estimator and a clever training fix to enable high-performance generative modeling using standard, unconstrained neural network architectures.

What Problem Does This Paper Address?

Most generative models, like standard Normalizing Flows, assume data fills the entire high-dimensional space it's recorded in. However, the manifold hypothesis suggests that real-world data (like images of faces) actually lies on a much lower-dimensional "surface" or manifold embedded within that space.

Injective Flows were designed to model these manifolds directly. By using a bottleneck architecture, they jointly learn the shape of the manifold and the probability distribution on it. The catch? Calculating the "change of variables" (a requirement for maximum likelihood training) involves computing Jacobian determinants, which is notoriously expensive. To make this tractable, researchers previously had to use either very restrictive architectures (like coupling blocks) or slow, iterative numerical solvers. Furthermore, naively training these models often leads to "pathological" solutions where the model creates wildly curved manifolds just to artificially lower the training loss.

Methods

The authors propose Free-form Injective Flows (FIF), which breaks these constraints through two main innovations:

  1. An Efficient Gradient Estimator: Instead of using slow iterative solvers (like conjugate gradient) to estimate the Jacobian term, FIF uses the encoder's Jacobian as an approximate inverse of the decoder's Jacobian. This reduces the computational overhead significantly—training a FIF model takes only about twice as long as training a standard autoencoder.
  2. Off-Manifold Evaluation: To solve the "curvature pathology," the authors realized that the model "cheats" by increasing manifold curvature to concentrate projected data points. They fix this by evaluating the volume change at the original data point $x$ (off the manifold) rather than at the reconstructed point $\hat{x}$. This encourages the manifold to move toward the data and remain stable.
Figure 1: Free-form injective flow (FIF) training and inference. (Left) We combine a recon- struction loss Lrecon. with a novel maximum likelihood loss ˜LNLL to obtain an injective flow without architectural constraints. (Right) We generate novel samples by decoding standard normal latent samples with our best-performing models on CelebA and MNIST. The reconstructions shown are on CelebA validation data, the samples are uncurated samples from our models.

Datasets

The authors evaluated FIF across a diverse range of data:

  • Toy Data: A noisy 2D sinusoid to visualize manifold learning and curvature issues.
  • Tabular Data: Standard benchmarks including POWER, GAS, HEPMASS, and MINIBOONE.
  • Image Data: MNIST (handwritten digits), CIFAR10 (objects), and CelebA (faces).
  • Benchmarks: They compared against the Pythae benchmark, a standardized framework for generative autoencoders.

Key Insights and Ideas

  • The Curvature Pathology: The authors identified that in non-linear models, the negative log-likelihood loss is lower-bounded by the entropy of the data projected onto the manifold. The model can minimize this loss not by fitting the data better, but by increasing curvature to "squeeze" the projections together.
  • Stability through Geometry: By evaluating the encoder Jacobian off-manifold, the model receives a gradient signal that counteracts diverging curvature. As shown in the figure below, this "corrected" approach leads to a manifold that centers itself on the data with zero unnecessary curvature.
Figure 2: Naive training of autoencoders with negative log-likelihood (NLL, see section 4.2) leads to pathological solutions (left). Starting with the initialization (t = 0, black), gradient steps increase the curvature of the learnt manifold (t = 1, 2, orange). This reduces NLL because the entropy of the projected data is reduced, by moving the points closer to one another. This effect is stronger than the reconstruction loss. We fix this problem by evaluating the volume change off-manifold (right). This moves the manifold closer to the data and reduces the curvature (t = 1, 2, green), until it eventually centers the manifold on the data with zero curvature (t = ∞, green). Light lines show the set of points which map to the same latent point. Data is projected onto the t = 2 manifold.
  • Architectural Freedom: Because the new estimator doesn't rely on specific functional forms, researchers can use off-the-shelf ResNets or ConvNets as encoders and decoders, making the models much more expressive than previous injective flows.

Key Results

  • Speedup: FIF is 1.5x to 6x faster to train than previous "rectangular flow" methods on tabular data while achieving better or comparable performance.
  • Image Quality: On the CelebA dataset, FIF outperformed existing state-of-the-art injective flows (like DNF and Trumpet) in terms of Fréchet Inception Distance (FID), a standard measure of image generation quality.
  • SOTA Performance: Within the Pythae benchmark, FIF achieved state-of-the-art FID scores on CelebA when using ResNet architectures, proving it is highly competitive with other popular generative autoencoder paradigms like VAEs and WAEs.

Limitations and Future Work

  • Latent Distribution: The authors found that the latent representations aren't perfectly Gaussian. While using a Gaussian Mixture Model (GMM) for sampling improved results, they suggest that larger models with more fully-connected layers in the latent space might naturally suffer less from this.
  • Reconstruction Weight: There is a "phase transition" related to the reconstruction weight $\beta$. If $\beta$ is too low, the model might still prioritize noise over the actual data manifold. Finding the optimal balance automatically remains an open question.
  • Theoretical Depth: While the off-manifold fix works empirically, the authors note that further theoretical investigation is needed to fully understand the dynamics of joint manifold and density estimation.

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 Lea Zimmermann 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