Principled Interpolation in Normalizing Flows

Samuel G. Fadel, Sebastian Mair, Ricardo da Silva Torres, Ulf Brefeld

TL;DR

This paper tackles the problem of "unnatural" interpolations in generative models using normalizing flows. By switching from standard Gaussian base distributions to distributions on fixed-norm manifolds (like the simplex and hypersphere), the authors achieve more principled and visually smoother interpolations, outperforming previous methods in key evaluation metrics.

What Problem Does This Paper Address?

Normalizing flows are powerful tools for learning complex data distributions by transforming them into simpler ones, often a standard Gaussian. A common way to evaluate these models is by interpolating between two data points in the latent space and observing the generated outputs. However, when using a Gaussian base distribution, linear interpolations often produce outputs that look unnatural or "off." This is because the norms of the interpolated latent vectors tend to fall into low-density regions of the Gaussian distribution, meaning the generated data points stray from the learned data manifold. The authors aim to find a more "principled" way to interpolate that respects the underlying data distribution and avoids these artifacts.

Methods

The core idea is to change the base distribution of the normalizing flow from a standard Gaussian to distributions that inherently live on spaces with a fixed norm. Specifically, they propose using:

  • Dirichlet distribution: For $p=1$ norm, which lives on the probability simplex ($\Delta^d$). This requires a transformation from an unconstrained space to the simplex.
  • Von Mises-Fisher (vMF) distribution: For $p=2$ norm, which lives on the hypersphere ($S^{d-1}$). This is achieved using a stereographic projection from an unconstrained space to the hypersphere.

By forcing the base distribution to reside on these fixed-norm manifolds, the interpolations in the latent space naturally stay within a more constrained and relevant region, leading to more natural interpolations in the data space. They also introduce a "norm-corrected linear interpolation" (nclerp) as a heuristic to address the norm issue with Gaussian base distributions, though they later show its limitations.

Datasets

The authors evaluate their approach on the following datasets:

  • MNIST
  • Kuzushiji-MNIST
  • Fashion-MNIST
  • CIFAR10

Key Insights and Ideas

  • The "norm problem" of Gaussian base distributions: The standard Gaussian's unbounded nature means that linear interpolations can lead to latent vectors with norms far from typical data points, causing generated samples to look unnatural.
  • Manifold-based interpolation: By choosing base distributions that live on fixed-norm manifolds (simplex, hypersphere), interpolations are inherently constrained to regions that better reflect the data's structure.
  • Dirichlet and vMF as principled choices: These distributions naturally enforce a fixed norm (sum to 1 for Dirichlet, unit length for vMF), making them suitable for principled interpolation.
  • Limitations of norm-correction: While norm-corrected linear interpolation (nclerp) improves over simple linear interpolation, it can lead to biased evaluations and "repeated" endpoints, making it less ideal than truly manifold-aware methods.

Key Results

  • Improved Interpolation Quality: Experiments show that using Dirichlet and vMF base distributions leads to significantly better interpolation results, as measured by:
  • Bits Per Dimension (BPD): Lower BPD indicates a better fit to the data. vMF generally outperforms Gaussian.
  • Fréchet Inception Distance (FID) and Kernel Inception Distance (KID): Lower FID/KID scores indicate higher quality and similarity of generated/interpolated samples to real data. vMF and Dirichlet consistently yield better FID/KID scores for interpolation tasks.
  • Generative Performance Maintained: The proposed methods do not sacrifice the overall generative performance of the normalizing flow models; they perform comparably to Gaussian base distributions in terms of FID and KID on generated samples.
  • Visual Improvements: Qualitative results (images of interpolations) demonstrate smoother, more natural transitions between images when using vMF or Dirichlet base distributions compared to Gaussian.

Limitations and Future Work

  • Numerical Instabilities with Dirichlet: The paper notes that the Dirichlet distribution, particularly for $p=1$, can suffer from numerical instabilities, especially in high-dimensional settings, limiting its application on some datasets.
  • Heuristic Nature of nclerp: The norm-corrected linear interpolation (nclerp) is presented as a heuristic that, while improving over simple linear interpolation, has limitations like biased evaluation and uneven spacing of interpolants.
  • Future Work: The authors suggest that their approach of changing base distributions can be applied to other architectures beyond Glow. They also hint at the potential for more sophisticated models to achieve even better generative performance. The exploration of normalizing flows on other non-Euclidean spaces is also a natural extension.

Summary updated

BibTeX
@inproceedings{fadel2021principled,
  author = {Samuel G. Fadel and Sebastian Mair and Ricardo da Silva Torres and Ulf Brefeld},
  title = {{Principled Interpolation in Normalizing Flows}},
  booktitle = {ECML/PKDD},
  year = {2021},
  url = {https://openreview.net/forum?id=MKXL_cN7THv},
}
Figure