AIWiki
Malaysia
Back to all articles
AI Foundationst-sneumapdimensionality reduction

t-SNE and UMAP

4 min readUpdated October 2026
t-SNE and UMAP
Type
Dimensionality reduction / manifold learning
Introduced
t-SNE 2008; UMAP 2018
Authors
van der Maaten and Hinton; McInnes, Healy and Melville
Output
Two- or three-dimensional scatter plot
Key parameters
Perplexity (t-SNE); n_neighbors and min_dist (UMAP)
Typical uses
Cluster inspection, embedding exploration, single-cell genomics
Related
PCA, autoencoders, k-means clustering, embeddings
t-SNE (t-distributed Stochastic Neighbor Embedding) and UMAP (Uniform Manifold Approximation and Projection) are dimensionality reduction techniques that take data described by hundreds or thousands of variables and place each point on a two-dimensional map so that similar points land close together. They are the standard way data scientists look at high-dimensional data — especially embeddings from language and vision models — as a picture.[1][2]

History

t-SNE was introduced by Laurens van der Maaten and Geoffrey Hinton in 2008 as an easier-to-optimise variant of Stochastic Neighbor Embedding, and remains among the most-cited methods for visualising high-dimensional structure.[1] UMAP followed in 2018 from Leland McInnes, John Healy and James Melville, grounded in Riemannian geometry and algebraic topology — specifically fuzzy simplicial sets — and designed to match t-SNE's visual quality while running faster, scaling to larger datasets and preserving more global structure.[2] UMAP became a default in bioinformatics after Becht and colleagues showed it could visualise millions of single cells, and both techniques ship inside scikit-learn, so they are a few lines of code away for any Python user.[3]

Key Concepts and Technology

Both methods convert distances into similarities in the original space, then search for a low-dimensional layout whose similarity structure matches. t-SNE models high-dimensional similarities with a Gaussian whose bandwidth is tuned per point to a fixed perplexity — roughly an effective neighbour count — models the low-dimensional layout with a Student-t kernel, and minimises Kullback-Leibler divergence between the two. The heavy-tailed t-distribution is what fixes the crowding problem earlier methods suffered from.[1] UMAP instead builds a fuzzy topological representation of the data and optimises a cross-entropy objective with negative sampling, which is where its speed advantage comes from.[2]

Two properties matter when reading the output. First, both excel at preserving local neighbourhoods: points that were close in the original space stay close on the plot, so groups corresponding to genuine structure — product categories, cell types, fraud rings — become visible. Second, they distort: distances between clusters, cluster diameters and densities are not faithful measurements, and rerunning either method with different perplexity or neighbourhood settings can move points around. The accepted practice is to treat the plot as a qualitative map, then validate findings numerically in the original space.[4]

Applications and Impact

Typical uses include visualising sentence or image embeddings to audit what a model groups together, exploratory analysis of customer segments, error analysis of classifier outputs, anomaly and fraud detection, and single-cell genomics, where UMAP plots of gene-expression profiles are a standard figure in research papers. Both also serve as a prelude to clustering: practitioners often run t-SNE or UMAP first, inspect the shape, then cluster in the reduced space.[3][4]

>See Also

🇲🇾Malaysian Context

🇲🇾 Relevance to Malaysia: dimensionality reduction underpins a growing share of analytics work done locally — bank and e-wallet fraud ring detection, retail customer segmentation, palm-oil and manufacturing sensor diagnostics, and genomics research at Malaysian universities, where UMAP plots of biological data appear in published work. Because both methods are open source and bundled with scikit-learn and Scanpy, Malaysian analysts and students can use them without licence cost, which suits MDEC's data-literacy push and HRD Corp-funded analytics training.

Two cautions translate directly to local practice. Under the Personal Data Protection Act 2010, a scatter plot of personal data — device identifiers, transaction coordinates, health records — is still personal data: reducing dimensions does not guarantee anonymisation, so plots shared in reports or board decks remain in scope. And because these charts travel easily into slides, Malaysian decision-makers should treat a tidy cluster diagram as a hypothesis rather than proof; the underlying claim still needs statistical validation before a business or policy decision rests on it.[5]

References

  1. ↑van der Maaten, L., and Hinton, G. (2008). Visualizing Data using t-SNE. Journal of Machine Learning Research 9, 2579-2605. https://jmlr.org/papers/v9/vandermaaten08a.html
  2. ↑McInnes, L., Healy, J., and Melville, J. (2018). UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction. arXiv:1802.03426. https://arxiv.org/abs/1802.03426
  3. ↑Becht, E., et al. (2019). Dimensionality reduction for visualizing single-cell data using UMAP. Nature Biotechnology 37(1), 38-44. https://www.nature.com/articles/nbt.4314
  4. ↑Scikit-learn documentation. Decomposition and dimensionality reduction. https://scikit-learn.org/stable/modules/decomposition.html
  5. ↑Malaysia Digital Economy Corporation. (2026). Official website. https://www.mdec.my/