NVIDIATanya LenzExplainer
Run Massive-Scale UMAP in Minutes Using Multiple GPUs—Without Losing Accuracy
Summary
UMAP workflows on tens to hundreds of millions of vectors are constrained by the cost of constructing an all-neighbors k-nearest-neighbor graph, especially when repeated runs support exploration and parameter tuning. The NVIDIA cuML and cuVS 25.06 feature distributes this graph-construction stage across multiple GPUs while retaining the out-of-core design that partitions data into balanced clusters, overlaps vectors across nearby clusters, computes local graphs, and merges them into a global graph. knn_n_clusters and knn_overlap_factor expose the memory, runtime, and graph-quality trade-off: more clusters reduce per-GPU data, while more overlap can improve nearest-neighbor recall at higher computational and memory cost. On eight NVIDIA H100 GPUs, the reported evaluation found up to 74x end-to-end speedup over a projected CPU runtime for the 106M-vector MIRACL dataset, completing it in 8 minutes. The post states that performance continues to improve from one to eight GPUs while preserving comparable embedding quality across configurations.
Context
Repeated UMAP workflows become increasingly difficult to run interactively as datasets grow, because constructing the all-neighbors kNN graph becomes expensive for tens or hundreds of millions of vectors. The earlier out-of-core approach supported datasets too large for one GPU, but its training stage remained limited to a single GPU.
Approach / What changed
The feature in NVIDIA cuML and cuVS 25.06 distributes out-of-core all-neighbors graph construction across GPUs. Data is partitioned into balanced clusters, vectors overlap across nearby clusters, local kNN graphs are computed independently, and the local graphs are merged into a global graph. The knn_n_clusters and knn_overlap_factor parameters control per-GPU memory, computation time, and neighborhood quality.
Takeaways
The 106M-vector MIRACL benchmark completed end-to-end processing in 8 minutes on eight NVIDIA H100 GPUs, with up to 74x speedup over a projected CPU runtime.
Increasing knn_n_clusters reduces the amount of data assigned to each cluster and GPU, while increasing knn_overlap_factor generally improves kNN recall and embedding quality at higher memory and computation cost.
Independent per-cluster graph construction avoids expensive all-to-all communication, and the reported scaling improves from one to eight GPUs while preserving comparable trustworthiness across configurations.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.