# Subsets and Supermajorities: Optimal Hashing-based Set Similarity Search

**Authors:** Thomas Dybdahl Ahle, Jakob B{\ae}k Tejs Knudsen

arXiv: 1904.04045 · 2020-04-21

## TL;DR

This paper introduces an optimal hashing-based approach for generalized set similarity search problems, leveraging set and complement information asymmetrically to outperform previous methods significantly.

## Contribution

It formulates and solves a generalized set similarity search problem optimally, extending previous hashing techniques with novel theoretical analysis and practical algorithms.

## Key findings

- Achieves up to n^{0.14} improvement over prior methods in time and space.
- Provides the first non-asymptotic analysis of branching random walks on a2^2.
- Establishes new hypercontractive bounds for the directed noise operator.

## Abstract

We formulate and optimally solve a new generalized Set Similarity Search problem, which assumes the size of the database and query sets are known in advance. By creating polylog copies of our data-structure, we optimally solve any symmetric Approximate Set Similarity Search problem, including approximate versions of Subset Search, Maximum Inner Product Search (MIPS), Jaccard Similarity Search and Partial Match.   Our algorithm can be seen as a natural generalization of previous work on Set as well as Euclidean Similarity Search, but conceptually it differs by optimally exploiting the information present in the sets as well as their complements, and doing so asymmetrically between queries and stored sets. Doing so we improve upon the best previous work: MinHash [J. Discrete Algorithms 1998], SimHash [STOC 2002], Spherical LSF [SODA 2016, 2017] and Chosen Path [STOC 2017] by as much as a factor $n^{0.14}$ in both time and space; or in the near-constant time regime, in space, by an arbitrarily large polynomial factor.   Turning the geometric concept, based on Boolean supermajority functions, into a practical algorithm requires ideas from branching random walks on $\mathbb Z^2$, for which we give the first non-asymptotic near tight analysis.   Our lower bounds follow from new hypercontractive arguments, which can be seen as characterizing the exact family of similarity search problems for which supermajorities are optimal. The optimality holds for among all hashing based data structures in the random setting, and by reductions, for 1 cell and 2 cell probe data structures. As a side effect, we obtain new hypercontractive bounds on the directed noise operator $T^{p_1 \to p_2}_\rho$.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1904.04045/full.md

## Figures

16 figures with captions in the complete paper: https://tomesphere.com/paper/1904.04045/full.md

## References

70 references — full list in the complete paper: https://tomesphere.com/paper/1904.04045/full.md

---
Source: https://tomesphere.com/paper/1904.04045