SoftFlow: Probabilistic Framework for Normalizing Flow on Manifolds

Hyeongju Kim, Hyeonseung Lee, Woo Hyun Kang, Joun Yeop Lee, Nam Soo Kim

The Manifold Hypothesis and the Dimension Mismatch

Most high-dimensional data, such as images or 3D point clouds, follows the manifold hypothesis: the data does not fill the entire high-dimensional space but instead resides on a lower-dimensional subspace (a manifold). Normalizing flows (NFs) generate data by transforming a simple distribution (like a Gaussian) into a complex one using invertible, continuous mappings called homeomorphisms.

However, a mathematical property of homeomorphisms is that they preserve the intrinsic dimension of the space. If the target data is a 1D line in a 2D space, a standard NF cannot "stretch" that 1D line to cover the 2D latent space. This "dimension mismatch" leads to numerical instability, poor density estimation, and "blurry" generated samples where the model attempts to fill gaps it cannot mathematically reach.

The dimension mismatch problem: standard NFs fail to map a 1D manifold (bottom) to a 2D Gaussian latent space, unlike noisy data (top).

SoftFlow: Thickening the Manifold

The authors introduce SoftFlow, a framework that sidesteps the dimension mismatch by "thickening" the manifold during training. Instead of learning the raw, thin data distribution, the model learns a conditional distribution $p(x'|c)$, where $x'$ is the data perturbed by noise level $c$.

The process involves three key steps:

  1. Perturbation: For every data point $x$, the model samples a noise level $c$ from a uniform distribution and adds Gaussian noise $\nu \sim \mathcal{N}(0, c^2 I)$ to create a "thickened" data point.
  2. Conditional Flow: Because the added noise ensures the data now has the same dimension as the ambient space, the standard change-of-variables formula used in NFs becomes valid and stable again.
  3. Conditioning: The noise parameter $c$ is fed into the flow network as a condition. This allows the network to learn how the distribution evolves as the noise level decreases toward zero.
The SoftFlow framework: perturbing data with varying noise scales and training a conditional flow to map the "thickened" distribution to the latent space.

To generate new data, the user simply sets the noise parameter $c$ to zero (or a very small value), effectively "collapsing" the thickened distribution back onto the original thin manifold. For complex data like 3D point clouds, the authors propose SoftPointFlow, which utilizes a hierarchical structure with a "PriorFlow" for global shape and a "DecoderFlow" for individual points.

Key Results and Performance

SoftFlow demonstrates significant improvements over state-of-the-art (SOTA) models in both toy and real-world datasets:

  • Toy Distributions: SoftFlow perfectly captured 1D structures in 2D toy datasets (e.g., 2spirals, swissroll), whereas standard models like Glow and FFJORD produced scattered points or failed to connect the shapes.
  • 3D Point Clouds: Evaluated on the ShapeNet Core (v2) dataset, SoftPointFlow achieved SOTA performance on the 1-NNA (1-Nearest Neighbor Accuracy) metric. For the "Airplane" category, it improved the Chamfer Distance (CD) score from PointFlow's 75.68% to 70.92% (where 50% is ideal).
  • Qualitative Realism: SoftPointFlow was significantly better at capturing "thin" parts of 3D objects, such as chair legs and airplane wing tips. In a preference test with 31 participants, SoftPointFlow was overwhelmingly chosen over the baseline PointFlow for its realism and detail.

Conclusion and Future Work

SoftFlow provides a simple yet effective solution to the manifold dimension mismatch in normalizing flows. By training on a range of noise levels, the model learns to "denoise" the latent space as $c$ approaches zero, respecting the mathematical constraints of homeomorphisms.

While the method is robust, the authors note that performance could be further enhanced by identifying optimal noise distributions for training or searching for neural architectures specifically designed to leverage the noise parameter $c$. Despite the computational resources required for hierarchical flows, SoftFlow represents a major step forward in generative modeling for manifold-constrained data.

Summary updated

BibTeX
@inproceedings{kim2020softflow,
  author = {Hyeongju Kim and Hyeonseung Lee and Woo Hyun Kang and Joun Yeop Lee and Nam Soo Kim},
  title = {{SoftFlow: Probabilistic Framework for Normalizing Flow on Manifolds}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=fJ7k4zGZON},
}
Figure