Learning to Hash Robustly, Guaranteed
Alexandr Andoni, Daniel Beaglehole
Abstract
The indexing algorithms for the high-dimensional nearest neighbor search (NNS) with the best worst-case guarantees are based on the randomized Locality Sensitive Hashing (LSH), and its derivatives. In practice, many heuristic approaches exist to "learn" the best indexing method in order to speed-up NNS, crucially adapting to the structure of the given dataset. Oftentimes, these heuristics outperform the LSH-based algorithms on real datasets, but, almost always, come at the cost of losing the guarantees of either correctness or robust performance on adversarial queries, or apply to datasets with an assumed extra structure/model. In this paper, we design an NNS algorithm for the Hamming space that has worst-case guarantees essentially matching that of theoretical algorithms, while optimizing the hashing to the structure of the dataset (think instance-optimal algorithms) for performance on the minimum-performing query. We evaluate the algorithm’s ability to optimize for a given dataset both theoretically and practically. On the theoretical side, we exhibit a natural setting (dataset model) where our algorithm is much better than the standard theoretical one. On the practical side, we run experiments that show that our algorithm has a 1.8x and 2.1x better recall on the worst-performing queries to the MNIST and ImageNet datasets.
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
- Advice Querying under Budget Constraint for Online AlgorithmsZiyad Benomar, Vianney PerchetNeurIPS 2023 · 17 citations
- Rethinking Warm-Starts with Predictions: Learning Predictions Close to Sets of Optimal Solutions for Faster L-/L♮-Convex Function MinimizationShinsaku Sakaue, Taihei OkiICML 2023 · 2 citations
- Sampling Equilibria: Fast No-Regret Learning in Structured GamesDaniel Beaglehole, Max Hopkins, Daniel Kane, Sihan Liu et al.SODA 2023 · 2 citations
- Discovering Data Structures: Nearest Neighbor Search and BeyondOmar Salemohamed, Laurent Charlin, Shivam Garg, Vatsal Sharan et al.NeurIPS 2025
Builds on2
Related papers
- MQH: Locality Sensitive Hashing on Multi-level Quantization Errors for Point-to-Hyperplane DistancesKejing Lu, Yoshiharu Ishikawa, Chuan XiaoVLDB 2023 · 2 citations
- Approximate Nearest Neighbors Beyond Space PartitionsAlexandr Andoni, Aleksandar Nikolov, Ilya P. Razenshteyn, Erik WaingartenSODA 2021 · 4 citations
- Towards Accurate Distance Estimation for Distribution-Aware c-ANN SearchLiwei Deng, Penghao Chen, Ximu Zeng, Yuchen Fang et al.ICDE 2025 · 1 citation
- I/O Efficient Approximate Nearest Neighbour Search based on Learned FunctionsMingjie Li, Ying Zhang, Yifang Sun, Wei Wang et al.ICDE 2020 · 23 citations
- Point-to-Hyperplane Nearest Neighbor Search Beyond the Unit HypersphereQiang Huang, Yifan Lei, Anthony K. H. TungSIGMOD 2021 · 17 citations
