Metric embedding with outliers

Anastasios Sidiropoulos, Yusu Wang

Abstract

We initiate the study of metric embeddings with outliers. Given some metric space $(X,\rho)$ we wish to find a small set of outlier points $K \subset X$ and either an isometric or a low-distortion embedding of $(X\setminus K,\rho)$ into some target metric space. This is a natural problem that captures scenarios where a small fraction of points in the input corresponds to noise. For the case of isometric embeddings we derive polynomial-time approximation algorithms for minimizing the number of outliers when the target space is an ultrametric, a tree metric, or constant-dimensional Euclidean space. The approximation factors are 3, 4 and 2, respectively. For the case of embedding into an ultrametric or tree metric, we further improve the running time to $O(n^2)$ for an $n$-point input metric space, which is optimal. We complement these upper bounds by showing that outlier embedding into ultrametrics, trees, and $d$-dimensional Euclidean space for any $d\geq 2$ are all NP-hard, as well as NP-hard to approximate within a factor better than 2 assuming the Unique Game Conjecture. For the case of non-isometries we consider embeddings with small $\ell_{\infty}$ distortion. We present polynomial-time bi-criteria approximation algorithms. Specifically, given some $\epsilon > 0$, let $k_\epsilon$ denote the minimum number of outliers required to obtain an embedding with distortion $\epsilon$. For the case of embedding into ultrametrics we obtain a polynomial-time algorithm which computes a set of at most $3k_{\epsilon}$ outliers and an embedding of the remaining points into an ultrametric with distortion $O(\epsilon \log n)$. For embedding a metric of unit diameter into constant-dimensional Euclidean space we present a polynomial-time algorithm which computes a set of at most $2k_{\epsilon}$ outliers and an embedding of the remaining points with distortion $O(\sqrt{\epsilon})$.

1. Introduction

Metric embedding is a fundamental tool in data science, facilitating tasks such as phylogenetic reconstruction and high-dimensional data visualization. Traditional embedding techniques, however, are notoriously brittle: even a single noisy data point can cause the distortion of the entire embedding to become arbitrarily large. This paper introduces the first systematic study of metric embeddings with outliers, addressing the challenge of identifying and ignoring a small set of "noisy" points to achieve a high-quality embedding for the remaining data.

Figure 1: Illustration of a point $a$ acting as an outlier relative to a tree structure defined by points $u, v, s$.

The authors formalize this as the minimum outlier embedding problem: given a budget of $k$ outliers, the goal is to find an embedding for the remaining $n-k$ points that minimizes distortion. This approach shifts the focus from global optimization to robust local consistency.

2. Algorithmic Approach

The core methodology relies on the observation that many target metric spaces are defined by local constraints. For instance, ultrametrics must satisfy a 3-point condition, while tree metrics are governed by a 4-point condition. If any subset of points violates these conditions, at least one point in that subset must be an outlier.

2.1 Ultrametrics and Trees

Initially, a greedy strategy can identify violations, but naive implementations are computationally expensive ($O(n^3)$ or $O(n^4)$). The authors introduce a "leaf augmentation" technique that reduces this complexity to $O(n^2)$, which is theoretically optimal for an $n$-point metric space. This method systematically builds the target structure and identifies points that cannot be integrated without violating metric constraints.

Figure 2: Case analysis for the leaf augmentation technique used to detect metric violations.

2.2 Euclidean Space and Bi-criteria Approximations

For $d$-dimensional Euclidean space ($\mathbb{R}^d$), the authors utilize Menger’s Theorem to check if points can be placed relative to a $d+1$ point basis. In scenarios where perfect isometry is impossible, the paper provides bi-criteria algorithms. These algorithms trade off the number of outliers against the allowed distortion, providing a robust framework for real-world data that may only approximately fit a target model.

3. Results and Complexity

The paper establishes both upper bounds for approximation and lower bounds for computational hardness:

  • Isometric Approximation Factors:
    • Ultrametrics: 3-approximation in $O(n^2)$ time.
  • Tree Metrics: 4-approximation in $O(n^2)$ time.
  • Euclidean Space ($\mathbb{R}^d$): 2-approximation in $O(n^{d+3})$ time.
  • Hardness: The problem of finding the minimum number of outliers is proven to be NP-hard for all three target spaces. Furthermore, assuming the Unique Games Conjecture, it is NP-hard to approximate the outlier set for Euclidean space within a factor better than 2.
  • Bi-criteria Results: For ultrametrics, the algorithm achieves $O(\epsilon \log n)$ distortion with $3k$ outliers. For $\mathbb{R}^d$, it achieves $O(\sqrt{\epsilon})$ distortion with $2k$ outliers.

4. Discussion and Future Work

While this work provides a robust foundation for outlier-aware embeddings, several challenges remain. The Euclidean algorithm's $O(n^{d+3})$ complexity makes it impractical for high-dimensional data. Future research could focus on improving dimensionality scaling and closing the logarithmic distortion gap in tree and ultrametric bi-criteria results. Additionally, extending these robust techniques to other metric spaces, such as planar graphs, remains an open and promising direction.

Summary updated

BibTeX
@inproceedings{sidiropoulos2017metric,
  author = {Anastasios Sidiropoulos and Yusu Wang},
  title = {{Metric embedding with outliers}},
  booktitle = {SODA},
  year = {2017},
  doi = {10.1137/1.9781611974782.43},
}
Figure