ManiFlow: Implicitly Representing Manifolds with Normalizing Flows

Janis Postels, Martin Danelljan, Luc Van Gool, Federico Tombari · DOI

Abstract

Normalizing Flows (NFs) are powerful generative models that provide exact likelihoods but struggle with data residing on low-dimensional manifolds. This "Curse of Invertibility" often requires adding noise, which blurs results. ManiFlow proposes to treat the regions of maximum likelihood in a noise-perturbed NF as an implicit representation of the manifold. By utilizing gradient-based projection (Log-Likelihood Maximization) or surface reconstruction (LL-Poisson), ManiFlow recovers crisp manifolds from noisy distributions, improving 3D point cloud and image generation.

Introduction: The Curse of Invertibility

Normalizing Flows are "explicit" models—they don't just generate data; they can calculate the exact probability of a specific data point. However, they face a fundamental limitation: because they rely on invertible transformations, the input and output dimensions must match.

When modeling a 2D surface (like a piece of paper) floating in 3D space, a standard NF fails because the surface has zero "volume" in 3D. The mathematical likelihood values explode toward infinity. To circumvent this, researchers typically add random noise to the data to give it volume. While this stabilizes training, it "blurs" the results, leading to fuzzy 3D models or grainy images. ManiFlow addresses this by asking: Can we use a model trained on noisy data to recover the crisp, original manifold?

Methodology: Decoding the Manifold

The authors propose two main strategies to "decode" the manifold from a trained, noisy NF:

1. Log-Likelihood Maximization (LLM)

The core observation is that if the added noise is small, the "peaks" of the probability distribution learned by the NF will align with the original manifold. To generate a clean sample, the model first draws a noisy sample and then uses gradient ascent to nudge that point toward the nearest local maximum of the log-likelihood. A regularization term ensures the point remains near its starting position.

Visualizing manifold recovery on a 2D circle using Log-Likelihood Maximization (LLM).

2. LL-Poisson for 3D Point Clouds

Iterative optimization via LLM can be computationally expensive. For 3D data, the authors realized that the gradient of the log-likelihood is parallel to the surface normal. By extracting these gradients and treating them as normals, they utilize the classical Poisson Surface Reconstruction algorithm to create smooth, watertight meshes, which are then resampled into clean point clouds.

Key Insights: Gradients as Geometry

ManiFlow reframes a noisy NF as an implicit manifold representation, similar to Signed Distance Functions (SDFs). A key "aha moment" is that the mathematical gradient of a probability field contains physical geometric information (surface normals), bridging deep learning and classical geometry processing.

Experimental Results

The researchers evaluated ManiFlow across standard benchmarks, including ShapeNet (3D CAD models) and various image datasets (MNIST, CIFAR-10, CelebA).

3D Reconstruction Quality

ManiFlow consistently outperformed previous state-of-the-art methods like SoftFlow. On the ShapeNet Airplane category, ManiFlow achieved a Chamfer Distance (CD) of 1.132, significantly lower than the 1.262 achieved by a vanilla NF. Qualitatively, the LL-Poisson method produced much smoother and more realistic surfaces than standard NFs, which often produce "clumpy" or noisy point clouds.

Qualitative comparison of 3D point cloud reconstruction across different methods.

Image Quality Improvements

Applying LLM to a standard GLOW model improved the Frechet Inception Distance (FID) significantly. For MNIST, the FID score dropped from 30.0 to 21.7, indicating a substantial increase in perceptual quality.

Limitations and Future Work

Despite its success, ManiFlow has limitations. The LLM method requires multiple gradient updates at test time, increasing computational cost. Additionally, the trade-off parameter $\lambda$ is currently a global constant; future work could explore locally varying parameters. Finally, the model assumes a known manifold dimensionality, which may not always be the case in complex real-world datasets.

Summary updated

BibTeX
@inproceedings{postels2022maniflow,
  author = {Janis Postels and Martin Danelljan and Luc Van Gool and Federico Tombari},
  title = {{ManiFlow: Implicitly Representing Manifolds with Normalizing Flows}},
  booktitle = {3DV},
  year = {2022},
  url = {https://openreview.net/forum?id=ifC95DAPlV6},
}
Figure