Inferensys

Glossary

Uniform Manifold Approximation and Projection (UMAP)

A nonlinear dimensionality reduction technique that preserves both local and global data structure, widely used to visualize single-cell transcriptomic landscapes in two or three dimensions.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.

What is Uniform Manifold Approximation and Projection (UMAP)?

UMAP is a nonlinear dimensionality reduction algorithm that constructs a fuzzy topological representation of high-dimensional data and optimizes a low-dimensional embedding to faithfully preserve both local neighborhood structure and global data organization.

Uniform Manifold Approximation and Projection (UMAP) is a manifold learning technique that assumes data lies on a locally connected Riemannian manifold. It first builds a weighted k-neighbor graph representing the fuzzy simplicial set of the high-dimensional input, then initializes a low-dimensional layout and iteratively refines it using stochastic gradient descent with cross-entropy loss to minimize the discrepancy between the high- and low-dimensional fuzzy topological representations.

In single-cell genomics, UMAP has become the standard for visualizing transcriptomic landscapes because it preserves more global structure than t-SNE while running significantly faster on large datasets. The algorithm's min_dist and n_neighbors hyperparameters allow analysts to tune the balance between local clustering detail and broader inter-cluster relationships, making it essential for exploratory analysis of cell populations and trajectory inference.

DIMENSIONALITY REDUCTION

Key Features of UMAP

Uniform Manifold Approximation and Projection (UMAP) is a nonlinear technique that preserves both local and global data structure. It is the standard for visualizing single-cell transcriptomic landscapes in 2D or 3D.

01

Fuzzy Simplicial Set Construction

UMAP begins by constructing a weighted k-neighbor graph representing the data's topology in high-dimensional space. It models the manifold as a fuzzy simplicial set—a mathematical object that captures both local connectivity and uncertainty. For each cell, UMAP computes a radius that ensures uniform manifold coverage, adapting to varying data densities. This step preserves the local neighborhood structure that defines cell-type relationships in single-cell data.

02

Cross-Entropy Optimization

UMAP optimizes a low-dimensional embedding by minimizing the cross-entropy between the high-dimensional fuzzy simplicial set and its low-dimensional counterpart. This loss function has two distinct components:

  • Attractive forces: Pull together cells that are neighbors in high-dimensional space, preserving local structure.
  • Repulsive forces: Push apart cells that are not neighbors, preserving global separation between distinct cell types. This balance prevents the crowding problem that plagues t-SNE.
03

Preservation of Global Structure

Unlike t-SNE, which focuses almost exclusively on local neighborhoods, UMAP preserves meaningful global distances between clusters. In single-cell data, this means the relative positioning of major cell lineages—such as the distance between T-cells and B-cells—carries biological meaning. UMAP achieves this through its repulsive loss term and by initializing the low-dimensional layout using spectral embedding, which captures the coarse global topology before local refinement begins.

04

Supervised and Semi-Supervised Modes

UMAP supports supervised dimensionality reduction by incorporating target labels into the simplicial set construction. When cell-type annotations or experimental conditions are available, UMAP can use them to:

  • Increase the effective distance between cells of different classes.
  • Tighten clusters within the same class. This produces embeddings where known biological groupings are more clearly separated, aiding in comparative analysis across conditions or time points.
05

Scalability to Millions of Cells

UMAP is designed for linear computational scaling with dataset size, making it suitable for modern single-cell atlases containing millions of cells. Key performance characteristics:

  • Stochastic gradient descent with negative sampling accelerates optimization.
  • Sparse nearest-neighbor graphs reduce memory overhead.
  • GPU-accelerated implementations (e.g., Rapids cuML) achieve sub-second embedding times for large datasets. This scalability enables interactive exploration of entire organism-level cell atlases.
06

Mathematical Foundations in Riemannian Geometry

UMAP is grounded in Riemannian geometry and algebraic topology. It assumes that high-dimensional data lies on a low-dimensional manifold and constructs a custom Riemannian metric that is locally constant on each neighborhood. This theoretical foundation provides:

  • Formal guarantees about the preservation of topological structure.
  • A principled framework for extending UMAP to new data types and distance metrics.
  • The ability to embed into arbitrary target dimensions (not just 2D or 3D) for downstream machine learning tasks.
DIMENSIONALITY REDUCTION METHODS

UMAP vs. t-SNE vs. PCA: A Technical Comparison

A technical comparison of three dimensionality reduction algorithms used for single-cell transcriptomic visualization and analysis.

FeatureUMAPt-SNEPCA

Algorithm Type

Nonlinear (manifold learning)

Nonlinear (probabilistic)

Linear (matrix factorization)

Preserves Global Structure

Preserves Local Structure

Computational Complexity

O(n log n) approximate

O(n²)

O(min(n²p, np²))

Runtime (100k cells)

< 1 min

5-30 min

< 10 sec

Distance Metric

Fuzzy simplicial set cross-entropy

Student-t divergence

Euclidean variance maximization

Stochastic Embedding

Sensitive to Hyperparameters

Moderate (n_neighbors, min_dist)

High (perplexity, learning rate)

Low (n_components only)

UMAP IN SINGLE-CELL ANALYSIS

Frequently Asked Questions

Uniform Manifold Approximation and Projection (UMAP) has become the dominant visualization tool in single-cell genomics. These answers address the most common technical questions from bioinformatics engineers and research leads implementing UMAP in production pipelines.

UMAP is a nonlinear dimensionality reduction algorithm that constructs a fuzzy topological representation of high-dimensional data and optimizes a low-dimensional embedding to preserve both local and global structure. The algorithm proceeds in two phases: first, it builds a weighted k-nearest neighbor graph where edge weights represent the probability that two points are connected in the assumed manifold. It uses fuzzy simplicial set theory to model the data's topological structure, computing membership strengths through an exponential kernel with a locally adaptive bandwidth parameter. Second, it initializes a low-dimensional layout (typically via spectral embedding) and applies stochastic gradient descent to minimize the cross-entropy between the high-dimensional fuzzy set representation and the low-dimensional embedding. The loss function balances an attractive term that pulls similar points together and a repulsive term that pushes dissimilar points apart, controlled by the min_dist and n_neighbors hyperparameters. Unlike t-SNE, UMAP preserves more global structure and scales to millions of data points with near-linear runtime complexity.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.