Towards One Model for Classical Dimensionality Reduction: A Probabilistic Perspective on UMAP and t-SNE

Aditya Ravuri, Neil D Lawrence

TL;DR

This paper demonstrates that popular non-linear dimensionality reduction algorithms—specifically UMAP and t-SNE—can be recast as Maximum A Posteriori (MAP) inference within a unified probabilistic model. By modeling the graph Laplacian as a Wishart-distributed precision matrix parameterized by a non-linear Student-$t$ kernel on the latent variables, the authors bridge the gap between neighbor embedding techniques, spectral graph methods, and Gaussian Process Latent Variable Models (GPLVMs).

What Problem Does This Paper Address?

Dimensionality reduction (DR) algorithms are ubiquitous for visualizing high-dimensional data, yet they largely operate under disparate mathematical frameworks. Classical spectral methods like Laplacian Eigenmaps rely on eigendecompositions of graph Laplacians, while modern algorithms like t-SNE and UMAP optimize contrastive or cross-entropy losses over nearest-neighbor graphs.

The Probabilistic Dimensionality Reduction (ProbDR) framework previously unified several spectral methods under a Wishart covariance/precision model, but treated UMAP and t-SNE separately via variational inference over graph adjacencies. This paper resolves that divide: it asks whether UMAP and t-SNE can also be understood as MAP inference under a Wishart model on the graph Laplacian, placing all these algorithms on a single continuum.

Methods

The authors build their derivation through several systematic steps:

  1. Starting from the Contrastive Objective: They adopt the Contrastive Neighbor Embedding (CNE) formulation of UMAP/t-SNE proposed by Damrich et al. (2022), which expresses the loss as an attractive neighbor term plus a negative-sampled repulsive term.
  2. Bounding with a Bernoulli Likelihood: In the large-$n$ limit, the authors prove that the CNE energy function lower-bounds the log-likelihood of a Bernoulli graph model: $$A_{ij} \mid X \sim \text{Bernoulli}\left(\tilde{\epsilon} \frac{1}{1 + d_{ij}(X)^2}\right)$$ where $d_{ij}(X)$ is the Euclidean distance in latent space and $\tilde{\epsilon}$ scales the adjacency probability.

  3. Connecting Graph Adjacency to the Graph Laplacian: Using a first-order approximation for small $\tilde{\epsilon}$ and properties of the centering matrix $H = I - \frac{1}{n}\mathbf{1}\mathbf{1}^T$, they rewrite the log-likelihood in terms of the centered graph Laplacian $L = D - A$.

  4. Ansatz to a Wishart Likelihood: By approximating $\log P_{ij}$ around $\tilde{\epsilon}$ via a matched-gradient ansatz, the objective maps directly to the log-likelihood of a Wishart distribution: $$L \mid X \sim \mathcal{W}\left(\left(0.5\tilde{\epsilon}^{-1}I + 0.5 H P^u H + XX^T\right)^{-1}, n\right)$$ where $P^u_{ij} = (1 + d_{ij}(X)^2)^{-1}$ is the Student-$t$ kernel.

Datasets

The authors evaluated their model on three benchmark datasets resampled to 10 classes and up to 25,000 datapoints (sourced via the openTSNE repository):

  • MNIST: Standard handwritten digit image benchmark.
  • Macosko et al. (2015): Single-cell RNA sequencing transcriptomic data from mouse retinal cells.
  • Zheng et al. (2017): Large-scale single-cell transcriptomic profiling of peripheral blood mononuclear cells (PBMCs).

Key Insights and Ideas

  • Laplacian Eigenmaps vs. UMAP/t-SNE: Laplacian Eigenmaps corresponds to a Wishart model with a linear latent kernel ($XX^T$). UMAP and t-SNE simply extend this to a non-linear Student-$t$ kernel ($H P^u H$).
  • Precision vs. Covariance in GPLVMs: In standard GPLVMs, a non-linear kernel directly models the data covariance ($YY^T$). Here, the non-linear kernel models the implied covariance of a graph Laplacian, which acts as a precision (inverse covariance) matrix. This explains why UMAP/t-SNE cleanly separate discrete clusters whereas standard GPLVMs struggle.
  • Constructing Valid Covariances from Distances: The framework highlights a mathematical recipe for building positive semi-definite covariances by double-centering conditionally positive definite (CPD) matrices, such as element-wise logarithms of kernel matrices.

Key Results

  • Visual Faithfulness to CNE: Optimizing the latent coordinates $X$ under the derived Wishart MAP objective using Adam (initial learning rate 1.0, 50 epochs) reproduces cluster separation and manifold structure visually comparable to standard CNE (UMAP).
  • Distinct from GPLVM/PCA: Direct comparisons show that standard PCA and standard GPLVMs using Student-$t$ kernels fail to achieve the well-separated cluster geometry produced by the Laplacian-based Wishart formulation.

Limitations and Future Work

  • Computational Scalability: The current formulation relies on directly inverting dense $n \times n$ matrices. While tested on up to $n = 25{,}000$ on a GPU, this does not match the $O(n)$ tree/approximate-nearest-neighbor scaling of standard UMAP or Barnes-Hut/FIt-SNE.
  • Approximations in the Derivation: The link between the Bernoulli model and the Wishart distribution relies on large-$n$ assumptions, small $\tilde{\epsilon}$, and an ansatz for local linear/inverse matching.
  • Theoretical Follow-ups: The authors note that the role of high noise-scale hyperparameters warrants further semantic interpretation. They also point to analyzing the eigenfunctions of RBF-like kernels ($\phi_k(x) \sim \gamma \cos(2x\kappa - k\pi/2)$) to further characterize optimal embeddings.

Summary updated

BibTeX
@inproceedings{ravuri2025towards,
  author = {Aditya Ravuri and Neil D Lawrence},
  title = {{Towards One Model for Classical Dimensionality Reduction: A Probabilistic Perspective on UMAP and t-SNE}},
  booktitle = {AABI Workshop Track},
  year = {2025},
  url = {https://openreview.net/forum?id=HMJod9Jg8r},
}
Figure