Graph-Based Algorithms for Diverse Similarity Search
Piyush Anand, Piotr Indyk, Ravishankar Krishnaswamy, Sepideh Mahabadi, Vikas C. Raykar, Kirankumar Shiragur, Haike Xu
Abstract
Nearest neighbor search is a fundamental data structure problem with many applications in machine learning, computer vision, recommendation systems and other fields. Although the main objective of the data structure is to quickly report data points that are closest to a given query, it has long been noted [CG98] that without additional constraints the reported answers can be redundant and/or duplicative. This issue is typically addressed in two stages: in the first stage, the algorithm retrieves a (large) number r of points closest to the query, while in the second stage, the r points are post-processed and a small subset is selected to maximize the desired diversity objective. Although popular, this method suffers from a fundamental efficiency bottleneck, as the set of points retrieved in the first stage often needs to be much larger than the final output. In this paper we present provably efficient algorithms for approximate nearest neighbor search with diversity constraints that bypass this two stage process. Our algorithms are based on popular graph-based methods, which allows us to "piggy-back" on the existing efficient implementations. These are the first graph-based algorithms for nearest neighbor search with diversity constraints. For data sets with low intrinsic dimension, our data structures report a diverse set of k points approximately closest to the query, in time that only depends on k and log ∆, where ∆ is the ratio of the diameter to the closest pair distance in the data set. This bound is qualitatively similar to the best known bounds for standard (non-diverse) graph-based algorithms. Our experiments show that the search time of our algorithms is substantially lower than that using the standard two-stage approach.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 776dfa28-ce7f-4b0d-b5c3-74f5ea4ac6eeCited by top-tier papers5
- Distance Adaptive Beam Search for Provably Accurate Graph-Based Nearest Neighbor SearchYousef Al-Jazzazi, Haya Diwan, Jinrui Gou, Cameron Musco et al.NeurIPS 2025 · 3 citations
- Welfarist Formulations for Diverse Similarity SearchSiddharth Barman, Nirjhar Das, Shivam Gupta, Kirankumar ShiragurICLR 2026
- Adversarially Robust Approximate Furthest NeighborKiarash Banihashem, Jeff Michael Giliberti, Prashant Gokhale, Samira Goudarzi et al.ICML 2026
- Sparse Navigable Graphs for Nearest Neighbor Search: Algorithms and HardnessSanjeev Khanna, Ashwin Padaki, Erik WaingartenSODA 2026
- An Approximation Algorithm for Graph Label SelectionJosia John, Simon Meierhans, Maximilian Probst GutenbergICML 2026
Builds on1
Related papers
- A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor SearchMengzhao Wang, Xiaoliang Xu, Qiang Yue, Yuxiang WangVLDB 2021 · 354 citations
- Graph-based Nearest Neighbor Search: From Practice to TheoryLiudmila Prokhorenkova, Aleksandr ShekhovtsovICML 2020 · 68 citations
- Fast-Convergent Proximity Graphs for Approximate Nearest Neighbor SearchBinhong Li, Xiao Yan, Shangqi LuSIGMOD 2026 · 1 citation
- CSPG: Crossing Sparse Proximity Graphs for Approximate Nearest Neighbor SearchMing Yang, Yuzheng Cai, Weiguo ZhengNeurIPS 2024 · 14 citations
- Breaking the Single-Reference-Vector Barrier in Approximate Nearest Neighbor SearchJiadong Xie, Jeffrey Liang, Siyi Teng, Jeffrey Xu Yu et al.WWW 2026
