From t-SNE to UMAP with contrastive learning
Not on the map. Why?
Abstract (arXiv)
Neighbor embedding methods t-SNE and UMAP are the de facto standard for visualizing high-dimensional datasets. Motivated from entirely different viewpoints, their loss functions appear to be unrelated. In practice, they yield strongly differing embeddings and can suggest conflicting interpretations of the same data. The fundamental reasons for this and, more generally, the exact relationship between t-SNE and UMAP have remained unclear. In this work, we uncover their conceptual connection via a new insight into contrastive learning methods. Noise-contrastive estimation can be used to optimize t-SNE, while UMAP relies on negative sampling, another contrastive method. We find the precise relationship between these two contrastive methods and provide a mathematical characterization of the distortion introduced by negative sampling. Visually, this distortion results in UMAP generating more compact embeddings with tighter clusters compared to t-SNE. We exploit this new conceptual connection to propose and implement a generalization of negative sampling, allowing us to interpolate between (and even extrapolate beyond) t-SNE and UMAP and their respective embeddings. Moving along this spectrum of embeddings leads to a trade-off between discrete / local and continuous / global structures, mitigating the risk of over-interpreting ostensible features of any single embedding. We provide a PyTorch implementation.
Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). Builds on 39 of its 72 references that are in the map. First posted on arXiv 3 Jun 2022.
Builds on
39 of 72 references.
References · 39
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,841
- 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,838
- 2019Contrastive Multiview Codingcited by 1,297
27 more
- 2019Learning Representations by Maximizing Mutual Information Across Viewscited by 733
- 2018Deep Learning for Classical Japanese Literaturecited by 415
- 2014SAGA: A Fast Incremental Gradient Method With Support for Non-Strongly Convex Composite Objectivescited by 401
- 2020Keystroke Dynamics as Part of Lifeloggingcited by 334
- 2017Sampling Matters in Deep Embedding Learningcited by 285
- 2016Exploring the Limits of Language Modelingcited by 172
- 2020Understanding How Dimension Reduction Tools Work: An Empirical Approach to Deciphering t-SNE, UMAP, TriMAP, and PaCMAP for Data Visualizationcited by 170
- 2022Contrastive and Non-Contrastive Self-Supervised Learning Recover Global and Local Spectral Embedding Methodscited by 146
- 2014word2vec Explained: deriving Mikolov et al.'s negative-sampling word-embedding methodcited by 109
- 2018Noise Contrastive Estimation and Negative Sampling for Conditional Models: Consistency and Statistical Efficiencycited by 103
- 2020Parametric UMAP embeddings for representation and semi-supervised learningcited by 103
- 2020Kernel Operations on the GPU, with Autodiff, without Memory Overflowscited by 101
- 2016Visualizing Large-scale and High-dimensional Datacited by 79
- 2017Efficient Algorithms for t-distributed Stochastic Neighborhood Embeddingcited by 75
- 2019TriMap: Large-scale Dimensionality Reduction Using Tripletscited by 59
- 2021Investigating the Role of Negatives in Contrastive Representation Learningcited by 54
- 2021Understanding Negative Samples in Instance Discriminative Self-supervised Representation Learningcited by 47
- 2020Attraction-Repulsion Spectrum in Neighbor Embeddingscited by 41
- 2021On UMAP's true loss functioncited by 32
- 2022Your Contrastive Learning Is Secretly Doing Stochastic Neighbor Embeddingcited by 28
- 2014Notes on Noise Contrastive Estimation and Negative Samplingcited by 26
- 2019Heavy-tailed kernels reveal a finer cluster structure in t-SNE visualisationscited by 22
- 2020PADS: Policy-Adapted Sampling for Visual Similarity Learningcited by 20
- 2018t-SNE-CUDA: GPU-Accelerated t-SNE and its Applications to Modern Datacited by 19
- 2020Bringing UMAP Closer to the Speed of Light with GPU Accelerationcited by 18
- 2020NCVis: Noise Contrastive Approach for Scalable Visualizationcited by 9
- 2021Stochastic Cluster Embeddingcited by 3
Built on by
Citing papers per year: 2022: 2; 2023: 3; 2024: 5; 2025: 10; 2026: 8.
28 papers.
Sort:
By area:
- 2023Improving neural network representations using human similarity judgmentscited by 38
- 2022Unsupervised visualization of image datasets using contrastive learningcited by 16
- 2024Dimension Reduction with Locally Adjusted Graphscited by 9
- 2025The Shape of Attraction in UMAP: Exploring the Embedding Forces in Dimensionality Reductioncited by 5
- 2022ParaDime: A Framework for Parametric Dimensionality Reductioncited by 4
- 2025Random Forest Autoencoders for Guided Representation Learningcited by 4
- 2025DREAMS: Preserving both Local and Global Structure in Dimensionality Reductioncited by 4
- 2024Curvature Augmented Manifold Embedding and Learningcited by 3
- 2024Towards One Model for Classical Dimensionality Reduction: A Probabilistic Perspective on UMAP and t-SNEcited by 3
- 2024Navigating the Effect of Parametrization for Dimensionality Reductioncited by 3
- 2025Manifold Approximation leads to Robust Kernel Alignmentcited by 2
- 2023Navigating Perplexity: A linear relationship with the data set size in t-SNE embeddingscited by 1
16 more
- 2024FedNE: Surrogate-Assisted Federated Neighbor Embedding for Dimensionality Reductioncited by 1
- 2025Generalizable Spectral Embedding with an Application to UMAPcited by 1
- 2025Node Embeddings via Neighbor Embeddingscited by 1
- 2025CLEAR: Unlearning Spurious Style-Content Associations with Contrastive LEarning with Anti-contrastive Regularizationcited by 1
- 2026MAPLE: Self-Supervised Learning-Enhanced Nonlinear Dimensionality Reduction for Visual Analysiscited by 1
- 2023Supervised Stochastic Neighbor Embedding Using Contrastive Learningcited by 0
- 2025AKRMap: Adaptive Kernel Regression for Trustworthy Visualization of Cross-Modal Embeddingscited by 0
- 2025Feature Space Analysis by Guided Diffusion Modelcited by 0
- 2025Probabilistic Foundations of Fuzzy Simplicial Sets for Nonlinear Dimensionality Reductioncited by 0
- 2026IPBC: An Interactive Projection-Based Framework for Human-in-the-Loop Semi-Supervised Clustering of High-Dimensional Datacited by 0
- 2026mlx-vis: GPU-Native Dimensionality Reduction on Apple Siliconcited by 0
- 2026A Spectral Decomposition Framework for Multiscale Nonlinear Dimensionality Reductioncited by 0
- 2026On Out-of-sample Embedding in UMAPcited by 0
- 2026CosMAP: Contrastive Manifold Approximation and Projection for Dimensionality Reduction of Omics and Genealogical Datacited by 0
- 2026Say, Echo, Do: Strategic Narratives and Revealed Positioning in Financial Marketscited by 0
- 2026ibUMAP: Coherent and Scalable Field Evaluation for UMAP Optimizationcited by 0
- 2026ibUMAP: Coherent and Scalable Field Evaluation for UMAP Optimization1 Oct 2026
- 2026Say, Echo, Do: Strategic Narratives and Revealed Positioning in Financial Markets29 Sep 2026
- 2026CosMAP: Contrastive Manifold Approximation and Projection for Dimensionality Reduction of Omics and Genealogical Data11 Aug 2026
- 2026On Out-of-sample Embedding in UMAP3 Jun 2026
- 2026A Spectral Decomposition Framework for Multiscale Nonlinear Dimensionality Reduction2 Apr 2026
- 2026mlx-vis: GPU-Native Dimensionality Reduction on Apple Silicon4 Mar 2026
- 2026MAPLE: Self-Supervised Learning-Enhanced Nonlinear Dimensionality Reduction for Visual Analysis28 Jan 2026
- 2026IPBC: An Interactive Projection-Based Framework for Human-in-the-Loop Semi-Supervised Clustering of High-Dimensional Data25 Jan 2026
- 2025Probabilistic Foundations of Fuzzy Simplicial Sets for Nonlinear Dimensionality Reduction3 Dec 2025
- 2025Manifold Approximation leads to Robust Kernel Alignment27 Oct 2025
- 2025Feature Space Analysis by Guided Diffusion Model9 Sep 2025
- 2025DREAMS: Preserving both Local and Global Structure in Dimensionality Reduction19 Aug 2025
16 more
- 2025CLEAR: Unlearning Spurious Style-Content Associations with Contrastive LEarning with Anti-contrastive Regularization24 Jul 2025
- 2025AKRMap: Adaptive Kernel Regression for Trustworthy Visualization of Cross-Modal Embeddings20 May 2025
- 2025Node Embeddings via Neighbor Embeddings31 Mar 2025
- 2025The Shape of Attraction in UMAP: Exploring the Embedding Forces in Dimensionality Reduction12 Mar 2025
- 2025Random Forest Autoencoders for Guided Representation Learning18 Feb 2025
- 2025Generalizable Spectral Embedding with an Application to UMAP20 Jan 2025
- 2024Dimension Reduction with Locally Adjusted Graphs19 Dec 2024
- 2024Navigating the Effect of Parametrization for Dimensionality Reduction24 Nov 2024
- 2024FedNE: Surrogate-Assisted Federated Neighbor Embedding for Dimensionality Reduction17 Sep 2024
- 2024Towards One Model for Classical Dimensionality Reduction: A Probabilistic Perspective on UMAP and t-SNE27 May 2024
- 2024Curvature Augmented Manifold Embedding and Learning21 Mar 2024
- 2023Supervised Stochastic Neighbor Embedding Using Contrastive Learning15 Sep 2023
- 2023Navigating Perplexity: A linear relationship with the data set size in t-SNE embeddings29 Aug 2023
- 2023Improving neural network representations using human similarity judgments7 Jun 2023
- 2022Unsupervised visualization of image datasets using contrastive learning18 Oct 2022
- 2022ParaDime: A Framework for Parametric Dimensionality Reduction10 Oct 2022
- 2025Feature Space Analysis by Guided Diffusion Modelcited by 0
- 2025Feature Space Analysis by Guided Diffusion Model9 Sep 2025
- 2023Improving neural network representations using human similarity judgmentscited by 38
- 2022Unsupervised visualization of image datasets using contrastive learningcited by 16
- 2024Dimension Reduction with Locally Adjusted Graphscited by 9
- 2025The Shape of Attraction in UMAP: Exploring the Embedding Forces in Dimensionality Reductioncited by 5
- 2022ParaDime: A Framework for Parametric Dimensionality Reductioncited by 4
- 2025Random Forest Autoencoders for Guided Representation Learningcited by 4
- 2025DREAMS: Preserving both Local and Global Structure in Dimensionality Reductioncited by 4
- 2024Curvature Augmented Manifold Embedding and Learningcited by 3
- 2024Towards One Model for Classical Dimensionality Reduction: A Probabilistic Perspective on UMAP and t-SNEcited by 3
- 2024Navigating the Effect of Parametrization for Dimensionality Reductioncited by 3
- 2025Manifold Approximation leads to Robust Kernel Alignmentcited by 2
- 2023Navigating Perplexity: A linear relationship with the data set size in t-SNE embeddingscited by 1
12 most cited of 26 All 26 (JSON)
- 2026ibUMAP: Coherent and Scalable Field Evaluation for UMAP Optimization1 Oct 2026
- 2026Say, Echo, Do: Strategic Narratives and Revealed Positioning in Financial Markets29 Sep 2026
- 2026CosMAP: Contrastive Manifold Approximation and Projection for Dimensionality Reduction of Omics and Genealogical Data11 Aug 2026
- 2026On Out-of-sample Embedding in UMAP3 Jun 2026
- 2026A Spectral Decomposition Framework for Multiscale Nonlinear Dimensionality Reduction2 Apr 2026
- 2026mlx-vis: GPU-Native Dimensionality Reduction on Apple Silicon4 Mar 2026
- 2026MAPLE: Self-Supervised Learning-Enhanced Nonlinear Dimensionality Reduction for Visual Analysis28 Jan 2026
- 2026IPBC: An Interactive Projection-Based Framework for Human-in-the-Loop Semi-Supervised Clustering of High-Dimensional Data25 Jan 2026
- 2025Probabilistic Foundations of Fuzzy Simplicial Sets for Nonlinear Dimensionality Reduction3 Dec 2025
- 2025Manifold Approximation leads to Robust Kernel Alignment27 Oct 2025
- 2025DREAMS: Preserving both Local and Global Structure in Dimensionality Reduction19 Aug 2025
- 2025AKRMap: Adaptive Kernel Regression for Trustworthy Visualization of Cross-Modal Embeddings20 May 2025
12 newest of 26 All 26 (JSON)