mlsanityData to 7 Oct 2026

From t-SNE to UMAP with contrastive learning

arXiv 2206.01816 ↗First posted 3 Jun 2022cs.LG cs.HCcited by 28

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  5. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  6. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  7. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  8. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
  9. 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
  10. 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,841
  11. 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,838
  12. 2019Contrastive Multiview Codingcited by 1,297
27 more
  1. 2019Learning Representations by Maximizing Mutual Information Across Viewscited by 733
  2. 2018Deep Learning for Classical Japanese Literaturecited by 415
  3. 2014SAGA: A Fast Incremental Gradient Method With Support for Non-Strongly Convex Composite Objectivescited by 401
  4. 2020Keystroke Dynamics as Part of Lifeloggingcited by 334
  5. 2017Sampling Matters in Deep Embedding Learningcited by 285
  6. 2016Exploring the Limits of Language Modelingcited by 172
  7. 2020Understanding How Dimension Reduction Tools Work: An Empirical Approach to Deciphering t-SNE, UMAP, TriMAP, and PaCMAP for Data Visualizationcited by 170
  8. 2022Contrastive and Non-Contrastive Self-Supervised Learning Recover Global and Local Spectral Embedding Methodscited by 146
  9. 2014word2vec Explained: deriving Mikolov et al.'s negative-sampling word-embedding methodcited by 109
  10. 2018Noise Contrastive Estimation and Negative Sampling for Conditional Models: Consistency and Statistical Efficiencycited by 103
  11. 2020Parametric UMAP embeddings for representation and semi-supervised learningcited by 103
  12. 2020Kernel Operations on the GPU, with Autodiff, without Memory Overflowscited by 101
  13. 2016Visualizing Large-scale and High-dimensional Datacited by 79
  14. 2017Efficient Algorithms for t-distributed Stochastic Neighborhood Embeddingcited by 75
  15. 2019TriMap: Large-scale Dimensionality Reduction Using Tripletscited by 59
  16. 2021Investigating the Role of Negatives in Contrastive Representation Learningcited by 54
  17. 2021Understanding Negative Samples in Instance Discriminative Self-supervised Representation Learningcited by 47
  18. 2020Attraction-Repulsion Spectrum in Neighbor Embeddingscited by 41
  19. 2021On UMAP's true loss functioncited by 32
  20. 2022Your Contrastive Learning Is Secretly Doing Stochastic Neighbor Embeddingcited by 28
  21. 2014Notes on Noise Contrastive Estimation and Negative Samplingcited by 26
  22. 2019Heavy-tailed kernels reveal a finer cluster structure in t-SNE visualisationscited by 22
  23. 2020PADS: Policy-Adapted Sampling for Visual Similarity Learningcited by 20
  24. 2018t-SNE-CUDA: GPU-Accelerated t-SNE and its Applications to Modern Datacited by 19
  25. 2020Bringing UMAP Closer to the Speed of Light with GPU Accelerationcited by 18
  26. 2020NCVis: Noise Contrastive Approach for Scalable Visualizationcited by 9
  27. 2021Stochastic Cluster Embeddingcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 2; 2023: 3; 2024: 5; 2025: 10; 2026: 8.

28 papers.

Sort:

By area:

  1. 2023Improving neural network representations using human similarity judgmentscited by 38
  2. 2022Unsupervised visualization of image datasets using contrastive learningcited by 16
  3. 2024Dimension Reduction with Locally Adjusted Graphscited by 9
  4. 2025The Shape of Attraction in UMAP: Exploring the Embedding Forces in Dimensionality Reductioncited by 5
  5. 2022ParaDime: A Framework for Parametric Dimensionality Reductioncited by 4
  6. 2025Random Forest Autoencoders for Guided Representation Learningcited by 4
  7. 2025DREAMS: Preserving both Local and Global Structure in Dimensionality Reductioncited by 4
  8. 2024Curvature Augmented Manifold Embedding and Learningcited by 3
  9. 2024Towards One Model for Classical Dimensionality Reduction: A Probabilistic Perspective on UMAP and t-SNEcited by 3
  10. 2024Navigating the Effect of Parametrization for Dimensionality Reductioncited by 3
  11. 2025Manifold Approximation leads to Robust Kernel Alignmentcited by 2
  12. 2023Navigating Perplexity: A linear relationship with the data set size in t-SNE embeddingscited by 1
16 more
  1. 2024FedNE: Surrogate-Assisted Federated Neighbor Embedding for Dimensionality Reductioncited by 1
  2. 2025Generalizable Spectral Embedding with an Application to UMAPcited by 1
  3. 2025Node Embeddings via Neighbor Embeddingscited by 1
  4. 2025CLEAR: Unlearning Spurious Style-Content Associations with Contrastive LEarning with Anti-contrastive Regularizationcited by 1
  5. 2026MAPLE: Self-Supervised Learning-Enhanced Nonlinear Dimensionality Reduction for Visual Analysiscited by 1
  6. 2023Supervised Stochastic Neighbor Embedding Using Contrastive Learningcited by 0
  7. 2025AKRMap: Adaptive Kernel Regression for Trustworthy Visualization of Cross-Modal Embeddingscited by 0
  8. 2025Feature Space Analysis by Guided Diffusion Modelcited by 0
  9. 2025Probabilistic Foundations of Fuzzy Simplicial Sets for Nonlinear Dimensionality Reductioncited by 0
  10. 2026IPBC: An Interactive Projection-Based Framework for Human-in-the-Loop Semi-Supervised Clustering of High-Dimensional Datacited by 0
  11. 2026mlx-vis: GPU-Native Dimensionality Reduction on Apple Siliconcited by 0
  12. 2026A Spectral Decomposition Framework for Multiscale Nonlinear Dimensionality Reductioncited by 0
  13. 2026On Out-of-sample Embedding in UMAPcited by 0
  14. 2026CosMAP: Contrastive Manifold Approximation and Projection for Dimensionality Reduction of Omics and Genealogical Datacited by 0
  15. 2026Say, Echo, Do: Strategic Narratives and Revealed Positioning in Financial Marketscited by 0
  16. 2026ibUMAP: Coherent and Scalable Field Evaluation for UMAP Optimizationcited by 0