Lune

NeurIPS2021Top-tier venue

Practical Near Neighbor Search via Group Testing

Joshua Engels, Benjamin Coleman, Anshumali Shrivastava

Abstract

We present a new algorithm for the approximate near neighbor problem that combines classical ideas from group testing with locality-sensitive hashing (LSH). We reduce the near neighbor search problem to a group testing problem by designating neighbors as "positives," non-neighbors as "negatives," and approximate membership queries as group tests. We instantiate this framework using distancesensitive Bloom Filters to Identify Near-Neighbor Groups (FLINNG). We prove that FLINNG has sub-linear query time and show that our algorithm comes with a variety of practical advantages. For example, FLINNG can be constructed in a single pass through the data, consists entirely of efficient integer operations, and does not require any distance computations. We conduct large-scale experiments on high-dimensional search tasks such as genome search, URL similarity search, and embedding search over the massive YFCC100M dataset. In our comparison with leading algorithms such as HNSW and FAISS, we find that FLINNG can provide up to a 10x query speedup with substantially smaller indexing time and memory.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Discovering Data Structures: Nearest Neighbor Search and Beyond cites Learning Space Partitions for Nearest Neighbor Search
  • One-Pass Distribution Sketch for Measuring Data Heterogeneity in Federated Learning cites Sub-linear Memory Sketches for Near Neighbor Search on Streaming Data
  • One-Pass Distribution Sketch for Measuring Data Heterogeneity in Federated Learning cites DESSERT: An Efficient Algorithm for Vector Set Search with Vector Set Queries
  • DESSERT: An Efficient Algorithm for Vector Set Search with Vector Set Queries cites Sub-linear Memory Sketches for Near Neighbor Search on Streaming Data
  • DESSERT: An Efficient Algorithm for Vector Set Search with Vector Set Queries cites Learning Space Partitions for Nearest Neighbor Search
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. DESSERT: An Efficient Algorithm for Vector Set Search with Vector Set QueriesJoshua Engels, Benjamin Coleman, Vihan Lakshman, Anshumali ShrivastavaNeurIPS 2023 · 27 citations
  2. One-Pass Distribution Sketch for Measuring Data Heterogeneity in Federated LearningZichang Liu, Zhaozhuo Xu, Benjamin Coleman, Anshumali ShrivastavaNeurIPS 2023 · 19 citations
  3. Scalable and Efficient Non-adaptive Deterministic Group TestingDariusz R. Kowalski, Dominik PajakNeurIPS 2022 · 1 citation
  4. Discovering Data Structures: Nearest Neighbor Search and BeyondOmar Salemohamed, Laurent Charlin, Shivam Garg, Vatsal Sharan et al.NeurIPS 2025
  5. Fundamental Limitations on Subquadratic Alternatives to TransformersJosh Alman, Hantao YuICLR 2025

Builds on4

  1. Learning Space Partitions for Nearest Neighbor SearchYihe Dong, Piotr Indyk, Ilya P. Razenshteyn, Tal WagnerICLR 2020 · 104 citations
  2. Graph-based Nearest Neighbor Search: From Practice to TheoryLiudmila Prokhorenkova, Aleksandr ShekhovtsovICML 2020 · 68 citations
  3. Sub-linear Memory Sketches for Near Neighbor Search on Streaming DataBenjamin Coleman, Richard G. Baraniuk, Anshumali ShrivastavaICML 2020 · 21 citations
  4. SOLAR: Sparse Orthogonal Learned and Random EmbeddingsTharun Medini, Beidi Chen, Anshumali ShrivastavaICLR 2021 · 10 citations

Related papers

  1. Falconn++: A Locality-sensitive Filtering Approach for Approximate Nearest Neighbor SearchNinh Pham, Tao LiuNeurIPS 2022 · 20 citations
  2. R2LSH: A Nearest Neighbor Search Scheme Based on Two-dimensional Projected SpacesKejing Lu, Mineichi KudoICDE 2020 · 40 citations
  3. VHP: Approximate Nearest Neighbor Search via Virtual Hypersphere PartitioningKejing Lu, Hongya Wang, Wei Wang, Mineichi KudoVLDB 2020 · 9 citations
  4. BLISS: A Billion scale Index using Iterative Re-partitioningGaurav Gupta, Tharun Medini, Anshumali Shrivastava, Alexander J. SmolaKDD 2022 · 14 citations
  5. Federated Nearest Neighbor Classification with a Colony of Fruit-FliesParikshit Ram, Kaushik SinhaAAAI 2022 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines