Fast Diverse Nearest Neighbor Search
Justin Chen, Soham Nagawanshi, Shenghao Xie, Haike Xu, Alan Zhou, Samson Zhou
NeurIPS page · OpenReview · Open on the map
Category: Time Series, PDEs & Probabilistic ML › Coresets and Efficient Summarization for Clustering · Type: new method · Keywords: k-diverse nearest neighbor search, color bucketing, approximate nearest neighbor, group testing, expander graphs, segment tree
Summary
The paper introduces a color bucketing framework that reduces the query time overhead for k-diverse nearest neighbor search, achieving near-linear overhead and higher recall than prior diversity-aware methods.
Explained to a 5-year-old
We want to find friends who are all different kinds. The old way took a long time when we wanted many friends. The new idea sorts friends into groups, picks a few from each group, and looks for the closest ones quickly. This makes finding many different friends much faster.
Explained to a 5-year-old, longer
Imagine you have a big box of toys, each toy is colored. You ask for three toys that are close to you but all have different colors. The old method looked at every toy many times, which took a long time when you asked for many toys. The new method puts the toys into color buckets, picks a few toys from each bucket, and then looks for the nearest toys in those buckets. This way it finds the right toys much faster. It also has a special way to make sure you get exactly the right number of different colors, even when the toys are arranged in a tricky way. The new method works well for many kinds of toys and helps you get what you want quickly.
For a technical reader
The paper presents a bucketing strategy that reduces the O(k²) query overhead of prior diversity-aware graph methods. By partitioning colors into buckets and sampling subsets, independent ANN searches are performed, yielding O(k1-1/c² log k) overhead in Euclidean spaces and O(k log k) in general metrics. Deterministic bucketing with expander graphs and an adaptive segment-tree scheme further improve performance and provide theoretical guarantees.
Problem
Finding several nearest neighbors that all belong to different categories is important for applications like product recommendation, but existing methods incur large query-time costs when many diverse results are needed.
Method
The approach partitions colors into buckets, samples a subset of colors per bucket, and runs independent approximate nearest neighbor searches on the corresponding points. It also includes a deterministic bucketing scheme based on expander graphs for a relaxed diversity requirement and an adaptive segment-tree scheme that reduces overhead.
Results
The approach achieves significantly faster search times and higher recall than state-of-the-art diversity search baselines on both semi-synthetic and real-world datasets.
Contributions
The work provides a randomized color sampling scheme that reduces query overhead from O(k²) to near-linear, introduces deterministic bucketing with expander graphs for relaxed diversity, establishes a Ω(k²) lower bound for dataset-oblivious exact schemes, and proposes an adaptive segment-tree scheme with O(k log N) overhead.
Practical relevance
The faster diverse neighbor search enables real-time recommendation and retrieval systems that can provide results from multiple sellers or categories without prohibitive latency.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction