Skip to main content
QUICK REVIEW

[Paper Review] PUFFINN: Parameterless and Universally Fast FInding of Nearest Neighbors

Martin Aumüller, Tobias Christiani|arXiv (Cornell University)|Jun 28, 2019
Data Management and AlgorithmsComputer Science2 citations
TL;DR

PUFFINN is a parameterless, LSH-based nearest neighbor search index that provides probabilistic guarantees on result quality while achieving competitive performance. It combines adaptive query mechanisms and hash evaluation strategies to deliver fast, scalable, and robust k-NN search across diverse datasets, outperforming state-of-the-art methods on a novel synthetic benchmark designed to expose weaknesses in existing approaches.

ABSTRACT

We present PUFFINN, a parameterless LSH-based index for solving the $k$-nearest neighbor problem with probabilistic guarantees. By parameterless we mean that the user is only required to specify the amount of memory the index is supposed to use and the result quality that should be achieved. The index combines several heuristic ideas known in the literature. By small adaptions to the query algorithm, we make heuristics rigorous. We perform experiments on real-world and synthetic inputs to evaluate implementation choices and show that the implementation satisfies the quality guarantees while being competitive with other state-of-the-art approaches to nearest neighbor search. We describe a novel synthetic data set that is difficult to solve for almost all existing nearest neighbor search approaches, and for which PUFFINN significantly outperform previous methods.

Motivation & Objective

  • To address the lack of scalability, runtime robustness, and recall robustness in existing k-NN implementations.
  • To develop a parameterless LSH-based index that requires only memory and quality constraints from the user.
  • To make heuristic query algorithms rigorous and provably correct under general data and query distributions.
  • To evaluate and optimize implementation choices for practical performance and theoretical guarantees.
  • To introduce a challenging synthetic dataset that exposes limitations of existing nearest neighbor search methods.

Proposed method

  • Uses locality-sensitive hashing (LSH) with adaptive concatenation and repetition strategies to ensure probabilistic guarantees on k-NN results.
  • Employs a novel adaptive query mechanism based on the LSH forest model, rigorously proven to work under general data and query distributions.
  • Applies a pooling-based hash evaluation strategy that improves speed and scalability, especially for large index sizes.
  • Introduces sketching and fast Hadamard transform-based LSH functions (e.g., FHT-CP) to accelerate hash computation without sacrificing accuracy.
  • Uses a synthetic dataset with high-dimensional, clustered, and adversarial structures to stress-test nearest neighbor algorithms.
  • Fixes implementation choices via empirical evaluation, selecting pooling over tensoring and FHT-CP over exact CP LSH for optimal speed-quality trade-offs.

Experimental results

Research questions

  • RQ1Can a parameterless LSH-based k-NN index be designed that guarantees result quality with only memory and quality constraints?
  • RQ2Can heuristic query algorithms in LSH forests be made rigorous and provably correct for general data and query distributions?
  • RQ3How do different hash evaluation strategies (independent, tensor, pooling) impact performance and scalability in LSH-based k-NN indexing?
  • RQ4Can a synthetic dataset be constructed that exposes weaknesses in existing k-NN approaches, particularly in recall and speed?
  • RQ5How does PUFFINN compare to state-of-the-art k-NN methods in terms of query performance, recall, and robustness across real-world and synthetic data?

Key findings

  • PUFFINN achieves at least 95% recall on all real-world datasets, outperforming VPTree and FLANN, which failed to achieve high recall on GNEWS-3M.
  • On the synthetic dataset, PUFFINN achieved high recall (>95%) at over 10,000 QPS, while IVF and ANNOY failed to exceed 40% recall.
  • PUFFINN was the fastest among implementations with automatic parameter tuning, outperforming FALCONN and ANNOY in most performance-quality trade-offs.
  • The pooling-based hash evaluation strategy was significantly faster than tensoring and enabled efficient use of exact CP LSH and FHT-CP for high-accuracy results.
  • PUFFINN’s performance is competitive with non-parameterless, non-guaranteed methods like FALCONN, demonstrating that theoretical guarantees can be achieved with minimal performance cost.
  • The proposed synthetic dataset effectively exposes weaknesses in existing approaches, particularly in recall degradation under high-dimensional, clustered data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.