Intrinsic Multi-scale Evaluation of Generative Models

Anton Tsitsulin, Marina Munkhoeva, Davide Mottin, Panagiotis Karras, Alexander M. Bronstein, Ivan V. Oseledets, Emmanuel Müller

Abstract

The ability to represent and compare machine learning models is crucial in order to quantify subtle model changes, evaluate generative models, and gather insights on neural network architectures. Existing techniques for comparing data distributions focus on global data properties such as mean and covariance; in that sense, they are extrinsic and uni-scale. We develop a first-of-its-kind intrinsic and multi-scale method for characterizing and comparing data manifolds, using a lower-bound of the spectral variant of the Gromov-Wasserstein inter-manifold distance, which compares all data moments. In a thorough experimental study, we demonstrate that our method effectively discerns the structure of data manifolds even on unaligned data of different dimensionalities; moreover, we showcase its efficacy in evaluating the quality of generative models.

Introduction

Evaluating generative models and comparing data distributions usually relies on extrinsic metrics like Fréchet Inception Distance (FID) or Kernel Inception Distance (KID). While widely used, these metrics struggle with unaligned data and only capture global, single-scale properties. They are largely blind to the underlying geometric structure of the data manifold and require data to be in the exact same aligned space and dimensionality. This paper introduces the Intrinsic Multi-scale Distance (IMD), a novel metric based on heat kernel traces that captures the intrinsic geometry of data manifolds across multiple scales.

The Intrinsic Multi-scale Distance (IMD)

Instead of looking at where data points sit in an arbitrary coordinate system, IMD measures the intrinsic geometry of the data manifold itself. The process involves three key steps:

  1. Manifold Approximation: IMD builds a $k$-Nearest Neighbors ($k$NN) graph from the data points to approximate the underlying manifold and computes its normalized graph Laplacian.
  2. Heat Kernel Trace (HKT): It calculates the Heat Kernel Trace, which simulates how heat diffuses across the manifold over time $t$. Small $t$ values capture local geometry (texture, local clusters), while large $t$ values capture global structure (overall shape).
  3. Distance Calculation: By comparing the HKTs of two distributions across a logarithmic scale of $t$, IMD provides a lower bound to the spectral Gromov-Wasserstein distance.
A visualization of a data manifold being approximated by discrete samples, illustrating the first step of the IMD process.

To ensure scalability, the authors utilize Stochastic Lanczos Quadrature (SLQ). This computational trick allows for the approximation of the HKT in near-linear time, making the metric highly efficient even for large datasets ($10^4$ samples) compared to previous geometric metrics.

Key Insights and Results

Geometry over Coordinates

By focusing on intrinsic geometry rather than extrinsic coordinates, IMD can compare entirely unaligned datasets. This is particularly powerful in NLP, where IMD successfully clustered 16 unaligned language embeddings into accurate genealogical families (e.g., grouping Slavic or Semitic languages together). As shown in the experimental results, traditional metrics like FID and KID completely failed this task, producing results indistinguishable from noise.

Comparison of IMD (blue) against FID (yellow) and KID (red) on unaligned language embeddings. The heatmap (a) shows IMD's ability to cluster language families, while the plot (b) shows that only IMD captures the relative distance from Simple English.

Multi-scale Sensitivity and Topological Awareness

Heat diffusion over time acts as a geometric zoom lens. This allows IMD to detect structural flaws that single-scale metrics miss. For instance, a GAN trained on a 3D torus might generate points inside the empty hole. While FID and KID might score such a "bad GAN" similarly to a good one, IMD's multi-scale nature allows it to flag these topological failures easily.

Robustness and GAN Evaluation

IMD demonstrates high robustness to noise. When evaluating CIFAR-10 images subjected to Gaussian blur, IMD remained structurally consistent, whereas FID and KID quickly drifted. Furthermore, in standard GAN evaluation, IMD successfully distinguished between WGAN and the superior WGAN-GP across multiple datasets (MNIST, CIFAR-10, CelebA), providing deeper geometric guarantees than existing consensus metrics.

Conclusion

IMD represents a significant step forward in model evaluation by providing a first-of-its-kind intrinsic, multi-scale, and coordinate-independent metric. Its ability to handle unaligned data and different dimensionalities opens new avenues for comparing neural network representations and evaluating generative models with greater geometric fidelity.

Summary updated

BibTeX
@inproceedings{tsitsulin2020intrinsic,
  author = {Anton Tsitsulin and Marina Munkhoeva and Davide Mottin and Panagiotis Karras and Alexander M. Bronstein and Ivan V. Oseledets and Emmanuel Müller},
  title = {{Intrinsic Multi-scale Evaluation of Generative Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=9ODtNAxYxXF},
}
Figure