Sampling a Near Neighbor in High Dimensions -- Who is the Fairest of Them All?

Martin Aumüller, Sariel Har-Peled, Sepideh Mahabadi, Rasmus Pagh, Francesco Silvestri
1/26/2021
cs.DScs.DBcs.LG

Official code: alfahaf/fair-nn (3 stars, Jupyter Notebook, last commit 2021-09-24).

Abstract

Similarity search is a fundamental algorithmic primitive, widely used in many computer science disciplines. Given a set of points $S$ and a radius parameter $r>0$, the $r$-near neighbor ($r$-NN) problem asks for a data structure that, given any query point $q$, returns a point $p$ within distance at most $r$ from $q$.

Show full abstract

In this paper, we study the $r$-NN problem in the light of individual fairness and providing equal opportunities: all points that are within distance $r$ from the query should have the same probability to be returned. In the low-dimensional case, this problem was first studied by Hu, Qiao, and Tao (PODS 2014). Locality sensitive hashing (LSH), the theoretically strongest approach to similarity search in high dimensions, does not provide such a fairness guarantee. In this work, we show that LSH based algorithms can be made fair, without a significant loss in efficiency. We propose several efficient data structures for the exact and approximate variants of the fair NN problem. Our approach works more generally for sampling uniformly from a sub-collection of sets of a given collection and can be used in a few other applications. We also develop a data structure for fair similarity search under inner product that requires nearly-linear space and exploits locality sensitive filters. The paper concludes with an experimental evaluation that highlights the inherent unfairness of NN data structures and shows the performance of our algorithms on real-world datasets.

View on arXivView PDF

Code Implementations(1)

alfahaf/fair-nnOfficial100%

Supplemental Material for "Sampling a Near Neighbor in High Dimensions --- Who is Fairest of Them All?"

30Jupyter Notebook, PythonJan 14, 20215 years ago

Similar Papers

Cite this paper

@article{aumller2021sampling,
  title  = {Sampling a Near Neighbor in High Dimensions -- Who is the Fairest of Them All?},
  author = {Martin Aumüller and Sariel Har-Peled and Sepideh Mahabadi and Rasmus Pagh and Francesco Silvestri},
  year   = {2021},
  eprint = {2101.10905},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.10905}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.10905.svg)](https://codeofpaper.com/paper/2101.10905)

Discussion