Paper commentary
Quantifying Local and Global Fidelity of Nonlinear Embeddings
Single curve scores local and global fidelity of nonlinear embeddings
- Problem Local and global scores use different ranges and chance levels, so a raw gap between them can't be read. Two maps can look different by eye while the gap is within chance.
- Method The LG reversal test reads local and global fidelity from one chance-corrected curve over neighborhood size k. It uses a block-jackknife p-value to decide whether one map is more local and the other more global.
- Results On 156 maps of twelve datasets, G agrees with the distance rank correlation at 0.89 and with random-triplet accuracy at 0.96. On an MS MARCO agent memory, the two maps cross at 150,200 passages.

Fig. 4 . The LG reversal test tells a user which of two maps answers which question (schematic). (a) Map A keeps the neighbors; map B keeps the layout of the groups. (b) A reversal is declared when both one-sided tests reject. (c) Questions about fewer points than the crossover go to map A, larger ones to map B.
Original paper · CC BY 4.0 · Henry Han · Quantifying Local and Global Fidelity of Nonlinear Embeddings · Original paper figure · Extracted the figure area from page 11 of the original PDF.Why local and global claims are hard to test
Those scores have different ranges and chance levels, so a raw gap between a local score and a global score can't be read directly.
A plot can make a gap look decisive, and that is the trap a user falls into when reading two maps by eye. The reversal test places that gap within chance, with p = 0.16, so the plot alone doesn't settle the question. The LG reversal test adds a decision on that reversal and an interval for the scale at which the two maps cross.
A pathologist who searches the wrong map for tiles like a tumor tile misses their true neighbors. An agent that groups topics on the wrong map can keep distant topics too close, so the choice of map changes the answer.
A chance-corrected locality profile
The key idea is to read local and global fidelity from one curve, the locality profile, instead of from two unrelated scores. At each neighborhood size k, the profile starts from the share of each point's k nearest data neighbors that stay among its k nearest neighbors in the map. Averaged over points, this is the degree of locality preservation, DLP_k, which rises toward 1 for every map, partly because a large neighborhood shares most points by chance.
The chance level of DLP_k is k/(n-1), so the correction subtracts that level and rescales the result. After this step a random map scores 0 and a perfect map scores 1 at every k. L is the corrected profile at k = 10, read as the share of each point's closest neighbors that a map keeps beyond chance. G is the mean of the corrected profile over k with 0.3 ≤ k/n ≤ 0.5, a band that ends at the midpoint (n-1)/2.
Why does the upper end measure global structure? At the midpoint, the near half and the far half of a point's neighbors are complements, so each pair gets one question: near or far. The authors prove that at the midpoint the profile equals 2h - 1, where h is the rate at which data and map agree on the near or far half. Blomqvist's medial correlation makes this a rank correlation of the two distance sets, and under a Gaussian copula it equals (2/π) arcsin γ.
The crossover scale is the smallest k/n at which the other map's profile reaches the first map's, so the first map is more faithful below it. The exchange rate measures how much global fidelity a parameter path buys per unit of local fidelity it gives up. Over the band the order reverses, with PCA at G = 0.301 compared to 0.187 for SR-tSNE2.

