Understanding How Dimension Reduction Tools Work: An Empirical Approach to Deciphering t-SNE, UMAP, TriMAP, and PaCMAP for Data Visualization

Yingfan Wang, Haiyang Huang, Cynthia Rudin, Yaron Shaposhnik
12/8/2020
586 citations
cs.LGstat.ML

Official code: YingfanWang/PaCMAP (1,028 stars, Python, Apache-2.0, last commit 2026-03-03).

Abstract

Dimension reduction (DR) techniques such as t-SNE, UMAP, and TriMAP have demonstrated impressive visualization performance on many real world datasets. One tension that has always faced these methods is the trade-off between preservation of global structure and preservation of local structure: these methods can either handle one or the other, but not both.

Show full abstract

In this work, our main goal is to understand what aspects of DR methods are important for preserving both local and global structure: it is difficult to design a better method without a true understanding of the choices we make in our algorithms and their empirical impact on the lower-dimensional embeddings they produce. Towards the goal of local structure preservation, we provide several useful design principles for DR loss functions based on our new understanding of the mechanisms behind successful DR methods. Towards the goal of global structure preservation, our analysis illuminates that the choice of which components to preserve is important. We leverage these insights to design a new algorithm for DR, called Pairwise Controlled Manifold Approximation Projection (PaCMAP), which preserves both local and global structure. Our work provides several unexpected insights into what design choices both to make and avoid when constructing DR algorithms.

View on arXivView PDF

Code Implementations(1)

YingfanWang/PaCMAPOfficial100%
Apache-2.0

PaCMAP: Large-scale Dimension Reduction Technique Preserving Both Global and Local Structure

1,02887Python, Jupyter NotebookAug 8, 20209 months agoApache-2.0

Similar Papers

Cite this paper

@article{wang2020understanding,
  title  = {Understanding How Dimension Reduction Tools Work: An Empirical Approach to Deciphering t-SNE, UMAP, TriMAP, and PaCMAP for Data Visualization},
  author = {Yingfan Wang and Haiyang Huang and Cynthia Rudin and Yaron Shaposhnik},
  year   = {2020},
  eprint = {2012.04456},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.04456}
}

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/2012.04456.svg)](https://codeofpaper.com/paper/2012.04456)

Discussion