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.
Glossary
Uniform Manifold Approximation and Projection (UMAP)

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
| Feature | UMAP | t-SNE | PCA |
|---|---|---|---|
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) |
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Core algorithms and concepts that complement UMAP in the single-cell analysis workflow, from linear preprocessing to graph-based clustering and trajectory inference.
Principal Component Analysis (PCA)
A linear dimensionality reduction algorithm that transforms high-dimensional gene expression data into a set of orthogonal principal components. PCA is typically run before UMAP as a preprocessing step to denoise the data by capturing the maximum variance in the first 30–50 components, reducing computational load and mitigating the curse of dimensionality.
t-Distributed Stochastic Neighbor Embedding (t-SNE)
A nonlinear predecessor to UMAP that excels at preserving local neighborhood structure but often fragments global relationships. t-SNE uses a probabilistic, gradient-based approach with heavy-tailed Student-t distributions to separate clusters in two dimensions. UMAP generally offers faster runtime and better preservation of both local and global data topology.
Pseudotime Trajectory Inference
A computational ordering of single cells along a continuous developmental path based on transcriptomic similarity. After UMAP reveals the manifold structure, algorithms like Monocle or Slingshot reconstruct dynamic processes such as differentiation by finding the minimum spanning tree through the reduced-dimensional space.
Data Integration (Harmony & scVI)
Methods that align multiple single-cell datasets into a shared latent space before UMAP visualization. Harmony uses iterative soft-clustering and mixture model correction, while scVI employs a deep variational autoencoder to learn batch-corrected latent representations. Both ensure UMAP plots reflect biology, not technical artifacts.
Highly Variable Gene Selection
A feature selection step that identifies the most informative genes with high cell-to-cell variance. By reducing the feature space from ~20,000 genes to the top 2,000–5,000 highly variable genes, this preprocessing step ensures UMAP captures dominant biological signals rather than stochastic noise from lowly expressed genes.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us