Fig. 3 . The chance correction reveals the reversal on MNIST: SR-tSNE2 is the most local of four maps and PCA the most global. (a) DLP𝑘 nears its chance level at large𝑘. (b) The profile𝜈 𝑘; dots mark𝐿. (c) Over the shaded band, which gives𝐺, the order reverses.
Original paper · CC BY 4.0Does G track the established global scores?
The authors check whether G agrees with the global scores the field already uses, namely the distance rank correlation and random-triplet accuracy. Over the 156 maps of 50,000 to 1.38 million points, G had rank correlation 0.89 with the distance rank correlation and 0.96 with random-triplet accuracy.
Within each dataset, G orders the methods as the distance rank correlation does, which is the ranking test that matters for choosing a map. It exceeds that of L on all thirteen groups. On CIFAR-10, all seven maps have G between 0.297 and 0.328, a near tie at the global end. The authors explain the agreement with Proposition 3.4, which ties the midpoint of the profile to a rank correlation of distances.
Across runs, G moves more than L, so the authors report its run-to-run spread wherever runs are repeated. At perplexity 30 the standard deviation is 0.038 for G and 0.0005 for L, a factor of 84. The authors attribute the larger spread to stochastic maps reproducing their nearest neighbors across runs, while the global layout depends on the random start.
Sample size matters less for G, because it is defined on a relative scale that a subsample can estimate. A subsample of 2,000 points estimates G within 0.010 of its value at 8,000 points on every large dataset, for both PCA and t-SNE. On SEA-AD with 1.38 million nuclei, the G of PCA stays between 0.285 and 0.288 across four subsample sizes.
How the LG reversal test decides which map to use
The test asks whether one map is more faithful at the local end and the other at the global end, which would mean their order reverses. The intersection–union principle then combines the two tests into one decision.
The test declares this reversal with p = 2.6 × 10−5, and the crossover lies at 150,200 passages, with a 95% interval of 78,900 to 221,500. Each global test in the calibration holds its level, with a rejection rate of 0.046 at level 0.05 averaged over 48 one-sided global tests. Across those 48 tests, the rejection rate at level 0.05 ranges from 0.014 to 0.106.
Where the maps cross on agent memory and other datasets
The worked example uses an agent memory of one million MS MARCO passages, embedded as BGE-base vectors. On a uniform subsample of 5,000 passages, SR-tSNE2 is more local than PCA by 0.212. PCA, in turn, is more global than SR-tSNE2 by 0.062. The reversal is declared with p = 2.6×10−5, and the crossover falls at 150,200 passages. The crossover's 95% interval runs from 78,900 to 221,500 passages.
The crossover tells a user the size of question at which to switch maps. Questions about fewer than 79,000 passages, such as a subtopic, go to SR-tSNE2. Questions about the layout of the eight topics go to PCA, which shows which topics lie far apart.
Against PaCMAP, the test declares t-SNE local and PaCMAP global on seven datasets. These are the same seven datasets where PaCMAP has the higher G in Table 5. The test and the Table 5 scores, computed on separate subsamples, agree on all twelve datasets. For SR-tSNE2, the crossover against PaCMAP lies at 0.4% to 8.4% of the data. On Pathology-100K, the crossover lies at 10,040 tiles, with a 95% interval from 4,210 to 15,870.
Limitations: what the reversal test takes as given
The reversal test takes the two fitted maps as given, so refitting a map is not part of its error. That spread is about a sixth of the jackknife standard error, so a comparison across refits would need it added to its error. Random seeds move G far more than L: the standard deviation of G over runs is a median 34 times that of L. The run-to-run spread of G reaches 0.128 with two principal components before t-SNE, larger than any difference between methods.
The reference geometry sets what G measures: Euclidean or cosine distance for real data, and geodesic distance for the synthetic manifolds. The test answers only for the geometry the user chooses, so a different reference can change the ranking. The PCA plane can be unstable on small subsets. Their smallest cosines run from 0.001 to 0.067, while the full 70,000-point sample gives 0.996.
The large datasets were tested on a 5,000-point subsample, while the smaller datasets and manifolds were tested on all points. On this subsample k = 10 is a coarser relative scale than in the exact L, so local differences are read at that scale.
Paper info
- Authors
- Henry Han
- Venue
- arXiv · Preprint
- First published
- 2026-10-30
- Added
- 2026-11-3
- Updated
- 2026-10-30
- Version
- v1
- arXiv
- 2611.00290
- Category
- cs.AI
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
Dimension reduction methods are chosen by a common claim: t-SNE and UMAP preserve local structure, and PCA preserves global structure. Checking it on given data takes local and global scores on one scale and a test that compares two maps. Both scores come from one curve. The locality profile is the chance-corrected share of each point's k nearest neighbors that a map keeps, over all neighborhood sizes. Its value at k = 10 is the local fidelity L, and its mean over 30 to 50 percent of the data is the global fidelity G. We prove that at the midpoint the profile is the agreement on which half of the data is near each point, a rank correlation of the distances. Because L and G are one statistic, two maps can be tested against each other. The LG reversal test applies to any two dimension reduction methods. It decides, with a block-jackknife p-value, whether one map is more local and the other more global, and returns the scale at which to change maps. On 156 maps of twelve datasets with up to 1.38 million points, G agrees with established global scores at 0.89 and 0.96, and 2,000 points estimate it. The test confirms the usual claim on seven datasets. On both retail datasets and both rolled-up manifolds, it finds the neighbor embeddings more global. In an agent memory of one million passages, the two maps cross at 150,000 passages (p = 2.6e-5). Applications span pathology, single cells, supply chains and AI agent memory.
Quote from the paper
Henry Han (2026). Quantifying Local and Global Fidelity of Nonlinear Embeddings. arXiv:2611.00290v1. https://arxiv.org/abs/2611.00290v1
BibTeX
@misc{han2026quantifying,
title = {{Quantifying Local and Global Fidelity of Nonlinear Embeddings}},
author = {Henry Han},
year = {2026},
eprint = {2611.00290},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.00290v1}
}