On UMAP's true loss function

Sebastian Damrich, Fred A. Hamprecht
3/26/2021
cs.LGstat.ML

Official code: sciai-lab/UMAPs-true-loss (13 stars, Python, last commit 2021-10-27).

Abstract

UMAP has supplanted t-SNE as state-of-the-art for visualizing high-dimensional datasets in many disciplines, but the reason for its success is not well understood. In this work, we investigate UMAP's sampling based optimization scheme in detail.

Show full abstract

We derive UMAP's effective loss function in closed form and find that it differs from the published one. As a consequence, we show that UMAP does not aim to reproduce its theoretically motivated high-dimensional UMAP similarities. Instead, it tries to reproduce similarities that only encode the shared $k$ nearest neighbor graph, thereby challenging the previous understanding of UMAP's effectiveness. Instead, we claim that the key to UMAP's success is its implicit balancing of attraction and repulsion resulting from negative sampling. This balancing in turn facilitates optimization via gradient descent. We corroborate our theoretical findings on toy and single cell RNA sequencing data.

View on arXivView PDF

Code Implementations(1)

Uniform Manifold Approximation and Projection

132PythonMay 11, 20215 years agoNOASSERTION

Similar Papers

Cite this paper

@article{damrich2021umaps,
  title  = {On UMAP's true loss function},
  author = {Sebastian Damrich and Fred A. Hamprecht},
  year   = {2021},
  eprint = {2103.14608},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.14608}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.14608.svg)](https://codeofpaper.com/paper/2103.14608)

Discussion