Generalizing Geometric Algorithms to Arbitrary Metric Spaces

This direction is split into other directions: metric space generalization. Its last version stays readable and citable here.

Version 1 of 1245 papers256 conceptsfrozen 2026-10-04

Most of our fundamental data algorithms were born in a flat world. From $k$-means clustering to nearest-neighbor search, the "gold standard" methods often rely on the convenient algebraic properties of Euclidean space—specifically the $L_2$ norm. In this setting, we can calculate means by averaging coordinates, partition space with hyperplanes, and rely on the variance-reducing properties of squared distances.

However, real-world data rarely lives in a simple Euclidean vacuum. Biological sequences are measured by edit distance; network latencies form graph metrics; and high-dimensional text embeddings often require cosine similarity or Manhattan distance. A growing body of research is dedicated to "de-Euclidianizing" these algorithms, moving from coordinate-based assumptions to general metric spaces where the only guarantee is the triangle inequality.

The Euclidean Crutch

The ubiquity of the Euclidean assumption stems from its computational "shortcuts." For example, the standard $k$-means++ algorithm is an industry workhorse because it provides an $O(\log k)$ approximation. But as Davin Choo, Christoph Grunau, and their colleagues point out in k-means++: few more steps yield constant approximation, many of the proofs that make these algorithms reliable are strictly tied to Euclidean geometry. When you move to Manhattan distance or general metrics, these guarantees often vanish.

This "Euclidean crutch" is particularly visible in learning-augmented algorithms. Jon C. Ergun and David P. Woodruff demonstrate in Learning-Augmented k-means Clustering that while the algebraic structure of squared distances allows for robust center estimation, these techniques do not directly translate to $k$-median clustering or other non-Euclidean objectives. The lack of variance-related properties in general metrics makes it much harder to bypass classical computational barriers.

Bridging the Gap with Metric Properties

To move beyond Euclidean space, researchers look for alternative structural properties that can substitute for coordinates. Two of the most successful "bridges" are the Triangle Inequality and the Doubling Dimension.

The Power of the Triangle Inequality

In general metric spaces, we cannot "average" points to find a center. Instead, we must rely on the triangle inequality to bound distances. Xiaokui Xiao and Yufei Tao utilized this in their SNIF algorithm, which finds outliers in any metric space. By using a small random sample as a "reference" and applying the triangle inequality, they can prune the search space without ever knowing the underlying geometry of the data.

Doubling Dimension as a Complexity Proxy

When Euclidean algorithms fail due to the "curse of dimensionality," researchers often turn to the doubling dimension—a measure of how many small balls are needed to cover a larger ball. Aruni Choudhary and Michael Kerber show in Local Doubling Dimension of Point Sets that by focusing on local doubling properties, we can maintain efficiency even when the global data structure is complex. This allows for hierarchical constructions that work for Manhattan or Cosine distances, where traditional spatial hashing would fail.

Scaling to Massive, Non-Euclidean Data

The challenge of general metrics becomes even more acute when data is too large to fit in memory or arrives in a stream. Michael Shindler and Adam Meyerson pioneered high-performance streaming clustering, but as their work notes, adapting these one-pass mechanisms to non-Euclidean measures remains a significant hurdle.

One promising solution is the use of coresets—tiny, weighted summaries of a dataset that act as a proxy for the whole. While early coresets were strictly Euclidean, Lingxiao Huang and Shaofeng H.-C. Jiang have recently extended these to clustering with general constraints. By introducing new complexity measures like $\text{Lip}(\mathcal{B})$, they provide a way to compress data from graph metrics or doubling metrics without losing the theoretical guarantees previously reserved for Euclidean points.

The Future of Universal Algorithmic Design

The shift toward general metric spaces is not just a theoretical exercise; it is a necessity for the next generation of data tools. Whether it is estimating the mean of a dataset in sublinear time as explored by Beatrice Bertolotti, or rounding noisy high-dimensional data as proposed by Adi Shamir, the goal is the same: algorithms that are "metric-agnostic."

By stripping away the reliance on coordinates and focusing on the fundamental relationships between points, researchers like Kanat Tangwongsan are creating a simpler, more intuitive framework for understanding why heuristics work. The end result is a toolkit that is as robust on a social network graph as it is on a 2D scatter plot.

Papers in this version

Showing 60 of 245 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_generalizing_geometric_algorithms_to_arb_d45b6abd,
  title = {Generalizing Geometric Algorithms to Arbitrary Metric Spaces},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/generalizing-geometric-algorithms-to-arbitrary-metric-spaces/rdr_d45b6abd6b924ed1b7d4c746f14f6978},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_generalizing_geometric_algorithms_to_arb_d45b6abd_v1,
  title = {Generalizing Geometric Algorithms to Arbitrary Metric Spaces},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/generalizing-geometric-algorithms-to-arbitrary-metric-spaces/rdr_d45b6abd6b924ed1b7d4c746f14f6978/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}