UMAP 0.6 Released: New Initialization and Optimizer, Dimension Reduction of 3 Million Papers in 5 Minutes

UMAP 0.6 is released with a 12x speedup and significantly improved clustering quality and reproducibility.
UMAP 0.6 is officially released, delivering comprehensive improvements in speed, quality, and reproducibility. On a dataset of 3 million arXiv papers, the full run takes less than 5 minutes, whereas UMAP 0.5 takes even longer for just the nearest neighbor search; with a fixed seed, total runtime drops from 52 minutes to under 5 minutes—about 1/12 of the original. The speedup mainly comes from more full utilization of PyNNDescent (about 4x faster neighbor search), a new recursive initialization method, and an efficient new optimizer. Recursive initialization uses UMAP itself to generate starting points for UMAP, enabling the optimizer to converge in fewer iterations; the new optimizer introduces hard negative mining, removes attraction-repulsion spectrum limitations, and improves performance at high repulsion strength and kNN recall. The new features currently require setting compatibility_layout=False to enable manually and will become the default in the future.
UMAP 0.6 has been officially released, bringing a brand-new initialization method, a new optimizer, and faster nearest neighbor search. According to the Reddit community, on a dataset of 3 million arXiv papers, the full UMAP 0.6 run takes less than 5 minutes—while UMAP 0.5 hasn't even finished the nearest neighbor search at that point. This performance gain is mainly due to more full utilization of PyNNDescent, the new initialization scheme, and the optimized optimizer.

