Skip to main content
QUICK REVIEW

[Paper Review] The Shape of Data: Intrinsic Distance for Data Distributions

Anton Tsitsulin, Marina Munkhoeva|arXiv (Cornell University)|May 27, 2019
Data Visualization and AnalyticsComputer Science46 references22 citations
TL;DR

This paper proposes IMD (Intrinsic Multi-scale Distance), a novel method for comparing data distributions by leveraging intrinsic geometric properties of data manifolds through a lower-bound of the spectral Gromov-Wasserstein distance. Using the heat trace approximation via the Hutchinson trace estimator and Lanczos-based matrix function evaluation, IMD enables efficient, multi-scale comparison of unaligned data manifolds with near-linear computational complexity, outperforming extrinsic metrics like FID and KID in detecting structural differences.

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.

Motivation & Objective

  • To address the limitations of extrinsic, uni-scale metrics like FID and KID, which rely only on low-order moments and fail to capture global geometric structure.
  • To develop a method that compares data distributions based on intrinsic geometric properties, independent of external representations or alignment.
  • To enable effective comparison of data manifolds with different dimensionality or unaligned structures, such as in cross-lingual word embeddings or neural network representations.
  • To provide a scalable, computationally efficient alternative to existing geometric metrics, with theoretical and empirical validation of its robustness.
  • To demonstrate the efficacy of multi-scale intrinsic comparison in evaluating generative models and tracking model dynamics.

Proposed method

  • The method constructs a k-NN graph from input data to approximate the Laplace-Beltrami operator's spectrum, capturing intrinsic manifold geometry.
  • It computes the heat trace of the graph Laplacian using the Hutchinson trace estimator with random vectors to approximate the trace of matrix functions.
  • A Lanczos algorithm with m=10 steps is used to efficiently estimate the quadratic forms required for the heat trace, ensuring near-linear time complexity.
  • The spectral Gromov-Wasserstein lower bound is approximated by comparing heat traces across different time scales t ∈ (0.1, 10) on a logarithmic grid.
  • The final distance is computed as the supremum of the absolute difference in heat traces, weighted by exponential decay factors.
  • The approach is implemented with approximate k-NN graphs to maintain scalability, achieving O(n_v (m log m + k m n)) complexity with default parameters.

Experimental results

Research questions

  • RQ1Can an intrinsic, multi-scale distance measure detect structural differences in data distributions that extrinsic metrics like FID and KID miss?
  • RQ2How well does IMD perform in comparing unaligned data manifolds, such as word embeddings from different languages with no shared vocabulary?
  • RQ3Can IMD effectively track changes in intermediate neural network representations during training or model evolution?
  • RQ4How does IMD compare in scalability and stability to existing metrics like FID, KID, and Geometry Score?
  • RQ5Does multi-scale intrinsic comparison lead to more reliable evaluation of generative models than moment-based extrinsic metrics?

Key findings

  • IMD successfully detects global structural differences in data distributions even when FID and KID report near-zero scores, as demonstrated in a synthetic example with identical first three moments.
  • The method achieves a relative error of approximately 10^-3 in trace estimation with only 100 random vectors in the Hutchinson estimator, validating its numerical accuracy.
  • IMD's computational complexity is near-linear, outperforming FID (O(d³ + dn)) and KID (O(dn²)), and scaling better than the Geometry Score, which exhibits exponential growth in sample size.
  • In experiments on cross-lingual word embeddings, IMD effectively compares unaligned vocabularies, revealing meaningful semantic differences missed by extrinsic metrics.
  • IMD provides consistent and stable performance across varying data dimensions and manifold structures, demonstrating robustness to representation changes.
  • The method enables reliable evaluation of generative models by capturing multi-scale geometric properties, offering insights beyond mean and covariance matching.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.