A Heat Diffusion Perspective on Geodesic Preserving Dimensionality Reduction

Guillaume Huguet, Alexander Tong, Edward De Brouwer, Yanlei Zhang, Guy Wolf, Ian Adelstein, Smita Krishnaswamy

This paper provides a rigorous geometric foundation for why diffusion-based dimensionality reduction works and introduces a new, high-performance method called HeatGeo.

TL;DR

HeatGeo is a novel dimensionality reduction method that leverages the mathematical relationship between heat diffusion and Riemannian geometry to explicitly preserve geodesic distances. It outperforms state-of-the-art tools like PHATE in distance preservation and clustering, while providing a unified framework that connects diffusion-based methods to neighborhood-based methods like t-SNE.

The Challenge of Manifold Learning

High-dimensional, noisy datasets—common in biology (like single-cell sequencing) and physics—are often assumed to lie on a lower-dimensional "manifold." To visualize or analyze this data, researchers use manifold learning to project it into 2D or 3D spaces.

While popular methods like PHATE and Diffusion Maps are widely used because they handle noise well, their theoretical connection to the actual geometry of the manifold (specifically geodesic distances, or the "shortest path" along the surface) has been largely heuristic. There has historically been a gap between the intuitive success of these "diffusion" methods and the formal proofs required to guarantee they actually preserve the manifold's intrinsic structure.

Introducing HeatGeo

The authors bridge this theoretical gap using Varadhan’s formula, a celebrated result in differential geometry. It states that as time ($t$) goes to zero, the log of the heat kernel ($h_t$) is directly proportional to the squared geodesic distance: $$\lim_{t \to 0} -4t \log h_t(x, y) = d^2(x, y)$$

Building on this foundation, they introduce Heat Geodesic Embedding (HeatGeo). The algorithm follows a distinct workflow:

  1. Graph Construction: Build a k-nearest neighbor graph from the raw data.
  2. Heat Kernel Approximation: Instead of a slow full eigendecomposition, Chebyshev polynomials are used to rapidly approximate the heat kernel ($H_t$) on the graph.
  3. Heat-Geodesic Dissimilarity: A distance metric is defined based on the log of the heat kernel, including a "Harnack regularization" term to account for variations in data density (volume).
  4. Denoising: A "triplet distance" step compares distances relative to all other points, effectively spreading out the impact of noise.
  5. Embedding: Finally, Metric Multidimensional Scaling (MDS) projects the resulting distances into a low-dimensional space.

Key Insights and Unified Framework

  • The "Why" behind the Log: One of the most interesting insights is the mathematical justification of the log-transform. While methods like PHATE use a log-transform as a heuristic to prevent nearest neighbors from dominating, this paper proves that the log-transform is actually the mathematically correct way to recover geodesic distances from diffusion.
  • A Unified Spectrum: By varying parameters, HeatGeo can navigate a continuum between PHATE (which emphasizes global structure) and SNE/t-SNE (which emphasizes local clusters). This suggests these seemingly different algorithms are actually just different "views" of the same underlying heat diffusion process.
  • Temporal Interpolation: Because HeatGeo preserves the "flow" of the manifold so well, it can accurately predict where missing data points should be. The authors demonstrated this by withholding timepoints in a developmental biology dataset and successfully interpolating the missing stages.

Datasets and Key Results

The authors evaluated HeatGeo on a mix of synthetic and complex biological datasets, including the classic Swiss Roll, a high-dimensional Tree dataset (simulating branching Brownian motion), and single-cell RNA sequencing datasets like PBMC (immune cells) and Embryoid Body (EB).

Visual comparison of embedding methods on synthetic datasets
  • Superior Distance Preservation: On the Swiss Roll and Tree datasets, HeatGeo achieved significantly higher Pearson and Spearman correlations with ground-truth geodesic distances compared to PHATE, Isomap, and Diffusion Maps.
Quantitative performance on Swiss Roll and Tree datasets
  • Robustness to Noise: In "very high noise" scenarios, HeatGeo maintained a correlation of ~0.7 with ground truth, while most other methods dropped below 0.5.
  • Better Clustering: On the PBMC dataset, HeatGeo produced more distinct clusters that better matched known biological cell types (measured by Adjusted Mutual Information).
  • Efficiency: Using Chebyshev approximations allowed HeatGeo to run in $O(K(E+n))$ time, making it computationally competitive with modern fast implementations of t-SNE and UMAP.

Limitations and Future Work

  • Similarity vs. Metric: The authors acknowledge that their dissimilarity measure is a relaxation of a distance metric. While it works well in practice, it doesn't strictly satisfy all axioms of a metric space (like the triangle inequality) in every configuration.
  • Parameter Sensitivity: While they provide an automated way to choose the diffusion time ($t$) using the "Kneedle" method on entropy, the volume correction parameter ($\sigma$) still requires some manual tuning depending on how much the user wants to account for density variations.
  • Curvature: The current framework assumes a relatively "flat" local geometry; future work could involve tuning parameters based on the local Ricci curvature of the data manifold.

Summary updated

BibTeX
@inproceedings{huguet2023heat,
  author = {Guillaume Huguet and Alexander Tong and Edward De Brouwer and Yanlei Zhang and Guy Wolf and Ian Adelstein and Smita Krishnaswamy},
  title = {{A Heat Diffusion Perspective on Geodesic Preserving Dimensionality Reduction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=HNd4qTJxkW},
}
Figure