Subsets and Supermajorities: Optimal Hashing-based Set Similarity Search
Thomas D. Ahle, Jakob Bæk Tejs Knudsen
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 Z 2 , for which we give the first nonasymptotic 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 p1→p2 ρ .
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.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers4
- FairHash: A Fair and Memory/Time-efficient HashmapNima Shahbazi, Stavros Sintos, Abolfazl AsudehSIGMOD 2024 · 2 citations
- Statistical-Computational Trade-offs for Density EstimationAnders Aamand, Alexandr Andoni, Justin Y. Chen, Piotr Indyk et al.NeurIPS 2024 · 2 citations
- A Framework for Building Data Structures from Communication ProtocolsAlexandr Andoni, Shunhua Jiang, Omri WeinsteinSTOC 2025
- Online Orthogonal Vectors RevisitedKarthik Gajulapalli, Alexander Golovnev, Samuel King, Sidhant SaraogiSODA 2026
Related papers
- MinSearch: An Efficient Algorithm for Similarity Search under Edit DistanceHaoyu Zhang, Qin ZhangKDD 2020 · 11 citations
- LES3: Learning-based exact set similarity searchYifan Li, Xiaohui Yu, Nick KoudasVLDB 2021 · 8 citations
- SetSketch: Filling the Gap between MinHash and HyperLogLogOtmar ErtlVLDB 2021 · 17 citations
- C-MinHash: Improving Minwise Hashing with Circulant PermutationXiaoyun Li, Ping LiICML 2022 · 16 citations
- Consistent Sampling Through Extremal ProcessPing Li, Xiaoyun Li, Gennady Samorodnitsky, Weijie ZhaoWWW 2021 · 16 citations
