Euclidean Embedding of Data Using Local Distances

Dimitris ArabadjisNeurIPS 2026

TL;DR

Think of unfolding a crumpled map when you can only measure the tiny distances between immediately neighboring creases. Standard dimensionality reduction forces a frustrating choice: compute all pairwise distances across the entire dataset (computationally brutal) or stitch together local neighborhoods while distorting the global shape. This paper uses continuous calculus on graphs to recover globally faithful, flat Euclidean coordinates using only sparse, local neighborhood distances—no feature vectors required.

What Problem Does This Paper Address?

When projecting complex, curved data manifolds into flat Euclidean space, methods split into two camps. Global methods like IsoMap preserve the overarching geometry beautifully, but require computing shortest-path (geodesic) distances between every pair of points, creating a massive, dense matrix. Local methods—whether spectral (like LLE or Laplacian Eigenmaps) or stochastic (like t-SNE and UMAP)—operate on sparse, fast neighborhood graphs. However, because they optimize point-by-point rather than solving for an underlying continuous mapping, they preserve immediate neighborhoods while warping global distances out of shape.

Can we achieve IsoMap-level global geometric fidelity while strictly doing sparse, local math—and without needing raw input vectors at all?

Methods

Author Dimitris Arabadjis reframes embedding not as an algebraic puzzle of moving discrete points around, but as a continuous variational calculus problem discretized directly onto a weighted neighborhood graph.

  1. Representation-Free Local Frames: Starting solely from an undirected distance graph, the algorithm looks at each node's local neighborhood (specifically up to 3 hops out to accurately capture local shortest paths) and applies local Multidimensional Scaling (MDS). This builds tiny, flat Euclidean coordinate frames around every node.
  2. Matching Differentials: In differential geometry, "differential 1-forms" represent infinitesimal transports across a surface. Only truly flat manifolds allow local frames to seamlessly stitch together ("integrate") without distortion. The author sets up an objective to find smooth global coordinate functions whose differentials ($d\varphi$) best match these local frames ($\alpha$), up to a local orthogonal rotation ($Q$).
  3. Alternating Sparse Solver: Minimizing the discrepancy between $d\varphi$ and $\alpha Q$ yields coupled, highly non-linear Euler–Lagrange equations. To make this tractable, the method alternates between two fast steps until convergence:
  4. Global Stitch (Poisson Step): Hold the rotations $Q$ fixed and solve a sparse linear Laplacian system (via Preconditioned Conjugate Gradient) to update the embedding coordinates $\varphi$.
  5. Local Spin (SVD Step): Hold $\varphi$ fixed and run tiny Singular Value Decompositions (SVDs) at each node to find the optimal local rotations $Q$.

Datasets

No new benchmarks were introduced; the method was evaluated on standard synthetic manifolds and real-world datasets (converted into symmetric $N$-nearest-neighbor distance graphs):

  • Synthetic: Swiss Roll ($\mathbb{R}^3 \to \mathbb{R}^2$), Helix ($\mathbb{R}^3 \to \mathbb{R}^2$), and van der Maaten’s "difficult" manifold ($\mathbb{R}^{10} \to \mathbb{R}^5$).
  • Real-World: Test sets of MNIST and FMNIST images ($\mathbb{R}^{784} \to \mathbb{R}^{13}$), and a Lung Cancer RNA-seq dataset (1,625 cases across 51 imbalanced diagnoses, $\mathbb{R}^{60660} \to \mathbb{R}^{30}$).

Key Insights and Ideas

  • Integrability is the Bridge from Local to Global: Why do local methods fail globally? Because independent point-wise optimizations ignore whether a smooth underlying function actually exists. By solving functional differential equations on the graph, mathematical integrability acts like tension in a fabric—forcing local metric approximations to snap into a globally consistent layout without ever calculating long-range paths.
  • Purely Relational Inputs: Because differential operators (inner product, divergence, Laplacian) are derived entirely from edge weights, you never need feature vectors—just a sparse graph of local distances.
  • Distance Fidelity vs. Density Amplification: On MNIST, t-SNE and UMAP beat both IsoMap and the proposed method in cluster classification accuracy. Why? Because t-SNE and UMAP deliberately warp distances to amplify point-density separation, whereas isometric methods faithfully preserve the raw distance graph—warts, outliers, and all.

Key Results

Across experiments, the proposed algorithm is the only local method that rivals IsoMap globally while outperforming it locally.

Table 1: Evaluation of synthetic datasets’ representations’ quality
  • Unfolding Manifolds: On the Swiss Roll, the proposed method achieves near-perfect global geodesic correlation (1.00 / 1.00 / 0.98), matching IsoMap while slashing global metric stress from IsoMap's 0.73 down to 0.01 and local metric strain from 1.19 to 0.31.
  • Neighborhood Stability: Across varying neighborhood sizes on the 10D "difficult" manifold, it tracks IsoMap's global stress and correlation while keeping local angle errors low and neighborhood F1 scores near the top.
Sensitivity to neighborhood size on the 10D "difficult" manifold.
  • Biological Clustering: On the 51-class Lung Cancer RNA-seq dataset, preserving both local neighborhoods and distances proved decisive: the proposed method took first place across clustering accuracy (0.7126 vs. UMAP's 0.7040 and IsoMap's 0.6825), NMI (0.3298), Local F1 (0.7698), and Local strain (0.0566), while virtually tying IsoMap on global strain (0.1589 vs. 0.1519).

Limitations and Future Work

  • No Repulsive Forces: Relying strictly on symmetric, local neighborhood graphs excludes non-neighbor interactions (like negative sampling in UMAP or Barnes–Hut repulsion in t-SNE) that aggressively separate clusters.
  • Sensitivity to Outliers: Graph differential operators rely on second-order approximations; noisy outliers inside local neighborhoods degrade operator accuracy without halting convergence.
  • Computational & Out-of-Sample Costs: Memory scales linearly $O(K)$ with $K$ datapoints, and per-iteration time is $O(K^{1+\epsilon})$ ($\epsilon \in [0, 1/N)$), slightly heavier than UMAP's $O(K)$. Furthermore, because the method is non-parametric, embedding new unseen data requires Nyström extensions and re-running optimization steps over the training graph.
  • Future Work: Evaluating these continuous functional operators analytically on parametric models (like neural networks) to learn direct, fast mapping functions.

Summary updated

Abstract

We study the problem of recovering a globally consistent Euclidean embedding of data, given only a local distance graph and propose a method that optimally represents these distances. The method operates solely on a neighborhood graph weighted by pairwise distances, without requiring any prior vector representation of the data. The embedding is obtained by solving a variational problem that matches local, on‑graph distances to the Euclidean metric, induced by the differentials of the embedding functions. The resulting Euler–Lagrange equations are derived in a coordinate‑free form, enabling direct evaluation of all operators from the distance graph alone. Though non-linear and missing an explicit expression for their non-linearity, these equations are shown to be resolved as an iteratively updated sparse linear problem. The main contributions of the proposed approach are (a) the derivation of the functional equations governing the optimal Euclidean embedding in the continuum, (b) a representation‑free formulation that requires only a neighborhood distance graph and no feature vectors and (c) an estimation procedure based exclusively on local graph operations. We experimentally evaluate the resulting non‑parametric algorithm on synthetic manifolds and real datasets, demonstrating consistent preservation of local metric structure and neighboring relations, while approximating the global isometric embedding.
BibTeX
@inproceedings{arabadjis2026euclidean,
  author = {Dimitris Arabadjis},
  title = {{Euclidean Embedding of Data Using Local Distances}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=otyFLS0MyX},
}
Figure