On UMAP's True Loss Function
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. 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 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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
9 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers9
- Geometric Autoencoders - What You See is What You DecodePhilipp Nazari, Sebastian Damrich, Fred A. HamprechtICML 2023 · 25 citations
- Persistent Homology for High-dimensional Data Based on Spectral MethodsSebastian Damrich, Philipp Berens, Dmitry KobakNeurIPS 2024 · 14 citations
- SpaceMAP: Visualizing High-Dimensional Data by Space ExpansionXinrui Zu, Qian TaoICML 2022 · 12 citations
- Unsupervised visualization of image datasets using contrastive learningJan Niklas Böhm, Philipp Berens, Dmitry KobakICLR 2023 · 6 citations
- IsUMap: Manifold Learning and Data Visualization Leveraging Vietoris-Rips FiltrationsParvaneh Joharinad, Hannaneh Fahimi, Lukas Silvester Barth, Janis Keck et al.AAAI 2025 · 6 citations
Related papers
- From -SNE to UMAP with contrastive learningSebastian Damrich, Jan Niklas Böhm, Fred A. Hamprecht, Dmitry KobakICLR 2023 · 4 citations
- Hierarchical Nearest Neighbor Graph Embedding for Efficient Dimensionality ReductionM. Saquib Sarfraz, Marios Koulakis, Constantin Seibold, Rainer StiefelhagenCVPR 2022 · 12 citations
- Interactive Visual Cluster Analysis by Contrastive Dimensionality ReductionJiazhi Xia, Linquan Huang, Weixing Lin, Xin Zhao et al.IEEE VIS 2022 · 38 citations
- GhostUMAP2: Measuring and Analyzing -Stability of UMAPMyeongwon Jung, Takanori Fujiwara, Jaemin JoIEEE VIS 2025 · 2 citations
- Federated t-SNE and UMAP for Distributed Data VisualizationDong Qiao, Xinxian Ma, Jicong FanAAAI 2025 · 3 citations
