NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Proximity in the Age of Distraction: Robust Approximate Nearest Neighbor Search

Sariel Har-Peled, Sepideh Mahabadi

Abstract

We introduce a new variant of the nearest neighbor search problem, which allows for some coordinates of the dataset to be arbitrarily corrupted or unknown. Formally, given a dataset of $n$ points $P=\{ x_1,\ldots, x_n\}$ in high-dimensions, and a parameter $k$, the goal is to preprocess the dataset, such that given a query point $q$, one can compute quickly a point $x \in P$, such that the distance of the query to the point $x$ is minimized, when ignoring the "optimal" $k$ coordinates. Note, that the coordinates being ignored are a function of both the query point and the point returned. We present a general reduction from this problem to answering ANN queries, which is similar in spirit to LSH (locality sensitive hashing). Specifically, we give a sampling technique which achieves a bi-criterion approximation for this problem. If the distance to the nearest neighbor after ignoring $k$ coordinates is $r$, the data-structure returns a point that is within a distance of $O(r)$ after ignoring $O(k)$ coordinates. We also present other applications and further extensions and refinements of the above result. The new data-structures are simple and (arguably) elegant, and should be practical -- specifically, all bounds are polynomial in all relevant parameters (including the dimension of the space, and the robustness parameter $k$).

Introduction

In high-dimensional data analysis, the "curse of dimensionality" is often compounded by the presence of noise. Traditional Nearest Neighbor (NN) search algorithms aim to find a point $x$ in a dataset $P$ that minimizes a distance metric (such as $L_1$ or $L_2$) relative to a query $q$. However, real-world datasets are frequently "distracted" by corruptions, sensor errors, or missing values.

Standard metrics are notoriously fragile in these settings. If even a small number of coordinates $k$ are significantly corrupted, the "true" neighbor may appear much further away than a random point. The core difficulty lies in the fact that we do not know which coordinates are corrupted in advance; the optimal set of coordinates to ignore is a function of both the query and the specific candidate point. This paper introduces a framework for Robust Approximate Nearest Neighbor (ANN) Search, allowing algorithms to dynamically ignore the most distracting dimensions.

The Problem of Robustness

Traditional dimensionality reduction techniques, such as the Johnson-Lindenstrauss (JL) transform, are often counterproductive for robustness. These methods "smear" information across all projected dimensions. Consequently, a single corrupted coordinate in the original space can pollute every dimension in the reduced space.

Furthermore, the "robust distance"—the distance calculated after ignoring the $k$ worst coordinates—is not a metric. Because it fails to satisfy the triangle inequality, standard geometric data structures and indexing methods typically fail. To overcome this, the authors propose a reduction from the Robust ANN problem to the standard ANN problem, leveraging existing tools like Locality Sensitive Hashing (LSH) as building blocks.

Methodology: Probing and Truncation

The proposed solution centers on a coordinate-sampling technique referred to as Probing Matrices. Unlike projections, probing involves randomly sampling coordinates with a specific probability (roughly $1/k$). This ensures that, with high probability, at least one sample will entirely avoid the $k$ corrupted coordinates of the true neighbor, keeping the noise isolated rather than distributed.

Key Algorithmic Components:

  1. Truncation: To handle coordinates with massive outliers, the algorithm "caps" the contribution of any single coordinate to the total distance. This prevents a single outlier from dominating the variance of the random samples.
  2. Bi-criterion Approximation: Finding the absolute best $k$ coordinates to drop is computationally expensive. The authors instead provide a bi-criterion trade-off: if a neighbor exists at distance $r$ when ignoring $k$ coordinates, the algorithm finds a point at distance $O(r)$ while ignoring $O(k)$ coordinates.
  3. Importance Sampling: For scenarios where features have varying reliability, the authors extend the model to a "budgeted" version. Here, ignoring different features incurs different costs, allowing the algorithm to prioritize keeping data from more reliable sensors.

Theoretical Results

While this work is primarily theoretical, it establishes several important bounds and complexity results:

  • Sublinear Query Time: For $L_1$-norm datasets, the algorithm can find a robust neighbor in $O(n^\delta)$ time, where $n$ is the number of points.
  • NP-Completeness of the Budgeted Version: The authors prove that the weighted version of the problem (where coordinates have costs) is NP-Complete, as it maps to the Min-Knapsack problem. However, they provide a Polynomial Time Approximation Scheme (PTAS) to address this.
  • Data-Sensitive Speedups: The algorithm can adapt to the "hardness" of a query. If a query point resides in a sparse region of the space, the search can terminate significantly faster than the theoretical worst-case.

Conclusion and Future Directions

The framework presented offers a simple and elegant approach to a complex problem in high-dimensional geometry. By reducing robust search to standard ANN search through clever sampling, the authors provide a path toward more resilient data retrieval systems.

However, limitations remain. The sampling technique may struggle with extremely sparse data where only a few non-zero coordinates exist. Additionally, the bi-criterion gap—ignoring $O(k)$ instead of exactly $k$ coordinates—may be too broad for some precision-sensitive applications. The next logical step for this research is empirical implementation to determine if the constant factors in the polynomial bounds allow for high-performance use in production environments.

Summary updated

BibTeX
@inproceedings{harpeled2017proximity,
  author = {Sariel Har-Peled and Sepideh Mahabadi},
  title = {{Proximity in the Age of Distraction: Robust Approximate Nearest Neighbor Search}},
  booktitle = {SODA},
  year = {2017},
  url = {https://openreview.net/forum?id=jVlWW0ALsR},
}
Figure