arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.41107

Differential rank preservation manifold learning

Henry Han, Luyu Niu, Diane Li, Jiacun Wang

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

Abstract

Manifold learning methods like t-SNE and UMAP preserve local neighborhoods, but they do not preserve the ranking of the neighbors inside them. Two embeddings can return the same neighbor set while disagreeing on which point is closest. This loss of order degrades downstream applications that value the order in the embedding. We propose Smooth Rank t-SNE (SR-tSNE), which adds a differentiable rank term to the standard t-SNE loss. To enable efficient training, this term uses a sigmoid rank approximation to explicitly force a point's true high-dimensional neighbors to outrank unrelated intruders and retain their original order. We also introduce Ordinal DLP (O-DLP), an extension of the Degree of Locality Preservation (DLP) metric that credits a neighbor only when it returns at its original rank. Across eight benchmarks spanning image, text, speech, remote-sensing and single-cell data, SR-tSNE outperforms 12 baselines in rank preservation and neighborhood overlap. Ablation studies demonstrate our rank term alone boosts O-DLP by 5% to 28%, a gain not achievable using standard pairwise loss. This advantage transfers to downstream applications. SR-tSNE achieves the best label-transfer performance across seven vision datasets. For cell-type discovery across six single-cell datasets, it ranks first in 17 of 18 dataset-metric combinations, whether clustering resolution is selected with or without cell-type labels. In intraday

*Corresponding author. Email address: Henry_Han@baylor.edu (Henry Han) trading, SR-tSNE achieves higher returns, lower risk, and lower turnover than the baselines. To our knowledge, SR-tSNE is the first t-SNE-family method with explicit order preservation.

Keywords: Manifold learning, t-SNE, Rank preservation, Ordinal DLP, Label transfer, Single-cell clustering, Algorithmic trading

1. Introduction

Manifold learning preserves which points are neighbors in the embedding, not the order among them. Methods such as t-SNE [1], UMAP [2], PHATE [3] and TriMap [4] embed data from a high-dimensional input space while seeking to preserve neighborhood relationships. However, what they preserve is the membership of that neighborhood; the order ranking inside it is left free. An embedding can recover exactly the right neighbors and still shuffle them, putting the nearest neighbor at rank 5 and the second-nearest at rank 1. This can make downstream analyses that rely on neighbor order in the embedding less effective.

The challenge. Many downstream tasks rely on neighbor order as well as set membership. In vision-based retrieval and label transfer using the nearest neighbor, the top-ranked neighbor directly determines the predicted label; scrambling positions can introduce labeling errors. In single-cell clustering, community detection builds graphs from top-k lists; rank errors that change these lists' membership can alter graph connectivity and split homogeneous cell populations into artificial clusters. In algorithmic trading, marker selection algorithms compute rank-correlation metrics between input and embedding spaces to flag trade signals; ordinal shifts can alter entry timing. Preserving both neighborhood membership and neighbor order allows the embedding to more faithfully represent the local structure of the input data.

The loss of neighbor order in manifold learning stems directly from how standard losses are formulated and how embedding performance is evaluated. Both current optimization objectives and downstream metrics are entirely order-agnostic. For example, t-SNE minimizes the KL divergence based purely on pairwise similarities, never tracking where a neighbor lands. Consequently, two embeddings can achieve nearly identical KL loss while ordering their neighbors completely differently. Similarly, the Degree of Locality Preservation (DLP) [5], a manifold explainability metric, treats each neighborhood as an unordered set, assigning identical credit whether a true neighbor sits at rank 1 or rank k.

Furthermore, many manifold learning methods focus exclusively on neighborhood membership, scalability, or global structure [2, 3, 6, 7, 8], deliberately sacrificing ordinal fidelity. The crowding problem further bounds how much neighborhood structure two dimensions can hold [9], and order is precisely what these methods give up. While methods like UMAP, PHATE, and LocalMAP improve local preservation or scalability, none require a retained neighbor to maintain its exact rank in the embedding. Practitioners are thus forced to interpret visualizations for structural relations that the underlying embedding principles never guarantee [10]. Although NeRV [11, 12] incorporates retrieval-oriented trade-offs into manifold learning, its precision–recall criteria still evaluate set membership rather than intra-neighborhood order.

SR-tSNE. To address this challenge, we introduce Smooth Rank t-SNE (SR-tSNE), a method designed to preserve both neighborhood membership and exact neighbor order. SR-tSNE augments the standard t-SNE loss with a single differentiable rank term. For each data point, this term optimizes two criteria at once. It encourages true input-space neighbors to rank ahead of embedding-space intruders, the points outside the corresponding input-space neighborhood. It also penalizes any reshuffling among the true neighbors themselves. Using a sigmoid formulation, discrete ranks are approximated by differentiable values, allowing direct optimization via standard gradient descent while a logarithmic discount prioritizes the nearest ranks. A single regularization weight, λ\lambda, governs the balance between neighborhood preservation and rank preservation.

O-DLP. To evaluate how well SR-tSNE preserves neighbor order, we propose Ordinal Degree of Locality Preservation (O-DLP). While standard DLP checks only whether input-space neighbors remain neighbors in the embedding, regardless of their order, O-DLP credits a retained neighbor only when it appears at its exact original rank. This enables O-DLP to distinguish an embedding that faithfully preserves the original neighbor order from one that merely recovers the same neighbors in a shuffled order.

Empirical evaluations demonstrate that SR-tSNE more effectively preserves neighbor order and improves downstream performance. Benchmarked against 12 baseline methods across eight diverse datasets: spanning computer vision, text, speech, remote sensing, and single-cell transcriptomics, SR-tSNE consistently achieves the highest O-DLP and neighborhood overlap scores on every dataset. These gains also extend to neighborhood preservation across scales, as measured by the area under the RNXR_{NX} curve. SR-tSNE achieves the highest scores under both local and global evaluation regimes on MNIST and CIFAR-10. In downstream applications, SR-tSNE outperforms competing methods in image retrieval, label transfer, and single-cell cell-type discovery, while also delivering higher risk-adjusted returns in a rank-sensitive algorithmic trading pipeline.

Our contributions. (1) Method: SR-tSNE augments t-SNE with end-to-end differentiable rank regularization to penalize intruders and preserve exact neighbor order. (2) Theory: We prove zero loss at perfect order, exponential soft-to-exact rank convergence, strict order preference where t-SNE/UMAP lack it, and an upper bound on order deficit. (3) Metric: O-DLP extends DLP from neighborhood membership to exact-rank fidelity. (4) Benchmarks: Across eight datasets, SR-tSNE outperforms 12 baselines in O-DLP and neighborhood overlap, with higher RNXR_{NX} AUC. (5) Utility: We demonstrate gains in label transfer, single-cell cell-type discovery, and algorithmic trading; the regularizer extends to any differentiable neighborhood-embedding objective.

References (31)