Denoising Distances in Metric Measure Spaces

Han Huang, Pakawut Jiradilok, Elchanan MosselNeurIPS 2026

TL;DR

Imagine trying to map a hidden landscape using only noisy, incomplete hints about how close pairs of points are—like reconstructing the physical layout of wireless sensors just from who pings whom. Previous algorithms could solve this if the points lived on a smooth, well-behaved surface, like a sphere. This paper breaks free of smooth geometry, showing how to find clean local neighborhoods and recover true distances on almost any metric space—including fractals, trees, and discrete clusters—while pinpointing the exact information-theoretic limit where recovery becomes impossible.

What Problem Does This Paper Address?

In many real-world networks—from social graphs to communicating devices—we don't observe the true underlying positions of nodes. Instead, we observe a noisy weighted graph where edge weights depend on true, "latent" distances via some monotonic link function (e.g., closer devices connect more reliably). The goal is to denoise these observations and recover the true pairwise distances.

Recent breakthroughs showed how to do this when points are sampled from a smooth $d$-dimensional Riemannian manifold. But nature isn't always smooth. What if your data lives on a branching tree, a jagged fractal, or a discrete set of communities? Without knowing the structure of the latent space ahead of time, how can we still denoise the metric?

The authors tackle this by stripping the assumptions down to two essentials:

  1. Lower $\phi$-regularity: Small balls of radius $r$ around any point must contain at least $\phi(r)$ probability mass (meaning no isolated, ultra-sparse regions).
  2. Local link assumption: The link function only needs to be informative (bi-Lipschitz) at very short distances; for faraway points, connection probabilities can completely flatten out and become indistinguishable.

Methods

Instead of estimating distances directly from noisy single edges, the authors build statistical proxies: large, localized clusters around every point. Once you have clean clusters $U_v$ and $U_w$ tightly hugging points $v$ and $w$, averaging the observed edges between the clusters cancels out the noise, letting you invert the link function to get the true distance.

To extract these clusters without knowing the geometry, the algorithm partitions vertices into disjoint blocks (so concentration bounds stay statistically independent across steps) and combines two main ingredients:

  • Internal-average search: On a tiny working subset of vertices, an exhaustive search looks for candidate sets with unusually high internal edge weights. By monotonicity, high density implies most points are close together, though a small fraction of "outlier" points might sneak in.
  • Link-average threshold refinement: To purge outliers, candidate sets are tested against fresh blocks of vertices. By thresholding the average edge weight from a candidate cluster to fresh vertices, the algorithm filters out mistakes. Two rounds of refinement yield exact inclusions—clusters guaranteed to sit strictly inside a ball of radius $Cr$.

Finally, because the link function goes blind at large distances, an initial pass suffers a "square-root loss" in accuracy. The authors resolve this with a clever two-round bootstrap across six vertex blocks: a coarse first pass builds a "fuzzy window oracle" that certifies which vertices are safely close, allowing a second pass to zoom in to the sharp target resolution $r$.

Datasets

No external real-world benchmarks are used. Because this is primarily a theoretical work, the authors evaluate a practical variant of their cluster-extraction mechanism on four synthetic metric probability spaces (sampling up to $10^6$ points in the final refinement block):

  • Two Flat Tori: $[0,1)^2$ with uniform measure under periodic $\ell_2$ and $\ell_1$ metrics.
  • Stochastic Block Model (SBM): A finite equidistant space of 20 equally weighted atoms at mutual distance $0.4$.
  • Binary Tree Leaves: Uniform measure on the $2^{10}$ leaves of a depth-10 binary tree.

Key Insights and Ideas

  • Unifying Smooth and Discrete Worlds: By phrasing geometry purely in terms of ball mass $\phi(r)$, smooth manifold learning and discrete community detection (like Stochastic Block Models) become two ends of the exact same mathematical spectrum.
  • Taming "Blind" Long-Range Links: Real similarity graphs saturate—points 10 miles apart and 100 miles apart both have near-zero connection probability. The six-block bootstrap proves you only pay a statistical penalty for this blindness during a preliminary setup phase, not in your final accuracy.
  • Tiny Subsets Buy Huge Speedups: Exhaustive search sounds terrifyingly slow. However, the authors show you only need to run the search on a tiny working subset of size $O(\log \log n)$ in dense, fixed-accuracy regimes, keeping total runtime near-linear.

Key Results

  • Sharp Statistical Threshold: Under mild conditions, recovering distances up to error $O(r)$ is achievable when $sn\phi(r)r^2 \gtrsim \log n$ (where $n$ is sample size and $s$ is graph sparsity). By reducing the problem to exact recovery in multi-block SBMs, the authors prove a matching information-theoretic lower bound: cross this line, and no estimator can succeed.
  • Near-Linear Efficiency: For a fixed target error $r$ in dense graphs ($s \asymp 1$), cluster extraction and distance recovery run in $O(n \log n)$ time.
  • Synthetic Localization: Replacing exhaustive search with a practical "nucleus-and-grow" heuristic achieved 83% to 86% sample coverage across 10 runs on all four synthetic spaces. On the 20-atom SBM, clusters achieved 0.0000 radius in every run (zero cross-community leakage).

Limitations and Future Work

  • Computational vs. Statistical Gap: When target error $r$ shrinks to zero as $n \to \infty$, the exhaustive search causes runtime to scale exponentially in the accuracy parameters. While polynomial-time algorithms exist at vanishing error for smooth manifolds, finding one for general metric measure spaces at the sharp statistical limit remains an open problem.
  • Tree Instabilities in Practice: In synthetic experiments with the greedy heuristic, binary-tree runs showed high variance—three out of ten runs leaked across the tree to reach the full space diameter ($0.75$).
  • Unknown Link Functions: The main distance-recovery corollaries assume the link function is known, though the authors note that existing bisection/calibration techniques could be adapted to recover the metric up to a global scaling factor.

Summary updated

Abstract

Recent work studied the problem of finding clusters and denoising pairwise distances from noisy distances of points sampled on a manifold. We study the same problems in more general metric measure spaces under a lower mass condition. We give an algorithm that extracts large localized clusters around every sampled point, which can be used to denoise distances, with near-linear running time in the dense regime for fixed target distance error $r$. When the target distance error $r$ is allowed to vanish as $n\to\infty$, we identify the sharp information-theoretic scale for achieving distance error $r$. Synthetic experiments on flat tori, a finite equidistant space, and binary-tree leaves illustrate the localization achieved by a practical nucleus-and-grow variant followed by two fresh-block refinements.
BibTeX
@inproceedings{huang2026denoising,
  author = {Han Huang and Pakawut Jiradilok and Elchanan Mossel},
  title = {{Denoising Distances in Metric Measure Spaces}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=XDVLprycQY},
}
Figure