Compact distance histogram: a novel structure to boost k-nearest neighbor queries

The k-Nearest Neighbor query (k-NNq) is one of the most useful similarity queries. Elaborated k-NNq algorithms depend on an initial radius to prune regions of the search space that cannot contribute to the answer. Therefore, estimating a suitable starting radius is of major importance to accelerate k-NNq execution. This paper presents a new technique to estimate a tight initial radius. Our approach, named CDH-kNN, relies on Compact Distance Histograms (CDHs), which are pivot-based histograms defined as piecewise linear functions. Such structures approximate the distance distribution and are compressed according to a given constraint, which can be a desired number of buckets and/or a maximum allowed error. The covering radius of a k-NNq is estimated based on the relationship between the query element and the CDHs' joint frequencies. The paper presents a complete specification of CDH-kNN, including CDH's construction and radii estimation. Extensive experiments on both real and synthetic datasets highlighted the efficiency of our approach, showing that it was up to 72% faster than existing algorithms, outperforming every competitor in all the setups evaluated. In fact, the experiments showed that our proposal was just 20% slower than the theoretical lower bound.

[1]  Chen Li,et al.  NNH: Improving Performance of Nearest-Neighbor Searches Using Histograms , 2004, EDBT.

[2]  Hisashi Kurasawa,et al.  Pivot Selection Method for Optimizing both Pruning and Balancing in Metric Space Indexes , 2010, DEXA.

[3]  Christos Faloutsos,et al.  The Omni-family of all-purpose access methods: a simple and effective way to make similarity search more efficient , 2007, The VLDB Journal.

[4]  Agma J. M. Traina,et al.  Parameter-free and domain-independent similarity search with diversity , 2013, SSDBM.

[5]  Jakub Lokoc,et al.  Clustered pivot tables for I/O-optimized similarity search , 2011, SISAP.

[6]  Guido Moerkotte,et al.  Histograms reloaded: the merits of bucket diversity , 2010, SIGMOD Conference.

[7]  SametHanan,et al.  Index-driven similarity search in metric spaces (Survey Article) , 2003 .

[8]  Christos Faloutsos,et al.  Fast Indexing and Visualization of Metric Data Sets using Slim-Trees , 2002, IEEE Trans. Knowl. Data Eng..

[9]  Gerhard Weikum,et al.  Combining Histograms and Parametric Curve Fitting for Feedback-Driven Query Result-size Estimation , 1999, VLDB.

[10]  Hanan Samet,et al.  Index-driven similarity search in metric spaces (Survey Article) , 2003, TODS.

[11]  Pavel Zezula,et al.  Similarity Search - The Metric Space Approach , 2005, Advances in Database Systems.

[12]  Christos Faloutsos,et al.  Boosting k-Nearest Neighbor Queries Estimating Suitable Query Radii , 2007, 19th International Conference on Scientific and Statistical Database Management (SSDBM 2007).

[13]  Yannis E. Ioannidis,et al.  The History of Histograms (abridged) , 2003, VLDB.