Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction

UMAP reduces dimensions faster than t-SNE while keeping more global structure

  • Problem t-SNE sets the reference for visualisation quality, but its run time limits how large a dataset can be embedded. Many neighbourhood methods also choose objectives by experiment, so their design is hard to justify.
  • Method UMAP builds a fuzzy neighbour graph from local distances, rescaling each point's distances by its own neighbourhood. It then fits a force-directed layout to match that graph, starting from a spectral layout.
  • Results On COIL-20 at k = 160, UMAP scored 0.803 compared to 0.609 for t-SNE. Its run time is also far lower on large datasets.

Why scaling and theory both matter

Dimension reduction serves both visualisation and pre-processing for machine learning, and the datasets it must handle keep growing. t-SNE sets the reference for visualisation quality, but its run time limits the data set sizes that are feasible to embed. Many neighbourhood methods pick their objective functions by experiment, so their design choices are hard to justify on principle.

The authors therefore aim for a method in which each design choice follows from a stated mathematical framework. Their answer, UMAP, combines Riemannian geometry with a category-theoretic treatment of fuzzy simplicial sets.

Local distances and a fuzzy neighbour graph

The key idea is to give each point its own ruler, so that distances are rescaled by that point's neighbourhood and the data look roughly uniform under the rescaled metric. Under Lemma 1, geodesic distance inside a ball of fixed volume equals the ambient distance divided by the ball radius, which is why rescaling by the k-th neighbour distance is justified.

Each point's local views can disagree with those of its neighbours, so the authors convert each local metric space into a fuzzy simplicial set and merge them there.

For each point \(x_i\), the k nearest neighbours are found, and the authors' implementation prefers nearest neighbor descent for this search. The distance \(\rho_i\) is the smallest positive distance from \(x_i\) to its neighbours, which guarantees that \(x_i\) has at least one edge of weight 1. \[ \rho_i = \min\{d(x_i,x_{ij}) \mid 1 \le j \le k,\ d(x_i,x_{ij}) > 0\} \]

Each directed edge gets the weight \[ w((x_i,x_{ij})) = \exp\left(-\frac{\max(0,\, d(x_i,x_{ij}) - \rho_i)}{\sigma_i}\right) \] which can be read as the probability that the edge exists. Since the directed graph is asymmetric, the authors combine \(A\) with its transpose through \[ B = A + A^\top - A \circ A^\top \] so that an undirected edge exists when at least one direction does.

Fitting the layout with attraction and repulsion

The second phase is a force directed layout, in which attractive forces act along edges and repulsive forces act between points. The problem is non-convex, so the forces are reduced slowly over time, much as in simulated annealing, to reach a local minimum. Because the symmetric Laplacian of the graph approximates the Laplace-Beltrami operator of the manifold, a spectral layout is used to start the embedding, which the authors report gives faster convergence and more stability.

The attractive force between two points depends on the edge weight \(w((x_i,x_j))\) and on the hyper-parameters a and b, and it pulls the two layout points together. Repulsion is estimated by sampling other vertices, because computing it for every pair would be too costly. The forces are gradients of an edge-wise cross entropy between the high-dimensional graph and a graph built from the layout points, and epsilon is 0.001 in the current implementation to avoid division by zero.

kNN accuracy on small datasets

The authors trained a k-nearest neighbour classifier on each embedding and tracked its accuracy as k grew, using stratified 10-fold cross-validation on PenDigits and COIL-20. At small k the methods are close, and UMAP performs at least as well as t-SNE and LargeVis for k in the range 10 to 40 on these datasets. At k = 160 on COIL-20, UMAP scored 0.803 (± 0.138), compared to 0.609 (± 0.067) for t-SNE.

The gap appears only at larger neighbourhoods, which is where the authors claim UMAP keeps more non-local structure. So the evidence supports better behaviour at larger k on COIL-20 and only shows higher accuracy on PenDigits, not a large margin.

Larger datasets and run time

On Statlog (Shuttle) at k = 3200, UMAP scored 0.957 (± 0.005), compared to 0.828 (± 0.004) for t-SNE. On Fashion-MNIST, UMAP notably underperforms for k from 100 to 400, and the authors report comparable performance only at k of 1600 and 3200.

Run time was compared on GoogleNews subsamples with FIt-SNE, MulticoreTSNE and LargeVis, with UMAP written in Python using numba. The full set of 3 million word vectors embedded in about 200 minutes, while MulticoreTSNE needed several days even with multiple cores. The text says MulticoreTSNE and LargeVis ran single-threaded, but the Figure 11 caption describes a Multicore t-SNE line using 8 cores, so the core count for that line is unclear.

To test very high dimensions, the authors embedded 30,000,000 integers with about 1.8 million ambient dimensions, which took roughly 2 weeks on a large memory SMP. This is shown as a visual demonstration of structure, and no accuracy score is reported for it.

Where the method is weaker

UMAP's embedding dimensions have no specific meaning, unlike PCA, and it has no equivalent of factor loadings. Where interpretability is critical, the authors recommend linear techniques such as PCA, NMF or pLSA.

UMAP can find manifold structure in noise, and low values of n can turn random sampling noise into spurious fine-scale structure. This is less of a risk as more data is sampled, but small noisy samples need care.

UMAP is built around the axiom that local distance matters more than long-range distance, so it puts its effort into local structure. When global distances matter, MDS or PHATE may suit better, and the authors note that much of UMAP's global structure comes from its Laplacian eigenmaps initialization. A study they cite reports that t-SNE with similar initialization can perform equivalently on one global measure.

Approximate nearest neighbour search and negative sampling can produce suboptimal embeddings when the dataset has fewer than 500 samples.

What the authors leave open

The authors say a systematic study of global-structure metrics is still needed, because current metrics are limited and often tied to particular tasks. They also propose extending the fuzzy simplicial set view to semi-supervised reduction and to mixed data types, by combining views with different metrics.

Adding new points to an existing embedding, and mapping embedded points back to the input space, are proposed as future work.

Paper info

Authors
Leland McInnes, John Healy, James Melville
Venue
arXiv · Preprint
First published
2018-2-9
Added
2026-11-11
Updated
2020-9-18
Version
v3
arXiv
1802.03426
Category
stat.ML · cs.CG · cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Leland McInnes, John Healy, James Melville (2018). UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction. arXiv:1802.03426v3. https://arxiv.org/abs/1802.03426v3

BibTeX
@misc{mcinnes2018umap,
  title = {{UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction}},
  author = {Leland McInnes and John Healy and James Melville},
  year = {2018},
  eprint = {1802.03426},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.03426v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up