Speed and Reproducibility: A Major Boost
The speed improvements in the new version are comprehensive. Neighbor search is about 4x faster thanks to better use of PyNNDescent; the initialization process is faster because of the new method; and with the new optimizer, the entire run can be reproducible with a fixed random seed while utilizing all CPU cores. In contrast, UMAP 0.5 runs single-threaded when the seed is fixed; according to official data, the same task takes 52 minutes, 12 times that of UMAP 0.6.
For users handling million-scale datasets, this speedup means going from hours to minutes, greatly improving iteration efficiency.
PyNNDescent is a Python-based approximate nearest neighbor search library designed for high-dimensional data. It uses algorithms such as random projection trees and neighbor graph construction to find approximate k-nearest neighbors on million-scale datasets at a cost far below exact search. UMAP's dimensionality reduction pipeline relies heavily on the quality and construction speed of the kNN graph, so the efficiency of PyNNDescent utilization directly determines overall runtime. UMAP 0.6 achieves roughly a 4x speedup in neighbor search by more fully leveraging PyNNDescent's parallelism and internal data structures, avoiding redundant computation and serial bottlenecks in previous versions.
Reproducibility under a fixed random seed is an often overlooked but crucial property in dimensionality reduction tools. In UMAP 0.5, setting a random seed to ensure deterministic results degrades to single-threaded execution, causing a major slowdown. The new optimizer in UMAP 0.6 is designed to support deterministic parallelism, so multiple runs with the same seed produce identical results while fully utilizing all CPU cores. This means researchers can get reproducible experimental results alongside parallel acceleration, without having to trade off speed against repeatability.
Quality and Scale: Finer Cluster Structure
Beyond speed, UMAP 0.6 also makes significant progress in result quality. Thanks to major improvements in the new initialization and optimizer, its performance on million-scale datasets far exceeds version 0.5. Specifically, it resolves finer cluster structure in fewer iterations, with richer levels of detail and better neighborhood accuracy—even though it runs faster.
Recursive Initialization: Using UMAP to Initialize UMAP
An important source of the quality improvement is a brand-new initialization scheme: it uses UMAP itself to initialize UMAP. Specifically, it first performs a coarse-grained layout of the graph structure, then progressively refines it in a recursive initialization tower. This method produces starting points closer to UMAP's final result than the cluttered, fuzzy outputs of spectral initialization or PCA, and it generates them faster. It enables the optimizer to converge in far fewer iterations than old initialization methods (within 3% error of the final layout).
Spectral initialization and PCA initialization are commonly used starting-point generation methods in dimensionality reduction and manifold learning. Spectral initialization is based on eigendecomposition of the graph Laplacian; it preserves the global topological structure of the data but is computationally expensive and may produce unstable embeddings on small-scale or noisy data. PCA initialization quickly provides initial coordinates via linear projection; it is computationally efficient but cannot capture nonlinear manifold structure, making it easy for the optimizer to get stuck in local optima. UMAP 0.6's recursive initialization targets the shortcomings of both approaches by using UMAP's own coarse-grained layout as a starting point, significantly reducing optimization iterations while preserving nonlinear structure.
New Optimizer: Hard Negative Mining and Repulsion Strength
A major gain in fidelity on large-scale data comes from a highly efficient form of hard negative mining, which makes negative sampling more effective on very large datasets while better handling high repulsion strength. UMAP's original design focused on only a small portion of the attraction-repulsion spectrum; the new optimizer removes these limitations, allowing UMAP to run well at higher repulsion strength and yielding better kNN recall.
Hard negative mining originates from the fields of contrastive learning and metric learning. Its core idea is to prioritize samples that are similar to the anchor but actually unrelated (i.e., "hard negatives") during training, so the model learns decision boundaries more effectively. In UMAP's optimization process, negative sampling is used to estimate repulsive forces between pairs of points in low-dimensional space; randomly selected negatives often carry insufficient information, whereas hard negative mining focuses on dissimilar pairs that are easily pulled too close by mistake, thereby obtaining more accurate repulsion estimates with fewer samples on very large datasets and ultimately improving kNN recall and embedding fidelity.
How to Try the New Features
The new optimizer and initialization method currently need to be enabled manually because they change the output: set compatibility_layout=False to enable them. In future versions they will become the default, and users are encouraged to try them and provide feedback.
Installation remains the same: pip install -U umap-learn, or install via conda-forge. The code repository is at lmcinnes/umap on GitHub.
This update was completed together by community contributors, reflecting the continued vitality of UMAP as an open-source tool. For developers who rely on dimensionality reduction for visualization and downstream tasks, UMAP 0.6 is worth upgrading to and trying as soon as possible.
One-line Summary
UMAP 0.6 is released, with a 12x speedup and significantly improved clustering quality and reproducibility.
Paragraph Summary
UMAP 0.6 has been officially released, delivering comprehensive improvements in speed, quality, and reproducibility. On a dataset of 3 million arXiv papers, the full run takes less than 5 minutes, while UMAP 0.5 takes even longer for just the nearest neighbor search; with a fixed seed, total runtime drops from 52 minutes to under 5 minutes—about 1/12 of the original. The speedup mainly comes from more full utilization of PyNNDescent (about 4x faster neighbor search), a brand-new recursive initialization method, and an efficient new optimizer. Recursive initialization uses UMAP itself to generate starting points for UMAP, enabling the optimizer to converge in fewer iterations; the new optimizer introduces hard negative mining, removes attraction-repulsion spectrum limitations, and improves performance at high repulsion strength and kNN recall. The new features currently require setting compatibility_layout=False to enable manually and will become the default in the future.
Related articles

Hero or Luck? Technical Reflections Sparked by an Arizona Grandfather Finding a Missing Toddler in the Desert
An Arizona grandfather finding a missing toddler in the desert hits Hacker News. This article analyzes emergency search, drone thermal imaging, child location devices, and community collaboration, exploring the boundaries of technology and human effort in extreme environments, while noting the material's limitations.

Run Agentic Coding on Mac with One Command: The Localcode Open-Source Tool
Localcode is an open-source agentic coding tool for Mac that launches with a single command. This article examines its local, open-source, minimal-install positioning, who it suits, and the information gaps to consider before adoption.

Lean Formalization of Masullo Manuscript: Progress Map Sparks Discussion
A public progress map for a Lean formalization project of Alessandro Masullo's manuscript sparks Hacker News discussion on formalization costs, collaboration, and AI-assisted proving.