# Quantifying Local and Global Fidelity of Nonlinear Embeddings

DevFeed: [Quantifying Local and Global Fidelity of Nonlinear Embeddings](<https://devfeed.tech/articles/quantifying-local-and-global-fidelity-of-nonlinear-embeddings-115007.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00290>)

Author: Henry Han

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Embeddings](<https://devfeed.tech/topics/embeddings.md>)

Tags: [ai-agent-memory](<https://devfeed.tech/tags/ai-agent-memory.md>), [correlation](<https://devfeed.tech/tags/correlation.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [dimension-reduction](<https://devfeed.tech/tags/dimension-reduction.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [global](<https://devfeed.tech/tags/global.md>), [local](<https://devfeed.tech/tags/local.md>), [locality](<https://devfeed.tech/tags/locality.md>)

## AI overview

The locality profile puts local and global embedding fidelity on one curve: its chance-corrected share of preserved k-nearest neighbors gives local fidelity at k = 10 and global fidelity as the mean across neighborhood sizes covering 30-50% of the data. At the midpoint, the profile measures agreement about which half of the data is near each point. The LG reversal test compares any two dimension reduction maps using a block-jackknife p-value and identifies the scale where their relative locality and globality reverse. Across 156 maps on twelve datasets, global fidelity correlated 0.89 and 0.96 with established global scores, and 2,000 points were sufficient to estimate it. The test confirmed the usual t-SNE/UMAP-local versus PCA-global claim on seven datasets, but found neighbor embeddings more global on both retail datasets and both rolled-up manifolds. In a one-million-passage agent memory, the maps crossed at 150,000 passages (p = 2.6e-5).

## Source excerpt

arXiv:2611.00290v1 Announce Type: new 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.