Manuscript Offprint

arXiv:2610.01445

ibUMAP: Coherent and Scalable Field Evaluation for UMAP Optimization

Bin Chen, Yumeng Xue, Patrick Paetzold, Yunhai Wang, Oliver Deussen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

UMAP achieves scalable layout optimization through stochastic negative sampling. However, this stochasticity can lead to unstable embeddings across reruns and downstream reuse, as the estimated repulsive forces depend on the ordering of sampling events. We present ibUMAP, a coherent field-based alternative that evaluates attraction and repulsion from a shared embedding snapshot and applies them synchronously. Its degree-weighted repulsive field is motivated by the conditional expectation of negative sampling for a fixed embedding and represented by three scalar moments, which are evaluated efficiently on CPUs and GPUs using an interpolation-based FFT scheme. This formulation avoids explicit all-pairs computations while inducing optimization dynamics that differ from those of standard online UMAP. Controlled experiments show that synchrony and kernel capping alter the local–global fidelity trade-off, whereas FFT evaluation produces small average changes in final quality. End-to-end benchmarks show median speedups of 3.29×3.29\times unseeded and 5.79×5.79\times seeded over umap-learn on CPU, and 1.44×1.44\times over cuML on million-scale datasets under unseeded GPU execution. These gains accompany greater run-to-run stability and measurable fidelity trade-offs.

1 INTRODUCTION

Uniform Manifold Approximation and Projection (UMAP) is a widely used neighbor-embedding technique whose practical optimization scheme combines sampled attraction over the fuzzy graph with stochastic negative sampling in the embedding space (McInnes et al., 2020). This online formulation circumvents the need to evaluate an explicit dense non-edge term, but its repeated random sampling and in-place pairwise updates make the resulting optimization trajectory sensitive to the ordering of events. Such sensitivity becomes particularly relevant when embeddings are repeatedly computed at scale or serve as intermediate representations in subsequent analysis pipelines.

The expectation underlying UMAP’s negative-sampling optimizer offers a natural basis for an alternative treatment of its repulsive interactions (Damrich & Hamprecht, 2021). Drawing on earlier N-body formulations of nonlinear embedding gradients (Vladymyrov & Carreira-Perpiñán, 2014) and the interpolation-based FFT approach developed for FIt-SNE (Linderman et al., 2019), we express degree-weighted repulsion as a continuous field that can be evaluated efficiently without explicit enumeration of all point pairs. Rather than accelerating UMAP’s stochastic sampling scheme, as in existing GPU implementations (Nolet et al., 2021), this formulation explores an alternative computational regime with distinct optimization dynamics. ibUMAP retains UMAP’s graph construction and initialization algorithms, modifying only the layout-optimization stage. Figure 1 contrasts the update mechanisms in panel (a) and illustrates the three-moment field evaluation in panel (b).

Replacing online sampled interactions with a synchronous field changes the optimizer as well as its computational strategy. Conclusions derived for pairwise UMAP updates (Islam & Fleischer, 2026) do not necessarily extend to synchronous force aggregation. Because informative initialization can itself affect apparent global structure (Kobak & Linderman, 2021), we hold the graph and initialization fixed when studying optimizer effects. We therefore investigate two related questions: how to efficiently evaluate the degree-weighted repulsive field for a fixed embedding, and how synchronous updates, repulsion formulation, ibFFT field evaluation, and safeguards affect final embedding quality under controlled graph construction and initialization. These controlled comparisons complement end-to-end benchmarks of speed, fidelity, and repeatability.

(a) Repulsion and update ordering

Figure

(b) Three moments, one scalar kernel

Figure 1: ibUMAP: from sampled in-place updates to coherent field evaluation. (a) From shared initial coordinates, UMAP negative-sampling events update the head immediately, whereas ibUMAP evaluates a radial repulsive field at one snapshot and applies updates together. (b) Particle-to-mesh (P2M) deposition, FFT convolution with a shared capped scalar kernel, and mesh-to-particle (M2P) interpolation reconstruct R~i\widetilde{R}_{i} from three scalar moments.

Contributions. Formulation and implementation. We formalize the frozen-state, degree-weighted repulsive operator under explicit negative-sampling and update conventions and derive a UMAP-specific three-moment decomposition, enabling synchronous two-dimensional FFT-based optimization on CPUs and GPUs with explicit complexity and repeatability conditions. Mechanism decomposition. We compare different optimizer mechanisms in a fixed-graph, fixed-initialization framework, finding that synchrony and kernel capping alter the local–global fidelity trade-off, whereas ibFFT evaluation has small average effects on final embedding quality. Performance and repeatability. We evaluate end-to-end speed, fidelity, and repeatability, finding median CPU speedups of 3.29×3.29 \times unseeded and 5.79×5.79 \times seeded over umap-learn, with additional unseeded GPU gains over cuML on million-scale datasets. We quantify the accompanying fidelity trade-offs and fixed-seed repeatability costs. In a BRAQUE-derived workflow, we trace embedding variation to HDBSCAN assignment changes and demonstrate ibUMAP's lower CPU cost for repeatable reuse (Dall'Olio et al., 2023).

References (100)

Couldn't load all references. Reload the page to try again.