Fast Diverse Nearest Neighbor Search
Justin Y. Chen, Soham Nagawanshi, Shenghao Xie, Haike Xu, Alan Zhou, Samson Zhou
NeurIPS 2026
Abstract. In the -diverse nearest neighbor search problem, the input is a dataset in which each point is assigned a color, and given a query , the goal is to retrieve approximate nearest neighbors with distinct colors. This color diversity metric is highly essential for information retrieval tasks where results are required to have different categories, e.g., recommending products from different sellers. Previous state-of-the-art solution by Anand et al. [ICML 2025] constructs a diversity-aware graph to meet this requirement. However, they suffer from an multiplicative query time overhead, creating a computational bottleneck when is large.
To break this barrier, we propose a novel color bucketing framework that selects a subset of colors in each bucket and instantiates an independent approximate nearest neighbor search algorithm on the corresponding points. Inspired by group testing, we provide a randomized color sampling scheme that achieves an overhead in Euclidean spaces and an overhead in general metric spaces, where is the approximation factor, reducing a factor of . In addition, the space usage to store the data structure matches or improves upon prior methods. Empirical results on semi-synthetic and real-world datasets demonstrate that our approach achieves significantly faster search times and higher recall compared to state-of-the-art diversity search baselines.
Furthermore, we introduce a dataset-oblivious deterministic bucketing scheme using expander graphs for a relaxed diverse search problem that only requires colors. Here, dataset-oblivious means that the color bucket construction does not depend on the spatial configuration of the dataset. We then establish an lower bound on the number of buckets for any dataset-oblivious deterministic bucketing scheme that gives an \emph{exact} -diverse solution. We subsequently circumvent this by a dataset-aware adaptive segment tree bucketing scheme with an overhead of only , where is the number of colors. As an extension of our results, we solve the problem with general diversity metric, where the goal is to maximize the minimum pair-wise distance of the solutions, and improve the query time.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:42 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The reviewers found the problem studied interesting but there is concern about the technical depth of the contribution and applicability of the results in empirical setting. I would suggest that authors focus on highlighting the technical depth that may have gone missing in the reviewers [I am inclined not to recommend rejection solely due to technical depth]. The questions by reviewer regarding empirical evaluation are very valid and it is important that authors address them satisfactorily.
Final justification
The authors responded well to reviewers' concerns and have highlighted the steps they intend to undertake. I am satisfied with their commitments in improving evaluation section. The authors also satisfactorily answered questions regarding technical correctness, and therefore, I recommend acceptance.
Read meta-review
Meta-review
The reviewers found the problem studied interesting but there is concern about the technical depth of the contribution and applicability of the results in empirical setting. I would suggest that authors focus on highlighting the technical depth that may have gone missing in the reviewers [I am inclined not to recommend rejection solely due to technical depth]. The questions by reviewer regarding empirical evaluation are very valid and it is important that authors address them satisfactorily.
Final justification
The authors responded well to reviewers' concerns and have highlighted the steps they intend to undertake. I am satisfied with their commitments in improving evaluation section. The authors also satisfactorily answered questions regarding technical correctness, and therefore, I recommend acceptance.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper tackles the k-diverse c-ANN problem: every data point carries a color, and for a query the data structure must return k near-optimal points whose colors are all distinct. The prior state of the art (Anand et al., ICML'25) bakes diversity into a navigation graph and pays an multiplicative overhead at query time. The authors' main move is a "color bucketing" framework borrowed from non-adaptive group testing: build buckets, sample each color into a bucket independently with probability 1/k, and run an off-the-shelf c-ANN oracle on each bucket's sub-dataset. A coupon-collector argument shows that buckets recover all k target colors with high probability. The randomized overheads come out to in Euclidean space and for general metrics, the latter beating the barrier. On top of the randomized core, the paper adds three deterministic results: a dataset-oblivious expander-graph scheme for the relaxed -diverse problem, an lower bound for any dataset-oblivious exact scheme (via a reduction to disjunct/cover-free families), and a dataset-aware adaptive segment-tree scheme with overhead that sidesteps the lower bound. Experiments pit a randomized variant (random bucketing + DiskANN per bucket) against the single baseline on ArXiv/LAION embeddings with synthetic colors. There is also an extension to a continuous diversity objective.
Strengths and weaknesses
Strengths
S1) The group-testing framing is clean and does real work conceptually. Treating the k target colors as "defectives" and a black-box c-ANN call as a "group test" decouples the spatial search from the categorical constraint, and the resulting framework is modular: it plugs in IM98/AI08/KL04/IX23 oracles without modifying them, which is attractive for deployment.
S2) The theoretical span is respectable. The randomized result (Thm 2.1), the dataset-oblivious expander construction (Thm 3.3), the matching lower bound for the oblivious model (Thm 3.4/E.3), and the adaptive segment tree (Thm 3.5/F.6) together form a well-rounded story. The lower-bound/upper-bound pairing in the dataset-oblivious model is the most satisfying part of the paper and helps explain why the earlier overhead showed up. The reduction of exact diverse retrieval to (k−1)-disjunct families, then invoking the DR82 bound, is a correct and non-obvious insight.
S3) On the empirical side, the randomized variant sits ahead of the baseline on the recall–latency and recall–QPS Pareto fronts across three embedding datasets, with competitive or faster build times on the real-color ArXiv data.
Weaknesses
W1) The randomized algorithm is essentially the "color into buckets" idea from AIK+25/AAI+13 paired with a textbook coupon-collector analysis. The only genuinely new ingredient over AAI+13's per-bucket selection is the 1/k sampling with O(k log k) buckets. The Euclidean bound is an extension rather than a leap. The pieces that are new, the oblivious lower bound and the segment tree, live entirely in the deterministic exact setting, which is never evaluated.
W2) The proofs I spot-checked are basically correct, but several headline statements overstate what is shown. Most importantly, the Section 3.3 results call the guarantee "exact" while the per-node oracle is only c-approximate, so "exact k-diverse" conflates combinatorial color-distinctness (true) with metric optimality (false). Separately, the o(1) and the factors in the deterministic theorems are super-polylogarithmic and get absorbed into "Õ" notation that hides load-bearing terms.
W3) There is a real empirical limitations:
- Only one baseline (AIK+25). No AAI+13, no naive over-retrieve-then-rerank (CG98), no ablation over the bucket count L.
- The asymptotic claim is never shown empirically. k is fixed (100 / 5); there is no latency-vs-k plot, which is the curve that would actually demonstrate sub- / sub-k scaling.
- Only the randomized algorithm is tested. The expander construction, the lower bound, and the segment tree, the most novel material, get no empirical validation at all.
- Colors on the flagship OpenAI dataset are synthetic with a hand-designed skew, and the authors themselves note that the real LAION distribution is less skewed and the margin shrinks there.
- Single consumer desktop, no error bars or significance testing, despite recall ranges that overlap.
W4) The improvement is asymptotic in k, but every bound carries a multiplicative (Euclidean) or (general) factor that dominates at the small actually tested. The paper never ties the measured speedups back to the claimed k-exponent.
Questions
Q1) Section 3.3 claims an exact k-diverse solution, but Algorithm 2 calls a c-ANN oracle returning c-approximate distances (line 938). Is the guarantee exact in distance, or only that exactly k distinct colors are returned within radius c·r*? Please reconcile this with the "exact" wording in Thm 3.4 and the lower bound.
Q2) The 0.99 success probability (lines 557–558) combines a Markov bound on the expected bucket count with per-oracle success of 0.99. With oracle calls, how is the union bound over oracle failures controlled, and is the cost of amplifying each oracle to failure 1/poly already folded into the stated overhead? A clear constant/Chernoff argument would settle this.
Q3) Can you add an experiment plotting query latency (and #buckets / #oracle calls) against k at fixed recall, to directly show the sub-k^2 (general) / sub-k (Euclidean) scaling? Without it, the title's "fast" and the abstract's "break this barrier" are not supported empirically.
Q4) Why is none of the deterministic machinery (expander Algo 5, segment tree Algo 2) evaluated, given that it is the most novel part? Even a small-scale check of the segment tree's behavior against the oblivious bound would help a lot.
Q5) The baseline (R=64/128) and your method (R=16) use different graph degrees (lines 351–352). What does the comparison look like under matched index size or build-time budget, and how does it fare against AAI+13 and a naive over-retrieve-then-rerank baseline?
Limitations
Partially. The paper is reasonably upfront about the synthetic color distribution and the shrinking margin on real LAION data, which I appreciate. But two things go unflagged: (1) the bounded doubling-dimension and aspect-ratio assumptions that every "general metric" bound silently relies on, and (2) the gap between the asymptotic k-improvement and the small-k regime where the factors dominate. I'd ask the authors to state these limitations explicitly rather than leaving them to the appendix. No negative societal-impact concerns beyond the usual for retrieval systems.
Formatting concerns
No formatting, anonymity, or length violations noted.
8 comments
W3) Single consumer desktop, no error bars or significance testing.
While we used a single consumer desktop to evaluate performance in a practical setting, we acknowledge that hardware characteristics can impact empirical results. Our primary contribution, however, is the development and theoretical analysis of the algorithms, and the experiments are intended mainly to validate the theoretical predictions rather than provide an exhaustive empirical evaluation. We do already include a substantial empirical evaluation demonstrating that the observed performance is consistent with our theoretical guarantees, though in the revised manuscript, we will evaluate the algorithms across a broader range of hardware environments and experimental settings, including repeated trials with statistical significance analysis where appropriate.
W4) Large multiplicative factors, the small regime.
We clarify that the multiplicative factors, such as in Euclidean spaces or in general metrics, are intrinsic to the underlying standard c-ANN algorithms. Crucially, both our method and the baseline algorithms inherit these exact same terms. Because our framework strictly reduces the -dependent overhead (e.g., from to in general metric spaces) that multiplies these factors, our improvement is consistent across any choice of . Consequently, our method also achieves better performance in the small- regime. This is explicitly validated by our empirical results on the real-world LAION dataset, which evaluates (Figure 2) and demonstrates latency and recall improvements over the baseline.
Q2) Union bound over oracle failures.
We clarify that there is no union bound used in our analysis, and consequently, we do not need to amplify the individual oracle success probabilities to .
As detailed in the proof of Lemma B.1, the constant success probability of each -ANN oracle is factored into the probability of the step-wise success event . Event is defined as (see lines 549-550) the joint event that a new bucket (1) samples at least one of the remaining target colors, (2) does not sample any of the already selected colors, and (3) the -ANN algorithm successfully reports a valid neighbor. We show in line 539-550 that the total joint probability is , and so the expected number of buckets queried until occurs is . Using the linearity of expectation, the total expected bucket count for recovering colors is , yielding that total buckets guarantees a overall success probability for the entire algorithm via Markov's inequality. Therefore, there are no hidden amplification costs folded into our stated overhead.
Q5) Different graph degrees in experiments.
The baseline constructs and searches a single graph built on the entire dataset while our strategy distributes the search across smaller graphs built on the sampled subsets, allowing it to achieve equivalent or higher recall with a significantly lower degree. Reducing the baseline’s degree to degrades its connectivity, leading to a noticeable drop in recall. Conversely, increasing our method’s degree to or yields diminishing returns on recall while unnecessarily increasing graph build times and search latency. Thus, matching graph degrees does not reflect equal resources across the architectures and evaluating each method at its optimal degree provides a more faithful comparison of peak performance.
Limitations: (1) the bounded doubling-dimension and aspect-ratio assumptions,(2) small-k regime.
Since our randomized color bucketing framework implements existing c-ANN algorithms as black boxes, it inherits their limitations. For example, as the reviewer mentions, in general metric spaces, our bounds rely on bounded doubling-dimension () and aspect-ratio () assumptions. If the data has high doubling dimension, the inherited factor can become a computational bottleneck, which might dominate in the small- regime. However, we emphasize that prior state-of-the-art diverse search algorithms (including AAI+13 and AIK+25) also suffer from these exact same dependencies, as they too rely heavily on standard c-ANN structures. Our framework distinguishes itself by achieving better asymptotic rates for any choice of , including the small- regime, as we mentioned in the response to W4. We will state these limitations explicitly in the main text.
I thank the authors for the detailed response. I address each point in turn, distinguishing what I consider resolved from what remains open.
Resolved
W2/Q1 ("exact" terminology). Agreed — this was a definitional ambiguity, and your clarification (color-exactness vs. metric-exactness) combined with the promised text fix in the abstract and Section 3.3 resolves it fully.
Q2 (union bound / oracle amplification, DB2). I re-examined Lemma B.1 and confirm this is correctly handled. Event is defined as the joint event — a bucket isolates a remaining color, avoids already-claimed colors, and the -ANN oracle succeeds — so
already incorporates oracle success, rather than treating it as an independent penalty multiplied across buckets. Since
Markov's inequality is applied once to the aggregate waiting time , not per-oracle-call — so no union bound over the individual oracle calls is needed. This concern is fully addressed.
W2 ( notation). I confirm Table 1's caption states hides only the factor, and the term
is exposed outside in the deterministic theorem statements, as claimed. This narrow point is resolved.
Not resolved — I push back on the following
W1 (novelty). The argument that "no prior work used this strategy, otherwise they would have already achieved our improvements" is not evidence of novelty — it assumes the conclusion to argue the premise. The mechanistic distinction (diversity outside the index vs. embedded in it) is a fair clarification of where the gain originates, but it does not establish that the technique itself is more than a specialization of known bucket/group-testing ideas. The analysis remains a standard coupon-collector argument, and the new contributions (the lower bound and the segment tree) remain untested, which was the substance of my concern.
W4 vs. W3/Q3 (multiplicative factors and -scaling). I note an internal tension. W4 is defended by pointing to the LAION result as evidence that measured speedup tracks the claimed exponent
while W3/Q3 concedes there is no systematic latency-vs- experiment and promises to add one in revision. A single data point cannot serve simultaneously as validation of the asymptotic claim and as a gap still to be filled. I'd ask the authors to reconcile this rather than cite the same limited evidence for both.
W3 (missing baselines — AAI+13, CG98). The claim that AAI+13 is "widely known to be outperformed in practice by modern graph-based algorithms" is asserted without citation or evidence, and the CG98 dismissal relies on AIK+25's own reported comparison rather than a verification by the authors. I understand the reluctance to re-run superseded baselines, but as stated, this remains an unaddressed empirical gap rather than a resolved one.
W3 (skewed color distribution). This response addresses why the skew matches AIK+25's setup, but does not address the actual concern I raised: the authors' own paper (lines 369–371) reports the margin shrinks on the less-skewed real LAION distribution. That finding is not discussed in the response.
W3 (ablation over ). A recall-vs-latency Pareto curve traced out by varying is not equivalent to an ablation isolating 's effect (on bucket/oracle-call count, build time, etc.) independent of the recall it happens to produce. I'd still ask for the latter.
W3/Q4 (deterministic algorithms untested). I consider this the most significant remaining gap. That the expander/segment-tree machinery is "more difficult to implement" is, in my view, a reason to validate it empirically — to check whether the theoretical bound survives real overhead versus the oblivious lower bound it is meant to beat — rather than a reason to omit that validation, particularly since this machinery constitutes the paper's most novel theoretical contribution.
Q5 (mismatched graph degrees). The "peak-performance-per-method" argument ( vs. ) is reasonable in principle, but does not substitute for the matched build-time/index-size comparison I requested, which would more directly rule out the concern that the latency gap partly reflects a hyperparameter regime difference rather than an algorithmic one.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies the problem of diverse approximate nearest neighbor search. Consider a metric space and a subset of points . Fix a radius and a parameter . A data structure for approximate nearest neighbor search answers the following queries: given a point , it returns a point in at distance at most from if there exists a point at distance at most from . In the diverse variant of the problem, each point in is assigned a color. The data structure returns points of distinct colors within a ball of radius around whenever there exist points of distinct colors within the ball of radius around .
The paper shows how to solve the diverse version of the problem using a data structure for the standard version. The reduction is based on the following idea. Sample random color sets , where each color is included independently with probability . For each , construct an ANN data structure for the points in whose colors belong to . Given a query , query all of these data structures and return points of distinct colors from the collected answers. This reduction yields improved query time for both Euclidean and general metric spaces (see Table 1).
In addition, the paper presents results for the -diverse ANN search problem, establishes an information-theoretic lower bound for dataset-oblivious exact deterministic search, and proposes a data structure for adaptive exact deterministic search.
The paper also includes an empirical evaluation of the proposed data structures.
Strengths and weaknesses
Strengths:
The problem is well motivated. In many applications, one is interested in retrieving a diverse set of results for a given query, which is naturally modeled by requiring the returned points to have distinct colors.
The proposed reduction applies to both Euclidean and general metric spaces.
Weaknesses:
The main algorithmic idea is relatively simple. The technical contribution of the reduction is moderate and, by itself, would not meet the bar for NeurIPS. The additional results on deterministic data structures are technically more involved and substantially strengthen the paper from a technical standpoint. However, conceptually they are less central than the main reduction.
While the improvement in query time for Euclidean spaces, from to , is meaningful, it does not represent a major breakthrough.
Questions
Could the authors comment on whether the query-time overhead achieved by their reduction is likely to be close to optimal, both in Euclidean and general metric spaces?
Limitations
yes
Formatting concerns
N/A
1 comment
The main algorithmic idea is relatively simple. The technical contribution of the reduction is moderate and, by itself, would not meet the bar for NeurIPS.
We agree that the main randomized algorithm is simple, but we tend to view this simplicity as a significant practical strength. We want to emphasize that our framework is the first to achieve sublinear/linear overhead on in the diverse search problem. Although previous frameworks such as Abbar et al. (2013) or recent work by Anand et al. (2025) used more complex data structures, they were not able to achieve a faster query time.
In particular, the graph-based algorithm in Anand et al. (2025) required a large vertex degree to satisfy diversity requirements, leading to the barrier. Conversely, trivial methods, like having a -ANN bucket for each color, incur an unavoidable dependence on the number of colors or points, which can be prohibitively large in real-world applications. By connecting diverse search to tools in group testing and matrix disjunctiveness, our algorithm effectively samples a target color while avoiding all previously chosen colors using only buckets, bypassing the dependence on or the total number of colors. Moreover, this randomized algorithm is easy to implement and beats the previous state-of-the-art in our experiments. We also included a more complex variation of the randomized algorithm in Appendix C, which solves the relaxed diverse search problem that allows redundent points for each color and achieves a better query time compared to Anand et al. (2025).
The additional results on deterministic data structures are technically more involved and substantially strengthen the paper from a technical standpoint. However, conceptually they are less central than the main reduction.
We thank you for your recognition of the technical depth in our deterministic data structures. We agree that these deterministic results are not considered as our main contribution, but we would like to emphasize more on their significance. First, deterministic algorithms provide strict worst-case guarantees without failure probabilities, which is highly desirable for applications requiring rigorous, absolute guarantees.
Second, in exploring these deterministic approaches, establishing the lower bound for dataset-oblivious bucketing formally proves the inherent hardness of the problem. When the sketch is deterministic and dataset-oblivious, we can develop a hard spatial configuration where the color-to-bucket incidence matrix must possess a strict -disjunct property to ensure the recovery of each target color. This leads to a quadratic barrier in the number of buckets due to information-theoretic lower bounds. This also motivates our randomized approach. Inspired by group testing, we replace the rigid -disjunct requirement with independent random sampling, which isolates target colors with high probability using only buckets in the worst case, as well as under the hard configuration mentioned above. We will refine the introduction to better highlight the importance of these deterministic results and bridge this narrative.
While the improvement in query time for Euclidean spaces, from to , is meaningful, it does not represent a major breakthrough.
We appreciate your perspective on this improvement. However, we believe breaking the linear barrier is conceptually quite significant. As we mentioned earlier, the previous approach in Abbar et al. (2013) embedded diversity directly into the spatial index, for example, by forcing each LSH bucket to store points with different colors. Under that paradigm, a linear dependence on appeared unavoidable. Achieving sublinearity shows that this is not a fundamental limit. Additionally, we would like to highlight the impact of our randomized framework in general metric spaces, which we believe is a major practical leap. The main result in the recent state-of-the-art Anand et al. (2025) only achieved an overhead. Reducing this quadratic bottleneck to an overhead resolves the computational limitation for large-scale real-world diverse retrieval systems.
Could the authors comment on whether the query-time overhead achieved by their reduction is likely to be close to optimal, both in Euclidean and general metric spaces?
This is an insightful question. While we do not currently have a strict mathematical lower bound for randomized diverse search algorithms, there is strong circumstantial evidence suggesting our query-time overhead is close to optimal.
As discussed in our previous response, our deterministic lower bound demonstrates the inherent difficulty of the diverse search problem. However, our randomized algorithm bypasses this barrier via independent random sampling. Additionally, our framework conceptually connects to non-adaptive group testing, which possesses known information-theoretic lower bounds, e.g., to identify defectives among items. However, this lower bound does not directly apply to the diverse search problem. In our framework, even if a random bucket fails to completely isolate a target color from previously selected colors, the black-box -ANN algorithm could still report a point with the target color anyway. Because of this, determining whether one can achieve better than our overhead remains an open theoretical challenge. We suspect that any further improvements would require deeply coupling the spatial search with the diversity constraints, which would sacrifice the flexibility and simplicity of our black-box approach.
In summary, while these theoretical connections provide strong evidence that our overhead is near-optimal, formally proving a lower bound for randomized diverse search remains a highly important future direction.
- Rating
- 5/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors study the k-diverse nearest neighbor search problem, which asks for a given dataset and query q, to retrieve the approximate nearest neighbors to the query with distinct colors The O(k^2) barrier from previous state-of-the-art work is bypassed by using a color bucketing framework which is inspired by non-adaptive group testing. Overall, the authors propose new methods that achieve improved query and space complexity bounds. The methods are validated on semi-synthetic and real-world datasets, which seem to confirm the significantly faster search times and higher recall compared to state-of-the-art diversity search baselines
Strengths and weaknesses
S1) The authors make several clear theoretical contributions, mainly resulting in improved query time and similar (sometimes even improved) space as the previous state-of-the-art. The limits of exact deterministic retrieval are also shown, by providing lower bounds by clever use of a similarity with disjunctive codes from extremal combinatorics. Various other methods (schemes via bipartite expanders, adaptive segment tree bucketing) are also introduced.
S2) An experimental evaluation shows that the proposed algorithms generally achieve faster query time and more accurate answers on both semi-synthetic and real-world datasets.
W) Overall, I am quite positive about this paper. The contributions are clear, the claims are supported by proofs and solid experimental evaluation. The only downside of this paper is that the writing and exposition could sometimes be improved. Some math formatting and paragraphs are not that properly readable, which confiscate the reading of the entire paper. For example, Sec. 1.1 (results) is kind of a straightforward summary dump of obtained results, but not that well-written. Same goes for other parts, like Theorem 2.1 and Section 2, which could use some improved presentation and general writing.
Questions
What are the open questions and research directions? What are the limitations of your approach?
Limitations
No limitations given
Final justification
Thanks to the authors for rebuttal. This paper makes a solid contribution
Formatting concerns
No concerns
1 comment
W) Overall, I am quite positive about this paper. The contributions are clear, the claims are supported by proofs and solid experimental evaluation. The only downside of this paper is that the writing and exposition could sometimes be improved. Some math formatting and paragraphs are not that properly readable, which confiscate the reading of the entire paper. For example, Sec. 1.1 (results) is kind of a straightforward summary dump of obtained results, but not that well-written. Same goes for other parts, like Theorem 2.1 and Section 2, which could use some improved presentation and general writing.
We sincerely thank the reviewer for the positive assessment of our contributions, proofs, and experimental evaluations. We appreciate your feedback regarding the exposition, and we will improve math formatting and readability in the revision accordingly. Specifically, we will restructure Section 1.1 to provide a more intuitive narrative flow that better highlights the motivations and conceptual connections between the results. Additionally, we will refine the technical sections, including Section 2 and Theorem 2.1, to provide a clearer presentation of our techniques.
What are the open questions and research directions? What are the limitations of your approach?
A primary open question is establishing a lower bound for randomized diverse search algorithms. While we establish an lower bound for dataset-oblivious deterministic bucketing, and our randomized framework connects to non-adaptive group testing, which has known information-theoretic lower bounds, these results do not formally demonstrate a lower bound for the randomized diverse search problem itself. In particular, our deterministic lower bound relies on a hard spatial configuration that forces the color-to-bucket incidence matrix of static schemes to satisfy the -disjunct property, leading to the quadratic lower bound. In contrast, our randomized approach bypasses this rigid requirement via independent random sampling, isolating target colors with high probability using only buckets. Therefore, determining whether one can achieve better than our overhead remains an interesting theoretical challenge. Other future directions include optimizing the space overheads of our algorithms.
Because our framework implements existing -ANN algorithms as black-box procedures, it inherits their limitations. For example, in general metric spaces, our bounds require bounded doubling-dimension () and aspect-ratio (). If the dataset has extremely high intrinsic dimensionality, the inherited factor can become a computational bottleneck. However, we note that prior state-of-the-art diverse search algorithms also suffer from these exact same dependencies, as they too rely heavily on standard -ANN structures. Our framework out-performs these previous results by achieving better asymptotic rates in . Furthermore, because of our fully black-box design, any future algorithmic breakthroughs that reduce these bottlenecks in standard -ANN will be inherited by our diverse search framework. We thank the reviewer for this question and will add these discussions in the updated version.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We respectfully disagree with the characterization of our randomized algorithm as merely the "color into buckets" idea from prior work. Both AAI+13 and AIK+25 embed diversity constraints directly into the search data structure built on the entire dataset, e.g., AAI+13 stores k diverse points per LSH bucket (not our color sampling bucket); AIK+25 forces graph nodes to connect to many diverse neighbors. This coupling of spatial search and diversity constraints forces redundant traversals, leading to the O(k2) bottleneck. In contrast, our approach samples colors into separate buckets and runs standard c-ANN algorithms independently on each sampled subset, rather than on the entire dataset. Our framework satisfies diversity requirements completely outside the search data structure, allowing us to bypass the quadratic barrier. Indeed, no prior work used our strategy of color sampling across separate buckets, otherwise they would have already achieved our improvements in k.
The term "exact" here strictly refers to combinatorial color-distinctness, not exact metric optimality. Also, in Theorem 3.4, we use the term "exact k-diverse c-ANN problem", which implies that the solution gives a c-approximation to the optimal distance. We apologize for any confusion and will add clarification in both abstract and main text to ensure readers do not conflate the two.
The O~ notation is not used to hide super-polylogarithmic terms in our formal theorems. In Table 1, we explicitly state in the caption: "We use O~(⋅) to hide the logk factor" (note that the deterministic result with super-polylogatithmic terms is not presented here). In the actual theorem statements (e.g., theorems in Section 1.1), the exact terms, including o(1) and the (logklogN/ϵ)O(logk) factors, are fully exposed and never hidden.
We chose AIK+25 as our primary baseline because it represents the current state-of-the-art in diverse nearest neighbor search and provides a verified, publicly available implementation.
Regarding AAI+13, their framework relies on LSH-based methods, which are widely known to be outperformed in practice by modern graph-based algorithms (such as DiskANN that AIK+25 builds upon). Regarding the over-retrieve-then-rerank strategy (CG98), we note in our paper (lines 302–303) that the empirical results in AIK+25 demonstrate that their diverse search algorithm significantly outperforms standard search combined with post-processing. Because AIK+25 already has a clear advantage over prior baselines, and our randomized framework significantly outperforms AIK+25, we considered it unnecessary to re-run these superseded baselines.
Finally, regarding the ablation over the bucket count L, our Recall vs. Latency plots (e.g., Figure 1a) actually implicitly show this ablation. As detailed in our evaluation setup (line 341), we vary the recall in our algorithm by varying the bucket count, i.e., higher recall is achieved by increasing the bucket count, while fixing all other parameters (Graph Degree, Search List Size, etc.).
We included a plot illustrating the recall-vs-latency tradeoff at different values of k in Figure 1c on page 9 of the submitted manuscript. Moreover, the recall-vs-latency tradeoff is the standard evaluation in ANN literature (e.g., DiskANN, AIK+25). Evaluating this at a large, fixed k (e.g., k=100) captures scaling efficiency; as our figures show, our latency remains significantly lower than the baseline at high recall. Still, we agree that directly showing k-scaling better supports our sub-quadratic bounds. We will add a Latency vs. k plot at a fixed recall in the revision.
Although we appreciate the request for a comparative analysis, we emphasize that the deterministic algorithms are primarily a theoretical contribution. In contrast, the randomized version is designed for practical deployment. While the deterministic algorithms offer absolute stability, their complex expander-graph constructions and adaptive segment tree structure introduce overhead factors that make them less practically efficient and more difficult to implement than our color-sampling approach.
We note that the hand-designed skew is identical to AIK+25, allowing us to directly compare the two methods. When evaluated strictly on near-uniform or low-skew datasets, many standard methods may perform reasonably well. However, the skewed benchmark is intentionally designed to evaluate robustness on long-tailed datasets (e.g. dominant seller in E-commerce, common conditions in patient data, routine consumer behavior in financial transactions, etc.).